/* ═══════════════════════════════════════════════════════════════════
   One Fox / Atabix — Design Tokens
   Colors, Typography, Spacing, Radii, Shadow, Motion
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Nunito+Sans:ital,opsz,wght@0,6..12,300;0,6..12,400;0,6..12,500;0,6..12,600;0,6..12,700;0,6..12,800;0,6..12,900;1,6..12,400;1,6..12,600&family=DM+Serif+Display&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* ── CORE BRAND — One Fox ─────────────────────────────── */
  --ofx-navy:            #0B236B;
  --ofx-navy-deep:       #060F2E;
  --ofx-orange:          #E35300;
  --ofx-orange-bright:   #FF6600;
  --ofx-orange-amber:    #E17000;
  --ofx-ice:             #F5F7FA;
  --ofx-white:           #FFFFFF;

  /* ── ATABIX PARENT PALETTE ────────────────────────────── */
  --atx-teal:            #14D2AB;
  --atx-forest:          #0A3D3A;
  --atx-emerald:         #00856A;
  --atx-deep-green:      #001E17;

  /* ── SUPPORTING / WARM ACCENTS ────────────────────────── */
  --ofx-gold:            #FBAE40;
  --ofx-coral:           #F26B43;
  --ofx-indigo-deep:     #0D0559;

  /* ── NEUTRALS ─────────────────────────────────────────── */
  --neutral-900:         #111827;
  --neutral-800:         #1F2937;
  --neutral-700:         #374151;
  --neutral-600:         #4B5563;
  --neutral-500:         #6B7280;
  --neutral-400:         #9CA3AF;
  --neutral-300:         #D1D5DB;
  --neutral-200:         #E5E7EB;
  --neutral-100:         #F3F4F6;
  --neutral-50:          #F9FAFB;

  /* ── SEMANTIC FG / BG ─────────────────────────────────── */
  --fg-1:                var(--ofx-navy);
  --fg-2:                var(--neutral-700);
  --fg-3:                var(--neutral-500);
  --fg-accent:           var(--ofx-orange);
  --fg-accent-hover:     var(--ofx-orange-bright);
  --fg-on-dark:          #FFFFFF;
  --fg-on-dark-muted:    rgba(255,255,255,0.72);

  --bg-page:             var(--ofx-ice);
  --bg-surface:          var(--ofx-white);
  --bg-raised:           var(--ofx-white);
  --bg-inset:            var(--neutral-100);
  --bg-dark:             var(--ofx-navy-deep);
  --bg-brand:            var(--ofx-navy);

  --border-subtle:       var(--neutral-200);
  --border-default:      var(--neutral-300);
  --border-strong:       var(--ofx-navy);

  /* ── SEMANTIC STATUS ──────────────────────────────────── */
  --status-success:      var(--atx-emerald);
  --status-info:         var(--ofx-navy);
  --status-warning:      var(--ofx-gold);
  --status-danger:       var(--ofx-coral);

  /* ── TYPOGRAPHY ───────────────────────────────────────── */
  --font-sans:           'Nunito Sans', 'Avenir Book', 'Avenir', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --font-display:        'DM Serif Display', 'Georgia', serif;
  --font-mono:           'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  --fw-book:             400;
  --fw-medium:           500;
  --fw-semibold:         600;
  --fw-bold:             700;
  --fw-black:            800;

  --text-hero:           4.125rem;
  --text-section:        3.25rem;
  --text-title:          2.75rem;
  --text-h1:             2.25rem;
  --text-h2:             1.75rem;
  --text-h3:             1.5rem;
  --text-body-lg:        1.25rem;
  --text-body:           1.125rem;
  --text-body-sm:        1rem;
  --text-caption:        0.875rem;
  --text-micro:          0.75rem;

  --lh-tight:            1.1;
  --lh-snug:             1.25;
  --lh-body:             1.5;
  --lh-relaxed:          1.65;

  --ls-tight:            -0.02em;
  --ls-normal:           0;
  --ls-wide:             0.05em;
  --ls-wider:            0.1em;

  /* ── SPACING (4px base) ──────────────────────────────── */
  --space-0:             0;
  --space-1:             0.25rem;
  --space-2:             0.5rem;
  --space-3:             0.75rem;
  --space-4:             1rem;
  --space-5:             1.5rem;
  --space-6:             2rem;
  --space-7:             2.5rem;
  --space-8:             3rem;
  --space-9:             4rem;
  --space-10:            6rem;

  /* ── RADII ───────────────────────────────────────────── */
  --radius-sm:           4px;
  --radius-md:           8px;
  --radius-lg:           12px;
  --radius-xl:           20px;
  --radius-pill:         999px;

  /* ── SHADOWS / ELEVATION ─────────────────────────────── */
  --shadow-xs:           0 1px 2px rgba(11, 35, 107, 0.04);
  --shadow-sm:           0 1px 3px rgba(11, 35, 107, 0.08), 0 1px 2px rgba(11, 35, 107, 0.04);
  --shadow-md:           0 4px 12px rgba(11, 35, 107, 0.08), 0 2px 4px rgba(11, 35, 107, 0.04);
  --shadow-lg:           0 12px 32px rgba(11, 35, 107, 0.12), 0 4px 8px rgba(11, 35, 107, 0.06);
  --shadow-xl:           0 24px 64px rgba(11, 35, 107, 0.18);
  --shadow-focus:        0 0 0 3px rgba(227, 83, 0, 0.25);

  /* ── MOTION ──────────────────────────────────────────── */
  --ease-standard:       cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out:            cubic-bezier(0, 0, 0.2, 1);
  --ease-in:             cubic-bezier(0.4, 0, 1, 1);
  --ease-spring:         cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast:       120ms;
  --duration-base:       200ms;
  --duration-slow:       320ms;

  /* ── LAYOUT ──────────────────────────────────────────── */
  --container-max:       1200px;
  --container-narrow:    880px;

  /* ── Z-INDEX ─────────────────────────────────────────── */
  --z-base:              0;
  --z-raised:            10;
  --z-dropdown:          50;
  --z-sticky:            100;
  --z-overlay:           200;
  --z-modal:             300;
}

