/* GERBFLOW 2026 design system.
   Dark trading-room ground, bone type, brand gold as the one committed accent.
   Program colours (GERBPRINT gold, Founders red, GERBALGO burn, Premium + cyan,
   Community blurple, Scale green) are markers only: rules, dots, small labels, their own CTA.
   Display: Archivo condensed caps. Text: Geist. Corners: sharp (2px) everywhere. */

:root {
  /* ground + type */
  --ink-0: #0B0B0C;
  --ink-1: #111113;
  --ink-2: #18181B;
  --ink-3: #222226;
  --bone: #EEEAE1;
  --bone-2: #BDB7AA;
  --bone-3: #959084;
  --line: rgba(238, 234, 225, .12);
  --line-2: rgba(238, 234, 225, .24);

  /* brand */
  --gold: #D4AF55;
  --gold-hi: #E9CB7E;
  --gold-lo: #8A6F2C;
  --on-gold: #0B0B0C;

  /* program markers */
  --c-gp: #D4AF55;   --t-gp: #E9CB7E;
  --c-fd: #C84C4C;   --t-fd: #EE8A8A;
  --c-algo: #E0601F; --t-algo: #FF8A3D;
  --burn: linear-gradient(135deg, #FF9A3C 0%, #F2701F 35%, #C8420C 70%, #8A2408 100%);
  --c-prem: #3CC8D8; --t-prem: #8EE3EC;
  --c-free: #5865F2; --t-free: #9CA4F8;
  --c-scale: #2FD18B; --t-scale: #8EEBC0;
  --c-life: #B27BE8;

  /* type */
  --f-display: 'Archivo', 'Arial Narrow', sans-serif;
  --f-text: 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  /* 10-03 type pass: Gerb said the display type read too big / bulky / bold.
     Sizes ~20-25% smaller at the top end, weight 800 -> 700 (headlines) / 650 (small display bits),
     looser leading. Original kept in css/gf-2026.before-type.css. */
  --fs-mega: clamp(2.6rem, 7vw, 4.5rem);
  --fs-h2: clamp(2rem, 4.4vw, 3.25rem);
  --fs-h3: clamp(1.35rem, 2.3vw, 1.8rem);
  --w-display: 700;
  --w-head: 650;
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: .875rem;
  --fs-micro: .75rem;

  /* space (8px base) */
  --s-1: .25rem; --s-2: .5rem; --s-3: .75rem; --s-4: 1rem; --s-5: 1.5rem;
  --s-6: 2rem; --s-7: 3rem; --s-8: 4rem; --s-9: 6rem; --s-10: 8rem;
  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 1320px;
  --section: clamp(4.5rem, 10vw, 8.5rem);

  --radius: 2px;
  --nav-h: 64px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, .7);

  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; max-width: 100%; }
body {
  background: var(--ink-0); color: var(--bone);
  font: 400 var(--fs-body)/1.6 var(--f-text);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "tnum";
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--gold); color: var(--on-gold); }
:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 3px; }
html { scrollbar-color: var(--ink-3) var(--ink-0); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink-0); }
::-webkit-scrollbar-thumb { background: var(--ink-3); border: 2px solid var(--ink-0); }
section[id], [id="top"] { scroll-margin-top: var(--nav-h); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 9999; background: var(--gold); color: var(--on-gold); padding: 10px 14px; font: 600 14px/1 var(--f-text); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- type ---------- */
.gf-display, .gf-h2, .gf-h3 {
  font-family: var(--f-display); font-stretch: 72%; font-weight: var(--w-display);
  text-transform: uppercase; letter-spacing: .005em; line-height: .98;
  text-wrap: balance; color: var(--bone);
}
.gf-display { font-size: var(--fs-mega); }
.gf-h2 { font-size: var(--fs-h2); }
.gf-h3 { font-size: var(--fs-h3); line-height: 1.05; }
.gf-gold { color: var(--gold); }
.gf-lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--bone-2); max-width: 60ch; text-wrap: pretty; }
.gf-body { color: var(--bone-2); max-width: 66ch; text-wrap: pretty; }
.gf-note { font-size: var(--fs-small); color: var(--bone-3); line-height: 1.55; }
.gf-label { font: 600 var(--fs-micro)/1.2 var(--f-text); letter-spacing: .14em; text-transform: uppercase; color: var(--bone-3); }
.gf-num { font-family: var(--f-display); font-stretch: 72%; font-weight: var(--w-display); font-variant-numeric: tabular-nums; line-height: 1; }

/* ---------- mark: three stacked chevrons, never a word under it ---------- */
.gf-mark { width: 28px; height: 28px; color: var(--gold); flex: none; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: square; stroke-linejoin: miter; }

/* ---------- layout ---------- */
.gf-wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.gf-section { padding: var(--section) 0; position: relative; }
.gf-rule { border: 0; border-top: 1px solid var(--line); }

