/* ============================================================
   AXIOMATIC SYSTEMS - DESIGN SYSTEM
   Concept: Instrument-grade trust.
   Enterprise restraint + precision verification-signal accents.
   ============================================================ */

/* ---- Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&display=swap');
/* Display: Clash Display via Fontshare */
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@500,600,700&display=swap');
/* Body: Inter Tight is generic; use Geist via CDN-safe fallback stack */
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist-font@latest/dist/fonts/geist-sans/Geist-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist-font@latest/dist/fonts/geist-sans/Geist-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('https://cdn.jsdelivr.net/npm/geist-font@latest/dist/fonts/geist-sans/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('https://cdn.jsdelivr.net/npm/geist-font@latest/dist/fonts/geist-mono/GeistMono-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}

/* ============================================================
   TOKENS
   ============================================================ */
:root {
  /* Brand */
  --ink:            #0A1420;
  --ink-soft:       #0E1A28;
  --signal:         #00B8D4;   /* verification / primary consumer CTA (accessible deep cyan) */
  --signal-dim:     #0099B3;
  --glow-cyan:      #22E0FF;   /* logo bright cyan: micro-accents + live shimmer only */
  --alert:          #FF4438;   /* "hallucination" problem framing ONLY */
  --trust:          #0E7490;   /* OEM / enterprise CTA (deep verification teal) */
  --trust-dim:      #0B5C73;

  /* Type families */
  --font-display: 'Clash Display', 'Space Grotesk', sans-serif;
  --font-body:    'Geist', 'Space Grotesk', -apple-system, sans-serif;
  --font-mono:    'Geist Mono', ui-monospace, 'SF Mono', monospace;

  /* Fluid type scale - readable minimums enforced */
  --fs-hero:   clamp(2.6rem, 6vw, 5.2rem);
  --fs-h1:     clamp(2.1rem, 4.2vw, 3.6rem);
  --fs-h2:     clamp(1.6rem, 3vw, 2.5rem);
  --fs-h3:     clamp(1.25rem, 2vw, 1.6rem);
  --fs-lead:   clamp(1.08rem, 1.5vw, 1.32rem);
  --fs-body:   1.05rem;       /* never below ~17px */
  --fs-small:  0.92rem;
  --fs-mono:   0.82rem;

  --lh-tight: 1.05;
  --lh-snug:  1.25;
  --lh-body:  1.65;

  /* Spacing */
  --sp-1: 0.5rem;  --sp-2: 1rem;   --sp-3: 1.5rem;
  --sp-4: 2rem;    --sp-5: 3rem;   --sp-6: 4.5rem;
  --sp-7: 7rem;    --sp-8: 10rem;

  --radius:    14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --maxw: 1240px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur:  0.5s;
}

/* ---- DARK THEME (default) ---- */
:root, [data-theme="dark"] {
  --bg:        #0A1420;
  --bg-2:      #0E1A28;
  --surface:   #12202E;
  --surface-2: #17283A;
  --border:    #243648;
  --border-soft: #1B2C3D;
  --text:      #EEF2F6;
  --text-2:    #A7B2C0;
  --text-3:    #6B7787;
  --cta-fg:    #021016;
  --glow: 0 0 0 1px rgba(0,184,212,.20), 0 18px 50px -12px rgba(0,184,212,.30);
  --shadow: 0 24px 60px -20px rgba(0,0,0,.7);
  --grid-line: rgba(255,255,255,.035);
}

/* ---- LIGHT THEME ---- */
[data-theme="light"] {
  --bg:        #F7F8FA;
  --bg-2:      #FFFFFF;
  --surface:   #FFFFFF;
  --surface-2: #F1F4F8;
  --border:    #E2E8F0;
  --border-soft: #EDF1F6;
  --text:      #0A1420;
  --text-2:    #475569;
  --text-3:    #94A3B8;
  --cta-fg:    #021016;
  --glow: 0 0 0 1px rgba(0,153,179,.24), 0 18px 44px -14px rgba(14,116,144,.28);
  --shadow: 0 22px 50px -22px rgba(15,23,42,.20);
  --grid-line: rgba(10,14,20,.04);
}
/* Dark text on a light background reads optically thinner than light-on-dark,
   so headings get a heavier weight in light theme to keep the same visual presence. */
[data-theme="light"] h1,
[data-theme="light"] h2,
[data-theme="light"] h3,
[data-theme="light"] h4 { font-weight: 700; }

/* ============================================================
   RESET
   ============================================================ */
*,*::before,*::after { box-sizing: border-box; margin:0; padding:0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  overflow-x: hidden;
}
img,svg { display:block; max-width:100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
::selection { background: var(--signal); color: #021016; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 600; line-height: var(--lh-tight); letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }
p  { color: var(--text-2); }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1.2rem, 4vw, 2.4rem); }
.mono { font-family: var(--font-mono); font-size: var(--fs-mono); letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-mono);
  text-transform: uppercase; letter-spacing: 0.18em; color: var(--signal);
  display:inline-flex; align-items:center; gap:.6rem;
}
.eyebrow::before { content:""; width: 26px; height:1px; background: var(--signal); display:inline-block; }

