/* =========================================================================
   Orbzzo & Company — Shared design system
   Two themes via CSS variables: dark (default, gold-on-black) and light
   (white background). Toggle sets [data-theme="light"] on <html>.
   The logo gold (#fcb900) is preserved as the accent in BOTH themes.
   ========================================================================= */

:root {
  /* Brand gold — fills (buttons, bars, icon chips) stay bright in both themes */
  --gold: #fcb900;
  --gold-bright: #ffba00;
  --gold-light: #ffd966;
  --gold-deep: #c98f00;
  --gold-dim: rgba(252, 185, 0, 0.55);
  --gold-faint: rgba(252, 185, 0, 0.16);
  --gold-hair: rgba(252, 185, 0, 0.22);
  --gold-ink: #fcb900;            /* gold used for TEXT / links */

  --bg: #0a0a0a;
  --bg-soft: #111110;
  --bg-panel: #14130f;
  --bg-card: #16140f;
  --bg-elev: #1b1813;

  --ink: #ece6d8;
  --ink-soft: #b7b0a1;
  --ink-mute: #8c857a;
  --heading: #ffffff;
  --on-gold: #120d02;

  --line: rgba(255, 255, 255, 0.08);
  --line-gold: rgba(252, 185, 0, 0.22);

  /* Role surfaces (themed) */
  --card-bg: linear-gradient(180deg, var(--bg-card), var(--bg-soft));
  --card-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
  --nav-bg: rgba(10, 10, 10, 0.82);
  --drawer-bg: rgba(8, 8, 8, 0.98);
  --announce-bg: linear-gradient(90deg, #100d06, #1a150a, #100d06);
  --hero-grad: radial-gradient(ellipse 70% 80% at 50% 0%, #1a1610 0%, transparent 60%);
  --statbar-bg: linear-gradient(120deg, #0d0b06, #181206, #0d0b06);
  --select-bg: #15140f;
  --grain-opacity: 0.035;
  --announce-ink: rgba(252, 185, 0, 0.7);
  --footer-bg: #0a0a0a;
  --footer-bottom-bg: transparent;
  --footer-accent: #fcb900;
  --btn-shadow: 0 6px 22px rgba(252, 185, 0, 0.22);
  --btn-shadow-hover: 0 10px 30px rgba(252, 185, 0, 0.32);
  --logo-filter: drop-shadow(0 0 16px rgba(252, 185, 0, 0.22));

  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --maxw: 1240px;
  --radius: 4px;
}

/* ---------- LIGHT THEME (white background) ---------- */
html[data-theme="light"] {
  --gold-ink: #936300;           /* deep amber — readable gold text on white */
  --gold-light: #b8860b;
  --gold-dim: rgba(147, 99, 0, 0.7);
  --gold-faint: rgba(252, 185, 0, 0.14);

  --bg: #ffffff;
  --bg-soft: #f6f2ea;            /* warm ivory for alternating sections */
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;

  --ink: #2b261d;
  --ink-soft: #5e584d;
  --ink-mute: #948d80;
  --heading: #201b13;

  --line: rgba(30, 26, 18, 0.12);
  --line-gold: rgba(184, 134, 11, 0.40);

  --card-bg: #ffffff;
  --card-shadow: 0 16px 40px rgba(70, 55, 15, 0.13);
  --nav-bg: rgba(255, 255, 255, 0.90);
  --drawer-bg: rgba(255, 255, 255, 0.98);
  --announce-bg: linear-gradient(90deg, #fbf6ec, #f4ead3, #fbf6ec);
  --hero-grad: radial-gradient(ellipse 70% 80% at 50% 0%, #fdf4e2 0%, transparent 62%);
  --statbar-bg: #f6f2ea;
  --select-bg: #ffffff;
  --grain-opacity: 0;
  --announce-ink: #936300;
  --footer-bg: #0a0a0a;
  --footer-bottom-bg: transparent;
  --footer-accent: #fcb900;
  --btn-shadow: 0 8px 22px rgba(40, 30, 5, 0.16);
  --btn-shadow-hover: 0 12px 30px rgba(40, 30, 5, 0.22);
  --logo-filter: none;
}

/* ---------- ORANGE THEME (Banlili — #F26522) ---------- */
html[data-theme="orange"] {
  --gold: #F26522;
  --gold-bright: #f47b43;
  --gold-light: #d9541a;
  --gold-deep: #d9541a;
  --gold-dim: rgba(217, 84, 26, 0.75);
  --gold-faint: rgba(242, 101, 34, 0.12);
  --gold-hair: rgba(242, 101, 34, 0.28);
  --gold-ink: #d9541a;

  --bg: #ffffff;
  --bg-soft: #f8f8f8;
  --bg-panel: #ffffff;
  --bg-card: #ffffff;
  --bg-elev: #ffffff;

  --ink: #2c2c2c;
  --ink-soft: #555555;
  --ink-mute: #888888;
  --heading: #1a1a2e;
  --on-gold: #ffffff;

  --line: #e5e5e5;
  --line-gold: rgba(242, 101, 34, 0.40);

  --card-bg: #ffffff;
  --card-shadow: 0 6px 24px rgba(26, 26, 46, 0.12);
  --nav-bg: rgba(255, 255, 255, 0.95);
  --drawer-bg: rgba(255, 255, 255, 0.98);
  --announce-bg: #F26522;
  --announce-ink: #ffffff;
  --hero-grad: radial-gradient(ellipse 70% 80% at 50% 0%, #fff3eb 0%, transparent 62%);
  --statbar-bg: #f8f8f8;
  --select-bg: #ffffff;
  --grain-opacity: 0;
  --announce-ink: #ffffff;
  --footer-bg: #1a1a2e;
  --footer-bottom-bg: #111122;
  --footer-accent: #F26522;
  --btn-shadow: 0 6px 18px rgba(242, 101, 34, 0.28);
  --btn-shadow-hover: 0 10px 26px rgba(242, 101, 34, 0.38);
  --logo-filter: none;
}

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

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

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1, "calt" 1;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}

body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 1; opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
}

::selection { background: rgba(252, 185, 0, 0.28); color: #120d02; }

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

main { flex: 1 0 auto; position: relative; z-index: 2; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(20px, 5vw, 64px); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 500; line-height: 1.12; color: var(--heading); letter-spacing: 0.01em; }
h1 { font-size: clamp(2.4rem, 5vw, 4rem); font-weight: 400; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 400; }
h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
h4 { font-size: 1.25rem; }
p { margin-bottom: 1rem; }
strong { color: var(--heading); font-weight: 600; }

.eyebrow {
  display: inline-block; font-family: var(--sans); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold-ink);
  padding-left: 0.42em; margin-bottom: 1rem;
}
.lead { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--ink-soft); }

.rule {
  width: 64px; height: 1px; background: var(--gold);
  box-shadow: 0 0 6px rgba(252, 185, 0, 0.5); margin: 1.1rem 0 0;
}
.rule.center { margin-left: auto; margin-right: auto; }

.ornament { display: flex; align-items: center; gap: 0.7rem; color: var(--gold-dim); }
.ornament.center { justify-content: center; }
.ornament .line { width: 30px; height: 1px; background: currentColor; opacity: 0.6; }
.ornament .diamond { width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem; cursor: pointer;
  font-family: var(--sans); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.95rem 2rem; border-radius: var(--radius);
  border: 1px solid transparent; transition: all 0.4s var(--ease); white-space: nowrap;
}
.btn-primary { background: var(--gold); color: var(--on-gold); box-shadow: var(--btn-shadow); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: var(--btn-shadow-hover); }
.btn-ghost { background: transparent; color: var(--gold-ink); border-color: var(--line-gold); }
.btn-ghost:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: translateY(-2px); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.72rem; }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-gold);
  background: transparent; color: var(--gold-ink); cursor: pointer; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center; font-size: 0.9rem;
  transition: all 0.35s var(--ease);
}
.theme-toggle:hover { background: var(--gold); color: var(--on-gold); border-color: var(--gold); transform: translateY(-1px); }
.theme-toggle .ti { display: none; }
html[data-theme="dark"] .theme-toggle .ti-dark { display: inline; }
html[data-theme="light"] .theme-toggle .ti-light { display: inline; }
html[data-theme="orange"] .theme-toggle .ti-orange { display: inline; }

