/* MirrorCast marketing site — shared styles.
   Palette matches the app's premium dark + champagne-gold theme
   (see lib/main.dart AppColors) so the site and app feel like one product. */

:root {
  --bg-top: #0b0b11;
  --bg-bottom: #16161f;
  --gold: #e9c46a;
  --gold-light: #f6dd9e;
  --gold-dark: #c9a227;
  --live: #39d98a;
  --surface: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.1);
  --text: #ffffff;
  --text-dim: rgba(255, 255, 255, 0.72);
  --text-faint: rgba(255, 255, 255, 0.45);
  --radius-lg: 22px;
  --radius-md: 14px;
  --max-width: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 100%);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Nav ─────────────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 17, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: 0.5px;
}

.brand img { width: 32px; height: 32px; border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.nav-links a:hover { color: var(--gold-light); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14.5px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  color: #0b0b11;
  box-shadow: 0 8px 24px rgba(233, 196, 106, 0.28);
}

.btn-primary:hover { transform: translateY(-1px); }

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-ghost:hover { border-color: var(--gold); }

.btn-disabled {
  background: var(--surface);
  color: var(--text-faint);
  border-color: var(--border);
  cursor: not-allowed;
}

/* ── Hero ────────────────────────────────────────────────────────────── */

.hero {
  padding: 88px 0 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.6px;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 22px;
}

.dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px rgba(57, 217, 138, 0.8);
}

h1 {
  font-size: 48px;
  line-height: 1.12;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.5px;
}

h1 .accent {
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 0 32px;
}

.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 18px; }

.store-badges { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.store-badges img { height: 52px; }
.store-badge-disabled {
  position: relative;
  opacity: 0.55;
  filter: grayscale(0.5);
}
.store-badge-disabled .soon-label {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  white-space: nowrap;
}

.hero-art { position: relative; display: flex; justify-content: center; }

.phone-frame {
  width: 260px;
  border-radius: 34px;
  border: 6px solid #0d0d13;
  background: #0d0d13;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--border);
  overflow: hidden;
}

.phone-frame img { display: block; width: 100%; height: auto; }

.hero-glow {
  position: absolute;
  inset: -60px;
  background: radial-gradient(circle at 50% 40%, rgba(233, 196, 106, 0.18), transparent 65%);
  z-index: -1;
}


/* ── Sections ────────────────────────────────────────────────────────── */

section { padding: 72px 0; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }

.kicker {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}

h2 { font-size: 32px; font-weight: 800; margin: 0 0 12px; letter-spacing: -0.3px; }

.section-head p { color: var(--text-dim); font-size: 16px; margin: 0; }

/* How it works */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 17px;
  color: #0b0b11;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  margin-bottom: 16px;
}

.step h3 { font-size: 17px; margin: 0 0 8px; }
.step p { color: var(--text-dim); font-size: 14.5px; margin: 0; }

/* Features grid */

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
}

.feature .icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(233, 196, 106, 0.12);
  border: 1px solid rgba(233, 196, 106, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  font-size: 18px;
}

.feature h3 { font-size: 15.5px; margin: 0 0 6px; }
.feature p { color: var(--text-dim); font-size: 13.5px; margin: 0; line-height: 1.5; }

/* Screenshots */

.shots {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.shots .phone-frame { width: 230px; }

/* Video placeholder */

.video-box {
  max-width: 760px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-faint);
}

.play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #0b0b11;
}

/* Download section */

.download-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 48px;
  text-align: center;
}

/* FAQ */

.faq { max-width: 760px; margin: 0 auto; }

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: '+';
  float: right;
  color: var(--gold);
  font-weight: 800;
  font-size: 18px;
}

.faq details[open] summary::after { content: '\2212'; }

.faq p {
  color: var(--text-dim);
  font-size: 14px;
  margin: 12px 0 0;
  line-height: 1.6;
}

/* Footer */

footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  color: var(--text-faint);
  font-size: 13px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

footer .links { display: flex; gap: 20px; }
footer .links a:hover { color: var(--gold-light); }

/* ── Simple content pages (privacy/terms) ───────────────────────────── */

.doc {
  max-width: 720px;
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.doc h1 { font-size: 30px; margin-bottom: 6px; }
.doc .updated { color: var(--text-faint); font-size: 13px; margin-bottom: 32px; }
.doc h2 { font-size: 18px; color: var(--gold); margin: 30px 0 10px; }
.doc p { color: var(--text-dim); font-size: 15px; margin: 0 0 12px; }
.doc ul { margin: 0 0 12px; padding-left: 20px; color: var(--text-dim); font-size: 15px; }
.doc li { margin-bottom: 8px; }
.doc a.back { color: var(--gold); font-weight: 600; font-size: 14px; }
.doc .meta { color: var(--text-faint); font-size: 13px; margin-bottom: 8px; }
.doc h3 { font-size: 16px; color: #fff; margin: 22px 0 8px; }
.doc blockquote {
  margin: 18px 0; padding: 14px 18px; border-left: 3px solid var(--gold);
  background: var(--surface); border-radius: 0 10px 10px 0;
  color: var(--text-dim); font-size: 14.5px;
}
.doc .next-guide {
  margin-top: 40px; padding: 20px; border-radius: var(--radius-md);
  background: var(--surface); border: 1px solid var(--border);
}
.doc .next-guide .label { color: var(--gold); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.doc .next-guide a { font-size: 15px; font-weight: 700; color: #fff; }

/* Guides hub */
.guide-hub { max-width: 780px; margin: 0 auto; padding: 64px 24px 96px; }
.guide-card {
  display: block; padding: 22px 24px; margin-bottom: 14px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.guide-card h2 { font-size: 17px; margin: 0 0 6px; color: #fff; }
.guide-card p { font-size: 14px; color: var(--text-dim); margin: 0; }

/* ── Responsive ──────────────────────────────────────────────────────── */

@media (max-width: 860px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .cta-row, .store-badges { justify-content: center; }
  h1 { font-size: 36px; }
  .steps, .features { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
}
