:root {
  --bg: #08090d;
  --bg-elevated: #0e1017;
  --surface: #181a20;
  --surface-2: #1f222a;
  --surface-3: #282c36;
  --ink: #ffffff;
  --ink-soft: #e8ebf4;
  --muted: #9aa3b5;
  --muted-2: #6b7385;
  --primary: #3b82f6;
  --primary-light: #49c6fa;
  --primary-dark: #0974f1;
  --accent: #e21221;
  --accent-soft: rgba(226, 18, 33, 0.15);
  --primary-glow: rgba(59, 130, 246, 0.35);
  --gradient-main: linear-gradient(135deg, #49c6fa 0%, #3b82f6 45%, #0974f1 100%);
  --gradient-text: linear-gradient(135deg, #ffffff 0%, #b3d4ff 55%, #49c6fa 100%);
  --gradient-border: linear-gradient(135deg, rgba(73, 198, 250, 0.55), rgba(59, 130, 246, 0.25), rgba(151, 117, 255, 0.35));
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.25);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --shadow-glow: 0 0 80px rgba(59, 130, 246, 0.18);
  --header-h: 80px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Urbanist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; }

img { max-width: 100%; height: auto; display: block; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary-light);
  margin-bottom: 14px;
}

.section-label::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: var(--gradient-main);
}

.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
}

.section-lead {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 58ch;
  margin: 0 0 28px;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Header */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out);
  border-bottom: 1px solid transparent;
}

.site-header.scrolled {
  background: rgba(8, 9, 13, 0.82);
  backdrop-filter: saturate(180%) blur(18px);
  border-bottom-color: rgba(255, 255, 255, 0.06);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: url("/assets/ic_launcher.png") center/cover no-repeat;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 10px 14px;
  border-radius: 999px;
  opacity: 0.82;
  transition: opacity 0.2s, background 0.2s, color 0.2s;
}

.nav-links a:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
}

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

.nav-toggle {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s var(--ease-out), box-shadow 0.25s var(--ease-out), background 0.25s;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--gradient-main);
  color: #fff;
  box-shadow: 0 12px 32px rgba(59, 130, 246, 0.28);
}

.btn-primary:hover {
  box-shadow: 0 18px 44px rgba(59, 130, 246, 0.4);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.18);
}

.badge-play {
  display: inline-block;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.badge-play:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid #9ab0ff;
  outline-offset: 3px;
}

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(900px 500px at 85% 10%, rgba(59, 130, 246, 0.22), transparent 60%),
    radial-gradient(700px 420px at 10% 20%, rgba(73, 198, 250, 0.14), transparent 55%),
    radial-gradient(500px 300px at 50% 100%, rgba(151, 117, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #0c1224 0%, var(--bg) 72%);
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: floatOrb 14s ease-in-out infinite;
}

.hero-orb-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  background: rgba(59, 130, 246, 0.35);
}

.hero-orb-2 {
  width: 320px;
  height: 320px;
  bottom: 10%;
  left: -80px;
  background: rgba(73, 198, 250, 0.22);
  animation-delay: -5s;
}

@keyframes floatOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(20px, -24px) scale(1.06); }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 700;
  margin-bottom: 22px;
  backdrop-filter: blur(8px);
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 12px rgba(74, 222, 128, 0.7);
}

.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  max-width: 12ch;
}

.hero .lead {
  font-size: clamp(1.05rem, 2vw, 1.22rem);
  color: var(--muted);
  max-width: 52ch;
  margin: 0 0 28px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 22px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted-2);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-trust svg {
  color: var(--primary-light);
  flex-shrink: 0;
}

/* Phone showcase */
.phone-stage {
  position: relative;
  height: min(560px, 72vh);
  display: grid;
  place-items: center;
}

.phone-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35), transparent 68%);
  filter: blur(8px);
}

