/* ===================================================================
   Play & Worship — shared site styles
   Used by index.html and every detail page (watch, features, console,
   stories, faq, pricing). Keep design tokens in :root.
   =================================================================== */

:root {
  --bg:        #08090f;
  --bg-soft:   #0e111b;
  --panel:     #141824;
  --panel-2:   #1a1f2e;
  --line:      #232c42;
  --line-soft: #1b2234;

  --ink:       #edf0f5;
  --ink-dim:   #9ba4b8;
  --ink-faint: #6b7387;

  --brand:     #C89D4A;
  --brand-2:   #2E736D;
  --brand-3:   #4A9691;
  --danger:    #c14a3a;
  --ok:        #2E736D;

  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;

  --ease:      cubic-bezier(.3, .1, .2, 1);
  --ease-out:  cubic-bezier(.22, .61, .36, 1);
  --ease-pop:  cubic-bezier(.34, 1.56, .64, 1);

  --t-xs:  12px;
  --t-sm:  13px;
  --t-md:  15px;
  --t-lg:  18px;
  --t-xl:  22px;
  --t-2xl: 28px;
  --t-3xl: 36px;
  --t-4xl: 48px;
  --t-5xl: 64px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(46, 115, 109, 0.12), transparent 40%),
    radial-gradient(circle at 85% 40%, rgba(200, 157, 74, 0.09), transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(74, 150, 145, 0.08), transparent 50%);
  z-index: -1;
  animation: meshDrift 20s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes meshDrift {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(-20px, 30px, 0) scale(1.05); }
}
a { color: inherit; text-decoration: none; }
.serif { font-family: 'Source Serif 4', Georgia, serif; }

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .8s cubic-bezier(.2,.6,.2,1), transform .8s cubic-bezier(.2,.6,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(10, 13, 20, 0.7);
  border-bottom: 1px solid rgba(35, 44, 66, 0.6);
  transition: padding .3s ease, background .3s ease;
}
.nav.scrolled { padding-top: 0; padding-bottom: 0; background: rgba(10, 13, 20, 0.9); }
.nav.scrolled .nav-inner { padding: 10px 24px; }
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 16px 24px;
  display: flex; align-items: center; gap: 24px;
  transition: padding .3s ease;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Source Serif 4', serif;
  font-weight: 600; font-size: 20px;
}
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: url('./logo.svg?v=3') center/cover no-repeat;
  box-shadow: 0 2px 12px rgba(200, 157, 74, 0.35), 0 0 0 1px rgba(200, 157, 74, 0.15);
}
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 14px; color: var(--ink-dim); }
.nav-links a {
  position: relative;
  padding: 4px 0;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active {
  color: var(--ink);
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 2px;
}
.nav-cta {
  padding: 8px 16px; border-radius: 8px;
  background: var(--brand); color: #1a1306;
  font-weight: 600; font-size: 14px;
  transition: filter .2s, box-shadow .25s;
}
.nav-cta:hover { filter: brightness(1.1); }
.nav-cta-active {
  box-shadow: 0 0 0 2px rgba(200, 157, 74, 0.35), 0 0 18px rgba(200, 157, 74, 0.4);
}

/* ---------- Mobile nav drawer ---------- */
.nav-toggle {
  display: none;
  margin-left: auto;
  background: transparent; border: 1px solid var(--line);
  width: 38px; height: 38px; border-radius: 8px;
  color: var(--ink); font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-drawer {
  display: none;
  position: fixed; inset: 0; z-index: 30;
  background: rgba(8, 9, 15, 0.96);
  backdrop-filter: blur(14px);
  padding: 80px 24px 24px;
}
.nav-drawer.open { display: block; }
.nav-drawer a {
  display: block;
  padding: 14px 8px;
  font-size: 18px;
  color: var(--ink);
  border-bottom: 1px solid var(--line-soft);
}
.nav-drawer a.active { color: var(--brand); }
.nav-drawer .nav-cta {
  display: inline-block;
  margin-top: 20px;
}
.nav-drawer-close {
  position: absolute; top: 18px; right: 18px;
  width: 38px; height: 38px; border-radius: 8px;
  background: transparent; border: 1px solid var(--line);
  color: var(--ink); font-size: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Page hero (used by detail pages) — tightened ---------- */
.page-hero {
  position: relative;
  max-width: 980px; margin: 0 auto;
  padding: 60px 24px 40px;
  text-align: center;
}
.page-hero::before {
  content: '';
  position: absolute; top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 460px;
  background: radial-gradient(circle, rgba(46, 115, 109, 0.14), transparent 60%);
  z-index: -1;
}
.page-hero h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08; font-weight: 700;
  margin: 0 0 14px;
  letter-spacing: -0.025em;
}
.page-hero h1 .accent {
  font-style: italic; font-weight: 600;
  background: linear-gradient(120deg, var(--brand) 0%, #ffd88a 50%, var(--brand-2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accentShimmer 6s linear infinite;
}
@keyframes accentShimmer {
  0%   { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}
.page-hero p.lede {
  max-width: 620px; margin: 0 auto;
  font-size: 16px; color: var(--ink-dim);
  line-height: 1.55;
}
.page-hero .breadcrumb {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 12px; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 11px; letter-spacing: 0.16em;
  color: var(--ink-dim); text-transform: uppercase;
}
.page-hero .breadcrumb a { color: var(--ink-dim); }
.page-hero .breadcrumb a:hover { color: var(--brand); }
.page-hero .breadcrumb .sep { color: var(--ink-faint); }

/* ---------- Hero (home, single-column, claims full width) ---------- */
.hero {
  position: relative;
  width: 100%;
  margin: 0 auto;
  padding: 96px 32px 64px;
  text-align: center;
  overflow: hidden;
}
/* Full-viewport gradient backdrop — fills whatever width the screen is */
.hero::before {
  content: '';
  position: absolute;
  inset: -10% 0 0 0;
  background:
    radial-gradient(ellipse 70% 55% at 30% 40%, rgba(46, 115, 109, 0.22), transparent 70%),
    radial-gradient(ellipse 75% 60% at 75% 50%, rgba(200, 157, 74, 0.16), transparent 70%);
  z-index: -1;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 157, 74, 0.18) 20%, rgba(200, 157, 74, 0.18) 80%, transparent);
  pointer-events: none;
}
.hero > * { position: relative; }
.hero h1 {
  font-size: clamp(42px, 6.8vw, 88px);
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 22px;
}
.hero .lede {
  max-width: 720px;
  margin: 0 auto 32px;
  font-size: clamp(16px, 1.3vw, 19px);
  line-height: 1.6;
}
.hero .hero-ctas { margin-bottom: 20px; }
.hero .hero-meta {
  display: inline-flex; gap: 26px; flex-wrap: wrap; justify-content: center;
  font-size: 13px; color: var(--ink-dim);
  margin-bottom: 0;
}
.hero .hero-meta span { display: inline-flex; align-items: center; gap: 7px; }
.hero .hero-meta svg { color: var(--brand-3); flex-shrink: 0; }
.hero .tag { margin-bottom: 30px; }

/* ---------- Hero — split (home) — text left, screenshot right ---------- */
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 50px;
  align-items: center;
  max-width: 1240px; margin: 0 auto;
  padding: 56px 24px 48px;
  text-align: left;
}
.hero-split::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 720px;
  background:
    radial-gradient(circle at 20% 30%, rgba(46, 115, 109, 0.18), transparent 55%),
    radial-gradient(circle at 85% 25%, rgba(200, 157, 74, 0.12), transparent 55%);
  z-index: -1;
  pointer-events: none;
}
.hero-split .tag {
  margin-bottom: 16px;
}
.hero-split h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1.05; font-weight: 700;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
}
.hero-split .lede {
  max-width: 540px; margin: 0 0 26px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-dim);
}
.hero-split .hero-ctas {
  margin-bottom: 22px;
  justify-content: flex-start;
}
.hero-split .btn {
  padding: 13px 22px;
  font-size: 14.5px;
}
.hero-split .hero-meta {
  display: flex; gap: 22px; flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.hero-split .hero-meta span {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-split .hero-meta svg {
  color: var(--brand-3);
  flex-shrink: 0;
}
.hero-split .hero-visual {
  position: relative;
}
.hero-split .hero-visual::before {
  content: '';
  position: absolute;
  inset: -30px;
  background: radial-gradient(circle, rgba(200, 157, 74, 0.10), transparent 60%);
  z-index: -1;
}
.hero-split .shot {
  max-width: 100%;
  transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
  transform-origin: center left;
}
@media (max-width: 980px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 36px;
    text-align: center;
    padding: 48px 24px 32px;
  }
  .hero-split .lede { margin: 0 auto 26px; }
  .hero-split .hero-ctas { justify-content: center; }
  .hero-split .hero-meta { justify-content: center; }
  .hero-split .shot { transform: none; }
}
.tag {
  display: inline-block;
  padding: 6px 14px; margin-bottom: 24px;
  border: 1px solid var(--line); border-radius: 999px;
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--ink-dim); text-transform: uppercase;
}
.tag .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: middle; }
h1 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(36px, 5vw, 62px);
  line-height: 1.05; font-weight: 700;
  margin: 0 0 18px;
  letter-spacing: -0.032em;
}
h1 .accent {
  font-style: italic; font-weight: 600;
  background: linear-gradient(120deg, var(--brand) 0%, #ffd88a 50%, var(--brand-2) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: accentShimmer 6s linear infinite;
}
.lede {
  max-width: 680px; margin: 0 auto 40px;
  font-size: 18px; color: var(--ink-dim);
}
.hero-ctas {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 48px;
}
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 28px; border-radius: 12px;
  font-weight: 600; font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  position: relative; overflow: hidden;
  transition: transform .2s cubic-bezier(.3,.1,.2,1), box-shadow .25s, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand) 0%, #E3B96E 100%);
  color: #1a1306;
  box-shadow: 0 10px 30px -10px rgba(200, 157, 74, 0.55);
}
.btn-primary:hover { box-shadow: 0 16px 40px -10px rgba(200, 157, 74, 0.75); }
.btn-ghost { background: rgba(21, 27, 41, 0.6); backdrop-filter: blur(8px); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--panel); border-color: var(--brand); }
.btn::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.25) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s ease;
  pointer-events: none;
}
.btn:hover::before { transform: translateX(120%); }
.btn svg { width: 18px; height: 18px; position: relative; z-index: 1; }
.btn span, .btn svg + * { position: relative; z-index: 1; }

