/* ═══════════════════════════════════════════════════════════════
   TITO SILVERSAX — DESIGN SYSTEM
   World: Night Sky / Aurora Star Chart — a deep-space ground with
   prismatic light moving through it: violet, coral, cyan, gold.
   Ties directly to the product itself (The Emotional Star Map maps
   feeling to constellation) rather than being decorative sci-fi.

   Two colors carry real, distinct jobs. Violet is ambient and
   everywhere — eyebrows, card borders, list marks, hover states —
   the color of the sky itself, always present. Coral is rare and
   dramatic: one primary action per view, the one "live" signal, the
   one featured price. Cyan and gold are atmosphere only — aurora
   glows and gradient sweeps on large surfaces — never carrying small
   text, so legibility never depends on them.
   ═══════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Color & material — deep night sky, not a warm or neutral black ── */
  --leader:           #0a0a18;  /* ground: deep indigo-black night sky */
  --leader-2:          #13132a;  /* raised surface (nav, card bars) */
  --leader-3:          #1c1c3a;  /* card surface */
  --base-gray:         #8d89ab;  /* muted labels/metadata (AA-safe: ≥4.9:1 everywhere) */
  --emulsion:          #aca8cc;  /* body text on dark */
  --paper:             #f2eefc;  /* headings, cool starlight white */

  --violet:            #c4a3fa;  /* ambient structural color — the sky itself */
  --violet-rgb:         196, 163, 250;
  --coral:             #ff8095;  /* the rare accent — one primary action, one live signal */
  --coral-rgb:          255, 128, 149;
  --cyan:              #7fe3f5;  /* atmosphere only — glows, gradients, never small text */
  --cyan-rgb:           127, 227, 245;
  --gold:              #ffc978;  /* atmosphere only — sparing warm counterpoint */
  --gold-rgb:           255, 201, 120;

  --rule:             rgba(196, 189, 224, 0.14);
  --rule-strong:      rgba(196, 189, 224, 0.28);
  --grain-opacity:    0.4;

  --ff-display: 'Anton', 'Oswald', sans-serif;         /* prices, roman numerals, list numbers, footer wordmark — not headings */
  --ff-script:  'Italianno', cursive;                   /* every real heading — regular weight only, no bold in this face */
  --ff-body:    'Archivo', system-ui, -apple-system, sans-serif;
  --ff-mono:    'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--leader); }

body {
  background-color: var(--leader);
  background-image: url('/images/bg-crystal-city-v2.jpg');
  background-size: cover;
  background-position: center bottom;
  background-attachment: fixed;
  color: var(--emulsion);
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* The city sits right-of-center in the source image (1376x768). On a
   narrow portrait viewport, background-size:cover scales against the
   *height* and centers horizontally, which crops the frame down to
   roughly the image's middle third — mostly empty sky, city barely
   visible. Shift the focal point right so the towers are actually
   what's on screen, not what got cropped out. */
@media (max-width: 639px) {
  body { background-position: 80% bottom; }
}

/* Starfield — small fixed points of light behind all content. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    radial-gradient(1.6px 1.6px at 20% 30%, rgba(242,238,252,0.9) 0%, transparent 60%),
    radial-gradient(1.2px 1.2px at 65% 12%, rgba(242,238,252,0.7) 0%, transparent 60%),
    radial-gradient(1.4px 1.4px at 85% 55%, rgba(242,238,252,0.8) 0%, transparent 60%),
    radial-gradient(1px 1px at 40% 70%, rgba(242,238,252,0.6) 0%, transparent 60%),
    radial-gradient(1.3px 1.3px at 10% 85%, rgba(242,238,252,0.75) 0%, transparent 60%),
    radial-gradient(1px 1px at 92% 80%, rgba(242,238,252,0.55) 0%, transparent 60%),
    radial-gradient(1.5px 1.5px at 52% 45%, rgba(242,238,252,0.65) 0%, transparent 60%),
    radial-gradient(1px 1px at 75% 92%, rgba(242,238,252,0.5) 0%, transparent 60%);
  background-size: 340px 340px;
  background-repeat: repeat;
  opacity: var(--grain-opacity);
}

/* Aurora wash — large, soft prismatic gradient bands fixed behind
   the content; the "rays of light" material. Three blurred radial
   gradients, no per-section duplication needed. */
body::after {
  content: '';
  position: fixed;
  inset: -10%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60% 40% at 15% 0%, rgba(var(--violet-rgb), 0.16) 0%, transparent 60%),
    radial-gradient(50% 35% at 90% 15%, rgba(var(--cyan-rgb), 0.10) 0%, transparent 60%),
    radial-gradient(55% 45% at 50% 100%, rgba(var(--coral-rgb), 0.08) 0%, transparent 60%);
  /* the sky drifts as you travel down the thread, not a static backdrop
     repeated behind stacked boxes — see index.html's scroll-progress script */
  filter: hue-rotate(calc(var(--scroll-progress, 0) * 50deg));
  transition: filter 0.2s linear;
}

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

.container {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 32px;
  background: rgba(10, 10, 24, 0.85);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--rule);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.container--wide{ max-width: 1040px; }
@media (max-width: 639px) {
  .container { padding: 28px 20px; border-radius: 12px; }
}

::selection { background: var(--coral); color: var(--leader); }

/* ── Type scale ── */
h1, h2, h3, h4 { font-family: var(--ff-script); font-weight: 400; color: var(--paper); letter-spacing: normal; line-height: 1.3; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 18px;
}

.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 6px rgba(var(--violet-rgb), 0.7);
  flex-shrink: 0;
}

.eyebrow .frame-no {
  color: var(--base-gray);
  font-weight: 400;
}