/* Theme logo swap (orange theme uses the orange mark) */
.logo-orange { display: none; }
html[data-theme="orange"] .logo-default { display: none; }
html[data-theme="orange"] .logo-orange { display: block; }

/* ---------- Top announcement bar ---------- */
.announce {
  background: var(--announce-bg); border-bottom: 1px solid var(--gold-faint);
  font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase;
  color: var(--announce-ink); position: relative; z-index: 60;
}
.announce .wrap { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 1rem; }
.announce a { color: var(--announce-ink); transition: color 0.3s; }
.announce a:hover { color: var(--heading); }
.announce .links { display: flex; gap: 1.4rem; }

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 76px; }
.brand { display: flex; align-items: center; gap: 0.8rem; flex-shrink: 0; }
.brand img { height: 58px; width: auto; filter: var(--logo-filter); }
.brand .brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand .brand-name { font-family: var(--serif); font-size: 1.15rem; letter-spacing: 0.22em; color: var(--gold-ink); text-transform: uppercase; }
.brand .brand-sub { font-size: 0.5rem; letter-spacing: 0.34em; color: var(--ink-mute); text-transform: uppercase; margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 0.3rem; margin-left: auto; }
.nav-links > li { position: relative; }
.nav-links > li > a {
  display: flex; align-items: center; gap: 0.4rem; height: 76px; padding: 0 1rem;
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft); transition: color 0.3s;
}
.nav-links > li > a:hover, .nav-links > li.active > a { color: var(--gold-ink); }
.nav-links > li > a .caret { font-size: 0.5rem; opacity: 0.7; transition: transform 0.3s; }
.nav-links > li:hover > a .caret { transform: rotate(180deg); }

.dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%) translateY(10px);
  background: var(--bg-panel); border: 1px solid var(--line-gold); border-radius: 6px;
  min-width: 250px; padding: 0.5rem; opacity: 0; visibility: hidden;
  box-shadow: var(--card-shadow); transition: all 0.32s var(--ease);
}
.dropdown.mega { min-width: 540px; display: grid; grid-template-columns: 1fr 1fr; gap: 0.2rem; }
.nav-links > li:hover .dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.dropdown a {
  display: flex; align-items: center; gap: 0.7rem; padding: 0.6rem 0.8rem; border-radius: 4px;
  font-size: 0.82rem; color: var(--ink-soft); transition: all 0.25s;
}
.dropdown a i { width: 18px; text-align: center; color: var(--gold); font-size: 0.85rem; }
.dropdown a:hover { background: var(--gold-faint); color: var(--heading); }
.dropdown .group-label {
  grid-column: 1 / -1; font-size: 0.6rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold-ink); padding: 0.7rem 0.8rem 0.3rem;
}
.nav-cta { margin-left: 0.4rem; flex-shrink: 0; }
.nav-toggle { display: none; background: none; border: 0; color: var(--gold-ink); font-size: 1.3rem; cursor: pointer; }

/* Mobile drawer */
.drawer { display: none; }

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-inner .theme-toggle { margin-left: auto; }
  .nav-toggle { display: block; margin-left: 0.6rem; }
  .drawer {
    display: block; position: fixed; inset: 0; z-index: 300; background: var(--drawer-bg);
    backdrop-filter: blur(8px); transform: translateX(100%); transition: transform 0.45s var(--ease);
    padding: 90px 8vw 40px; overflow-y: auto;
  }
  .drawer.open { transform: translateX(0); }
  .drawer a { display: block; padding: 0.85rem 0; font-size: 1rem; letter-spacing: 0.1em; color: var(--ink); border-bottom: 1px solid var(--line); }
  .drawer a.group-label { color: var(--gold-ink); font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase; border: 0; padding-top: 1.4rem; }
  .drawer-close { position: absolute; top: 26px; right: 8vw; background: none; border: 0; color: var(--gold-ink); font-size: 1.6rem; cursor: pointer; }
}