/* Install button disabled for now — reserved for the real desktop app.
   Inert (no pointer events / no hover lift), dimmed, with a "Coming soon" pill. */
.btn.btn-disabled {
  cursor: not-allowed;
  pointer-events: none;
  filter: grayscale(0.5);
  opacity: 0.6;
  box-shadow: none;
}
.btn.btn-disabled:hover { transform: none; }
.btn.btn-disabled::before { display: none; }
.btn .btn-soon {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(26, 19, 6, 0.22);
  color: inherit;
}

/* ---------- Screenshot mock ---------- */
.shot {
  max-width: 1000px; margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(200, 157, 74, 0.04);
  overflow: hidden;
}
.shot-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.shot-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a4258; }
.shot-body {
  padding: 56px 48px;
  background:
    radial-gradient(circle at 20% 20%, rgba(46, 115, 109, 0.1), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(200, 157, 74, 0.08), transparent 50%),
    var(--bg);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; text-align: center;
  font-family: 'Source Serif 4', serif;
}
.shot-verse {
  font-size: clamp(22px, 2.2vw, 30px);
  max-width: 820px;
  color: var(--ink);
  line-height: 1.42;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin: 0 0 28px;
}
.shot-verse .vnum {
  color: #e6b652;
  font-weight: 700;
  font-size: 0.55em;
  vertical-align: super;
  margin-right: 6px;
}
.shot-ref {
  font-family: 'Segoe UI', 'Inter', sans-serif;
  font-size: 13px;
  color: #d4b57a;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  position: relative;
  padding-top: 16px;
}
.shot-ref::before {
  content: '';
  position: absolute; top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 181, 122, 0.6), transparent);
}

