/* ===========================================================================
   BFM STANDARD — mirror of freedom.css architecture in Signal Green palette
   Black Flag Media · obsidian + signal green + cream
   Fonts: General Sans (Fontshare) + JetBrains Mono
   Contrast floor: WCAG AA on all body copy.
   =========================================================================== */

:root {
  --bg: #0C0D0E;
  --bg-2: #050505;
  --panel: #131414;
  --panel-2: #1A1B1C;
  --line: rgba(245,242,234,0.10);
  --line-strong: rgba(245,242,234,0.22);

  --gold: #3FE0A0;          /* signal green (kept name for backwards compat) */
  --gold-deep: #34C88A;
  --gold-dim: rgba(63,224,160,0.10);
  --accent: #3FE0A0;

  --white: #F5F2EA;         /* cream */
  --text: #F5F2EA;
  --muted: rgba(245,242,234,0.82);   /* was 0.62-0.72, bumped for AA */
  --muted-2: rgba(245,242,234,0.68); /* labels + captions only */
  --dim: rgba(245,242,234,0.55);     /* microcopy only, never body */

  --ff-head: 'General Sans','Inter',-apple-system,sans-serif;
  --ff-body: 'General Sans','Inter',-apple-system,sans-serif;
  --ff-mono: 'JetBrains Mono', ui-monospace, monospace;

  --r-lg: 22px;
  --r-md: 12px;
  --r-sm: 8px;
  --maxw: 1160px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; background: var(--bg); }
body { font-family: var(--ff-body); color: var(--text); background: var(--bg); line-height: 1.65; overflow-x: hidden; font-size: 17px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }
.container-tight { max-width: 820px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 32px); }

/* ── Type scale (WCAG-safe, mobile-mandatory floors) ───────────── */
h1, h2, h3, h4, .display {
  font-family: var(--ff-head);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--white);
}
h1 { font-size: clamp(32px, 6.4vw, 76px); letter-spacing: -0.03em; word-wrap: break-word; overflow-wrap: break-word; }
h2 { font-size: clamp(26px, 5vw, 54px); word-wrap: break-word; overflow-wrap: break-word; }
h3 { font-size: clamp(20px, 3vw, 32px); font-weight: 700; letter-spacing: -0.01em; }
h4 { font-size: clamp(17px, 2.2vw, 22px); font-weight: 700; letter-spacing: -0.005em; text-transform: none; }
p  { font-size: 17px; line-height: 1.65; color: var(--muted); }
.lede { font-size: clamp(18px, 2.2vw, 22px); color: var(--white); line-height: 1.55; font-weight: 400; }
.sub  { font-size: clamp(17px, 2vw, 20px); color: var(--muted); line-height: 1.6; }

