/* ============================================================
   Card Gallery — marketing site
   Premium dark/gold design system, matching the app.
   ============================================================ */

:root {
  --black: #0a0a0b;
  --bg: #0d0d0f;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --gold: #d4af37;
  --gold-soft: #e6c965;
  --gold-deep: #b8941f;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);
  --maxw: 1120px;
  --radius: 16px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* subtle gold ambient glow behind sections */
.glow { position: relative; }
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(212, 175, 55, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; }
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.lead { color: var(--text-2); font-size: 18px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn-gold {
  background: linear-gradient(180deg, var(--gold-soft), var(--gold));
  color: #1a1306;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.25);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(212, 175, 55, 0.35); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-lg { padding: 17px 34px; font-size: 16px; }

/* App Store badge button */
.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: #fff;
  color: #000;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}
.appstore:hover { transform: translateY(-2px); }
.appstore .apple { font-size: 30px; line-height: 1; }
.appstore .small { font-size: 11px; opacity: 0.7; display: block; line-height: 1.2; }
.appstore .big { font-size: 18px; font-weight: 700; line-height: 1.1; }

/* ---------- nav ---------- */
header.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(13, 13, 15, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
header.nav.scrolled { border-color: var(--border); background: rgba(13, 13, 15, 0.9); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--serif); font-size: 19px; font-weight: 600; }
.brand img { width: 30px; height: 30px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a.link { color: var(--text-2); font-size: 15px; font-weight: 500; transition: color 0.15s; }
.nav-links a.link:hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 80px 0 60px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); }
.hero h1 .gold { color: var(--gold); display: block; }
.hero h1 .muted { color: var(--text-2); font-family: var(--sans); font-weight: 500; font-size: clamp(20px, 2.5vw, 26px); display: block; margin-bottom: 6px; letter-spacing: 0; }
.hero p.lead { margin: 24px 0 32px; max-width: 520px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-note { margin-top: 18px; color: var(--text-3); font-size: 13.5px; }

/* phone mockup */
.device { position: relative; display: flex; justify-content: center; }
.phone {
  width: 290px;
  height: 590px;
  background: #000;
  border-radius: 44px;
  border: 2px solid #2a2a2e;
  box-shadow: var(--shadow), 0 0 0 8px rgba(255,255,255,0.02);
  padding: 12px;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: 110px; height: 26px; background: #000; border-radius: 16px; z-index: 3;
}
.phone-screen {
  width: 100%; height: 100%;
  background: radial-gradient(120% 80% at 50% 0%, #1c1c1f, #0c0c0e 70%);
  border-radius: 33px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 44px 16px 18px;
}
.screen-title { text-align: center; color: var(--gold); font-family: var(--serif); font-size: 18px; margin-bottom: 14px; letter-spacing: 0.04em; }
.card-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.mini-card {
  aspect-ratio: 0.7;
  border-radius: 8px;
  background: linear-gradient(160deg, #1a1a1d, #0e0e10);
  border: 3px solid var(--gold);
  box-shadow: 0 6px 16px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}
.mini-card::after {
  content: "";
  position: absolute; inset: 6px; border-radius: 4px;
  background: linear-gradient(150deg, rgba(212,175,55,0.18), rgba(255,255,255,0.03) 40%, rgba(0,0,0,0.2));
  border: 1px solid rgba(212,175,55,0.35);
}
.mini-card.silver { border-color: #c7ccd1; }
.mini-card.silver::after { background: linear-gradient(150deg, rgba(199,204,209,0.22), rgba(255,255,255,0.04) 40%, rgba(0,0,0,0.2)); border-color: rgba(199,204,209,0.4); }
.mini-card.bronze { border-color: #c08457; }
.mini-card.bronze::after { background: linear-gradient(150deg, rgba(192,132,87,0.22), rgba(255,255,255,0.04) 40%, rgba(0,0,0,0.2)); border-color: rgba(192,132,87,0.4); }

/* floating "cast to TV" chip on the device */
.cast-chip {
  position: absolute;
  bottom: 38px; right: -24px;
  background: rgba(20,20,22,0.92);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}
.cast-chip .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,0.2); animation: pulse 1.6s infinite; }
.cast-chip .ct { font-size: 13px; }
.cast-chip .ct b { display: block; font-weight: 600; }
.cast-chip .ct span { color: var(--text-3); font-size: 11.5px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(212,175,55,0.4);} 70% { box-shadow: 0 0 0 9px rgba(212,175,55,0);} 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0);} }

/* ---------- logos / trust strip ---------- */
.strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 26px 0; }
.strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 40px; color: var(--text-3); font-size: 14px; font-weight: 500; }
.strip-inner .tag { display: inline-flex; align-items: center; gap: 8px; }
.strip-inner .tag b { color: var(--text-2); font-weight: 600; }

/* ---------- section shell ---------- */
section.block { padding: 96px 0; position: relative; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 18px; }
.section-head p { color: var(--text-2); font-size: 18px; }

/* problem section */
.problem { text-align: center; }
.problem h2 { font-size: clamp(28px, 4.2vw, 48px); max-width: 880px; margin: 0 auto; }
.problem h2 .gold { color: var(--gold); }
.problem p { color: var(--text-2); font-size: 19px; max-width: 620px; margin: 26px auto 0; }

