/* AI Lyrics Companion — landing page styles */

/* ---------- Fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Sora";
  src: url("fonts/sora-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #0e0e12;
  --bg-raise: #14141c;
  --card: #16161f;
  --ink: #f2f0fa;
  --muted: #a9a6bc;
  --brand: #6c5ce7;
  --deep: #3a2d9c;
  --soft: #d0bcff;
  --line: rgba(208, 188, 255, 0.13);
  --radius: 18px;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-cjk: system-ui, -apple-system, "Segoe UI", "Noto Sans KR",
    "Noto Sans JP", "Noto Sans Thai", sans-serif;
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
::selection { background: rgba(108, 92, 231, 0.45); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: var(--soft); text-decoration: none; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--soft); outline-offset: 3px; border-radius: 4px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: absolute; left: 16px; top: -48px; z-index: 99;
  background: var(--brand); color: #fff; padding: 10px 16px; border-radius: 8px;
  transition: top 0.15s;
}
.skip:focus { top: 12px; color: #fff; }

.wrap { max-width: 1080px; margin-inline: auto; padding-inline: 24px; }

/* ---------- Type ---------- */
h1, h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  text-wrap: balance;
}
h1 { font-size: clamp(30px, 4.6vw, 46px); letter-spacing: -0.022em; }
h2 { font-size: clamp(24px, 3.2vw, 33px); }
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--soft);
  margin-bottom: 14px;
}
.lead { color: var(--muted); max-width: 58ch; margin-top: 14px; font-size: 17px; }