/* ---------- Subhero (the projector mock section under the hero) ---------- */
.subhero {
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px 32px 96px;
  text-align: center;
  position: relative;
}
.subhero-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 24px;
  position: relative;
  padding: 0 22px;
}
.subhero-label::before,
.subhero-label::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 157, 74, 0.5));
}
.subhero-label::before { right: 100%; }
.subhero-label::after  { left: 100%; transform: scaleX(-1); }

/* Projector mock — pure black background matching the real app */
.shot-projector {
  max-width: 1200px;
  margin: 0 auto;
}
.shot-projector .shot-projector-body { aspect-ratio: 16 / 9; }
.shot-projector-body {
  background: #000;
  padding: 64px 56px;
}
.shot-projector-body::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 40%, rgba(255, 230, 180, 0.04), transparent 55%);
  pointer-events: none;
}
.shot-projector-body { position: relative; overflow: hidden; }
.shot-projector-body .shot-verse { text-shadow: 0 2px 12px rgba(0,0,0,0.6); }

@media (max-width: 720px) {
  .shot-body { padding: 36px 24px; }
  .shot-projector-body { padding: 44px 24px; }
}

/* When the shot-body holds the actual operator-console screenshot */
.shot-body-img {
  padding: 0;
  min-height: 0;
  background: #0a0d14;
  display: block;
  overflow: hidden;
}
.shot-body-img img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}
.shot-bar-title {
  margin-left: 12px;
  font-size: 12px;
  color: var(--ink-dim);
  font-family: 'Inter', sans-serif;
}

/* ---------- Stats strip ---------- */
.stats {
  max-width: 1100px; margin: 80px auto 0;
  padding: 40px 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at center, rgba(200, 157, 74, 0.05), transparent 70%);
}
.stat { text-align: center; }
.stat-num {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(36px, 5vw, 54px);
  font-weight: 700;
  background: linear-gradient(135deg, var(--brand), #E3B96E);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label {
  color: var(--ink-dim); font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Section heads ---------- */
.section-head { text-align: center; margin-bottom: 60px; }
.section-head h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(34px, 4.5vw, 52px);
  margin: 0 0 16px; font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
}
.section-head h2::after {
  content: '';
  display: block;
  width: 56px; height: 3px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  border-radius: 3px;
}
.section-head p { color: var(--ink-dim); max-width: 640px; margin: 0 auto; font-size: 15px; }
.section-head .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 14px;
}

/* ---------- Cards / feature grid ---------- */
.features {
  max-width: 1200px; margin: 120px auto;
  padding: 0 24px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.card {
  position: relative;
  padding: 32px 28px;
  background: rgba(21, 27, 41, 0.55);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(35, 44, 66, 0.8);
  border-radius: 16px;
  transition: transform .3s cubic-bezier(.3,.1,.2,1), border-color .25s, box-shadow .3s;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(200, 157, 74, 0.4), rgba(46, 115, 109, 0.4));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
          mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}
