:root {
  --bg: #111315;
  --bg-2: #171b1f;
  --panel: #1d2226;
  --panel-soft: #22282d;
  --line: #3a434a;
  --line-soft: #2c343a;
  --text: #eef3f7;
  --muted: #b8c4cd;
  --accent: #79c150;
  --accent-2: #5da63a;
  --accent-strong: #8fd66a;
  --title: #f4f6f8;
  --card-ivory: #ded8c8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
h1[id], h2[id] { scroll-margin-top: 108px; }
body {
  font-family: "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% -10%, rgba(121, 193, 80, 0.12), rgba(121, 193, 80, 0) 40%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 8px; top: 8px; background: #fff; color: #000; padding: 8px; z-index: 999; }

.top-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #1a1f24 0%, #14181c 100%);
  border-bottom: 1px solid var(--line-soft);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.header-inner {
  width: min(1240px, 94vw);
  min-height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.top-nav-shell {
  display: contents;
}

.top-nav-progress {
  display: none;
}

.top-social-desktop {
  display: flex;
  align-items: center;
  gap: 8px;
}

.desktop-only-nav {
  display: inline-flex;
}

.top-nav a {
  color: #d7e0e7;
  text-decoration: none;
  border: 1px solid transparent;
  background: transparent;
  padding: 7px 10px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.75px;
  font-weight: 700;
  white-space: nowrap;
  border-radius: 6px;
}

.top-nav a:hover,
.top-nav a:focus-visible {
  border-color: #4a545d;
  background: #21282e;
}

.nav-download-btn {
  border: 1px solid var(--accent-strong);
  background: linear-gradient(180deg, #8ed065 0%, #6cad49 100%);
  color: #182611;
  padding: 6px 12px;
  min-height: 34px;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 800;
  cursor: pointer;
  white-space: nowrap;
}

.nav-download-btn:hover,
.nav-download-btn:focus-visible {
  filter: brightness(1.05);
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}
.brand-wrap img { border-radius: 8px; border: 1px solid #4c4c4c; }
.brand-wrap:focus-visible {
  outline: 2px solid #8fb3cc;
  outline-offset: 2px;
  border-radius: 8px;
}
.brand {
  margin: 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.88rem;
  line-height: 1.5;
  letter-spacing: 0.55px;
  color: #f0f4f7;
}
.slogan {
  margin: 5px 0 0;
  color: #cfd9ca;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-actions a {
  text-decoration: none;
  color: #ebf2e8;
  border: 1px solid #454545;
  padding: 7px 10px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.header-actions .social-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #20262b;
  border: 1px solid #454f57;
}

.header-actions .social-icon svg {
  width: 18px;
  height: 18px;
  fill: #ebf0f4;
}

.header-actions .social-icon:hover,
.header-actions .social-icon:focus-visible {
  border-color: #6a7885;
  background: #2a3239;
}

.header-actions label {
  color: #c5c5c5;
  text-transform: uppercase;
  font-size: 0.84rem;
}

.header-actions select {
  border: 1px solid #4d5963;
  border-radius: 6px;
  background: #21272c;
  color: #eff4f8;
  padding: 6px 10px;
  font-family: inherit;
}

.site-footer {
  margin-top: 22px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #181d21 0%, #12161a 100%);
}

.footer-inner {
  width: min(1240px, 94vw);
  margin: 0 auto;
  min-height: 128px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 16px 0 24px;
}

.footer-meta {
  text-align: left;
  color: #bfc9d2;
  font-size: 0.88rem;
  line-height: 1.45;
}

.footer-meta p {
  margin: 0;
}

.footer-meta p + p {
  margin-top: 4px;
}

.footer-legal-links {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 14px;
}

.footer-legal-links a {
  color: #dbe5ed;
  text-decoration: none;
  font-weight: 600;
}

.footer-legal-links a:hover,
.footer-legal-links a:focus-visible {
  color: #f4f9ff;
  text-decoration: underline;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.footer-socials .social-icon {
  width: 36px;
  height: 36px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #20262b;
  border: 1px solid #454f57;
}

.footer-socials .social-icon svg {
  width: 18px;
  height: 18px;
  fill: #f2f5ee;
}

.page { width: min(1240px, 94vw); margin: 18px auto 32px; }
.section {
  background: linear-gradient(180deg, var(--panel) 0%, var(--panel-soft) 100%);
  border: 1px solid var(--line);
  margin-top: 20px;
  padding: 22px;
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(132, 154, 170, 0.05);
}

.section:not(#hero-section) {
  content-visibility: auto;
  contain-intrinsic-size: 860px;
}

.section-head h2 {
  margin: 0 0 16px;
  font-family: "Press Start 2P", monospace;
  color: var(--title);
  font-size: clamp(0.9rem, 1.6vw, 1.2rem);
  line-height: 1.35;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title-icon {
  width: 28px;
  height: 28px;
  border: 1px solid #4d5d68;
  border-radius: 6px;
  background: linear-gradient(180deg, #273038 0%, #202830 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(157, 185, 203, 0.12);
  flex: 0 0 auto;
}

.section-title-icon svg {
  width: 16px;
  height: 16px;
  fill: #b8d9a2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr;
  gap: 18px;
  align-items: stretch;
}

.video-panel,
.video-card {
  border: 1px solid var(--line);
  background: #101418;
  align-self: stretch;
  border-radius: 12px;
  overflow: hidden;
}

.video-panel {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  height: 100%;
  gap: 16px;
}

.video-panel iframe {
  width: 100%;
  border: 0;
  display: block;
  flex: 1;
  min-height: 320px;
}

.video-card iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  background: linear-gradient(180deg, #1a2025 0%, #14191e 100%);
  padding: 12px;
}

.metric-item {
  border: 1px solid #4a5560;
  background: #1a2127;
  padding: 9px 10px;
  min-height: 74px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.metric-value {
  margin: 0;
  color: #ecf3f9;
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
}

.metric-label {
  margin: 6px 0 0;
  color: #b7c3cc;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.45px;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
}

.metric-stars {
  position: relative;
  display: inline-block;
  font-size: 1.6rem;
  letter-spacing: 2px;
  line-height: 0.9;
}

.metric-stars .stars-bg {
  color: #6c7668;
}

.metric-stars .stars-fill {
  position: absolute;
  left: 0;
  top: 0;
  width: 90%;
  overflow: hidden;
  color: #f2e69f;
  white-space: nowrap;
}

.metric-sub {
  margin: 0;
  color: #ecf3f9;
  font-family: "Press Start 2P", monospace;
  font-size: 0.8rem;
  line-height: 1.45;
}

.metric-leading {
  border-color: #4a5560;
  background: linear-gradient(180deg, #1f2730 0%, #1a2129 100%);
}

.promo-panel {
  border: 1px solid var(--line);
  background: #1a2128;
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 12px;
}

.promo-logo {
  width: 78px;
  height: 78px;
  border-radius: 10px;
  border: 1px solid #4d5c66;
}

.promo-panel h1 {
  margin: 10px 0 10px;
  font-family: "Press Start 2P", monospace;
  color: #f4f6f8;
  font-size: clamp(0.82rem, 1.2vw, 0.96rem);
  line-height: 1.3;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.hero-title-line {
  display: block;
  white-space: nowrap;
}

.promo-panel p { margin: 0 0 14px; color: var(--muted); font-size: 1.15rem; }

.code-showcase {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr;
  gap: 10px;
  margin-bottom: 14px;
  flex: 1;
  min-height: 280px;
}

.code-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.code-tab {
  border: 1px solid #4e5964;
  background: #1b2229;
  color: #cfdae3;
  min-height: 34px;
  cursor: pointer;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.code-tab.is-active {
  border-color: #7ac14f;
  background: #243124;
  color: #ecf7e8;
}

.code-panel {
  border: 1px solid #4e5964;
  background: #13191f;
  padding: 8px;
  display: none;
  height: 100%;
}

.code-panel.is-active {
  display: block;
}

.code-title {
  margin: 0 0 6px !important;
  color: #e9eef2 !important;
  font-size: 0.86rem !important;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.code-panel pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  height: 220px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #5f7457 #1a2219;
  padding-right: 4px;
}

.code-panel pre::-webkit-scrollbar {
  width: 8px;
}

.code-panel pre::-webkit-scrollbar-track {
  background: #1a2219;
  border-radius: 999px;
}

.code-panel pre::-webkit-scrollbar-thumb {
  background: #4f6448;
  border-radius: 999px;
  border: 1px solid #1a2219;
}

.code-panel pre:hover::-webkit-scrollbar-thumb {
  background: #688260;
}

.code-panel code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.74rem;
  line-height: 1.45;
  color: #d5e3ec;
}

.cta-stack { display: grid; gap: 8px; }
.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border: 1px solid #4b5660;
  background: #283039;
  color: #f0f4ee;
  text-decoration: none;
  min-height: 40px;
  padding: 8px 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.btn.primary {
  border-color: var(--accent-strong);
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #162411;
}

.install-btn {
  font-size: 0.94rem;
  letter-spacing: 0.7px;
  border-width: 2px;
  gap: 8px;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
  min-height: 46px;
}

.install-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.install-icon svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.ios-btn {
  background: linear-gradient(180deg, #e8f2fb 0%, #d4e4f4 100%);
  border-color: #9db8cf;
  color: #14293d;
}

.ios-btn:hover,
.ios-btn:focus-visible {
  background: linear-gradient(180deg, #eaf5ff 0%, #c8e2f5 100%);
}

.android-btn {
  background: linear-gradient(180deg, #e6f6dc 0%, #cceab7 100%);
  border-color: #9bc67f;
  color: #16310f;
}

.android-btn:hover,
.android-btn:focus-visible {
  background: linear-gradient(180deg, #e8f8dd 0%, #caecb2 100%);
}

.slider-window {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #171d22;
  padding: 12px;
  border-radius: 12px;
}

.slider-window.manual-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 14px;
  -webkit-overflow-scrolling: touch;
  padding: 12px 0;
  scrollbar-width: thin;
  scrollbar-color: #5e7458 #1a2219;
}

.scroll-shell {
  position: relative;
}

.scroll-shell::before,
.scroll-shell::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 22px;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  transition: opacity 180ms ease;
}

.scroll-shell::before {
  left: 0;
  background: linear-gradient(90deg, rgba(18, 23, 28, 0.95), rgba(18, 23, 28, 0));
}

.scroll-shell::after {
  right: 0;
  background: linear-gradient(270deg, rgba(18, 23, 28, 0.95), rgba(18, 23, 28, 0));
}

.scroll-shell.can-scroll-left::before { opacity: 1; }
.scroll-shell.can-scroll-right::after { opacity: 1; }

.scroll-nav {
  position: absolute;
  right: 10px;
  top: 10px;
  z-index: 3;
  display: flex;
  gap: 8px;
}

.scroll-btn {
  width: 34px;
  height: 34px;
  border: 1px solid #6d7b87;
  background: linear-gradient(180deg, #2d3740 0%, #242d36 100%);
  color: #edf3f7;
  border-radius: 9px;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35), inset 0 0 0 1px rgba(212, 230, 244, 0.16);
  transition: background 160ms ease, border-color 160ms ease, transform 120ms ease, box-shadow 160ms ease;
}

.scroll-btn:hover,
.scroll-btn:focus-visible {
  border-color: #8ea0af;
  background: linear-gradient(180deg, #394651 0%, #2d3944 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42), 0 0 0 2px rgba(124, 167, 201, 0.22);
}

.scroll-btn:disabled {
  opacity: 0.45;
  border-color: #49555f;
  background: #252d34;
  color: #aeb8c0;
  box-shadow: none;
  cursor: default;
  transform: none;
}

.slider-window.manual-scroll::-webkit-scrollbar {
  height: 10px;
}

.slider-window.manual-scroll::-webkit-scrollbar-thumb {
  background: #5e7458;
  border-radius: 999px;
}

.slider-window.manual-scroll .content-card,
.slider-window.manual-scroll .weekly-item {
  scroll-snap-align: start;
}

.slider-track {
  display: flex;
  gap: 14px;
  will-change: transform;
}

.slider-track::after,
.preview-grid::after {
  content: "";
  flex: 0 0 14px;
}

#content-grid {
  padding-inline: 14px;
}

.content-card {
  flex: 0 0 min(292px, 78vw);
  background: linear-gradient(180deg, #1f262d 0%, #191f25 100%);
  border: 1px solid #4a5762;
  border-radius: 16px;
  padding: 12px;
  color: #e6eef5;
  box-shadow: inset 0 0 0 1px rgba(145, 170, 191, 0.08);
  cursor: pointer;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
  display: grid;
  grid-template-rows: auto auto 2.5em auto auto;
  align-content: start;
  gap: 8px;
}

.content-card:hover,
.content-card:focus-visible {
  border-color: #6f8392;
  box-shadow: inset 0 0 0 1px rgba(149, 180, 206, 0.16), 0 8px 20px rgba(0, 0, 0, 0.24);
  transform: translateY(-1px);
}

.content-thumb-wrap { position: relative; }
.content-thumb-placeholder {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  border: 2px solid #2a3845;
  background: linear-gradient(180deg, #2a343d 0%, #222a32 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.content-thumb-placeholder img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  opacity: 0.9;
}

.content-thumb {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #2a3845;
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 180ms ease;
}

.content-thumb-wrap.is-loaded .content-thumb {
  opacity: 1;
}
.thumb-split {
  position: absolute;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: #1e1e1e;
}
.thumb-split.split-1 { left: calc(33.333% + 1px); }
.thumb-split.split-2 { left: calc(66.666% + 1px); }

.content-card h3 {
  margin: 2px 0 0;
  font-family: "Press Start 2P", monospace;
  font-size: 0.78rem;
  line-height: 1.25;
  color: #f0f5f9;
  min-height: 2.5em;
  max-height: 2.5em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.content-card p { margin: 0; font-size: 1.02rem; }
.content-card .meta { margin-top: 6px; color: #635d4c; font-size: 0.96rem; }
.trend-meta {
  margin-top: 0;
  display: grid;
  grid-template-columns: 0.82fr 1.36fr 0.96fr;
  gap: 12px;
  min-height: 28px;
  align-items: center;
  width: 100%;
  overflow: hidden;
}

.trend-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid #52616d;
  background: #202933;
  color: #d0dde8;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 0.82rem;
  width: 100%;
  min-width: 0;
}

.trend-chip svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  flex: 0 0 auto;
}

.trend-chip strong {
  font-weight: 700;
  letter-spacing: 0.2px;
  white-space: nowrap;
}

.trend-chip-type {
  border-color: #668257;
  background: #253327;
  color: #d9e9d2;
}


.trend-install {
  width: 100%;
  margin-top: 6px;
  min-height: 36px;
  font-size: 0.82rem;
  padding: 6px 8px;
  align-self: end;
}

.stat-row {
  margin-top: 7px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  font-size: 1.12rem;
}

.card-actions {
  margin-top: 9px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.preview-grid {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #5e7458 #1a2219;
  padding-inline: 14px;
}

.preview-grid::-webkit-scrollbar {
  height: 10px;
}

.preview-grid::-webkit-scrollbar-thumb {
  background: #5e7458;
  border-radius: 999px;
}

.preview-grid .video-card {
  flex: 0 0 min(420px, 88vw);
  scroll-snap-align: start;
}

.weekly-track .weekly-item {
  flex: 0 0 min(320px, 82vw);
  border: 1px solid #4b5863;
  background: #141a20;
  padding: 8px;
  scroll-snap-align: start;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  gap: 10px;
}

.weekly-track {
  padding-inline: 14px;
}

.weekly-open {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 10px;
  overflow: hidden;
}

.weekly-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 1024 / 708;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.weekly-install-btn {
  width: 100%;
  min-height: 34px;
  font-size: 0.78rem;
  letter-spacing: 0.4px;
}

.testimonial-list {
  position: relative;
  display: grid;
  gap: 12px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.testimonial {
  border: 1px solid #4c5964;
  background: linear-gradient(180deg, #1f2730 0%, #182028 100%);
  padding: 8px 14px 14px;
  width: min(340px, 82vw);
  min-width: min(340px, 82vw);
  max-width: min(340px, 82vw);
  border-radius: 10px;
}

.testimonial .review-stars {
  margin: -4px 0 12px;
  font-family: "Press Start 2P", monospace;
  font-size: 1.79rem;
  line-height: 0.9;
  display: block;
  letter-spacing: 4.2px;
  color: #f9e58d;
  text-shadow: 0 0 22px rgba(249, 229, 141, 0.45), 0 0 6px rgba(249, 229, 141, 0.35);
}

.testimonial p { margin: 0 0 8px; font-size: 1.07rem; color: #d8e3ec; }
.testimonial > p:not(.review-stars) {
  min-height: calc(1.4em * 3);
  max-height: calc(1.4em * 3);
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: anywhere;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
.testimonial strong { color: #e6eb9f; font-size: 0.95rem; text-transform: uppercase; }

.review-user {
  display: flex;
  align-items: center;
  gap: 8px;
}

.review-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid #5d6f7f;
  background: #202a32;
  flex: 0 0 auto;
}

.review-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: review-wall-scroll 120s linear infinite;
}

.review-track.reverse {
  animation-direction: reverse;
  animation-duration: 140s;
}

.seo-copy p {
  margin: 0 0 12px;
  color: #cbd6de;
  font-size: 1rem;
  line-height: 1.65;
}

.seo-copy ul {
  margin: 4px 0 16px 18px;
  padding: 0;
  color: #d7e2ea;
}

.seo-copy li {
  margin: 0 0 8px;
}

.seo-faq {
  border: 1px solid #4a5560;
  background: linear-gradient(180deg, #1b2229 0%, #161d23 100%);
  border-radius: 10px;
  padding: 14px;
}

.seo-faq h3 {
  margin: 0 0 10px;
  font-family: "Press Start 2P", monospace;
  font-size: 0.82rem;
  color: #eaf0f5;
  line-height: 1.4;
}

.seo-faq article + article {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #38434d;
}

.seo-faq h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: #f0f5f9;
  font-weight: 700;
}

.seo-faq p {
  margin: 0;
  color: #c8d4de;
  font-size: 0.96rem;
  line-height: 1.6;
}

@keyframes review-wall-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.detail-modal {
  border: 1px solid #4d5a65;
  background: #1d252d;
  color: #eef7ea;
  width: min(680px, 92vw);
  padding: 16px;
  max-height: 88vh;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.56), inset 0 0 0 1px rgba(170, 196, 221, 0.11);
}
.detail-modal::backdrop { background: rgba(0, 0, 0, 0.6); }
.detail-modal article {
  display: flex;
  flex-direction: column;
  max-height: calc(88vh - 32px);
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #6f85a0 #23303c;
}
.detail-modal article::-webkit-scrollbar {
  width: 9px;
}
.detail-modal article::-webkit-scrollbar-track {
  background: linear-gradient(180deg, #273541, #1f2b36);
  border-radius: 999px;
}
.detail-modal article::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #8ea6bf, #6f86a0);
  border-radius: 999px;
  border: 2px solid #23303c;
}
.detail-modal article::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #a6bdd5, #7f98b4);
}
.close-modal {
  position: absolute;
  top: 12px;
  right: 36px;
  z-index: 3;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #2e3944;
  border: 1px solid #617282;
  color: #e8f0f7;
  cursor: pointer;
}
.detail-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: min(52vh, 540px);
  object-fit: cover;
  border: 1px solid #627386;
  margin: 12px 0;
  border-radius: 14px;
  background: transparent;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), inset 0 0 0 1px rgba(190, 214, 236, 0.09);
}
.badge { border: 1px solid #739469; border-radius: 999px; padding: 2px 8px; width: fit-content; }

#detail-title {
  margin: 4px 0 10px;
  line-height: 1.35;
  text-align: center;
}

#detail-desc {
  margin: 0 0 12px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #475666;
  background: linear-gradient(180deg, rgba(26, 35, 44, 0.95), rgba(21, 29, 37, 0.96));
  color: #d8e4ef;
  line-height: 1.62;
  white-space: pre-line;
  max-height: none;
  overflow: visible;
}

#detail-download {
  align-self: center;
  margin: 8px auto 0;
  min-width: min(320px, 88%);
  text-align: center;
  outline: none;
  box-shadow: none;
}

#detail-download:focus,
#detail-download:focus-visible,
#detail-download:active {
  outline: none;
  box-shadow: none;
}

.weekly-modal {
  border: 1px solid #4f5f6b;
  background: linear-gradient(180deg, #1b2229 0%, #131a21 100%);
  padding: 12px;
  width: fit-content;
  max-width: 94vw;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.55), inset 0 0 0 1px rgba(159, 184, 208, 0.12);
}

.weekly-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

#weekly-modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: calc(94vw - 24px);
  max-height: calc(82vh - 24px);
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid #627589;
  background: #10161c;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45), inset 0 0 0 1px rgba(199, 216, 232, 0.08);
}

@media (min-width: 981px) {
  .scroll-nav {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0 6px;
    pointer-events: none;
  }
  .scroll-nav .scroll-btn {
    pointer-events: auto;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(48, 59, 69, 0.94), rgba(35, 44, 53, 0.94));
    border-color: #728391;
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.36);
  }
  .scroll-nav .scroll-btn.prev {
    transform: translateX(-8px);
  }
  .scroll-nav .scroll-btn.next {
    transform: translateX(8px);
  }
  .scroll-nav .scroll-btn:hover,
  .scroll-nav .scroll-btn:focus-visible {
    transform: none;
  }
}

@media (max-width: 980px) {
  .top-social-desktop { display: none; }
  .desktop-only-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .video-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .preview-grid .video-card { flex-basis: min(360px, 86vw); }
  .header-inner {
    flex-wrap: wrap;
    padding: 12px 0;
    align-items: center;
  }
  .brand-wrap {
    flex: 0 1 auto;
    min-width: 0;
  }
  .header-actions {
    margin-left: auto;
    width: auto;
    justify-content: flex-end;
    flex: 0 0 auto;
  }
  .top-nav-shell {
    order: 3;
    width: 100%;
    position: relative;
    display: block;
  }
  .top-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    gap: 12px;
    padding: 14px 0 20px;
  }
  .footer-meta { text-align: center; }
  .footer-legal-links { justify-content: center; }
  .footer-socials { justify-content: center; }
  .scroll-nav {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    padding: 0 4px;
    pointer-events: none;
  }
  .scroll-nav .scroll-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    font-size: 0.98rem;
    border-color: #7c8f9f;
    background: linear-gradient(180deg, rgba(44, 56, 67, 0.9), rgba(32, 41, 50, 0.9));
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
    pointer-events: auto;
  }
  .scroll-nav .scroll-btn.prev {
    transform: translateX(-4px);
  }
  .scroll-nav .scroll-btn.next {
    transform: translateX(4px);
  }
  .scroll-nav .scroll-btn:hover,
  .scroll-nav .scroll-btn:focus-visible {
    transform: none;
  }
  .scroll-nav .scroll-btn:disabled {
    opacity: 0;
    visibility: hidden;
  }
  .top-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .nav-download-btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .top-nav-shell::before,
  .top-nav-shell::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 2px;
    width: 26px;
    pointer-events: none;
    z-index: 2;
    opacity: 0;
    transition: opacity 180ms ease;
  }
  .top-nav-shell::before {
    left: 0;
    background: linear-gradient(90deg, rgba(20, 24, 28, 0.96), rgba(20, 24, 28, 0));
  }
  .top-nav-shell::after {
    right: 0;
    background: linear-gradient(270deg, rgba(20, 24, 28, 0.96), rgba(20, 24, 28, 0));
  }
  .top-nav-shell.can-scroll-left::before,
  .top-nav-shell.can-scroll-right::after {
    opacity: 1;
  }
  .top-nav-progress {
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: -3px;
    height: 2px;
    border-radius: 999px;
    background: rgba(186, 202, 214, 0.16);
    opacity: 0;
    transition: opacity 180ms ease;
    overflow: hidden;
    z-index: 2;
    pointer-events: none;
  }
  .top-nav-progress-fill {
    display: block;
    height: 100%;
    width: 28%;
    border-radius: inherit;
    background: linear-gradient(90deg, #9db9cc, #d6e7f3);
    transform: translateX(var(--nav-progress-x, 0%));
    transition: transform 120ms ease-out, width 120ms ease-out;
  }
  .top-nav-shell.is-scrollable .top-nav-progress {
    opacity: 1;
  }
}

@media (max-width: 640px) {
  .header-inner { padding: 12px 0; }
  .card-actions { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .video-metrics { grid-template-columns: 1fr; }
  .preview-grid .video-card { flex-basis: 88vw; }
  .section { box-shadow: none; }
  .top-header { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); }
  .review-track.reverse { display: none; }
  .review-track { animation-duration: 170s; }
  .footer-legal-links { gap: 10px; flex-wrap: wrap; }
  .footer-meta { font-size: 0.82rem; }
}

@media (max-width: 768px) {
  h1[id], h2[id] { scroll-margin-top: 92px; }
  .page { width: min(1240px, 96vw); margin: 14px auto 24px; }

  .header-inner {
    min-height: auto;
    gap: 10px;
    padding: 10px 0;
  }

  .brand-wrap img {
    width: 36px;
    height: 36px;
  }

  .brand {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .slogan { display: none; }

  .header-actions {
    width: auto;
    gap: 8px;
    justify-content: flex-end;
    margin-left: auto;
  }

  .header-actions .social-icon {
    width: 34px;
    height: 34px;
  }

  .header-actions select {
    min-height: 34px;
    font-size: 0.88rem;
    padding: 5px 8px;
  }

  .top-nav {
    gap: 8px;
    padding-bottom: 6px;
    scrollbar-width: none;
  }

  .top-nav::-webkit-scrollbar { display: none; }

  .top-nav a {
    font-size: 0.72rem;
    padding: 7px 9px;
  }

  .nav-download-btn {
    padding: 6px 10px;
    min-height: 34px;
    font-size: 0.72rem;
  }

  .section {
    margin-top: 14px;
    padding: 16px;
    border-radius: 12px;
  }

  .section-head h2 {
    margin-bottom: 12px;
    gap: 8px;
    font-size: clamp(0.8rem, 3.2vw, 1rem);
  }

  .section-title-icon {
    width: 24px;
    height: 24px;
  }

  .section-title-icon svg {
    width: 14px;
    height: 14px;
  }

  .video-panel { gap: 12px; }

  .video-panel iframe { min-height: 220px; }

  .video-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 4px;
    gap: 6px;
  }

  .metric-item {
    min-height: 24px;
    padding: 3px 4px;
  }

  .metric-value,
  .metric-sub {
    font-size: 0.72rem;
  }

  .metric-label { font-size: 0.72rem; }

  .metric-stars {
    font-size: 1.3rem;
    letter-spacing: 1px;
  }

  .promo-panel { padding: 12px; }

  .promo-logo {
    width: 64px;
    height: 64px;
  }

  .promo-panel h1 {
    font-size: 0.74rem;
    line-height: 1.35;
    letter-spacing: 0.35px;
  }

  .hero-title-line { white-space: normal; }

  .code-showcase {
    min-height: 232px;
    margin-bottom: 10px;
  }

  .code-panel pre { height: 160px; }

  .install-btn {
    min-height: 44px;
    font-size: 0.86rem;
  }

  .slider-window {
    padding: 10px;
    border-radius: 10px;
  }

  .slider-window.manual-scroll {
    padding: 10px 0;
    scroll-padding-inline: 12px;
  }

  .slider-track { gap: 12px; }

  .slider-track::after,
  .preview-grid::after {
    flex: 0 0 12px;
  }

  #content-grid,
  .preview-grid,
  .weekly-track {
    padding-inline: 12px;
  }

  .content-card {
    flex: 0 0 min(286px, 84vw);
    padding: 10px;
    gap: 7px;
    border-radius: 14px;
  }

  .trend-meta {
    gap: 8px;
    grid-template-columns: 0.74fr 1.52fr 0.92fr;
  }

  .trend-chip {
    font-size: 0.78rem;
    padding: 2px 5px;
  }

  .trend-chip svg {
    width: 12px;
    height: 12px;
  }

  .trend-install {
    min-height: 34px;
    font-size: 0.78rem;
  }

  .preview-grid .video-card { flex: 0 0 90vw; }

  .weekly-track .weekly-item {
    flex: 0 0 min(308px, 84vw);
    padding: 7px;
  }

  .weekly-install-btn {
    min-height: 32px;
    font-size: 0.74rem;
  }

  .testimonial {
    width: min(300px, 84vw);
    min-width: min(300px, 84vw);
    max-width: min(300px, 84vw);
    padding: 10px 12px 12px;
  }

  .testimonial .review-stars {
    margin: 0 0 9px;
    font-size: 1.36rem;
    letter-spacing: 2.6px;
  }

  .testimonial p { font-size: 1rem; }

  .footer-inner {
    padding: 12px 0 18px;
    gap: 10px;
  }

  .footer-meta {
    font-size: 0.8rem;
    line-height: 1.5;
  }

  .footer-legal-links { gap: 8px; }

  .footer-socials { gap: 9px; }

  .footer-socials .social-icon {
    width: 34px;
    height: 34px;
  }
}

@media (max-width: 480px) {
  .brand {
    font-size: 0.68rem;
    line-height: 1.42;
  }
  .section { padding: 14px; }
  .content-card { flex-basis: 86vw; }
  .weekly-track .weekly-item { flex-basis: 86vw; }
  .testimonial {
    width: 86vw;
    min-width: 86vw;
    max-width: 86vw;
  }
  .install-btn {
    font-size: 0.82rem;
    letter-spacing: 0.45px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .review-track,
  .review-track.reverse {
    animation: none;
    transform: none;
  }
}