/* ---------- feature: spotlight (alternating) ---------- */
.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 56px 0; }
.spotlight.rev .s-text { order: 2; }
.s-text .eyebrow { margin-bottom: 14px; }
.s-text h3 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 16px; }
.s-text p { color: var(--text-2); font-size: 17px; }
.s-text ul { list-style: none; margin-top: 20px; display: grid; gap: 12px; }
.s-text li { display: flex; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.s-text li .ck { color: var(--gold); flex: 0 0 auto; margin-top: 2px; }
.s-visual {
  background: linear-gradient(160deg, var(--surface), var(--black));
  border: 1px solid var(--border);
  border-radius: 20px;
  min-height: 320px;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.s-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(70% 60% at 50% 30%, rgba(212,175,55,0.10), transparent 70%); }

/* TV mock */
.tv-mock { width: 100%; position: relative; z-index: 1; }
.tv-screen {
  aspect-ratio: 16/9; width: 100%;
  background: radial-gradient(120% 90% at 50% 0%, #161619, #08080a 75%);
  border: 2px solid #2a2a2e; border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-content: center;
}
.tv-stand { width: 90px; height: 8px; background: #222; border-radius: 0 0 6px 6px; margin: 0 auto; }
.tv-foot { width: 150px; height: 6px; background: #1a1a1d; border-radius: 6px; margin: 4px auto 0; }

/* feature grid (the 6-up) */
.fgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.fcard {
  background: linear-gradient(180deg, var(--surface), var(--black));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.fcard:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.fcard .ico {
  width: 46px; height: 46px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(212,175,55,0.12); border: 1px solid rgba(212,175,55,0.3);
  margin-bottom: 18px; font-size: 22px;
}
.fcard h3 { font-family: var(--sans); font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.fcard p { color: var(--text-2); font-size: 14.5px; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding: 32px 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.step .num {
  font-family: var(--serif); font-size: 40px; color: var(--gold); line-height: 1; margin-bottom: 16px;
  display: inline-block;
}
.step h3 { font-family: var(--sans); font-size: 19px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- pricing ---------- */
.price-card {
  max-width: 480px; margin: 0 auto;
  background: linear-gradient(180deg, var(--surface), var(--black));
  border: 1px solid var(--border-strong);
  border-radius: 22px; padding: 44px 40px; text-align: center;
  position: relative; z-index: 1;
}
.price-card .tagline { color: var(--gold); font-weight: 600; letter-spacing: 0.04em; margin-bottom: 10px; }
.price-card .amount { font-family: var(--serif); font-size: 52px; line-height: 1; }
.price-card .amount span { font-size: 17px; color: var(--text-3); font-family: var(--sans); }
.price-card ul { list-style: none; text-align: left; margin: 28px 0; display: grid; gap: 14px; }
.price-card li { display: flex; gap: 12px; color: var(--text-2); font-size: 15.5px; }
.price-card li .ck { color: var(--gold); }
.price-sub { color: var(--text-3); font-size: 13px; margin-top: 16px; }

/* ---------- final CTA ---------- */
.cta-band { text-align: center; position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 18px; }
.cta-band p { color: var(--text-2); font-size: 18px; margin-bottom: 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.qa { border-bottom: 1px solid var(--border); }
.qa button {
  width: 100%; text-align: left; background: none; border: 0; color: var(--text);
  font-family: var(--sans); font-size: 18px; font-weight: 600; cursor: pointer;
  padding: 24px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.qa button .pm { color: var(--gold); font-size: 24px; flex: 0 0 auto; transition: transform 0.2s; }
.qa.open button .pm { transform: rotate(45deg); }
.qa .ans { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.qa .ans p { color: var(--text-2); font-size: 16px; padding-bottom: 24px; }

/* ---------- footer ---------- */
footer.foot { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 40px; }
.foot-brand { max-width: 300px; }
.foot-brand .brand { margin-bottom: 14px; }
.foot-brand p { color: var(--text-3); font-size: 14px; }
.foot-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.foot-col h4 { font-family: var(--sans); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); margin-bottom: 16px; }
.foot-col a { display: block; color: var(--text-2); font-size: 14.5px; margin-bottom: 10px; transition: color 0.15s; }
.foot-col a:hover { color: var(--gold); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 24px; color: var(--text-3); font-size: 13.5px; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- legal page ---------- */
.legal { padding: 60px 0 80px; }
.legal .wrap { max-width: 800px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin-bottom: 8px; }
.legal .updated { color: var(--text-3); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-family: var(--sans); font-size: 22px; font-weight: 700; margin: 36px 0 14px; }
.legal h3 { font-family: var(--sans); font-size: 17px; font-weight: 700; margin: 24px 0 10px; }
.legal p, .legal li { color: var(--text-2); font-size: 16px; margin-bottom: 14px; }
.legal ul { padding-left: 22px; margin-bottom: 14px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--gold); text-decoration: underline; }
.legal .back { display: inline-block; margin-bottom: 32px; color: var(--text-2); font-size: 14px; }
.legal .back:hover { color: var(--gold); }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .device { order: -1; }
  .spotlight, .spotlight.rev { grid-template-columns: 1fr; gap: 32px; }
  .spotlight.rev .s-text { order: 0; }
  .fgrid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 18px;
    position: absolute; top: 68px; left: 0; right: 0;
    background: rgba(13,13,15,0.98); border-bottom: 1px solid var(--border);
    padding: 24px;
  }
  section.block { padding: 68px 0; }
  .fgrid { grid-template-columns: 1fr; }
  .cast-chip { right: 0; }
  .foot-grid { flex-direction: column; }
}