/* ═══ SEMANTIC ELEMENT DEFAULTS ═══════════════════════════════════ */

body {
  font-family: var(--font-sans);
  font-weight: var(--fw-book);
  font-size: var(--text-body);
  line-height: var(--lh-body);
  color: var(--fg-1);
  background: var(--bg-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--fg-1);
  font-weight: var(--fw-bold);
  letter-spacing: var(--ls-tight);
  line-height: var(--lh-tight);
  text-wrap: balance;
}

h1 { font-size: var(--text-title); }
h2 { font-size: var(--text-h1); }
h3 { font-size: var(--text-h2); }
h4 { font-size: var(--text-h3); }
h5 { font-size: var(--text-body-lg); letter-spacing: 0; }
h6 {
  font-size: var(--text-caption);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--fg-3);
}

.display, .hero-title {
  font-family: var(--font-display);
  font-weight: var(--fw-book);
  font-size: var(--text-hero);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
}

p { font-size: var(--text-body); line-height: var(--lh-body); }
.lead { font-size: var(--text-body-lg); line-height: var(--lh-relaxed); color: var(--fg-2); }
small, .caption { font-size: var(--text-caption); color: var(--fg-3); }

a {
  color: var(--fg-accent);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-standard);
}
a:hover { color: var(--fg-accent-hover); text-decoration: underline; text-underline-offset: 3px; }
a:focus-visible { outline: none; box-shadow: var(--shadow-focus); border-radius: 2px; }

code, pre, kbd {
  font-family: var(--font-mono);
  font-size: 0.95em;
}
code {
  background: var(--bg-inset);
  padding: 0.15em 0.4em;
  border-radius: var(--radius-sm);
}

.eyebrow {
  font-size: var(--text-micro);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wider);
  color: var(--fg-accent);
}

.accent-underline {
  display: inline-block;
  padding-bottom: 0.25em;
  border-bottom: 3px solid var(--fg-accent);
}

.ofx-list { list-style: none; padding: 0; margin: 0; }
.ofx-list li {
  position: relative;
  padding-left: 1.75rem;
  margin-bottom: 0.6rem;
}
.ofx-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 10px; height: 10px;
  background: var(--fg-accent);
  transform: rotate(45deg);
}

*:focus-visible { outline: none; box-shadow: var(--shadow-focus); }