.card:hover::before { opacity: 1; }
.card-ico {
  width: 48px; height: 48px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(200, 157, 74, 0.22), rgba(46, 115, 109, 0.22));
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
  color: var(--brand);
  transition: transform .3s cubic-bezier(.34,1.56,.64,1);
}
.card:hover .card-ico { transform: scale(1.08) rotate(-4deg); }
.card-ico svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.card p { margin: 0; color: var(--ink-dim); font-size: 14px; }

/* ---------- Deep feature row (icon-left, body-right) ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  margin: 100px auto;
  max-width: 1100px;
  padding: 0 24px;
}
.feature-row.reverse { grid-template-columns: 1.2fr 1fr; }
.feature-row.reverse .feature-body { order: -1; }
.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 20px 60px rgba(0,0,0,0.45);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.feature-visual::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 30%, rgba(200, 157, 74, 0.12), transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(46, 115, 109, 0.12), transparent 50%);
}
.feature-visual > * { position: relative; }
.feature-body h3 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  line-height: 1.15;
}
.feature-body .eyebrow {
  display: inline-block;
  color: var(--brand);
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-body p {
  color: var(--ink-dim);
  font-size: 16px;
  line-height: 1.65;
  margin: 0 0 18px;
}
.feature-list {
  list-style: none;
  padding: 0; margin: 0;
}
.feature-list li {
  position: relative;
  padding: 9px 0 9px 28px;
  color: var(--ink);
  font-size: 14.5px;
  border-bottom: 1px dashed var(--line-soft);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
  content: '';
  position: absolute; left: 0; top: 17px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.feature-list li b { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) {
  .feature-row, .feature-row.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 60px auto;
  }
  .feature-row.reverse .feature-body { order: 0; }
}

/* ---------- Pricing tiers ---------- */
.tier-grid {
  max-width: 1100px; margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 22px;
}
.tier {
  position: relative;
  padding: 36px 30px;
  background: rgba(21, 27, 41, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 18px;
  display: flex; flex-direction: column;
  transition: transform .3s var(--ease), border-color .25s, box-shadow .3s;
}
.tier:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 157, 74, 0.35);
}
.tier.featured {
  border-color: var(--brand);
  background: linear-gradient(160deg, rgba(200, 157, 74, 0.08), rgba(21, 27, 41, 0.55));
  box-shadow: 0 24px 60px -20px rgba(200, 157, 74, 0.35);
}
.tier .tier-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  padding: 5px 12px;
  background: var(--brand); color: #1a1306;
  border-radius: 999px;
  font-size: 10px; font-weight: 800;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.tier h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 24px; font-weight: 700;
  margin: 0 0 4px;
}
.tier .tier-sub {
  color: var(--ink-dim); font-size: 13px;
  margin: 0 0 24px;
}
.tier .tier-price {
  font-family: 'Source Serif 4', serif;
  font-size: 38px; font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.tier .tier-price small {
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 400;
  color: var(--ink-dim);
}
.tier .tier-cents {
  font-size: 12px; color: var(--ink-faint);
  margin-bottom: 22px;
}
.tier .tier-features {
  list-style: none; padding: 0; margin: 0 0 26px;
  flex: 1;
}
.tier .tier-features li {
  position: relative;
  padding: 8px 0 8px 26px;
  font-size: 13.5px;
  color: var(--ink);
  border-bottom: 1px dashed var(--line-soft);
}
.tier .tier-features li:last-child { border-bottom: 0; }
.tier .tier-features li::before {
  content: '';
  position: absolute; left: 0; top: 14px;
  width: 12px; height: 7px;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}
.tier .tier-cta {
  display: block;
  text-align: center;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600; font-size: 14px;
}
.tier:not(.featured) .tier-cta {
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--ink);
}
.tier:not(.featured) .tier-cta:hover { border-color: var(--brand); color: var(--brand); }
.tier.featured .tier-cta {
  background: var(--brand);
  color: #1a1306;
  box-shadow: 0 8px 24px -8px rgba(200, 157, 74, 0.55);
}
.tier.featured .tier-cta:hover { filter: brightness(1.08); }

/* ---------- Comparison table ---------- */
.compare-wrap {
  max-width: 1100px; margin: 80px auto;
  padding: 0 24px;
  overflow-x: auto;
}
.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 720px;
}
.compare th, .compare td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  text-align: center;
}
.compare th {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  background: rgba(21, 27, 41, 0.6);
}
.compare th:first-child, .compare td:first-child {
  text-align: left;
  color: var(--ink-dim);
}
.compare th.col-featured {
  color: var(--brand);
  background: rgba(200, 157, 74, 0.08);
}
.compare td.cell-featured { background: rgba(200, 157, 74, 0.04); }
.compare .check { color: var(--brand); font-weight: 700; }
.compare .dash { color: var(--ink-faint); }

