:root {
  color-scheme: dark;
  --bg:        #0A121E;
  --bg-2:      #0E1A2B;
  --surface:   #131E30;
  --surface-2: #16233A;
  --border:    rgba(255,255,255,0.08);
  --border-2:  rgba(255,255,255,0.13);
  /* app accent = Material fromSeed(Indigo #3F51B5) */
  --primary:   #5C6BC0;
  --primary-2: #7986CB;
  --glow:      #8C9EFF;
  --eyebrow:   #9FA8DA;
  --text:      #E9EDF6;
  --muted:     #98A4BA;
  --font: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0; overflow-x: hidden;
  background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased;
}

body::before {
  content: ""; position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(900px 560px at 82% -6%, rgba(140,158,255,0.14), transparent 62%),
    radial-gradient(820px 620px at 6% 4%, rgba(92,107,192,0.12), transparent 58%),
    var(--bg);
}

img { display: block; max-width: 100%; height: auto; }
a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--glow); }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, p { margin: 0; }
h2, h3 { font-weight: 700; letter-spacing: -0.01em; }

.wrap { width: min(100%, var(--wrap)); margin: 0 auto; padding: 0 1.5rem; }
.eyebrow { font-size: 0.75rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--eyebrow); }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,18,30,0.9); border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 900; font-size: 1.3rem; letter-spacing: -0.02em; color: var(--text); }
.nav { display: flex; align-items: center; gap: 1.6rem; }
.navlink { color: var(--muted); font-size: 0.92rem; }
.navlink:hover { color: var(--text); }
.chip {
  font-size: 0.72rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--eyebrow); padding: 0.38rem 0.72rem; border-radius: 6px;
  border: 1px solid var(--border-2); background: var(--surface);
}
@media (max-width: 720px) { .nav .navlink { display: none; } }

/* hero */
.hero { padding: clamp(2.75rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5.5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 3.75rem); align-items: center; }
.brand-name { font-size: clamp(3rem, 8.5vw, 5.25rem); font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin: 0.75rem 0 0.6rem; }
.tagline { font-size: clamp(1.3rem, 2.7vw, 1.85rem); font-weight: 500; color: var(--text); margin-bottom: 0.85rem; }
.lead { color: var(--muted); font-size: 1.08rem; max-width: 34rem; }
.avail-note { color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }
.avail-note strong { color: var(--text); font-weight: 500; }

.badges { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.7rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.66rem 1rem; min-height: 50px; border-radius: 10px;
  border: 1px solid var(--border-2); background: var(--surface); color: var(--text); cursor: default;
}
.badge svg { width: 21px; height: 21px; flex: none; fill: currentColor; }
.badge .b-sub { font-size: 0.64rem; color: var(--muted); letter-spacing: 0.03em; text-transform: uppercase; line-height: 1; }
.badge .b-main { font-size: 1rem; font-weight: 500; line-height: 1.2; }
.badge .b-txt { display: flex; flex-direction: column; gap: 0.15rem; text-align: left; }

/* phone */
.hero-art { position: relative; display: flex; justify-content: center; }
.phone {
  position: relative; width: min(74vw, 262px);
  border-radius: 2rem; padding: 0.45rem;
  background: linear-gradient(160deg, #1f2c40, #0c1521 62%);
  border: 1px solid var(--border-2); box-shadow: 0 26px 64px -26px rgba(0,0,0,0.72);
}
.screen {
  position: relative; width: 100%; aspect-ratio: 1320 / 2868; border-radius: 1.65rem; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, rgba(92,107,192,0.24), transparent 58%), linear-gradient(180deg, #12203380, #0b1320);
}
.screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; }
.screen .placeholder {
  position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.screen .placeholder svg { width: 30px; height: 30px; stroke: var(--primary-2); opacity: 0.7; }

.discover-motion { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.discover-rail {
  position: absolute; left: 3.636%; right: 3.636%; overflow: hidden;
  background: #11121a;
}
.discover-rail--trending { top: 19.526%; height: 28.94%; }
.discover-rail--releases { top: 54.393%; height: 28.591%; }
.discover-rail--anticipated { top: 89.958%; height: 0.488%; }
.discover-rail-track { display: flex; width: max-content; height: 100%; will-change: transform; }
.discover-rail-sequence { display: flex; flex: none; height: 100%; }
.discover-rail img { width: auto; max-width: none; height: 100%; flex: none; }
.discover-screen:hover .discover-rail-track { animation-play-state: paused; }

.hero-glow {
  position: absolute; z-index: -1; width: 112%; height: 112%; left: -6%; top: -6%;
  background: radial-gradient(closest-side, rgba(140,158,255,0.26), transparent 70%);
}

/* sections */
.band { padding: clamp(3.25rem, 7vw, 5.5rem) 0; }
.section-head { max-width: 42rem; margin-bottom: 2.4rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); margin: 0.55rem 0; }
.section-head p { color: var(--muted); font-size: 1.04rem; }

/* features */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature { padding: 1.5rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); transition: transform .3s ease, border-color .3s ease; }
.feature:hover { transform: translateY(-4px); border-color: var(--border-2); }
.feature .icn { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 0.95rem; background: rgba(92,107,192,0.16); border: 1px solid var(--border-2); }
.feature .icn svg { width: 23px; height: 23px; stroke: var(--primary-2); fill: none; stroke-width: 1.8; }
.feature h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* feature showcases */
.showcase { display: flex; flex-direction: column; gap: clamp(3rem, 6vw, 5rem); }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.show-row:nth-child(even) .show-art { order: 2; }
.show-art { display: flex; justify-content: center; }
.show-art .phone { width: min(82vw, 360px); }
.show-text h3 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin-bottom: 0.6rem; }
.show-text > p { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.15rem; }
.show-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.55rem; }
.show-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.96rem; }
.show-list svg { width: 18px; height: 18px; margin-top: 0.16rem; flex: none; stroke: var(--primary-2); fill: none; stroke-width: 2; }
@media (max-width: 780px) {
  .show-row { grid-template-columns: 1fr; text-align: center; }
  /* Mobile: description first, then phone image — for EVERY row.
     order:2 matches the desktop even-row rule so odd rows stop winning
     with the old order:-1 (which lost to the more-specific even rule). */
  .show-row .show-art { order: 2; }
  .show-list { text-align: left; max-width: 21rem; margin-inline: auto; }
}