.phone {
  position: absolute;
  width: min(260px, 42vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 38px;
  padding: 12px;
  background: linear-gradient(160deg, #1a2035 0%, #0b0f1d 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), var(--shadow-glow);
  overflow: hidden;
}

.phone::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 24px;
  border-radius: 999px;
  background: #05070f;
  z-index: 2;
}

.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
}

.phone-1 {
  transform: rotate(-10deg) translate(-18%, 4%);
  z-index: 2;
  animation: phoneFloat1 7s ease-in-out infinite;
}

.phone-2 {
  transform: rotate(8deg) translate(28%, 8%);
  z-index: 1;
  animation: phoneFloat2 7s ease-in-out infinite;
}

@keyframes phoneFloat1 {
  0%, 100% { transform: rotate(-10deg) translate(-18%, 4%); }
  50% { transform: rotate(-8deg) translate(-16%, 0%); }
}

@keyframes phoneFloat2 {
  0%, 100% { transform: rotate(8deg) translate(28%, 8%); }
  50% { transform: rotate(10deg) translate(30%, 4%); }
}

/* Stats strip */
.stats-strip {
  position: relative;
  z-index: 2;
  margin-top: -28px;
  padding-bottom: 20px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: rgba(24, 26, 32, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.stat {
  text-align: center;
  padding: 8px 10px;
}

.stat-value {
  display: block;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-label {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

/* Trending marquee */
.trending {
  padding: 28px 0 56px;
  overflow: hidden;
}

.trending-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.trending-track-wrap {
  position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.trending-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 42s linear infinite;
}

.trending-track:hover { animation-play-state: paused; }

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

.poster-card {
  flex: 0 0 132px;
  aspect-ratio: 2 / 3;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s;
}

.poster-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
}

.poster-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Sections */
section { padding: 72px 0; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature-card {
  position: relative;
  padding: 24px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 34, 42, 0.95), rgba(24, 26, 32, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), border-color 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: var(--gradient-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(59, 130, 246, 0.12);
  color: var(--primary-light);
  margin-bottom: 16px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
}

/* Steps */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.step-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  background: var(--gradient-main);
  margin-bottom: 14px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Premium banner */
.premium-banner {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(600px 280px at 100% 0%, rgba(226, 18, 33, 0.18), transparent 60%),
    radial-gradient(500px 240px at 0% 100%, rgba(59, 130, 246, 0.2), transparent 55%),
    linear-gradient(135deg, #141824 0%, #181a20 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.premium-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #ff8a8a;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.premium-banner h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.03em;
}

.premium-banner p {
  margin: 0;
  color: var(--muted);
  max-width: 52ch;
}

.premium-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.premium-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
}

.premium-list svg { color: #4ade80; flex-shrink: 0; }

/* App modules */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.module-chip {
  padding: 20px 16px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(31, 34, 42, 0.95), rgba(24, 26, 32, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}

.module-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.25);
}

.module-chip strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.98rem;
  letter-spacing: -0.02em;
}

.module-chip span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

/* Gallery */
.gallery-wrap {
  position: relative;
}

.carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding: 8px 4px 16px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--surface-3) transparent;
}

.carousel::-webkit-scrollbar { height: 8px; }
.carousel::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
}

.cap {
  flex: 0 0 min(240px, 72vw);
  aspect-ratio: 9 / 19.5;
  border-radius: 22px;
  overflow: hidden;
  scroll-snap-align: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--surface-2);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease-out), box-shadow 0.3s;
}

.cap:hover {
  transform: scale(1.03);
  box-shadow: var(--shadow);
}