/* ---------- Page hero ---------- */
.hero {
  position: relative; padding: clamp(70px, 12vh, 140px) 0 clamp(50px, 8vh, 90px);
  text-align: center; overflow: hidden;
  background: var(--hero-grad), var(--bg);
  border-bottom: 1px solid var(--line);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 24ch; margin: 0 auto; text-wrap: balance; font-size: clamp(1.8rem, 5.5vw, 4rem); }
.hero h1 .brand-line { display: block; }
.nb { white-space: nowrap; }
.hero .subline { font-size: clamp(0.95rem, 1.6vw, 1.2rem); color: var(--gold-ink); letter-spacing: 0.04em; margin-top: 1rem; font-family: var(--serif); font-style: italic; }
.hero .hero-body { max-width: 60ch; margin: 1.6rem auto 0; color: var(--ink-soft); font-size: 1.05rem; }
.hero .hero-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 2.2rem; }
.hero .ornament { margin: 1.3rem auto 0; }

/* ---------- Sections ---------- */
section.block { padding: clamp(56px, 9vh, 104px) 0; position: relative; }
section.block.alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(2.2rem, 5vw, 3.4rem); }
.section-head.left { text-align: left; margin-left: 0; }
.section-head h2 { margin-bottom: 0.3rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.9rem; }
.section-head .rule { margin-top: 1.1rem; }
.section-head.left .rule { margin-left: 0; }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--card-bg);
  border: 1px solid var(--line); border-radius: 8px; padding: 2rem 1.8rem;
  transition: all 0.45s var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0; transition: opacity 0.45s;
}
.card:hover { border-color: var(--line-gold); transform: translateY(-4px); box-shadow: var(--card-shadow); }
.card:hover::before { opacity: 1; }
.card .card-icon {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-gold); color: var(--gold); font-size: 1.25rem; margin-bottom: 1.2rem;
  background: radial-gradient(circle, rgba(252, 185, 0, 0.08), transparent);
  transition: all 0.45s var(--ease);
}
.card:hover .card-icon { background: var(--gold); color: var(--on-gold); box-shadow: 0 0 18px rgba(252, 185, 0, 0.45); transform: rotate(360deg); }
.card h3, .card h4 { color: var(--heading); margin-bottom: 0.5rem; }
.card .cat-tag { font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-ink); display: block; margin-bottom: 0.4rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; margin-bottom: 1.2rem; }
.card .card-link { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); display: inline-flex; align-items: center; gap: 0.5rem; transition: gap 0.3s; }
.card:hover .card-link { gap: 0.9rem; }

/* ---------- Stat bar ---------- */
.statbar { background: var(--statbar-bg); border-top: 1px solid var(--gold-faint); border-bottom: 1px solid var(--gold-faint); }
.statbar .grid { grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { text-align: center; padding: 2.6rem 1rem; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .val { font-family: var(--serif); font-size: clamp(2.4rem, 5vw, 3.6rem); color: var(--gold-ink); line-height: 1; }
.stat .lbl { font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-soft); margin-top: 0.7rem; }

/* ---------- Mission / quote callout ---------- */
.callout { max-width: 70ch; margin: 0 auto; text-align: center; }
.callout blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.4rem, 3vw, 2rem); color: var(--gold-ink); line-height: 1.4; }
.callout blockquote::before { content: "\201C"; color: var(--gold-dim); }

/* ---------- Testimonials ---------- */
.quote-card { background: var(--bg-card); border: 1px solid var(--line); border-left: 2px solid var(--gold); border-radius: 8px; padding: 2rem; }
.quote-card .qicon { color: var(--gold-dim); font-size: 1.6rem; margin-bottom: 0.8rem; }
.quote-card p { color: var(--ink); font-style: italic; font-family: var(--serif); font-size: 1.18rem; line-height: 1.5; }
.quote-card .who { margin-top: 1.2rem; font-size: 0.8rem; letter-spacing: 0.1em; }
.quote-card .who strong { color: var(--gold-ink); }
.quote-card .who span { color: var(--ink-mute); }