/* ---------- App preview iframe ---------- */
.preview {
  max-width: 1280px; margin: 120px auto;
  padding: 0 24px;
}
.app-frame {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.app-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
}
.app-bar .shot-dot { width: 11px; height: 11px; border-radius: 50%; background: #3a4258; }
.app-bar-title {
  margin-left: 12px;
  font-size: 12px; color: var(--ink-dim);
  font-family: 'Inter', sans-serif;
}
.app-bar-live {
  margin-left: auto;
  padding: 3px 10px; border-radius: 4px;
  background: rgba(193, 74, 58, 0.15);
  color: #e8a89a;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
}
.app-bar-live::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: #c14a3a; margin-right: 6px; vertical-align: middle;
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.app-embed {
  position: relative;
  aspect-ratio: 1366 / 820;
  width: 100%;
  overflow: hidden;
  background: #000;
}
.app-embed iframe {
  position: absolute;
  top: 0; left: 0;
  width: 1366px;
  height: 820px;
  border: 0;
  transform-origin: top left;
  transform: scale(0.9);
  pointer-events: none;
}
.app-embed-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  background: linear-gradient(to bottom, transparent 60%, rgba(10, 13, 20, 0.6));
  pointer-events: none;
  opacity: 0; transition: opacity .2s;
}
.app-frame:hover .app-embed-overlay { opacity: 1; }
.app-embed-overlay a {
  margin-bottom: 24px;
  padding: 12px 22px;
  background: var(--brand);
  color: #1a1306;
  font-weight: 600; font-size: 14px;
  border-radius: 10px;
  pointer-events: auto;
  box-shadow: 0 10px 30px rgba(0,0,0,0.4);
}
.app-embed-overlay a:hover { filter: brightness(1.1); }

/* Static-image app shot (replaces the iframe — cleaner and reliable) */
.app-shot {
  position: relative;
  display: block;
  background: #0a0d14;
  overflow: hidden;
  cursor: pointer;
}
.app-shot img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
  transition: transform .6s var(--ease-out);
}
.app-shot:hover img { transform: scale(1.015); }
.app-shot-hover {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 12px);
  padding: 11px 22px;
  background: var(--brand);
  color: #1a1306;
  font: 600 14px/1 'Inter', sans-serif;
  border-radius: 10px;
  opacity: 0;
  transition: opacity .25s ease, transform .25s var(--ease-out);
  pointer-events: none;
  box-shadow: 0 12px 32px -10px rgba(0, 0, 0, 0.55);
}
.app-shot:hover .app-shot-hover {
  opacity: 1;
  transform: translate(-50%, 0);
}
.preview-caption {
  text-align: center;
  margin-top: 20px;
  color: var(--ink-dim);
  font-size: 13px;
}
.preview-caption kbd {
  display: inline-block;
  padding: 2px 8px;
  margin: 0 2px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  font-family: 'Inter', monospace;
  font-size: 11px; color: var(--ink);
}

/* ---------- Console region map (for console.html) ---------- */
.region-map {
  max-width: 1100px; margin: 100px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.region-card {
  padding: 28px;
  background: rgba(21, 27, 41, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, transform .2s;
}
.region-card:hover {
  border-color: rgba(200, 157, 74, 0.4);
  transform: translateY(-3px);
}
.region-card .region-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(200, 157, 74, 0.12);
  color: var(--brand);
  border-radius: 4px;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  margin-bottom: 14px;
}
.region-card h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 22px; font-weight: 700;
  margin: 0 0 8px;
}
.region-card p {
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.6;
  margin: 0 0 16px;
}
.region-card ul {
  list-style: none; padding: 0; margin: 0;
}
.region-card li {
  position: relative;
  padding: 5px 0 5px 18px;
  font-size: 13px;
  color: var(--ink);
}
.region-card li::before {
  content: '·';
  position: absolute; left: 4px; top: 5px;
  color: var(--brand); font-size: 18px;
}
@media (max-width: 760px) {
  .region-map { grid-template-columns: 1fr; }
}