/* ---------- Buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 15px/1 var(--font-body);
  border-radius: 999px; padding: 14px 24px;
  cursor: pointer; touch-action: manipulation;
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { flex: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), #4a39c4);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(108, 92, 231, 0.65);
}
.btn-primary:hover { transform: translateY(-1px); color: #fff;
  box-shadow: 0 14px 32px -10px rgba(108, 92, 231, 0.8); }
.btn-ghost { border: 1px solid var(--line); color: var(--soft); }
.btn-ghost:hover { border-color: var(--soft); color: #fff; }
.btn-invert { background: #fff; color: var(--deep); font-weight: 700; }
.btn-invert:hover { transform: translateY(-1px); color: var(--deep); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 500; color: var(--muted);
  white-space: nowrap;
}
.chiprow { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14, 14, 18, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(208, 188, 255, 0.07);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.brand:hover { color: #fff; }
.brand strong { font-family: var(--font-display); font-weight: 600; font-size: 15.5px; letter-spacing: -0.01em; }
.nav-links { display: flex; gap: 24px; margin-left: auto; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav .btn { padding: 10px 18px; font-size: 14px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(560px 420px at 82% 30%, rgba(108, 92, 231, 0.16), transparent 65%),
    radial-gradient(420px 380px at 8% 85%, rgba(58, 45, 156, 0.18), transparent 70%);
}
.hero-grid {
  position: relative;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 48px;
  align-items: center; padding-block: 72px 64px;
}
.hero .eyebrow { margin-bottom: 18px; }
.hero p.sub { color: var(--muted); font-size: 17.5px; margin-top: 18px; max-width: 54ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust { margin-top: 18px; font-size: 13.5px; color: var(--muted); }
.players { padding-block: 8px 56px; position: relative; }
.players p { font-size: 13.5px; color: var(--muted); margin-bottom: 10px; }

/* ---------- Phone mockup ---------- */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 296px; flex: none;
  border-radius: 42px; padding: 13px;
  background: linear-gradient(165deg, #1c1c29, #111118);
  border: 1px solid rgba(208, 188, 255, 0.16);
  box-shadow:
    0 40px 90px -24px rgba(58, 45, 156, 0.6),
    0 4px 18px rgba(0, 0, 0, 0.5);
}
.screen {
  border-radius: 30px; background: #0b0b10; overflow: hidden;
  padding: 20px 19px 18px;
}
.np-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.12em;
  color: var(--soft); text-transform: uppercase;
}
.np-chip .dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand);
}
.np-title { font-family: var(--font-cjk); font-weight: 700; font-size: 17px; margin-top: 10px; }
.np-artist { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.lyricwin { position: relative; height: 276px; overflow: hidden; margin: 16px 0 4px; }
.lyricwin::before, .lyricwin::after {
  content: ""; position: absolute; left: 0; right: 0; height: 46px; z-index: 2;
  pointer-events: none;
}
.lyricwin::before { top: 0; background: linear-gradient(#0b0b10, transparent); }
.lyricwin::after { bottom: 0; background: linear-gradient(transparent, #0b0b10); }

.lstack { animation: lscroll 20s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
.lrow { height: 92px; opacity: 0.3; --hl: #e9e6f7; }
.lrow .lo {
  font-family: var(--font-cjk); font-weight: 600; font-size: 16.5px;
  line-height: 1.4; color: var(--hl);
}
.lrow .lr { font-size: 12px; color: var(--soft); opacity: 0.85; margin-top: 3px; }
.lrow .lt { font-size: 12px; color: var(--muted); margin-top: 2px; }

@property --hl { syntax: "<color>"; inherits: false; initial-value: #e9e6f7; }

@keyframes lscroll {
  0%, 17%  { transform: translateY(0); }
  25%, 42% { transform: translateY(-92px); }
  50%, 67% { transform: translateY(-184px); }
  75%, 92% { transform: translateY(-276px); }
  100%     { transform: translateY(-368px); }
}
@keyframes hl1 {
  0%, 17% { opacity: 1; --hl: #c3b1ff; }
  25%, 100% { opacity: 0.3; --hl: #e9e6f7; }
}
@keyframes hl2 {
  0%, 17% { opacity: 0.3; --hl: #e9e6f7; }
  25%, 42% { opacity: 1; --hl: #c3b1ff; }
  50%, 100% { opacity: 0.3; --hl: #e9e6f7; }
}
@keyframes hl3 {
  0%, 42% { opacity: 0.3; --hl: #e9e6f7; }
  50%, 67% { opacity: 1; --hl: #c3b1ff; }
  75%, 100% { opacity: 0.3; --hl: #e9e6f7; }
}
@keyframes hl4 {
  0%, 67% { opacity: 0.3; --hl: #e9e6f7; }
  75%, 92% { opacity: 1; --hl: #c3b1ff; }
  100% { opacity: 0.3; --hl: #e9e6f7; }
}
@keyframes hl5 {
  0%, 92% { opacity: 0.3; --hl: #e9e6f7; }
  100% { opacity: 1; --hl: #c3b1ff; }
}
.lstack .lrow:nth-child(2) { animation: hl1 20s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
.lstack .lrow:nth-child(3) { animation: hl2 20s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
.lstack .lrow:nth-child(4) { animation: hl3 20s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
.lstack .lrow:nth-child(5) { animation: hl4 20s cubic-bezier(0.7, 0, 0.3, 1) infinite; }
.lstack .lrow:nth-child(6) { animation: hl5 20s cubic-bezier(0.7, 0, 0.3, 1) infinite; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lstack, .lstack .lrow { animation: none; }
  .lstack .lrow:nth-child(2) { opacity: 1; --hl: #c3b1ff; }
}

.pbar-row {
  display: flex; align-items: center; gap: 8px;
  font-size: 10.5px; color: var(--muted); margin-top: 8px;
  font-variant-numeric: tabular-nums;
}
.pbar { flex: 1; height: 3px; border-radius: 999px; background: rgba(208, 188, 255, 0.15); }
.pbar i { display: block; width: 38%; height: 100%; border-radius: 999px; background: var(--brand); }

/* ---------- Sections ---------- */
.section { padding: 84px 0; border-top: 1px solid rgba(208, 188, 255, 0.07); scroll-margin-top: 66px; }
.section-head { max-width: 640px; margin-bottom: 44px; }

/* Features */
.grid-feat { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feat {
  background: var(--card); border: 1px solid rgba(208, 188, 255, 0.09);
  border-radius: var(--radius); padding: 24px 24px 22px;
  transition: border-color 0.2s;
}
.feat:hover { border-color: rgba(208, 188, 255, 0.22); }
.feat .icon {
  width: 40px; height: 40px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(108, 92, 231, 0.16); color: var(--soft);
  margin-bottom: 16px;
}
.feat h3 { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; margin-bottom: 6px; }
.feat p { font-size: 14.5px; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid rgba(208, 188, 255, 0.09);
  border-radius: var(--radius); padding: 26px 24px;
}
.step .num {
  font-family: var(--font-display); font-weight: 800; font-size: 34px;
  color: rgba(208, 188, 255, 0.38); line-height: 1; margin-bottom: 14px;
}
.step h3 { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--muted); }
.reassure { margin-top: 22px; font-size: 14px; color: var(--muted); }
.reassure strong { color: var(--soft); font-weight: 600; }

/* Language showcase */
.showcase {
  background: var(--card); border: 1px solid rgba(208, 188, 255, 0.12);
  border-radius: 22px; padding: 34px 36px; max-width: 620px;
  margin-bottom: 26px;
}
.show-line { display: grid; grid-template-columns: 92px 1fr; gap: 16px; align-items: baseline; }
.show-line + .show-line { margin-top: 16px; padding-top: 16px; border-top: 1px dashed rgba(208, 188, 255, 0.12); }
.show-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted);
}
.show-orig { font-family: var(--font-cjk); font-weight: 700; font-size: 22px; color: #c3b1ff; }
.show-roma { font-size: 15.5px; color: var(--soft); }
.show-trans { font-size: 15.5px; color: var(--ink); }
.lang-note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 62ch; }

/* Privacy */
.privgrid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 44px; align-items: start; }
.privcard {
  background: var(--card); border: 1px solid rgba(208, 188, 255, 0.12);
  border-radius: 22px; padding: 28px;
}
.privcard li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; color: var(--ink);
}
.privcard li + li { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(208, 188, 255, 0.08); }
.privcard li svg { flex: none; margin-top: 3px; color: var(--soft); }
.privcard li span { color: var(--muted); }
.privcard li span strong { color: var(--ink); font-weight: 600; }
.priv-link { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 15px; }

/* Beta / CTA */
.beta-card {
  background: linear-gradient(135deg, var(--brand), var(--deep));
  border-radius: 26px; padding: 52px 32px; text-align: center;
  position: relative; overflow: hidden;
}
.beta-card::before {
  content: "♪"; position: absolute; right: -30px; top: -60px;
  font-size: 260px; line-height: 1; color: rgba(255, 255, 255, 0.06);
  font-family: var(--font-cjk); pointer-events: none;
}
.beta-card .eyebrow { color: rgba(255, 255, 255, 0.75); }
.beta-card h2 { color: #fff; }
.beta-card .sub { color: rgba(255, 255, 255, 0.85); max-width: 52ch; margin: 14px auto 0; font-size: 16px; }
.beta-card .chiprow { justify-content: center; margin-top: 24px; }
.beta-card .chip { border-color: rgba(255, 255, 255, 0.28); color: rgba(255, 255, 255, 0.9); }
.beta-card .btn { margin-top: 28px; }
.beta-contact { margin-top: 16px; font-size: 14.5px; }
.beta-contact a {
  color: #fff; font-weight: 600;
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: rgba(255, 255, 255, 0.45);
}
.beta-contact a:hover { text-decoration-color: #fff; }
.beta-note {
  margin: 26px auto 0; max-width: 58ch;
  font-size: 13px; color: rgba(255, 255, 255, 0.72);
}

/* FAQ */
.faq { max-width: 720px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; touch-action: manipulation;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 19px 2px; font-weight: 600; font-size: 16px;
  transition: color 0.15s;
}
.faq summary:hover { color: var(--soft); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--font-display); font-weight: 600;
  font-size: 20px; color: var(--soft); transition: transform 0.2s; flex: none;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 15px; padding: 0 2px 20px; max-width: 62ch; }

/* Footer */
.footer { border-top: 1px solid rgba(208, 188, 255, 0.07); padding: 52px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
.foot-brand p { color: var(--muted); font-size: 14px; margin-top: 12px; max-width: 34ch; }
.foot-col h4 {
  font-size: 12px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 14px;
}
.foot-col a { display: block; font-size: 14.5px; color: var(--muted); padding: 8px 0; }
.foot-col a:hover { color: var(--ink); }
.smallprint {
  margin-top: 44px; padding-top: 22px;
  border-top: 1px solid rgba(208, 188, 255, 0.07);
  font-size: 12.5px; color: rgba(169, 166, 188, 0.75); max-width: 78ch;
}
.smallprint p + p { margin-top: 8px; }

/* ---------- Privacy policy page (prose) ---------- */
.prose { max-width: 760px; padding-block: 56px 80px; }
.prose h1 { margin-bottom: 8px; }
.prose .meta { color: var(--muted); font-size: 14.5px; margin-bottom: 36px; }
.prose h2 { font-size: 21px; margin: 40px 0 12px; }
.prose h3 { font-family: var(--font-display); font-weight: 600; font-size: 17px; margin: 26px 0 8px; }
.prose p { color: var(--muted); margin: 10px 0; }
.prose li { color: var(--muted); margin: 8px 0 8px 22px; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose .summary-box {
  background: var(--card); border: 1px solid rgba(208, 188, 255, 0.12);
  border-radius: var(--radius); padding: 22px 26px; margin: 24px 0 8px;
}
.prose .summary-box p { margin: 6px 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 48px 0; }
.langswitch { font-size: 14px; margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; padding-block: 52px 48px; }
  .privgrid { grid-template-columns: 1fr; gap: 32px; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-inner { justify-content: space-between; }
  .grid-feat { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .showcase { padding: 26px 22px; }
  .show-line { grid-template-columns: 1fr; gap: 2px; }
  .show-line .show-label { margin-bottom: 2px; }
  .beta-card { padding: 44px 22px; }
}