/* ---------- buttons ---------- */
.gf-btn {
  --c: var(--gold); --on-c: var(--on-gold);
  display: inline-flex; align-items: center; justify-content: center; gap: .65rem;
  min-height: 48px; padding: 0 1.4rem; border: 1px solid transparent; border-radius: var(--radius);
  font: 600 .8125rem/1 var(--f-text); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
  text-decoration: none; cursor: pointer; background: var(--c); color: var(--on-c);
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}
.gf-btn:hover { box-shadow: var(--shadow); transform: translateY(-1px); filter: brightness(1.08); }
.gf-btn:active { transform: translateY(0) scale(.985); }
.gf-btn svg { width: 16px; height: 16px; flex: none; transition: transform .25s var(--ease); }
.gf-btn:hover svg { transform: translateX(3px); }
.gf-btn--line { background: transparent; color: var(--bone); border-color: var(--line-2); }
.gf-btn--line:hover { border-color: var(--c); color: var(--c); filter: none; }
.gf-btn--sm { min-height: 40px; padding: 0 1rem; font-size: .75rem; }
.gf-btn--discord { --c: #5865F2; --on-c: #FFFFFF; }
.gf-btn--ink { --c: var(--ink-0); --on-c: var(--bone); }
.gf-btn[data-door="algo"], [data-door="algo"] .gf-btn:not(.gf-btn--line) { background: var(--burn); color: #0A0605; }
.gf-arrow { fill: none; stroke: currentColor; stroke-width: 1.6; }

/* text link with arrow */
.gf-link { display: inline-flex; align-items: center; gap: .5rem; color: var(--bone); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: .3em; font-weight: 500; transition: text-decoration-color .2s, color .2s; }
.gf-link:hover { color: var(--gold-hi); text-decoration-color: currentColor; }

/* ---------- program markers ---------- */
[data-door="gp"]   { --c: var(--c-gp);   --t: var(--t-gp);   --on-c: #0B0B0C; }
[data-door="fd"]   { --c: var(--c-fd);   --t: var(--t-fd);   --on-c: #FFFFFF; }
[data-door="algo"] { --c: var(--c-algo); --t: var(--t-algo); --on-c: #0A0605; }
[data-door="prem"] { --c: var(--c-prem); --t: var(--t-prem); --on-c: #0B0B0C; }
[data-door="free"] { --c: var(--c-free); --t: var(--t-free); --on-c: #FFFFFF; }
.gf-pip { width: 9px; height: 9px; background: var(--c); flex: none; transform: rotate(45deg); }
[data-door="algo"] .gf-pip, .gf-pip[data-door="algo"] { background: var(--burn); }

/* ---------- nav ---------- */
.gf-nav {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-5);
  padding: 0 var(--gutter);
  background: rgba(11, 11, 12, .86); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.gf-brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.gf-brand-word { font: var(--w-display) 1.3rem/1 var(--f-display); font-stretch: 72%; letter-spacing: .04em; color: var(--bone); }
.gf-nav-links { display: flex; list-style: none; gap: 0; }
.gf-nav-links a {
  display: flex; align-items: center; height: var(--nav-h); padding: 0 .9rem;
  font: 500 .8125rem/1 var(--f-text); letter-spacing: .06em; text-transform: uppercase;
  color: var(--bone-2); text-decoration: none; box-shadow: inset 0 -2px 0 transparent;
  transition: color .2s, box-shadow .2s;
}
.gf-nav-links a:hover { color: var(--bone); }
.gf-nav-links a[aria-current="true"] { color: var(--gold-hi); box-shadow: inset 0 -2px 0 var(--gold); }
.gf-nav-right { display: flex; align-items: center; gap: .75rem; }
.gf-login {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--bone-2); text-decoration: none;
  transition: border-color .2s, color .2s;
}
.gf-login:hover, .gf-login:focus-visible { border-color: var(--gold); color: var(--gold-hi); }
.gf-login svg { width: 17px; height: 17px; }
.gf-tip {
  position: absolute; top: calc(100% + 10px); right: 0; padding: 7px 12px; white-space: nowrap; pointer-events: none;
  background: var(--ink-2); border: 1px solid var(--line-2); color: var(--bone-2); font-size: .75rem; opacity: 0; transition: opacity .2s;
}
.gf-login:hover .gf-tip, .gf-login:focus-visible .gf-tip { opacity: 1; }

/* mobile bottom nav */
.gf-mnav { display: none; }

/* ---------- footer ---------- */
.gf-footer { border-top: 1px solid var(--line); padding: var(--s-8) 0 var(--s-6); background: var(--ink-0); }
.gf-footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-5); padding-bottom: var(--s-6); border-bottom: 1px solid var(--line); }
.gf-footer-links { display: flex; flex-wrap: wrap; gap: .5rem 2rem; list-style: none; }
.gf-footer-links a { color: var(--bone-2); text-decoration: none; font: 500 .8125rem/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; padding: 6px 0; display: inline-block; }
.gf-footer-links a:hover { color: var(--gold-hi); }
.gf-footer-copy { padding-top: var(--s-5); color: var(--bone-3); font-size: .8125rem; line-height: 1.75; }
.gf-footer-copy a { color: var(--bone-2); }

/* ---------- reveal (content visible by default; JS opts in) ---------- */
.gf-reveal { opacity: 0; transform: translateY(18px); filter: blur(4px); transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease); }
.gf-reveal.gf-in { opacity: 1; transform: none; filter: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .gf-nav-links a { padding: 0 .6rem; font-size: .75rem; }
}
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .gf-nav-links { display: none; }
  .gf-nav-x { display: none; }
  body { padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .gf-mnav {
    display: flex; position: fixed; inset: auto 0 0; z-index: 200;
    height: calc(60px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: rgba(11, 11, 12, .97); border-top: 1px solid var(--line);
  }
  .gf-mnav a {
    flex: 1; display: flex; align-items: center; justify-content: center; text-decoration: none;
    font: 600 .6875rem/1 var(--f-text); letter-spacing: .08em; text-transform: uppercase; color: var(--bone-3);
    box-shadow: inset 0 2px 0 transparent;
  }
  .gf-mnav a[aria-current="true"] { color: var(--gold-hi); box-shadow: inset 0 2px 0 var(--gold); }
  .gf-mnav a.gf-mnav-cta { background: var(--gold); color: var(--on-gold); }
  .gf-footer-top { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .gf-reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
}
