/* BallotCampaign — official marketing site.
   Editorial identity: Newsreader (display) · Inter (body) · Geist Mono (labels).
   LIGHT is the default theme (warm paper + ink + gold accent); dark via [data-theme="dark"].
   Design source: Documents/Designs/BallotCampaignOfficialWebsite (.pen). */

:root {
  /* light (default) */
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-2: #f2efe7;
  --border: rgba(26, 22, 14, 0.12);
  --border-strong: rgba(26, 22, 14, 0.22);
  --text: #1c1a14;
  --muted: #5c574c;
  --faint: #968f80;
  --accent: #b0831c;          /* gold, deepened for light-mode contrast */
  --accent-bright: #e8c25c;   /* gold as it appears inside dark chrome (logo box) */
  --silver: #6e7683;
  --overlay-1: rgba(26, 22, 14, 0.04);
  --overlay-2: rgba(26, 22, 14, 0.08);
  --btn-bg: #1c1a14;          /* ink primary button */
  --btn-fg: #faf8f3;
  --pillar-a: #fbf3e2;
  --pillar-b: #ffffff;
  --tier-hot: #fbf4e0;
  --cta-a: #f4ead1;
  --cta-b: #ffffff;
  --cta-c: #f2efe7;
  --glow: rgba(224, 184, 76, 0.25);
  --streak-gold: rgba(176, 131, 28, 0.35);
  --streak-silver: rgba(110, 118, 131, 0.25);
  --logo-box-border: transparent;
  --input-bg: rgba(26, 22, 14, 0.04);

  --maxw: 1200px;
  --font-display: "Newsreader", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", monospace;
}

[data-theme="dark"] {
  --bg: #050507;
  --surface: #0e0e14;
  --surface-2: #14141c;
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #ffffff;
  --muted: #9aa1ad;
  --faint: #6b7280;
  --accent: #e8c25c;
  --accent-bright: #e8c25c;
  --silver: #c7ccd6;
  --overlay-1: rgba(255, 255, 255, 0.04);
  --overlay-2: rgba(255, 255, 255, 0.08);
  --btn-bg: #e0b84c;          /* gold buttons work in dark */
  --btn-fg: #0a0803;
  --pillar-a: #1a150a;
  --pillar-b: #0e0e14;
  --tier-hot: #16120a;
  --cta-a: #1c160a;
  --cta-b: #0c0c12;
  --cta-c: #101018;
  --glow: rgba(224, 184, 76, 0.35);
  --streak-gold: rgba(224, 184, 76, 0.45);
  --streak-silver: rgba(199, 204, 214, 0.32);
  --logo-box-border: rgba(255, 255, 255, 0.15);
  --input-bg: rgba(255, 255, 255, 0.05);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.25s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; margin: 0; line-height: 1.12; letter-spacing: 0; }
p { margin: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent); }
.eyebrow.silver { color: var(--silver); }
.muted { color: var(--muted); }
.section { padding: 96px 0; position: relative; }
.section-head { max-width: 760px; margin: 0 auto 52px; text-align: center; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.section-head.left { text-align: left; align-items: flex-start; margin-left: 0; }
.section-head h2 { font-size: clamp(32px, 4.2vw, 46px); }
.section-head p { color: var(--muted); font-size: 17px; max-width: 620px; }

/* Buttons — ink primary in light, gold in dark (token-driven) */
.btn { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-body); font-weight: 600;
  font-size: 15px; padding: 13px 26px; border-radius: 8px; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, opacity .15s ease, background .15s ease, border-color .15s ease; }