/* ============================================================
   BUTTONS  (CRO: signal-teal = consumer, trust-blue = OEM)
   ============================================================ */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:.6rem;
  padding: 0.95rem 1.6rem; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 1rem; letter-spacing: -0.01em;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s var(--ease);
  white-space: nowrap; position: relative;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--signal); color: var(--cta-fg); box-shadow: var(--glow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--signal), 0 22px 48px -10px rgba(0,184,212,.5); }
.btn-oem { background: var(--trust); color: #fff; }
.btn-oem:hover { transform: translateY(-2px); background: var(--trust-dim); box-shadow: 0 18px 40px -12px rgba(14,116,144,.55); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--text-3); transform: translateY(-2px); }
.btn-lg { padding: 1.1rem 2rem; font-size: 1.08rem; }
.btn svg { width: 18px; height: 18px; }

/* ============================================================
   CARDS / SURFACES
   ============================================================ */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--sp-4);
  transition: transform .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--text-3); box-shadow: var(--shadow); }

.tag {
  display:inline-block; padding: .3rem .8rem; border-radius: var(--radius-pill);
  font-family: var(--font-mono); font-size: .72rem; text-transform: uppercase; letter-spacing:.1em;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border-soft);
}
.tag-signal { color: var(--signal); border-color: rgba(0,184,212,.3); background: rgba(0,184,212,.07); }
.tag-trust  { color: var(--trust);  border-color: rgba(14,116,144,.3); background: rgba(14,116,144,.07); }

/* ============================================================
   SECTION RHYTHM + background atmosphere
   ============================================================ */
section { position: relative; padding-block: 3.5rem; }
@media (max-width:760px){ section { padding-block: 2.5rem; } }
.section-head { max-width: 720px; margin-bottom: var(--sp-4); }
.section-head .eyebrow { margin-bottom: var(--sp-2); }
.section-head h2 { margin-bottom: var(--sp-2); }
.section-head p { font-size: var(--fs-lead); color: var(--text-2); }

.bg-grid::before {
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px),
                    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
}
.bg-grid > * { position: relative; z-index: 1; }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============================================================
   GRID HELPERS
   ============================================================ */
.grid { display: grid; gap: var(--sp-3); }
.g-2 { grid-template-columns: repeat(2,1fr); }
.g-3 { grid-template-columns: repeat(3,1fr); }
.g-4 { grid-template-columns: repeat(4,1fr); }
@media (max-width: 900px){ .g-3,.g-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .g-2,.g-3,.g-4 { grid-template-columns: 1fr;} }

.center { text-align: center; }
.center .section-head, .section-head.center { margin-inline:auto; text-align:center; }
.center .section-head .eyebrow, .section-head.center .eyebrow { justify-content:center; }