/* ---------- Timeline ---------- */
.timeline { max-width: 760px; margin: 0 auto; position: relative; padding-left: 2rem; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: linear-gradient(var(--gold), var(--gold-faint)); }
.timeline li { position: relative; padding: 0 0 2rem 1.6rem; }
.timeline li::before { content: ""; position: absolute; left: -1.6rem; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(252, 185, 0, 0.12); transform: translateX(2px); }
.timeline .yr { font-family: var(--serif); font-size: 1.3rem; color: var(--gold-ink); }
.timeline .ms { color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-item { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 0.8rem; background: var(--bg-card); overflow: hidden; transition: border-color 0.3s; }
.faq-item[open] { border-color: var(--line-gold); }
.faq-item summary { cursor: pointer; list-style: none; padding: 1.2rem 1.5rem; display: flex; justify-content: space-between; gap: 1rem; align-items: center; font-family: var(--serif); font-size: 1.2rem; color: var(--heading); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { color: var(--gold); transition: transform 0.3s; flex-shrink: 0; }
.faq-item[open] summary .plus { transform: rotate(45deg); }
.faq-item .faq-body { padding: 0 1.5rem 1.4rem; color: var(--ink-soft); }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.form-row { display: flex; flex-direction: column; gap: 0.5rem; }
.form-row.full { grid-column: 1 / -1; }
.form-row label { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-ink); }
.field-input {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1rem; color: var(--ink); font-family: var(--sans); font-size: 0.95rem; transition: all 0.3s;
}
.field-input::placeholder { color: var(--ink-mute); }
.field-input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(252, 185, 0, 0.16); background: var(--bg-panel); }
.field-select { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path d='M2 4l4 4 4-4' stroke='%23fcb900' stroke-width='1.5' fill='none'/></svg>"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.4rem; }
.field-select option { background: var(--select-bg); color: var(--ink); }
.field-textarea { resize: vertical; min-height: 110px; }
.form-errors { color: #d9483b; font-size: 0.8rem; }

/* ---------- CTA band (dark island in both themes) ---------- */
.cta-band {
  --ink-soft: #c4bcab;
  background: linear-gradient(120deg, #150f02, #2a1d02, #150f02);
  border-top: 1px solid var(--gold-faint); border-bottom: 1px solid var(--gold-faint); text-align: center;
}
.cta-band h2 { color: var(--gold-bright); }
.cta-band p { color: var(--ink-soft); max-width: 50ch; margin: 0.8rem auto 1.8rem; }

/* ---------- App store badges ---------- */
.app-badges { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.app-badge {
  display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.55rem 1.1rem;
  border: 1px solid var(--line-gold); border-radius: 8px; background: rgba(252, 185, 0, 0.05);
  transition: all 0.35s var(--ease); min-width: 168px;
}
.app-badge:hover { background: var(--gold); border-color: var(--gold); transform: translateY(-2px); }
.app-badge:hover .ab-text, .app-badge:hover i { color: var(--on-gold); }
.app-badge i { font-size: 1.7rem; color: var(--gold); transition: color 0.35s; }
.app-badge .ab-text { display: flex; flex-direction: column; line-height: 1.1; color: var(--ink); transition: color 0.35s; }
.app-badge .ab-text small { font-size: 0.56rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-mute); }
.app-badge:hover .ab-text small { color: rgba(18, 13, 2, 0.7); }
.app-badge .ab-text strong { font-size: 0.95rem; font-weight: 600; }

/* ---------- Footer (#0a0a0a — dark island in both themes) ---------- */
.footer {
  --ink: #ece6d8; --ink-soft: #b7b0a1; --ink-mute: #8c857a; --heading: #ffffff;
  --line: rgba(255, 255, 255, 0.08); --line-gold: rgba(255, 255, 255, 0.16);
  --gold: var(--footer-accent); --gold-bright: var(--footer-accent); --gold-ink: var(--footer-accent);
  --gold-faint: rgba(255, 255, 255, 0.06); --gold-dim: rgba(255, 255, 255, 0.4);
  background: var(--footer-bg); border-top: 1px solid rgba(255, 255, 255, 0.08); position: relative; z-index: 2;
}
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 2.4rem; padding: clamp(40px, 7vw, 72px) 0 3rem; }
.footer-brand img { height: 56px; margin-bottom: 1rem; filter: var(--logo-filter); }
.footer-brand p { color: var(--ink-soft); font-size: 0.9rem; max-width: 34ch; }
.footer h4 { font-family: var(--sans); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 1.3rem; }
.footer ul li { margin-bottom: 0.7rem; }
.footer ul li a { color: var(--ink-soft); font-size: 0.9rem; transition: all 0.3s; display: inline-flex; gap: 0.5rem; align-items: center; }
.footer ul li a::before { content: "\203A"; color: var(--gold); opacity: 0; margin-left: -0.8rem; transition: all 0.3s; }
.footer ul li a:hover { color: var(--gold-bright); }
.footer ul li a:hover::before { opacity: 1; margin-left: 0; }
.footer .contact-line { display: flex; gap: 0.7rem; color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 0.7rem; }
.footer .contact-line i { color: var(--gold); width: 16px; text-align: center; margin-top: 4px; }
.footer .social { display: flex; gap: 0.6rem; margin-top: 1.3rem; }
.footer .social a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line-gold); display: flex; align-items: center; justify-content: center; color: var(--gold-dim); transition: all 0.35s var(--ease); }
.footer .social a:hover { background: var(--gold); color: var(--on-gold); transform: translateY(-3px); }
.footer-apps { margin-top: 1.5rem; }
.footer-apps .apps-title { font-size: 0.64rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 0.7rem; }
.footer-bottom { border-top: 1px solid var(--line); padding: 1.4rem 0; background: var(--footer-bottom-bg); }
.footer-bottom .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.footer-bottom p { color: var(--ink-mute); font-size: 0.78rem; margin: 0; }
.footer-bottom .legal { display: flex; gap: 1.2rem; }
.footer-bottom .legal a { color: var(--ink-soft); font-size: 0.78rem; transition: color 0.3s; }
.footer-bottom .legal a:hover { color: var(--gold-bright); }