.section-heading {
  font-family: var(--ff-script);
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 4.6rem);
  line-height: 1.25;
  color: var(--paper);
  margin-bottom: 20px;
}

.section-lede {
  font-family: var(--ff-body);
  font-size: 1.02rem;
  color: var(--emulsion);
  line-height: 1.8;
  max-width: 560px;
}

.divider {
  position: relative;
  height: 34px;
  margin: 0;
}
.divider::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--violet-rgb),0.35) 30%, rgba(var(--cyan-rgb),0.25) 70%, transparent);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: linear-gradient(to bottom, rgba(10,10,24,0.97) 0%, rgba(10,10,24,0.86) 80%, transparent 100%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.nav.scrolled {
  background: rgba(10, 10, 24, 0.96);
  border-bottom-color: var(--rule);
  backdrop-filter: blur(10px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 40px; width: auto; display: block; filter: grayscale(1) contrast(1.1) brightness(1.3); }
.nav-logo-mark {
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--base-gray);
  text-transform: uppercase;
  line-height: 1.3;
}
.nav-logo-mark strong { display: block; color: var(--paper); font-size: 0.82rem; letter-spacing: 0.04em; }

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a {
  font-family: var(--ff-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--emulsion);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-links a::before { content: '// '; color: var(--violet); opacity: 0; transition: opacity 0.2s; }
.nav-links a:hover { color: var(--paper); }
.nav-links a:hover::before { opacity: 1; }

/* ── BUTTONS (rays of light — coral fill, a real glow earned by this world) ── */
.btn-primary, a.convertkit-button, .convertkit-button {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: var(--coral) !important;
  color: var(--leader) !important;
  font-family: var(--ff-mono) !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase;
  text-decoration: none !important;
  padding: 14px 22px !important;
  border: none !important;
  border-radius: 3px !important;
  cursor: pointer;
  position: relative;
  box-shadow: 0 0 22px rgba(var(--coral-rgb), 0.35), 0 2px 10px rgba(0,0,0,0.4) !important;
  transition: box-shadow 0.25s, transform 0.15s, background 0.2s;
  width: auto !important;
  text-align: center;
}
.btn-primary::before, .btn-primary::after,
a.convertkit-button::before, a.convertkit-button::after {
  content: '';
  width: 6px; height: 6px;
  background: var(--leader);
  border-radius: 50%;
  flex-shrink: 0;
}
.btn-primary:hover, a.convertkit-button:hover, .convertkit-button:hover {
  background: #ff97a8 !important;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(var(--coral-rgb), 0.5), 0 4px 14px rgba(0,0,0,0.45) !important;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  color: var(--emulsion);
  font-family: var(--ff-mono);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border: 1px solid var(--rule-strong);
  border-radius: 3px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.btn-secondary:hover { color: var(--paper); border-color: var(--violet); background: rgba(var(--violet-rgb), 0.06); }

/* ── Frame card (offers, testimonials, generic content unit) ──
   Every card carries the ambient violet by default — color is never
   only on the one "featured" card. --lit swaps that accent to the
   rare coral to mark the actively recommended/live item. */
.frame-card {
  background: var(--leader-3);
  border: 1px solid var(--rule);
  border-top: 2px solid rgba(var(--violet-rgb), 0.55);
  border-radius: 0 0 6px 6px;
  position: relative;
  overflow: hidden;
}
.frame-card__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--rule);
  font-family: var(--ff-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--base-gray);
  background: var(--leader-2);
}
.frame-card__bar .tag { color: var(--violet); }
.frame-card__body { padding: 28px 24px; }
.frame-card--lit { border-color: rgba(var(--coral-rgb), 0.4); border-top-color: var(--coral); box-shadow: 0 0 30px rgba(var(--coral-rgb), 0.08); }
.frame-card--lit .frame-card__bar { border-bottom-color: rgba(var(--coral-rgb), 0.3); }
.frame-card--lit .frame-card__bar .tag { color: var(--coral); }

/* ── FAQ ── */
details.faq-item {
  border-bottom: 1px solid var(--rule);
}
details.faq-item:first-child { border-top: 1px solid var(--rule); }
details.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--ff-body);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--paper);
  transition: color 0.2s;
}
details.faq-item summary::-webkit-details-marker,
details.faq-item summary::marker { display: none; }
details.faq-item summary:hover { color: var(--violet); }
.faq-icon {
  flex-shrink: 0;
  font-family: var(--ff-mono);
  font-size: 1.1rem;
  color: var(--violet);
  width: 20px;
  text-align: center;
  transition: transform 0.25s;
}
details[open].faq-item .faq-icon { transform: rotate(45deg); }
.faq-answer { padding: 0 0 24px; font-size: 0.95rem; color: var(--emulsion); line-height: 1.85; max-width: 620px; }

/* ── FOOTER ── */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--rule); position: relative; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
.footer-logo { font-family: var(--ff-display); font-size: 1.1rem; text-transform: uppercase; color: var(--paper); display: block; margin-bottom: 8px; }
.footer-tagline { font-size: 0.85rem; color: var(--base-gray); line-height: 1.7; max-width: 260px; }
.footer-social, .footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-social a, .footer-nav a {
  font-family: var(--ff-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emulsion);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-social a:hover, .footer-nav a:hover { color: var(--violet); }
.footer-legal { font-size: 0.74rem; color: var(--base-gray); line-height: 1.8; font-family: var(--ff-mono); }
.footer-legal a { color: var(--base-gray); text-decoration: none; }
.footer-legal a:hover { color: var(--violet); }

/* ── Utility ── */
.text-center { text-align: center; }
.mono { font-family: var(--ff-mono); }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 639px) {
  .nav { padding: 12px 16px; }
  .nav-links { gap: 16px; }
  .nav-hide-mobile { display: none; }
}