/* ---------- Keyboard reference ---------- */
.kbd-table {
  max-width: 720px; margin: 80px auto;
  padding: 0 24px;
}
.kbd-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 18px;
  background: rgba(21, 27, 41, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.kbd-row .kbd-action { font-size: 14px; color: var(--ink); font-weight: 600; }
.kbd-row .kbd-desc { font-size: 13px; color: var(--ink-dim); }
.kbd-row .kbd-keys { text-align: right; }
.kbd-row kbd {
  display: inline-block;
  padding: 4px 9px;
  margin-left: 4px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 5px;
  font-family: 'Inter', monospace;
  font-size: 12px; color: var(--ink);
}
@media (max-width: 600px) {
  .kbd-row { grid-template-columns: 1fr; gap: 4px; }
  .kbd-row .kbd-keys { text-align: left; }
}

/* ---------- Case study ---------- */
.case-study {
  max-width: 1000px; margin: 80px auto;
  padding: 50px 40px;
  background: linear-gradient(140deg, rgba(46, 115, 109, 0.08), rgba(21, 27, 41, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  align-items: center;
}
.case-study .cs-photo {
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-family: 'Source Serif 4', serif;
  font-size: 64px; font-weight: 700;
  box-shadow: inset 0 0 60px rgba(0,0,0,0.25);
}
.case-study h3 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(24px, 3vw, 32px);
  margin: 0 0 8px;
  line-height: 1.2;
}
.case-study .cs-meta {
  color: var(--brand);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.case-study p {
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.65;
  margin: 0 0 14px;
}
.case-study .cs-stats {
  display: flex;
  gap: 32px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
}
.case-study .cs-stat-num {
  font-family: 'Source Serif 4', serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--brand);
  line-height: 1;
}
.case-study .cs-stat-label {
  font-size: 11px;
  color: var(--ink-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 4px;
}
@media (max-width: 760px) {
  .case-study {
    grid-template-columns: 1fr;
    padding: 36px 26px;
  }
  .case-study .cs-photo { max-width: 140px; margin: 0 auto; }
}

/* ---------- Download / CTA card ---------- */
.download {
  max-width: 1000px; margin: 120px auto;
  padding: 60px 40px;
  background: linear-gradient(135deg, rgba(200, 157, 74, 0.08), rgba(46, 115, 109, 0.08));
  border: 1px solid var(--line);
  border-radius: 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(200, 157, 74, 0.1), transparent 60%);
  pointer-events: none;
}
.download h2 {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(32px, 4vw, 42px);
  margin: 0 0 16px;
  position: relative;
}
.download p { color: var(--ink-dim); margin: 0 0 32px; position: relative; }
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px; max-width: 700px; margin: 0 auto;
  position: relative;
}
.dl-btn {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  transition: border-color .2s, transform .2s;
}
.dl-btn:hover:not(.disabled) { border-color: var(--brand); transform: translateY(-2px); }
.dl-btn.disabled { opacity: 0.6; cursor: not-allowed; }
.dl-btn svg { width: 28px; height: 28px; flex-shrink: 0; color: var(--brand); }
.dl-btn-text { display: flex; flex-direction: column; }
.dl-btn-label { font-size: 11px; color: var(--ink-dim); letter-spacing: 0.1em; text-transform: uppercase; }
.dl-btn-name { font-weight: 600; font-size: 15px; margin-top: 2px; }
.dl-btn-note { font-size: 11px; color: var(--brand); margin-top: 2px; font-weight: 500; }

.coming-soon {
  display: inline-block;
  margin-top: 28px;
  padding: 8px 16px;
  background: rgba(193, 74, 58, 0.1);
  border: 1px solid rgba(193, 74, 58, 0.3);
  border-radius: 999px;
  font-size: 12px; color: #e8a89a;
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ---------- Testimonials ---------- */
.testimonials {
  max-width: 1200px; margin: 140px auto;
  padding: 0 24px;
}
.t-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.testimonial {
  position: relative;
  padding: 32px 28px 28px;
  background: rgba(21, 27, 41, 0.55);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 20px;
  transition: transform .3s var(--ease), border-color .25s;
}
.testimonial:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 157, 74, 0.35);
}
.testimonial::before {
  content: '"';
  position: absolute; top: 8px; left: 24px;
  font-family: 'Source Serif 4', serif;
  font-size: 76px; font-weight: 700; line-height: 1;
  color: var(--brand); opacity: 0.28;
}
.t-quote {
  font-family: 'Source Serif 4', serif;
  font-size: var(--t-lg); line-height: 1.5;
  font-style: italic; color: var(--ink);
  margin: 0; position: relative;
}
.t-stars { color: var(--brand); font-size: 14px; letter-spacing: 2px; }
.t-author {
  display: flex; align-items: center; gap: 12px;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.t-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px; color: #1a1306;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  flex-shrink: 0;
}
.t-meta { display: flex; flex-direction: column; }
.t-name { font-weight: 600; font-size: var(--t-sm); color: var(--ink); }
.t-role { font-size: var(--t-xs); color: var(--ink-faint); }

/* ---------- FAQ ---------- */
.faq {
  max-width: 820px; margin: 100px auto;
  padding: 0 24px;
}
.faq-category {
  margin-bottom: 40px;
}
.faq-category h3 {
  font-family: 'Source Serif 4', serif;
  font-size: 22px;
  margin: 0 0 14px;
  color: var(--brand);
  display: flex; align-items: center; gap: 14px;
}
.faq-category h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(200, 157, 74, 0.3), transparent);
}
.faq-list {
  display: flex; flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: rgba(21, 27, 41, 0.45);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0;
  transition: border-color .2s, background .2s;
}
.faq-item[open] { border-color: rgba(200, 157, 74, 0.4); background: rgba(21, 27, 41, 0.7); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 600; font-size: var(--t-md);
  color: var(--ink);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ''; flex-shrink: 0;
  width: 10px; height: 10px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(45deg);
  transition: transform .25s var(--ease);
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-item p {
  margin: 0;
  padding: 0 24px 22px;
  color: var(--ink-dim);
  font-size: var(--t-sm);
  line-height: 1.65;
}
.faq-item p code {
  font-family: 'Inter', monospace;
  font-size: 12px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--brand);
}

