/* Apni Dhoon — marketing + legal site. One stylesheet, no build step.
   Palette follows branding/ (gold mark on deep navy, cyan AI spark) and the
   app/admin tokens (orange → pink brand gradient, teal accent). */
:root {
  --bg: #08090f;
  --bg-2: #0c0f1c;
  --surface: #12131d;
  --surface-2: #1a1b28;
  --surface-3: #242536;
  --border: #2b2c3d;
  --text: #ffffff;
  --text-2: #c2bfcf;
  --text-3: #8f8ca0;
  --gold: #f4b75a;
  --gold-2: #d98a2b;
  --primary: #ff7a2f;
  --secondary: #e8457c;
  --accent: #2ec4b6;
  --spark: #9be8ff;
  --grad: linear-gradient(135deg, #ff7a2f 0%, #e8457c 100%);
  --grad-gold: linear-gradient(135deg, #ffd58a 0%, #f4b75a 45%, #d98a2b 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --radius-pill: 999px;
  --shadow: 0 20px 60px rgba(0, 0, 0, .45);
  --font: "Plus Jakarta Sans", "Noto Sans", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --max: 1160px;
  --gutter: 20px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd58a; }
:focus-visible { outline: 3px solid var(--spark); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #111; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; color: #111; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* ── header ── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 9, 15, .78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.05rem; letter-spacing: .01em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--text-2); text-decoration: none; font-size: .92rem; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-pill); }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.nav .nav-cta { color: #1a0f05; background: var(--grad-gold); }
.nav .nav-cta:hover { color: #1a0f05; background: var(--grad-gold); filter: brightness(1.08); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* ── buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 12px 22px; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, filter .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-play { background: #fff; color: #0b0b12; }
.btn-play:hover { color: #0b0b12; filter: brightness(.95); }
.btn-play svg { width: 24px; height: 24px; flex: none; }
.btn-play .btn-lines { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-play small { font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; opacity: .7; }
.btn-play strong { font-size: 1.08rem; }
.btn-ghost { background: rgba(255, 255, 255, .06); color: var(--text); border-color: rgba(255, 255, 255, .14); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, .1); }
.btn-grad { background: var(--grad); color: #fff; }
.btn-grad:hover { color: #fff; filter: brightness(1.07); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ── hero ── */
.hero { position: relative; overflow: hidden; padding: 56px 0 72px; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1;
  background:
    radial-gradient(40% 45% at 75% 35%, rgba(255, 122, 47, .28), transparent 70%),
    radial-gradient(35% 40% at 20% 20%, rgba(232, 69, 124, .2), transparent 70%),
    radial-gradient(30% 30% at 55% 90%, rgba(46, 196, 182, .14), transparent 70%);
}
.hero-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 56px; } .hero { padding: 88px 0 104px; } }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: var(--radius-pill); background: rgba(244, 183, 90, .1); border: 1px solid rgba(244, 183, 90, .3); color: var(--gold); font-size: .82rem; font-weight: 700; letter-spacing: .02em; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.3rem, 7.5vw, 4.4rem); font-weight: 800; margin-bottom: 18px; }
.hero h1 .line { display: block; }
.grad-text { background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text-2 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: clamp(1.05rem, 2.6vw, 1.22rem); color: var(--text-2); max-width: 36em; margin-bottom: 28px; }
.hero-note { margin-top: 18px; color: var(--text-3); font-size: .88rem; }
.hero-art { position: relative; display: grid; place-items: center; }
.hero-logo { width: min(78vw, 420px); height: auto; filter: drop-shadow(0 30px 60px rgba(255, 140, 50, .25)); animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* equalizer */
.eq { display: inline-flex; align-items: flex-end; gap: 3px; height: 14px; }
.eq span { width: 3px; background: currentColor; border-radius: 2px; animation: eq 1s ease-in-out infinite; }
.eq span:nth-child(2) { animation-delay: -.3s; } .eq span:nth-child(3) { animation-delay: -.6s; } .eq span:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 30%; } 50% { height: 100%; } }

/* now-playing card under the logo */
.np-card {
  position: absolute; left: 50%; bottom: -8px; transform: translateX(-50%);
  width: min(92%, 340px); display: flex; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 16px;
  background: rgba(22, 22, 34, .82); border: 1px solid rgba(255, 255, 255, .1);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow);
}
.np-art { width: 46px; height: 46px; border-radius: 10px; flex: none; background: linear-gradient(135deg, #ff7a2f, #e8457c 60%, #6b3fd4); display: grid; place-items: center; color: #fff; }
.np-meta { min-width: 0; flex: 1; }
.np-title { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.np-sub { color: var(--text-3); font-size: .78rem; display: flex; align-items: center; gap: 6px; }
.badge-ai { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--spark); border: 1px solid rgba(155, 232, 255, .4); border-radius: 6px; padding: 1px 5px; }
.np-card .eq { color: var(--gold); height: 18px; }

/* ── sections ── */
section { padding: 72px 0; }
@media (min-width: 900px) { section { padding: 104px 0; } }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker { color: var(--gold); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 12px; }
.section-head h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); font-weight: 800; }
.section-head p { color: var(--text-2); font-size: 1.08rem; }
.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid rgba(255, 255, 255, .04); }