.btn:hover { transform: translateY(-1px); opacity: .92; }
.btn-primary { background: var(--btn-bg); color: var(--btn-fg); }
.btn-ghost { background: var(--overlay-1); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--overlay-2); }
.btn .arw { transition: transform .15s ease; }
.btn:hover .arw { transform: translateX(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-box { width: 36px; height: 36px; border-radius: 9px; display: grid; place-items: center;
  background: #1c1a14; border: 1px solid var(--logo-box-border); flex-shrink: 0; }
.brand-word { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.05; }
.brand-word .b { color: var(--text); }
.brand-word .c { color: var(--accent); }
.brand-by { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.14em; color: var(--faint); }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--muted); font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .signin { font-size: 14.5px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 4px; }
.theme-toggle { background: none; border: 1px solid var(--border); border-radius: 8px; width: 38px; height: 38px;
  display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: color .15s, border-color .15s; }
.theme-toggle:hover { color: var(--text); border-color: var(--border-strong); }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }

/* Hero */
.hero { position: relative; text-align: center; padding: 84px 0 0; overflow: hidden; }
.streak { position: absolute; border-radius: 100px; filter: blur(46px); pointer-events: none; z-index: 0; }
.streak.s1 { width: 900px; height: 5px; background: var(--streak-gold); top: 150px; left: 8%; transform: rotate(8deg); }
.streak.s2 { width: 760px; height: 4px; background: var(--streak-silver); top: 420px; right: 2%; transform: rotate(-11deg); }
.streak.s3 { width: 680px; height: 6px; background: var(--streak-gold); top: 620px; left: -4%; transform: rotate(6deg); }
.hero > .container { position: relative; z-index: 1; }

/* Kicker — refined dot + label (no pill) */
.kicker { display: inline-flex; align-items: center; gap: 9px; }
.kicker .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--glow); }
.kicker span { font-family: var(--font-body); font-weight: 600; font-size: 12.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--muted); }

.hero h1 { font-size: clamp(42px, 6.6vw, 70px); margin: 24px 0 0; }
.hero h1 .grad { color: var(--accent); }
.hero-sub { max-width: 640px; margin: 22px auto 0; color: var(--muted); font-size: 17.5px; }
.hero-ctas { display: flex; gap: 14px; justify-content: center; margin-top: 30px; }
.brain-stage { position: relative; margin-top: 30px; display: grid; place-items: center; padding-bottom: 20px; }
.brain-glow { position: absolute; width: 780px; height: 420px; top: 60px;
  background: radial-gradient(ellipse at center, var(--glow), transparent 70%); pointer-events: none; }