.eyebrow {
  font-family: var(--ff-mono);
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:''; width:8px; height:8px; border-radius:50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.kicker { margin-bottom: 18px; }

.center { text-align: center; }
.measure { max-width: 760px; }
.center .measure { margin: 0 auto; }

.accent { color: var(--gold); }
.mark { color: var(--gold); background: none; padding: 0 2px; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--ff-head); font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em;
  font-size: 14px; padding: 17px 32px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn-primary {
  color: #08221F; background: linear-gradient(120deg, var(--gold), #5FEFB0);
  box-shadow: 0 12px 32px -10px rgba(63,224,160,.55), inset 0 0 0 1px rgba(255,255,255,.15);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -10px rgba(63,224,160,.75); }
.btn-ghost { color: var(--white); background: rgba(245,242,234,.06); box-shadow: inset 0 0 0 1px rgba(245,242,234,.30); }
.btn-ghost:hover { background: rgba(245,242,234,.12); transform: translateY(-2px); }
.btn-dark { color: var(--white); background: #1D1E20; box-shadow: 0 10px 26px -10px rgba(0,0,0,.6), inset 0 0 0 1px var(--line); }
.btn-dark:hover { background: #262728; transform: translateY(-2px); }
.btn-lg { font-size: 15px; padding: 20px 40px; }

/* ── Sticky nav ──────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: var(--bg);
  transition: background .3s, backdrop-filter .3s, box-shadow .3s, padding .25s;
}
.nav.solid { background: rgba(12,13,14,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 1px 0 var(--line); padding: 12px 28px; }
.nav .brand { display: flex; align-items: center; gap: 11px; font-family: var(--ff-head); font-weight: 700; letter-spacing: 0.16em; color: var(--white); text-transform: uppercase; font-size: 14px; }
.nav .brand b { color: var(--gold); }
.nav .nav-links { display: flex; gap: 30px; align-items: center; }
.nav .nav-links a { font-size: 13px; color: var(--muted); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 500; transition: color .2s; }
.nav .nav-links a:hover { color: var(--white); }
.nav .nav-cta { display: flex; gap: 10px; align-items: center; }
.nav .nav-cta .btn { padding: 11px 22px; font-size: 12px; }
@media (max-width: 720px) {
  .nav .nav-links { display: none; }
  .nav { padding: 12px 16px; }
  .nav .brand { font-size: 12px; letter-spacing: 0.14em; }
  .nav .nav-cta .btn { padding: 10px 16px; font-size: 11px; letter-spacing: 0.08em; }
}
@media (max-width: 400px) {
  .nav .nav-cta .btn { padding: 9px 14px; font-size: 10.5px; }
}
.intro h1 { max-width: 100% !important; }

/* ── Section scaffolding ─────────────────────────────────── */
section { position: relative; }
.sec { padding: clamp(72px, 11vw, 128px) 0; }
.sec-panel { background: var(--panel); }
.sec-dark { background: var(--bg-2); }
.sec-tint { background: linear-gradient(180deg, var(--bg), var(--panel)); }
.sec-border-t { border-top: 1px solid var(--line); }
.sec-border-b { border-bottom: 1px solid var(--line); }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 92vh;
  display: flex; align-items: center;
  color: var(--white);
  background: radial-gradient(120% 120% at 80% 0%, #0F1614 0%, var(--bg) 55%, #030405 100%);
  overflow: hidden;
  padding-top: 90px;
}
.hero::before {
  content:""; position:absolute; inset:-20%;
  background:
    radial-gradient(40% 50% at 20% 30%, rgba(63,224,160,.20), transparent 60%),
    radial-gradient(35% 45% at 85% 25%, rgba(63,224,160,.10), transparent 60%),
    radial-gradient(45% 55% at 60% 90%, rgba(63,224,160,.14), transparent 60%);
  filter: blur(60px); animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift { from{ transform: translate3d(-3%, -2%, 0) scale(1);} to{ transform: translate3d(4%, 3%, 0) scale(1.10);} }
.hero .container { position: relative; z-index: 2; padding-top: 40px; padding-bottom: 60px; }
.hero h1 { font-size: clamp(40px, 6.8vw, 88px); }
.hero .sub { margin: 22px 0 30px; max-width: 660px; font-size: clamp(17px, 2vw, 21px); color: rgba(245,242,234,0.88); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── Reveal on scroll ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }
.reveal.d5 { transition-delay: .40s; } .reveal.d6 { transition-delay: .48s; }

/* ── Cards ──────────────────────────────────────────────── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin-top: 44px; }
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 30px 26px;
  transition: transform .3s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--gold); background: var(--panel-2); }
.card .ic { font-family: var(--ff-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.24em; color: var(--gold); margin-bottom: 14px; }
.card h4 { color: var(--white); margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 15.5px; }
.card .lk { display: inline-block; margin-top: 16px; font-weight: 700; color: var(--gold); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

/* ── Forms ──────────────────────────────────────────────── */
.field { display: block; margin-bottom: 22px; }
.field label { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 16px 18px; font-size: 16px;
  background: var(--panel); color: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font-family: var(--ff-body); line-height: 1.4;
  transition: border-color .2s, background .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); background: var(--panel-2); }
.field input::placeholder, .field textarea::placeholder { color: rgba(245,242,234,0.40); }

/* ── Trust strip ────────────────────────────────────────── */
.trust-strip {
  display: flex; gap: 26px; flex-wrap: wrap; align-items: center;
  margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line);
  font-size: 14px; color: var(--muted);
}
.trust-strip b { color: var(--white); font-weight: 700; }

/* ── Footer ─────────────────────────────────────────────── */
.footer { padding: 60px 0 40px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer .container { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 20px; }
.footer p { font-size: 13px; color: var(--muted-2); }
.footer a { color: var(--muted); font-size: 13px; }
.footer a:hover { color: var(--gold); }

/* ── Sticky Buy Bar (product pages) ──────────────────────── */
.sticky-buy {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
  background: rgba(12,13,14,0.96); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-top: 1px solid var(--gold);
  padding: 14px clamp(16px, 4vw, 40px);
  transform: translateY(100%); transition: transform .35s var(--ease);
  box-shadow: 0 -8px 28px rgba(0,0,0,.35);
}
.sticky-buy.visible { transform: translateY(0); }
.sticky-buy .inner {
  max-width: 720px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.sticky-buy .info { flex: 1; min-width: 0; }
.sticky-buy .name { font-family: var(--ff-head); font-weight: 700; font-size: 15px; color: var(--white); letter-spacing: -0.005em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-buy .price { font-family: var(--ff-mono); font-size: 13px; color: var(--gold); font-weight: 700; margin-top: 2px; letter-spacing: 0.02em; }
.sticky-buy .price small { color: var(--muted-2); font-weight: 500; letter-spacing: 0.04em; margin-left: 6px; font-size: 11px; }
.sticky-buy .btn { padding: 12px 20px; font-size: 13px; letter-spacing: 0.08em; flex-shrink: 0; }
@media (max-width: 500px) {
  .sticky-buy .name { font-size: 13.5px; }
  .sticky-buy .price { font-size: 12px; }
  .sticky-buy .btn { padding: 11px 16px; font-size: 12px; }
}

/* ── Utility ───────────────────────────────────────────── */
.hidden { display: none !important; }
.text-white { color: var(--white); }
.text-accent { color: var(--gold); }
.text-muted { color: var(--muted); }
