:root {
  color-scheme: dark;
  --bg: #100f0c;
  --bg-raised: #171510;
  --bg-card: #1c1a16;
  --ink: #f4efe6;
  --muted: #c4bdb0;
  --faint: #8f877a;
  --line: rgba(244, 239, 230, 0.12);
  --gold: #c6a15a;
  --gold-soft: rgba(198, 161, 90, 0.16);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
  --serif: Palatino, "Palatino Linotype", "Iowan Old Style", Georgia, "Liberation Serif", serif;
  --sans: "Segoe UI", "Avenir Next", "Helvetica Neue", sans-serif;
  --urdu: "Noto Nastaliq Urdu", "Urdu Typesetting", "Noto Nastaliq", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(900px 420px at 0% -10%, rgba(198, 161, 90, 0.16), transparent 58%),
    radial-gradient(640px 320px at 100% 0%, rgba(198, 161, 90, 0.06), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; height: auto; }
a { color: var(--gold); }
a:hover { color: #e4c98a; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.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 {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--gold);
  color: #1a150c;
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(16, 15, 12, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 40px; width: auto; display: block; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
}
.site-nav a:hover { color: var(--gold); }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  padding: 0;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  position: relative;
}
.nav-toggle-bars { margin: 0 auto; }
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--gold);
  color: #1a150c;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.button:hover { background: #d7b56e; color: #1a150c; }
.button-small { min-height: 36px; padding: 0 14px; font-size: 13px; }
.text-link {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 36px;
}
.hero-mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  display: block;
  margin-bottom: 18px;
}
.eyebrow {
  margin: 0 0 8px;
  color: var(--gold);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 12px;
}
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; }
h1 {
  margin: 0;
  font-size: clamp(42px, 5.6vw, 74px);
  line-height: 1.02;
}
h1 [lang="ur"], .closing [lang="ur"], .footer-bar [lang="ur"] {
  font-family: var(--urdu);
  color: var(--gold);
}
.dash { color: var(--faint); }
.lede, .section-lede {
  color: var(--muted);
  font-size: 18px;
  max-width: 38rem;
}
.lede { margin: 16px 0 22px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.release-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 18px 0 0;
  color: var(--faint);
  font-size: 13px;
}
.release-meta span { position: relative; }
.release-meta span + span::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  margin-right: 18px;
  transform: translateY(-2px);
}

.stage {
  position: relative;
  background: linear-gradient(180deg, #221f1a, #14120f);
  border: 1px solid rgba(198, 161, 90, 0.35);
  border-radius: 28px;
  min-height: 420px;
  padding: 22px 22px 92px;
  box-shadow: var(--shadow);
}
.window {
  background: #0c0b09;
  border-radius: 16px;
  min-height: 250px;
  border: 1px solid rgba(244, 239, 230, 0.08);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  color: var(--faint);
  font-size: 12px;
  border-bottom: 1px solid rgba(244, 239, 230, 0.06);
}
.window-bar img { width: 16px; height: 16px; border-radius: 4px; }
.editor-line {
  margin: 0;
  padding: 28px 22px;
  min-height: 180px;
  font-family: var(--serif);
  font-size: 26px;
  line-height: 1.35;
}
.caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background: var(--gold);
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: blink 1.05s steps(1) infinite;
}
.pill {
  position: absolute;
  left: 50%;
  bottom: 54px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 196px;
  min-height: 44px;
  padding: 8px 14px 8px 12px;
  border-radius: 999px;
  background: rgba(16, 15, 12, 0.94);
  border: 1px solid rgba(198, 161, 90, 0.5);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.pill strong { font-size: 13px; font-weight: 650; }
.lamp {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px var(--gold);
  flex: none;
}
.pill[data-phase="listening"] .lamp { animation: pulse 1.1s ease-in-out infinite; }
.bars { display: flex; align-items: center; gap: 3px; height: 22px; }
.bars span {
  width: 3px;
  height: 4px;
  border-radius: 99px;
  background: var(--gold);
  transform-origin: center;
}
.pill[data-phase="listening"] .bars span { animation: wave 0.9s ease-in-out infinite; }
.bars span:nth-child(1) { animation-delay: 0s; }
.bars span:nth-child(2) { animation-delay: 0.08s; }
.bars span:nth-child(3) { animation-delay: 0.16s; }
.bars span:nth-child(4) { animation-delay: 0.24s; }
.bars span:nth-child(5) { animation-delay: 0.12s; }
.bars span:nth-child(6) { animation-delay: 0.2s; }
.bars span:nth-child(7) { animation-delay: 0.04s; }
.timer {
  margin-left: auto;
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  min-width: 32px;
  text-align: right;
}
.pill[data-phase="transcribing"] .timer,
.pill[data-phase="inserted"] .timer { visibility: hidden; }
.stage-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 16px;
  margin: 0;
  text-align: center;
  color: var(--faint);
  font-size: 12px;
}

.band {
  margin-top: 28px;
  padding: 64px 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 80px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 40rem; margin-bottom: 28px; }
h2 { margin: 0 0 10px; font-size: clamp(32px, 4vw, 46px); line-height: 1.08; }
h3 { margin: 0 0 8px; font-size: 22px; }
.features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.features li, .steps li, .facts li {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 18px 16px;
}
.features p, .steps p, .facts p, .faq p { margin: 0; color: var(--muted); }

.steps-section { padding: 72px 0; }
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.step-index {
  display: block;
  margin-bottom: 16px;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 28px;
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 36px;
  align-items: start;
}
.facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.faq-section { padding: 72px 0 24px; }
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 4px 18px 4px;
}
.faq summary {
  cursor: pointer;
  min-height: 52px;
  display: flex;
  align-items: center;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  margin-left: auto;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 22px;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 0 16px; max-width: 46rem; }

.closing { padding: 28px 0 72px; }
.closing-card {
  text-align: center;
  padding: 48px 24px;
  border-radius: 28px;
  border: 1px solid rgba(198, 161, 90, 0.35);
  background:
    radial-gradient(500px 180px at 50% 0%, rgba(198, 161, 90, 0.18), transparent 70%),
    var(--bg-card);
}
.closing-card img { border-radius: 14px; }
.closing-card p { color: var(--muted); }
.closing-card .cta-row, .closing-card .release-meta { justify-content: center; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 0 36px;
}
.footer-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.footer-bar img { height: 36px; width: auto; }
.footer-bar p { margin: 0; color: var(--faint); font-size: 14px; }
.footer-bar nav { margin-left: auto; display: flex; gap: 18px; }
.footer-bar nav a { color: var(--ink); text-decoration: none; }
.footer-bar nav a:hover { color: var(--gold); }

@keyframes wave {
  0%, 100% { height: 4px; }
  50% { height: 16px; }
}
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.78); opacity: 0.65; }
}
@keyframes blink {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0; }
}

@media (max-width: 980px) {
  .features { grid-template-columns: 1fr 1fr; }
  .hero, .privacy, .steps { grid-template-columns: 1fr; }
  .stage { min-height: 380px; }
}
@media (max-width: 720px) {
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav {
    display: none;
    position: absolute;
    left: 14px;
    right: 14px;
    top: 68px;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    background: #171510;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 44px; display: flex; align-items: center; }
  .header-bar { position: relative; }
  .features, .facts { grid-template-columns: 1fr; }
  .footer-bar nav { margin-left: 0; }
  h1 { font-size: 40px; }
  .editor-line { font-size: 22px; }
  .hero { padding-top: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret, .lamp, .bars span { animation: none; }
  .bars span { height: 8px; }
}