/* ---------- Footer ---------- */
.footer-v2 {
  margin-top: 140px;
  padding: 60px 24px 30px;
  border-top: 1px solid var(--line);
  background: linear-gradient(to bottom, transparent, rgba(8, 9, 15, 0.8));
}
.footer-grid {
  max-width: 1200px; margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px 32px;
  padding-bottom: 40px;
}
.footer-col h5 {
  font-size: var(--t-xs); font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--ink-faint); margin: 0 0 16px;
}
.footer-col a, .footer-col p {
  display: block;
  font-size: var(--t-sm); color: var(--ink-dim);
  margin-bottom: 10px; line-height: 1.55;
  transition: color .18s;
}
.footer-col a:hover { color: var(--brand); }
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
  font-family: 'Source Serif 4', serif;
  font-weight: 600; font-size: var(--t-xl); color: var(--ink);
}
.footer-bottom {
  max-width: 1200px; margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
  font-size: var(--t-xs); color: var(--ink-faint);
}
.footer-bottom a { color: var(--brand); }
.footer-bottom a:hover { text-decoration: underline; }
.footer-socials { display: flex; gap: 12px; }
.footer-socials a {
  width: 32px; height: 32px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(21, 27, 41, 0.7);
  border: 1px solid var(--line);
  color: var(--ink-dim);
  transition: transform .2s, border-color .2s, color .2s;
}
.footer-socials a:hover {
  transform: translateY(-2px);
  border-color: var(--brand); color: var(--brand);
}
.footer-socials svg { width: 14px; height: 14px; }

/* ---------- Pillar list (used on multiple pages) ---------- */
.pillars {
  max-width: 1100px; margin: 60px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.pillar {
  padding: 26px 22px;
  background: rgba(21, 27, 41, 0.55);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: center;
  transition: transform .3s var(--ease), border-color .25s;
}
.pillar:hover { transform: translateY(-3px); border-color: rgba(200, 157, 74, 0.4); }
.pillar .pillar-num {
  font-family: 'Source Serif 4', serif;
  font-size: 30px; font-weight: 700;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}
.pillar h4 {
  font-family: 'Source Serif 4', serif;
  font-size: 18px;
  margin: 0 0 6px;
}
.pillar p {
  font-size: 13px;
  color: var(--ink-dim);
  margin: 0;
  line-height: 1.55;
}

/* ---------- Quote block ---------- */
.pull-quote {
  max-width: 880px; margin: 100px auto;
  padding: 50px 40px;
  text-align: center;
  position: relative;
}
.pull-quote::before {
  content: '"';
  position: absolute; top: -20px; left: 50%;
  transform: translateX(-50%);
  font-family: 'Source Serif 4', serif;
  font-size: 140px; line-height: 1;
  color: var(--brand);
  opacity: 0.18;
}
.pull-quote blockquote {
  font-family: 'Source Serif 4', serif;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1.4;
  font-style: italic;
  color: var(--ink);
  margin: 0 0 22px;
  position: relative;
}
.pull-quote .quote-attr {
  font-size: 13px;
  color: var(--ink-dim);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ===================================================================
   Animation utilities — applied across all pages
   =================================================================== */

/* Headline fade-up (clean, whole-element — preserves gradient accent) */
.h-rise {
  opacity: 0;
  transform: translateY(20px);
  animation: hRise 1s cubic-bezier(.22,.61,.36,1) .1s forwards;
}
@keyframes hRise {
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger reveal for direct children — used on .grid, .tier-grid, .pillars, .use-grid */
.stagger > * {
  opacity: 0;
  transform: translateY(28px);
}
.stagger.in > *,
.stagger > *.in {
  animation: staggerIn .7s cubic-bezier(.22,.61,.36,1) forwards;
}
.stagger.in > *:nth-child(1) { animation-delay: .00s; }
.stagger.in > *:nth-child(2) { animation-delay: .07s; }
.stagger.in > *:nth-child(3) { animation-delay: .14s; }
.stagger.in > *:nth-child(4) { animation-delay: .21s; }
.stagger.in > *:nth-child(5) { animation-delay: .28s; }
.stagger.in > *:nth-child(6) { animation-delay: .35s; }
.stagger.in > *:nth-child(7) { animation-delay: .42s; }
.stagger.in > *:nth-child(8) { animation-delay: .49s; }
.stagger.in > *:nth-child(9) { animation-delay: .56s; }
.stagger.in > *:nth-child(10) { animation-delay: .63s; }
@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* Subtle hover-lift for any clickable card */
.lift { transition: transform .35s var(--ease), box-shadow .3s ease, border-color .25s; }
.lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6);
}

/* Floating shimmer on buttons (already on .btn, generalized) */
.btn, .donate-cta, .nav-cta {
  position: relative;
  overflow: hidden;
}
.btn::after, .donate-cta::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .9s ease;
  pointer-events: none;
}
.btn:hover::after, .donate-cta:hover::after { transform: translateX(120%); }

/* Pulse glow on key CTAs */
.pulse-glow {
  animation: pulseGlow 3.2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 10px 30px -10px rgba(200, 157, 74, 0.55); }
  50%      { box-shadow: 0 14px 42px -10px rgba(200, 157, 74, 0.8), 0 0 0 4px rgba(200, 157, 74, 0.08); }
}

/* Underline-grow link */
.ul-grow {
  position: relative;
  color: var(--brand);
}
.ul-grow::after {
  content: '';
  position: absolute; left: 0; bottom: -2px; height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width .35s var(--ease-out);
}
.ul-grow:hover::after { width: 100%; }