.cap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info panels */
.info-panel {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(31, 34, 42, 0.85), rgba(24, 26, 32, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.info-panel p { color: var(--muted); margin: 0; }

.info-panel a {
  color: var(--primary-light);
  font-weight: 700;
  text-decoration: none;
}

.info-panel a:hover { text-decoration: underline; }

/* FAQ */
.faq-list { display: grid; gap: 12px; }

.faq-item {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq-item[open] {
  border-color: rgba(59, 130, 246, 0.35);
  background: linear-gradient(180deg, rgba(31, 34, 42, 0.95), rgba(24, 26, 32, 0.95));
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--primary-light);
  transition: transform 0.25s var(--ease-out);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  margin: 0;
  padding: 0 20px 18px;
  color: var(--muted);
}

/* CTA final */
.cta-final {
  text-align: center;
  padding: 56px 32px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(700px 320px at 50% 0%, rgba(59, 130, 246, 0.22), transparent 60%),
    linear-gradient(180deg, #121722 0%, var(--surface) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow);
}

.cta-final h2 {
  margin: 0 0 10px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  letter-spacing: -0.03em;
}

.cta-final p {
  margin: 0 auto 24px;
  color: var(--muted);
  max-width: 46ch;
}

.cta-final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

/* Footer */
.site-footer {
  margin-top: 24px;
  padding: 48px 0 28px;
  background: var(--bg-elevated);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.social-links--panel {
  margin-top: 20px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.social-link svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.social-link:hover {
  color: var(--ink-soft);
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
}

.social-link--icon {
  width: 42px;
  height: 42px;
  padding: 0;
  justify-content: center;
  border-radius: 12px;
}

.social-link--icon span { display: none; }

.footer-brand p {
  margin: 12px 0 0;
  color: var(--muted);
  max-width: 34ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  margin: 0 0 14px;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.footer-col a {
  display: block;
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 6px 0;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--ink-soft); }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted-2);
  font-size: 0.9rem;
}

/* Reveal animations */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Legal / open pages */
.page-main {
  padding: calc(var(--header-h) + 40px) 0 64px;
}

.page-card {
  max-width: 760px;
  margin: 0 auto;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.page-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.03em;
}

.page-card h2 {
  font-size: 1.12rem;
  margin: 28px 0 10px;
}

.page-card h2:first-of-type { margin-top: 0; }

.page-card p,
.page-card li { color: #d8dce8; }

.page-card ul { padding-left: 1.2rem; }

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 700;
}

.back-link:hover { color: var(--ink-soft); }

.open-card {
  max-width: 440px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 32px;
}

.open-logo {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 20px;
  background: url("/assets/ic_launcher.png") center/cover no-repeat;
  box-shadow: 0 16px 40px rgba(59, 130, 246, 0.3);
}

.open-spinner {
  width: 36px;
  height: 36px;
  margin: 20px auto 0;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--primary);
  animation: spin 0.8s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-orb, .phone-1, .phone-2, .trending-track, .open-spinner { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-card:hover, .cap:hover, .badge-play:hover { transform: none; }
}

/* Mobile */
@media (max-width: 980px) {
  :root { --header-h: 72px; }

  .nav-links {
    display: none;
    position: fixed;
    inset: var(--header-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    padding: 16px 20px 24px;
    background: rgba(8, 9, 13, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav.open .nav-links { display: flex; }

  .nav-links a {
    padding: 14px 16px;
    border-radius: var(--radius-sm);
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-soft);
    font-weight: 800;
    cursor: pointer;
  }

  .hero-grid,
  .features-grid,
  .steps-grid,
  .stats-grid,
  .footer-grid,
  .premium-banner {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }

  .modules-grid { grid-template-columns: repeat(2, 1fr); }

  .hero h1 { max-width: none; }

  .phone-stage { height: 420px; margin-top: 12px; }

  .phone { width: min(210px, 46vw); }

  .phone-1 { transform: rotate(-8deg) translate(-8%, 2%); }
  .phone-2 { transform: rotate(6deg) translate(18%, 6%); }

  .nav-actions .btn-ghost { display: none; }

  .trending-head { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .container { width: min(1180px, calc(100% - 28px)); }
  section { padding: 56px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .premium-banner { padding: 24px; }
  .modules-grid { grid-template-columns: 1fr; }
  .cta-final { padding: 40px 20px; }
}