/* cta */
.cta-band { text-align: center; }
.cta-card { max-width: 44rem; margin: 0 auto; padding: clamp(2rem, 5vw, 3.2rem); border-radius: 18px; border: 1px solid var(--border-2); background: var(--surface); }
.cta-card h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); margin-bottom: 0.65rem; }
.cta-card p { color: var(--muted); margin-bottom: 1.6rem; }
.email-btn { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 500; font-size: 1rem; color: #fff; padding: 0.8rem 1.4rem; border-radius: 10px; background: var(--primary); transition: background .2s ease, transform .2s ease; }
.email-btn:hover { background: var(--primary-2); color: #0b1018; transform: translateY(-1px); }
.email-btn svg { width: 19px; height: 19px; stroke: currentColor; fill: none; stroke-width: 1.9; }

/* legal pages */
.legal-main { padding: clamp(2.5rem, 6vw, 4.75rem) 0 clamp(3.5rem, 8vw, 6rem); }
.legal-wrap { max-width: 800px; }
.legal-page-header {
  display: flex; flex-direction: column; align-items: flex-start;
  padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--border);
}
.legal-back {
  display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 1.6rem;
  color: var(--muted); font-size: 0.92rem; font-weight: 500;
}
.legal-back:hover { color: var(--text); }
.legal-page-header h1 {
  margin: 0.55rem 0 0.4rem; font-size: clamp(2.2rem, 6vw, 3.65rem);
  font-weight: 900; line-height: 1.08; letter-spacing: -0.03em;
}
.updated { color: var(--muted); font-size: 0.9rem; }
.legal-copy { color: #cbd3e1; }
.legal-copy p { margin: 0 0 1rem; }
.legal-copy h2 {
  margin: 2.75rem 0 1rem; padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border); color: var(--text); font-size: 1.35rem;
}
.legal-copy h3 { margin: 1.75rem 0 0.65rem; color: var(--text); font-size: 1.05rem; }
.legal-copy ul { margin: 0 0 1.2rem; padding-left: 1.35rem; }
.legal-copy li { margin: 0.38rem 0; padding-left: 0.15rem; }
.legal-copy li::marker { color: var(--primary-2); }
.legal-copy a { color: var(--primary-2); text-decoration: underline; text-underline-offset: 0.18em; }
.legal-copy a:hover { color: var(--glow); }
.legal-copy strong { color: var(--text); }
.legal-copy code { padding: 0.12rem 0.32rem; border-radius: 4px; background: var(--surface-2); }
.chip:hover { border-color: var(--border-2); color: var(--text); }

@media (max-width: 560px) {
  .legal-main { padding-top: 1.75rem; }
  .legal-page-header { padding-bottom: 1.5rem; margin-bottom: 1.5rem; }
  .legal-back { margin-bottom: 1.1rem; }
  .legal-copy h2 { margin-top: 2.25rem; }
}

/* footer */
footer { border-top: 1px solid var(--border); padding: 2.2rem 0; margin-top: 0.5rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between; }
.foot-brand { font-weight: 900; font-size: 1.1rem; letter-spacing: -0.02em; color: var(--text); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; font-size: 0.9rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-links .sep { color: #46566d; }
.copy { color: #6a7a91; font-size: 0.84rem; }

/* reveal */
.anim .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.anim .reveal.in { opacity: 1; transform: none; }
.anim .reveal.d1 { transition-delay: .07s; }
.anim .reveal.d2 { transition-delay: .14s; }
.anim .reveal.d3 { transition-delay: .21s; }

@media (prefers-reduced-motion: no-preference) {
  .phone-float { animation: float 6.5s ease-in-out infinite; }
  @keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

  .discover-rail--trending .discover-rail-track {
    animation: discover-scroll 30s linear -8s infinite;
  }
  .discover-rail--releases .discover-rail-track {
    animation: discover-scroll 36s linear -22s infinite;
  }
  .discover-rail--anticipated .discover-rail-track {
    animation: discover-scroll 24s linear -13s infinite;
  }
  @keyframes discover-scroll { to { transform: translateX(-50%); } }
}

@media (prefers-reduced-motion: reduce) { .discover-motion { display: none; } }

@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: flex; flex-direction: column; align-items: center; }
  .lead { margin-inline: auto; }
  .badges { justify-content: center; }
}
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } .badge { flex: 1 1 100%; } }