.brain-stage img { position: relative; width: min(620px, 86vw); z-index: 1;
  filter: drop-shadow(0 30px 80px var(--glow)); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stat { text-align: center; padding: 34px 12px; }
.stat .v { font-family: var(--font-display); font-weight: 600; font-size: 32px; }
.stat .l { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-top: 4px; }

/* Cards / grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: 1fr 420px; gap: 24px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 28px; transition: border-color .2s, transform .2s, box-shadow .2s; }
.card:hover { border-color: var(--border-strong); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(26, 22, 14, 0.06); }
.card h3 { font-size: 21px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.icon-box { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 16px; }
.icon-box.gold { background: color-mix(in srgb, var(--accent) 12%, transparent); color: var(--accent); }
.icon-box.silver { background: var(--overlay-2); color: var(--silver); }
.icon-box svg { width: 23px; height: 23px; }

/* Pillars */
.pillar-hero { background: linear-gradient(120deg, var(--pillar-a), var(--pillar-b)); }
.pill-badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 100px; font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.11em; text-transform: uppercase; margin-bottom: 4px; }
.pill-badge.gold { background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.pill-badge.silver { background: var(--overlay-2); color: var(--silver); }
.pill-badge svg { width: 14px; height: 14px; }
.pillar-hero h3, .pillar-side h3 { font-size: 28px; margin: 14px 0 10px; line-height: 1.2; }

/* Steps */
.step { background: var(--overlay-1); }
.step .num { font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.14em; color: var(--accent); }
.step h3 { font-size: 24px; margin: 12px 0 8px; }

/* Trust */
.trust { display: grid; grid-template-columns: 520px 1fr; gap: 70px; align-items: center; }
.trust-rows { display: flex; flex-direction: column; gap: 14px; }
.trust-row { display: flex; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.trust-row svg { width: 24px; height: 24px; color: var(--accent); flex-shrink: 0; }
.trust-row h4 { font-family: var(--font-body); font-weight: 600; font-size: 15.5px; }
.trust-row p { color: var(--muted); font-size: 13.5px; }

/* Pricing */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.tier { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 30px 28px; display: flex; flex-direction: column; gap: 20px; }
.tier.hot { background: var(--tier-hot); border-color: var(--accent); }
.tier-top { display: flex; flex-direction: column; gap: 6px; }
.tier-title { display: flex; align-items: center; justify-content: space-between; }
.tier-title h3 { font-size: 23px; }
.hot-badge { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; background: var(--accent); color: var(--surface); padding: 4px 10px; border-radius: 100px; }
.tier p.desc { color: var(--muted); font-size: 13.5px; }
.tier ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.tier li { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 14px; }
.tier li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.tier .btn { justify-content: center; width: 100%; }

/* CTA band */
.cta-band { position: relative; overflow: hidden; border-radius: 18px; border: 1px solid var(--border);
  background: linear-gradient(115deg, var(--cta-a), var(--cta-b) 55%, var(--cta-c)); padding: 64px 40px; text-align: center; }
.cta-band h2 { font-size: clamp(32px, 4.6vw, 46px); max-width: 720px; margin: 0 auto; line-height: 1.15; }
.cta-band p { color: var(--muted); font-size: 16px; max-width: 560px; margin: 18px auto 0; }
.cta-band .hero-ctas { margin-top: 26px; }

/* Contact */
.contact { display: grid; grid-template-columns: 520px 1fr; gap: 80px; align-items: start; }
.contact-left h1 { font-size: clamp(36px, 4.6vw, 52px); margin: 12px 0; }
.contact-left .muted { font-size: 16px; }
.bullets { list-style: none; padding: 0; margin: 22px 0; display: flex; flex-direction: column; gap: 14px; }
.bullets li { display: flex; gap: 10px; align-items: center; color: var(--muted); font-size: 15px; }
.bullets svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.contact-left .brain-mini { width: 240px; opacity: .92; margin-top: 6px; }
.form-card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 36px 34px; display: flex; flex-direction: column; gap: 18px; }
.form-row { display: flex; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.field label { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.10em; text-transform: uppercase; color: var(--faint); }
.field input, .field textarea, .field select { width: 100%; padding: 13px 14px; border-radius: 8px; background: var(--input-bg);
  border: 1px solid var(--border); color: var(--text); font-family: var(--font-body); font-size: 14px; outline: none; transition: border-color .15s; }
.field input::placeholder, .field textarea::placeholder { color: var(--faint); }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 110px; }
.form-note { text-align: center; font-size: 12.5px; color: var(--faint); }
.form-flash { padding: 13px 16px; border-radius: 8px; background: color-mix(in srgb, var(--accent) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); color: var(--accent); font-size: 14px; }
.val { color: #c04545; font-size: 12px; }

/* Sector chips (Company page) */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip { padding: 10px 20px; border-radius: 100px; border: 1px solid var(--border); background: var(--overlay-1);
  color: var(--muted); font-size: 14.5px; font-weight: 500; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--border-strong); color: var(--text); }

/* Feature-page hero (war room / ai studio) */
.page-hero { padding: 84px 0 0; text-align: center; position: relative; overflow: hidden; }
.page-hero h1 { font-size: clamp(38px, 5.4vw, 58px); margin: 20px auto 0; max-width: 820px; }
.page-hero .hero-sub { margin-bottom: 8px; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 56px 0 40px; }
.footer-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-brand { max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; }
.footer-cols { display: flex; gap: 72px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col .t { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--faint); }
.footer-col a { color: var(--muted); font-size: 13.5px; transition: color .15s; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 10px; }
.footer-bottom .cr { font-size: 12.5px; color: var(--faint); }
.footer-bottom .made { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; color: var(--faint); }

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

/* Responsive */
@media (max-width: 900px) {
  .nav-links, .nav-cta .signin { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .tiers, .stats { grid-template-columns: 1fr; }
  .grid-2, .trust, .contact { grid-template-columns: 1fr; gap: 40px; }
  .stats { border: 1px solid var(--border); border-radius: 12px; }
  .stat { border-bottom: 1px solid var(--border); }
  .form-row { flex-direction: column; }
  .section { padding: 72px 0; }
  .footer-top { flex-direction: column; }
}