/* language chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; list-style: none; margin: 0; padding: 0; }
.chip {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 18px;
  border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border);
  font-weight: 700; font-size: .98rem;
}
.chip span { color: var(--text-3); font-weight: 500; font-size: .86rem; }
.chip:nth-child(3n+1) { border-color: rgba(255, 122, 47, .35); }
.chip:nth-child(3n+2) { border-color: rgba(232, 69, 124, .35); }
.chip:nth-child(3n) { border-color: rgba(46, 196, 182, .35); }
.chips-note { text-align: center; color: var(--text-3); font-size: .9rem; margin-top: 18px; }

/* feature cards */
.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--text-2); margin: 0; font-size: .97rem; }
.icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255, 122, 47, .12); color: var(--primary);
}
.icon svg { width: 24px; height: 24px; }
.icon.pink { background: rgba(232, 69, 124, .12); color: #ff6f9c; }
.icon.teal { background: rgba(46, 196, 182, .12); color: var(--accent); }
.icon.gold { background: rgba(244, 183, 90, .12); color: var(--gold); }

/* create steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.step { padding-top: 28px; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: 18px; right: 22px; font-size: 3.6rem; font-weight: 800; line-height: 1;
  color: rgba(255, 255, 255, .06);
}
.prompt-demo {
  margin-top: 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface-2);
  border: 1px dashed var(--border); font-size: .9rem; color: var(--text-2); font-style: italic;
}
.wave { display: flex; align-items: center; gap: 3px; height: 40px; margin-top: 16px; }
.wave i { flex: 1; background: var(--grad); border-radius: 3px; opacity: .85; }
.create-cta { margin-top: 32px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.create-cta p { margin: 0; color: var(--text-3); font-size: .9rem; max-width: 34em; }

/* mood tiles */
.moods { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .moods { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .moods { grid-template-columns: repeat(6, 1fr); } }
.mood {
  aspect-ratio: 1 / 1.1; border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; justify-content: flex-end;
  position: relative; overflow: hidden; font-weight: 800; font-size: 1.1rem; isolation: isolate;
}
.mood small { display: block; font-weight: 600; font-size: .78rem; opacity: .85; }
.mood::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .55)); }
.mood svg { position: absolute; top: 14px; left: 14px; width: 30px; height: 30px; opacity: .9; }
.m-chill { background: linear-gradient(150deg, #2ec4b6, #1b4e7a); }
.m-romantic { background: linear-gradient(150deg, #ff6f9c, #8a2353); }
.m-sad { background: linear-gradient(150deg, #5c6fd6, #241d55); }
.m-focus { background: linear-gradient(150deg, #8e7cff, #2b2366); }
.m-workout { background: linear-gradient(150deg, #ff7a2f, #9b2c12); }
.m-energetic { background: linear-gradient(150deg, #f4b75a, #c2410c); }
.genres { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; }
.genres li { padding: 8px 16px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .05); color: var(--text-2); font-weight: 600; font-size: .92rem; }

/* trust strip */
.trust { display: grid; gap: 16px; }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, 1fr); } }
.trust .card { background: transparent; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.06rem; min-height: 48px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { color: var(--text-2); padding: 0 0 20px; }
.faq .answer p:last-child { margin-bottom: 0; }

/* final CTA */
.final {
  text-align: center; border-radius: 28px; padding: 56px 24px; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(160deg, #1d1420, #12131d 60%); border: 1px solid rgba(244, 183, 90, .22);
}
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(50% 70% at 50% 0%, rgba(255, 122, 47, .3), transparent 70%); }
.final img { width: 84px; height: 84px; margin: 0 auto 20px; border-radius: 20px; }
.final h2 { font-size: clamp(1.8rem, 5.5vw, 3rem); font-weight: 800; }
.final p { color: var(--text-2); max-width: 32em; margin: 0 auto 28px; }
.final .btn-row { justify-content: center; }

/* ── footer ── */
.site-footer { border-top: 1px solid rgba(255, 255, 255, .06); padding: 44px 0 32px; color: var(--text-3); font-size: .92rem; }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.site-footer h2 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-2); text-decoration: none; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .06); display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; }

/* ── legal pages ── */
.legal-hero { padding: 48px 0 24px; border-bottom: 1px solid rgba(255, 255, 255, .06); background: radial-gradient(60% 120% at 80% 0%, rgba(255, 122, 47, .14), transparent 70%); }
.legal-hero h1 { font-size: clamp(2rem, 6vw, 3rem); font-weight: 800; }
.legal-hero p { color: var(--text-2); margin-bottom: .4em; }
.legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 36px; padding-bottom: 72px; }
@media (min-width: 1000px) { .legal-wrap { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; } }
.toc { font-size: .9rem; }
.toc details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 16px; }
.toc summary { cursor: pointer; font-weight: 700; padding: 10px 0; min-height: 44px; }
.toc ol { margin: 0 0 12px; padding-left: 20px; color: var(--text-3); }
.toc li { margin: 6px 0; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--gold); }
@media (min-width: 1000px) { .toc nav { position: sticky; top: 88px; max-height: calc(100vh - 110px); overflow: auto; } }
.prose { max-width: 760px; color: var(--text-2); overflow-wrap: anywhere; }
.prose h2 { color: var(--text); font-size: 1.45rem; margin-top: 2.2em; padding-top: 8px; scroll-margin-top: 84px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { color: var(--text); font-size: 1.1rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1em; }
.prose li { margin-bottom: .45em; }
.prose strong { color: var(--text); }
.prose .callout { background: rgba(244, 183, 90, .08); border: 1px solid rgba(244, 183, 90, .28); border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 1.5em; }
.prose .callout p:last-child { margin-bottom: 0; }
.table-wrap { overflow-x: auto; margin: 0 0 1.5em; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: .92rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--border); }
th { color: var(--text); background: var(--surface-2); font-weight: 700; }
tr:last-child td { border-bottom: 0; }
.steps-list { counter-reset: s; list-style: none; padding: 0 !important; }
.steps-list li { counter-increment: s; position: relative; padding: 4px 0 4px 48px; margin-bottom: 14px; min-height: 36px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; }
.mail-box { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 8px 0 1.5em; }

/* 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.notfound .big { font-size: clamp(5rem, 22vw, 9rem); font-weight: 800; line-height: 1; margin-bottom: 8px; }
.notfound p { color: var(--text-2); max-width: 30em; margin: 0 auto 28px; }
.notfound .btn-row { justify-content: center; }

@media (max-width: 400px) {
  :root { --gutter: 16px; }
  .btn { width: 100%; }
  .brand span { font-size: .98rem; }
  .nav a { padding: 8px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
