/* Chat Music — marketing site
   Dark neon identity, matched to the app: indigo→pink gradient, teal accent,
   Bricolage Grotesque / Hanken Grotesk / Space Mono. Deliberately single (dark) theme. */

:root {
  --bg:        #0a0a10;
  --bg-2:      #0c0c12;
  --bg-top:    #16131f;
  --panel:     rgba(255,255,255,.045);
  --panel-2:   rgba(255,255,255,.07);
  --border:    rgba(255,255,255,.09);
  --border-2:  rgba(255,255,255,.16);

  --indigo:    #6c63ff;
  --indigo-br: #8b7dff;
  --pink:      #ff5c9d;
  --teal:      #38e0d0;

  --ink:       #ffffff;
  --ink-80:    rgba(255,255,255,.82);
  --ink-55:    rgba(255,255,255,.55);
  --ink-35:    rgba(255,255,255,.34);

  --grad:      linear-gradient(120deg, var(--indigo), var(--pink));
  --grad-soft: linear-gradient(120deg, rgba(108,99,255,.16), rgba(255,92,157,.16));

  --display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --body:    "Hanken Grotesk", system-ui, -apple-system, sans-serif;
  --mono:    "Space Mono", ui-monospace, monospace;

  --maxw: 1120px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  color: var(--ink-80);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* Ambient gradient orbs (the app's "OrbField") */
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; }
.orb.a { width: 46vw; height: 46vw; background: var(--indigo); top: -12vw; left: -8vw; animation: drift1 22s ease-in-out infinite; }
.orb.b { width: 40vw; height: 40vw; background: var(--pink);   top: 20vh; right: -10vw; opacity: .42; animation: drift2 26s ease-in-out infinite; }
.orb.c { width: 30vw; height: 30vw; background: var(--teal);   bottom: -12vw; left: 30vw; opacity: .22; animation: drift1 30s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(6vw,4vh) scale(1.1);} }
@keyframes drift2 { 0%,100%{ transform: translate(0,0) scale(1);} 50%{ transform: translate(-5vw,5vh) scale(1.08);} }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }

/* ---------- Type ---------- */
h1,h2,h3 { font-family: var(--display); font-weight: 300; color: var(--ink); line-height: 1.04; text-wrap: balance; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.7rem); }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); }
h3 { font-size: 1.18rem; font-weight: 400; letter-spacing: 0; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--mono); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase;
  color: var(--teal); display: inline-flex; align-items: center; gap: .55rem;
}
.eyebrow::before { content:""; width: 22px; height: 1px; background: var(--teal); opacity: .6; }
.grad-text { background: linear-gradient(120deg, var(--indigo-br), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.lower { text-transform: lowercase; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  border: 1px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .25s ease, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 34px -12px rgba(255,92,157,.6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px -12px rgba(255,92,157,.75); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--border-2); }
.btn-ghost:hover { background: var(--panel-2); transform: translateY(-2px); }

/* App Store badge */
.badge {
  display: inline-flex; align-items: center; gap: .7rem; padding: .7rem 1.15rem; border-radius: 15px;
  background: #000; border: 1px solid var(--border-2); color: #fff; transition: transform .18s ease, border-color .2s;
}
.badge:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.4); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge .b-sub { font-size: .62rem; letter-spacing: .04em; color: var(--ink-55); line-height: 1; }
.badge .b-main { font-family: var(--display); font-weight: 400; font-size: 1.16rem; line-height: 1.1; }
.badge .soon { margin-left: .35rem; font-family: var(--mono); font-size: .55rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(56,224,208,.4); border-radius: 6px; padding: 2px 5px; align-self: center; }

/* ---------- Header ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); background: rgba(10,10,16,.55);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand .logo { width: 30px; height: 30px; }
.brand .name { font-family: var(--mono); font-size: .82rem; letter-spacing: .22em; text-transform: lowercase; color: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 1.7rem; }
.nav-links a { font-size: .9rem; color: var(--ink-55); transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: inline-flex; gap: .6rem; }
@media (max-width: 760px){ .nav-links .hide-sm { display:none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(3rem,7vw,6rem) 0 clamp(3rem,6vw,5rem); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem,5vw,4rem); align-items: center; }
.hero h1 { margin: 1.1rem 0 1.2rem; }
.hero .lede { font-size: 1.12rem; color: var(--ink-80); max-width: 34ch; margin-bottom: .5rem; }
.hero .whisper { font-family: var(--mono); font-size: .82rem; color: var(--ink-35); margin: .3rem 0 1.9rem; }
.hero-cta { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.hero-note { margin-top: 1.4rem; font-size: .8rem; color: var(--ink-35); display:flex; align-items:center; gap:.5rem; }
.dot { width:6px; height:6px; border-radius:50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
@media (max-width: 860px){
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero .lede { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .hero-note { justify-content: center; }
  .phone { margin-inline: auto; }
}

/* ---------- Phone mockup ---------- */
.phone-stage { display: flex; justify-content: center; perspective: 1400px; }
.phone {
  position: relative; width: 300px; max-width: 82vw; aspect-ratio: 300 / 620;
  border-radius: 42px; padding: 12px;
  background: linear-gradient(160deg,#1b1830,#0b0b12);
  border: 1px solid var(--border-2);
  box-shadow: 0 40px 90px -30px rgba(108,99,255,.5), inset 0 1px 0 rgba(255,255,255,.06);
  animation: float 7s ease-in-out infinite;
}
@keyframes float { 0%,100%{ transform: translateY(0) rotateX(0);} 50%{ transform: translateY(-12px);} }
.screen {
  position: relative; height: 100%; border-radius: 32px; overflow: hidden;
  background: radial-gradient(120% 80% at 50% 0%, #191426 0%, #0a0a10 60%);
  display: flex; flex-direction: column; padding: 16px 13px;
}
.notch { position:absolute; top:9px; left:50%; transform:translateX(-50%); width:96px; height:20px; background:#000; border-radius:0 0 14px 14px; z-index:5; }
.sc-top { display:flex; align-items:center; justify-content:space-between; margin-top: 24px; margin-bottom: 12px; }
.sc-top .m { font-family: var(--mono); font-size:.55rem; letter-spacing:.2em; color: var(--ink-35); text-transform: lowercase; }
.sc-pill { font-family: var(--mono); font-size:.5rem; letter-spacing:.1em; padding:4px 9px; border-radius:999px; background: var(--grad); color:#fff; }
.chat { display:flex; flex-direction:column; gap:9px; flex:1; }
.bub { max-width: 82%; font-size:.72rem; line-height:1.35; padding:8px 11px; border-radius:15px; opacity:0; }
.bub.user { align-self:flex-end; background: rgba(255,255,255,.10); color:#fff; border-bottom-right-radius:5px; animation: pop .5s ease forwards; }
.bub.ai { align-self:flex-start; color: var(--ink-80); padding-left:2px; animation: pop .5s ease forwards; }
.bub.b1 { animation-delay:.6s; }
.bub.b2 { animation-delay:1.5s; }
.typing { display:inline-flex; gap:4px; align-items:center; }
.typing i { width:5px; height:5px; border-radius:50%; background: var(--indigo-br); display:inline-block; animation: blink 1.1s infinite; }
.typing i:nth-child(2){ animation-delay:.2s; } .typing i:nth-child(3){ animation-delay:.4s; }
.song {
  margin-top:auto; display:flex; align-items:center; gap:9px; padding:10px; border-radius:16px;
  background: rgba(255,255,255,.05); border:1px solid rgba(139,125,255,.4);
  box-shadow: 0 0 26px -6px rgba(108,99,255,.55);
  opacity:0; transform: scale(.9) translateY(10px); animation: bloom .7s cubic-bezier(.2,.9,.25,1) 2.6s forwards;
}
.song .art { width:42px; height:42px; border-radius:9px; background: linear-gradient(135deg,#6c63ff,#ff5c9d 60%,#38e0d0); flex:none; }
.song .meta { min-width:0; flex:1; }
.song .rdy { font-family: var(--mono); font-size:.5rem; letter-spacing:.08em; color: var(--teal); text-transform: lowercase; }
.song .ttl { font-size:.72rem; font-weight:600; color:#fff; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.song .gr { font-family: var(--mono); font-size:.5rem; color: var(--ink-35); }
.song .play { width:26px; height:26px; border-radius:50%; background: var(--indigo-br); display:grid; place-items:center; flex:none; }
.song .play::before { content:""; border-style:solid; border-width:5px 0 5px 8px; border-color: transparent transparent transparent #fff; margin-left:2px; }
.eq { display:flex; align-items:flex-end; gap:3px; height:26px; margin-top:12px; opacity:0; animation: fadein .6s 3.1s forwards; }
.eq span { flex:1; background: linear-gradient(to top, var(--indigo), var(--pink)); border-radius:2px; height:30%; animation: bounce 1s ease-in-out infinite; }
.eq span:nth-child(2n){ animation-delay:.2s; } .eq span:nth-child(3n){ animation-delay:.4s; } .eq span:nth-child(4n){ animation-delay:.1s; } .eq span:nth-child(5n){ animation-delay:.5s; }

@keyframes pop { from{ opacity:0; transform: translateY(8px) scale(.96);} to{ opacity:1; transform:none;} }
@keyframes bloom { from{ opacity:0; transform: scale(.9) translateY(10px);} to{ opacity:1; transform:none;} }
@keyframes fadein { to { opacity:1; } }
@keyframes blink { 0%,100%{ opacity:.3; transform: translateY(0);} 50%{ opacity:1; transform: translateY(-2px);} }
@keyframes bounce { 0%,100%{ height:25%;} 50%{ height:95%;} }

/* ---------- Sections ---------- */
section { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.sec-head { max-width: 46ch; margin-bottom: 2.6rem; }
.sec-head p { color: var(--ink-55); margin-top: .8rem; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 900px){ .features { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 600px){ .features { grid-template-columns: 1fr;} }
.card {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 24px; transition: transform .25s ease, border-color .25s ease, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-2); background: var(--panel-2); }
.card .ic { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 16px;
  background: var(--grad-soft); border: 1px solid var(--border); }
.card .ic svg { width: 22px; height: 22px; }
.card h3 { color: var(--ink); margin-bottom: .5rem; }
.card p { font-size: .93rem; color: var(--ink-55); margin: 0; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; counter-reset: step; }
@media (max-width: 800px){ .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.step .n { font-family: var(--mono); font-size: .8rem; color: var(--teal); letter-spacing: .1em; }
.step h3 { color: var(--ink); margin: .5rem 0; }
.step p { font-size: .93rem; color: var(--ink-55); margin: 0; }

/* CTA band */
.cta-band { text-align: center; }
.cta-inner {
  border: 1px solid var(--border-2); border-radius: 30px; padding: clamp(2.4rem,6vw,4rem) 1.5rem;
  background: radial-gradient(120% 140% at 50% 0%, rgba(108,99,255,.16), rgba(255,92,157,.06) 45%, transparent 70%);
}
.cta-inner h2 { margin-bottom: 1.2rem; }
.cta-inner .hero-cta { justify-content: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); padding: 3rem 0 2.4rem; }
.foot { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.foot .brand .name { font-size: .8rem; }
.foot p { font-size: .85rem; color: var(--ink-35); max-width: 32ch; margin-top: .9rem; }
.foot-cols { display: flex; gap: 3.4rem; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--mono); font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-55); margin: 0 0 .9rem; }
.foot-col a { display: block; font-size: .9rem; color: var(--ink-80); margin-bottom: .55rem; transition: color .2s; }
.foot-col a:hover { color: var(--teal); }
.legal { margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--border); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: var(--ink-35); }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 780px; margin-inline: auto; padding: clamp(2.5rem,6vw,4.5rem) 22px; }
.legal-page .eyebrow { margin-bottom: 1rem; }
.legal-page h1 { font-size: clamp(2rem,5vw,3rem); margin-bottom: .6rem; }
.legal-page .updated { font-family: var(--mono); font-size: .78rem; color: var(--ink-35); margin-bottom: 2.4rem; }
.legal-page h2 { font-size: 1.4rem; margin: 2.4rem 0 .8rem; font-weight: 400; }
.legal-page h3 { font-size: 1.05rem; color: var(--ink); margin: 1.4rem 0 .5rem; }
.legal-page p, .legal-page li { color: var(--ink-80); font-size: .97rem; }
.legal-page ul { padding-left: 1.2rem; }
.legal-page li { margin-bottom: .5rem; }
.legal-page a { color: var(--indigo-br); border-bottom: 1px solid rgba(139,125,255,.35); }
.legal-page a:hover { color: var(--pink); }
.toc { background: var(--panel); border: 1px solid var(--border); border-radius: 16px; padding: 18px 22px; margin-bottom: 2.4rem; }
.toc a { display:block; font-size:.9rem; color: var(--ink-55); padding: 3px 0; border: none; }
.toc a:hover { color: var(--teal); }
.back { display:inline-flex; align-items:center; gap:.4rem; font-family: var(--mono); font-size:.75rem; letter-spacing:.1em; color: var(--ink-55); margin-bottom: 1.6rem; }
.back:hover { color: var(--ink); }

/* ---------- Contact form ---------- */
.contact-card {
  max-width: 660px; margin-inline: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 24px;
  padding: clamp(1.6rem, 4vw, 2.4rem);
}
.form { display: grid; gap: 18px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .form .row { grid-template-columns: 1fr; } }
.field { display: grid; gap: 7px; }
.field label { font-family: var(--mono); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-55); }
.field input, .field select, .field textarea {
  width: 100%; font-family: var(--body); font-size: 1rem; color: var(--ink);
  background: var(--panel); border: 1px solid var(--border-2); border-radius: 14px; padding: 13px 15px;
  transition: border-color .2s, background .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--indigo-br); background: var(--panel-2); }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-35); }
.field select option { color: #111; }
.form .btn-primary { justify-self: start; }
.form-status { font-size: .9rem; color: var(--teal); min-height: 1.2em; }
.contact-alt { margin-top: 2rem; padding-top: 1.6rem; border-top: 1px solid var(--border); text-align: center; font-size: .92rem; color: var(--ink-55); }
.contact-alt a { color: var(--indigo-br); }