/* ---------- Messages ---------- */
.messages { position: fixed; top: 90px; right: 20px; z-index: 400; display: flex; flex-direction: column; gap: 0.6rem; max-width: 360px; }
.toast { background: var(--bg-elev); border: 1px solid var(--line-gold); border-left: 3px solid var(--gold); border-radius: 6px; padding: 0.9rem 1.2rem; color: var(--ink); font-size: 0.88rem; box-shadow: var(--card-shadow); animation: toastIn 0.5s var(--ease); }
.toast.success { border-left-color: #2d9d6f; }
@keyframes toastIn { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

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

/* ---------- Breadcrumb ---------- */
.crumb { font-size: 0.72rem; letter-spacing: 0.08em; color: var(--ink-mute); padding: 1.4rem 0; }
.crumb a { color: var(--gold-ink); } .crumb a:hover { color: var(--gold-bright); }
.crumb i { font-size: 0.5rem; margin: 0 0.5rem; opacity: 0.6; }

/* ---------- Prose ---------- */
.prose { color: var(--ink-soft); max-width: 70ch; }
.prose p { margin-bottom: 1.1rem; }
.prose h2, .prose h3 { color: var(--heading); margin: 1.8rem 0 0.8rem; }
.prose blockquote { border-left: 2px solid var(--gold); padding-left: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--gold-ink); margin: 1.4rem 0; }
.prose ul { margin: 0 0 1.1rem 0; }
.prose ul li { position: relative; padding-left: 1.6rem; margin-bottom: 0.6rem; color: var(--ink-soft); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 7px; height: 7px; border: 1px solid var(--gold); transform: rotate(45deg); }

/* ---------- Data table ---------- */
.dtable { width: 100%; border-collapse: collapse; margin: 1.2rem 0; }
.dtable th, .dtable td { text-align: left; padding: 0.9rem 1rem; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.dtable th { color: var(--gold-ink); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 600; }
.dtable td { color: var(--ink-soft); }
.dtable tr:hover td { background: rgba(252, 185, 0, 0.05); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .statbar .grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .grid.cols-4, .grid.cols-3, .grid.cols-2, .form-grid { grid-template-columns: 1fr; }
  .statbar .grid { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .announce .links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