/* Icon pop on card hover */
.card .card-ico { will-change: transform; }
.card:hover .card-ico {
  animation: icoPop .55s var(--ease-pop);
}
@keyframes icoPop {
  0%   { transform: scale(1) rotate(0); }
  35%  { transform: scale(1.18) rotate(-7deg); }
  100% { transform: scale(1.08) rotate(-4deg); }
}

/* Subtle background drift for hero/page-hero already exists; add a slow tilt for visual interest */
.page-hero h1 .accent,
.hero h1 .accent { will-change: background-position; }

/* Card alignment fixes — make grids fill rows, equal heights */
.grid, .t-grid, .tier-grid, .use-grid, .other-grid, .pillars, .explore-grid, .download-grid, .region-map {
  align-items: stretch;
}

/* Deterministic 3x2 explore grid (was auto-fit which broke at certain widths) */
.explore-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 880px) {
  .explore-grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 540px) {
  .explore-grid { grid-template-columns: 1fr !important; }
}

/* Deterministic 3-column features card grid for 6 cards */
.features > .grid {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 980px) {
  .features > .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .features > .grid { grid-template-columns: 1fr; }
}
.grid > *,
.t-grid > *,
.tier-grid > *,
.use-grid > *,
.other-grid > *,
.pillars > *,
.explore-grid > *,
.region-map > * {
  display: flex;
  flex-direction: column;
}
.card,
.testimonial,
.tier,
.use-card,
.other-card,
.pillar,
.region-card,
.explore-card,
.dl-btn {
  height: 100%;
}
/* Push CTAs / footers to the bottom of cards for tidy alignment */
.tier .tier-cta { margin-top: auto; }
.explore-card .explore-link { margin-top: auto; }
.feature-list { margin-top: auto; }

/* Reveal: small refinement for cards */
.reveal.stagger { transition: none; transform: none; opacity: 1; }

/* Anchored-link smooth focus halo */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Light pulse for "LIVE" indicators */
.live-pulse {
  animation: livePulse 1.6s ease-in-out infinite;
}
@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(193, 74, 58, 0.4); }
  50%      { box-shadow: 0 0 0 8px rgba(193, 74, 58, 0); }
}

/* Marquee scroll for the stats strip on tablet */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ---------- Responsive nav ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 720px) {
  .hero { padding: 60px 20px 40px; }
  .features, .download, .testimonials, .faq { margin: 80px auto; }
  .download { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > .footer-col:first-child { grid-column: 1 / -1; }
}

/* ===== Download password gate ===========================================
   Modal shown when the Download / Update button is clicked. Locks the
   download behind a soft access password (validated client-side in
   site.js — move to a real auth check once a backend exists). */
.pw-gate {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 9, 15, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.pw-gate.visible {
  opacity: 1;
  pointer-events: auto;
}
.pw-gate-card {
  position: relative;
  width: 100%;
  max-width: 380px;
  padding: 36px 28px 28px;
  background: linear-gradient(180deg, rgba(26, 31, 46, 0.98), rgba(15, 19, 30, 0.98));
  border: 1px solid rgba(200, 157, 74, 0.4);
  border-radius: 18px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(200, 157, 74, 0.08) inset;
  text-align: center;
  color: var(--ink);
  transform: scale(0.94);
  transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.pw-gate.visible .pw-gate-card {
  transform: scale(1);
}
.pw-gate-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 50%;
  color: var(--ink-3, #9ba4b8);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.pw-gate-close:hover {
  background: rgba(200, 157, 74, 0.10);
  border-color: rgba(200, 157, 74, 0.30);
  color: var(--brand, #C89D4A);
}
.pw-gate-lock {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(200, 157, 74, 0.30) 0%,
    rgba(200, 157, 74, 0.05) 70%);
  color: var(--brand, #C89D4A);
}
.pw-gate-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 600;
}
.pw-gate-msg {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ink-2, #b2bccc);
  line-height: 1.55;
}
.pw-gate-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pw-gate-form input {
  width: 100%;
  padding: 14px 16px;
  background: rgba(8, 9, 15, 0.75);
  border: 1.5px solid rgba(200, 157, 74, 0.30);
  border-radius: 10px;
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-align: center;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.2s, background 0.15s;
}
.pw-gate-form input::placeholder { color: var(--ink-3, #6b7387); letter-spacing: 0.02em; }
.pw-gate-form input:focus {
  border-color: var(--brand, #C89D4A);
  box-shadow: 0 0 0 3px rgba(200, 157, 74, 0.18);
  background: rgba(8, 9, 15, 0.95);
}
.pw-gate-err {
  min-height: 16px;
  font-size: 12.5px;
  color: #ff8b7a;
  text-align: center;
}
.pw-gate-err:empty { display: none; }
.pw-gate-submit {
  width: 100%;
  padding: 13px 18px;
  font-size: 14px;
  letter-spacing: 0.04em;
}
@media (max-width: 480px) {
  .pw-gate-card { padding: 30px 20px 22px; }
  .pw-gate-card h2 { font-size: 19px; }
}
/* Wrong-password shake — fires once via inline animation reset in JS. */
@keyframes pwShake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}
