/* ============================================================
   iELLO — main.css
   Single stylesheet. Design tokens + reset + components.
   Version: 2026-04-17
   Palette: A (Navy + Orange Identitar) · Typography: B (Space Grotesk + IBM Plex Mono)
   ============================================================ */

/* ============================================================
   @font-face — self-hosted WOFF2 (Latin + Latin Extended for CEE)
   ============================================================ */
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/space-grotesk-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/space-grotesk-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/space-grotesk-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/space-grotesk-700-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/ibm-plex-mono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ============================================================
   Design tokens — Palette A (Navy + Orange Identitar)
   ============================================================ */
:root {
  /* Primary (navy) */
  --color-primary:        #0F1E3C;
  --color-primary-600:    #1E3A6B;
  --color-primary-400:    #3B5BA0;

  /* Accent (orange identitar) */
  --color-accent:         #FF4C00;  /* dot, CTA bg, focus — UI-only, FAIL text on white */
  --color-accent-text:    #C73600;  /* orange safe for text (5.31:1) */
  --color-accent-strong:  #B82E00;  /* orange AA+ (6.12:1) */

  /* Neutrals */
  --color-bg:             #FFFFFF;
  --color-surface:        #F5F7FA;
  --color-surface-2:      #E2E8F0;
  --color-text:           #1E293B;
  --color-text-muted:     #475569;
  --color-text-subtle:    #64748B;
  --color-border:         #CBD5E1;

  /* Semantic */
  --color-success:        #047857;
  --color-warning:        #B45309;
  --color-error:          #B91C1C;
  --color-info:           #1D4ED8;

  /* Typography */
  --font-sans:            'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono:            'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Type scale — ratio 1.333 (Perfect Fourth), desktop base 16px */
  --fs-h1:                4.5rem;   /* 72 */
  --fs-h2:                3rem;     /* 48 */
  --fs-h3:                2rem;     /* 32 */
  --fs-h4:                1.5rem;   /* 24 */
  --fs-lead:              1.25rem;  /* 20 */
  --fs-body:              1rem;     /* 16 */
  --fs-small:             0.875rem; /* 14 */
  --fs-caption:           0.8125rem;/* 13 */

  /* Line-heights */
  --lh-h1:                1.05;
  --lh-h2:                1.15;
  --lh-h3:                1.25;
  --lh-h4:                1.3;
  --lh-body:              1.6;
  --lh-tight:             1.4;

  /* Spacing — 4pt base */
  --space-1:              4px;
  --space-2:              8px;
  --space-3:              12px;
  --space-4:              16px;
  --space-5:              24px;
  --space-6:              32px;
  --space-7:              48px;
  --space-8:              64px;
  --space-9:              96px;
  --space-10:             128px;
  --space-11:             160px;
  --space-12:             192px;

  /* Layout */
  --container-sm:         640px;
  --container-md:         768px;
  --container-lg:         1024px;
  --container-xl:         1200px;
  --container-2xl:        1400px;

  /* Radius */
  --radius-sm:            4px;
  --radius-md:            6px;
  --radius-lg:            8px;
  --radius-xl:            12px;

  /* Shadows */
  --shadow-sm:            0 1px 2px rgba(15, 30, 60, 0.04);
  --shadow-md:            0 4px 12px rgba(15, 30, 60, 0.06);
  --shadow-lg:            0 12px 32px rgba(15, 30, 60, 0.10);

  /* Motion */
  --transition-fast:      150ms ease-out;
  --transition-base:      250ms ease-out;

  /* Z-index */
  --z-dropdown:           100;
  --z-sticky:             200;
  --z-modal:              300;
  --z-toast:              400;
  --z-tooltip:            500;
}

/* Dark mode (v2 — swap tokens, no visual inversion) */
[data-theme="dark"] {
  --color-primary:        #E2E8F0;
  --color-primary-600:    #CBD5E1;
  --color-primary-400:    #94A3B8;
  --color-accent:         #FF6B2B;
  --color-accent-text:    #FF6B2B;
  --color-accent-strong:  #FF8A55;
  --color-bg:             #0A1628;
  --color-surface:        #152238;
  --color-surface-2:      #1F2F4A;
  --color-text:           #E2E8F0;
  --color-text-muted:     #CBD5E1;
  --color-text-subtle:    #94A3B8;
  --color-border:         #334155;
  --shadow-sm:            0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md:            0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg:            0 12px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================================
   Reset — modern, minimal
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd { margin: 0; }
ul[role='list'], ol[role='list'] { list-style: none; padding: 0; margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
table { border-collapse: collapse; }
[hidden] { display: none !important; }

/* ============================================================
   Base
   ============================================================ */
html, body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--color-text);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--color-primary);
}
h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); }

p { line-height: var(--lh-body); }
p + p { margin-top: var(--space-4); }

a:not([class]) {
  color: var(--color-accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--transition-fast);
}
a:not([class]):hover { color: var(--color-accent-strong); }

strong, b { font-weight: 600; }

code, pre, kbd, samp { font-family: var(--font-mono); font-size: 0.95em; }

::selection { background: var(--color-accent); color: #FFFFFF; }

/* ============================================================
   Focus — universal, orange ring
   ============================================================ */
:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   Layout primitives
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-5);
}
.container--narrow { max-width: 720px; }
.container--wide { max-width: var(--container-2xl); }

.section { padding-block: var(--space-9); }
.section--tight { padding-block: var(--space-7); }
.section--alt { background: var(--color-surface); }

.grid { display: grid; gap: var(--space-5); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid--2 { grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: start; }
@media (max-width: 767px) { .grid--2 { grid-template-columns: 1fr; gap: var(--space-6); } }

.stack > * + * { margin-top: var(--space-4); }
.stack--lg > * + * { margin-top: var(--space-6); }

.flex { display: flex; }
.flex--center { align-items: center; justify-content: center; }
.flex--between { align-items: center; justify-content: space-between; }
.flex--gap { gap: var(--space-4); }

/* ============================================================
   Typography utilities
   ============================================================ */
.t-mono { font-family: var(--font-mono); }
.t-tabular { font-variant-numeric: tabular-nums; }
.t-caps { text-transform: uppercase; letter-spacing: 0.08em; font-size: var(--fs-caption); font-weight: 500; }
.t-muted { color: var(--color-text-muted); }
.t-subtle { color: var(--color-text-subtle); }
.t-accent { color: var(--color-accent-text); }
.t-lead { font-size: var(--fs-lead); line-height: 1.55; color: var(--color-text-muted); }
.t-small { font-size: var(--fs-small); }

/* ============================================================
   Eyebrow (section kicker with identity dot)
   ============================================================ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-text);
  margin-bottom: var(--space-4);
}
.eyebrow::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

/* ============================================================
   Navigation
   ============================================================ */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--color-surface-2);
}
.site-nav__inner {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding: var(--space-4) var(--space-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}
.site-logo { display: inline-flex; align-items: center; height: 36px; }
.site-logo svg { height: 32px; width: auto; }
.site-logo__letters { fill: var(--color-primary); transition: fill var(--transition-fast); }
.site-logo__dot { fill: var(--color-accent); }

.nav-list {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  align-items: center;
}
.nav-list a {
  color: var(--color-text);
  font-weight: 500;
  font-size: var(--fs-small);
  padding: var(--space-2) 0;
  position: relative;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.nav-list a:hover { color: var(--color-accent-text); }
.nav-list a[aria-current="page"] { color: var(--color-accent-text); }
.nav-list a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--color-accent);
  border-radius: 1px;
}

.nav-lang {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  text-transform: uppercase;
  padding: var(--space-1) var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-fast);
}
.nav-lang:hover { border-color: var(--color-accent); }

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
}
.nav-toggle-bar {
  display: block;
  width: 22px; height: 2px;
  background: var(--color-primary);
  margin: 5px auto;
  transition: transform var(--transition-fast);
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 28px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--color-accent);
  color: #FFFFFF;
  font-weight: 700;  /* ≥14px bold passes 3:1 contrast on orange */
}
.btn--primary:hover { background: var(--color-accent-strong); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn--primary:active { transform: translateY(0); }

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}
.btn--secondary:hover { background: var(--color-primary); color: #FFFFFF; }

.btn--ghost {
  background: transparent;
  color: var(--color-accent-text);
}
.btn--ghost:hover { background: var(--color-surface); }

.btn--sm { padding: 10px 18px; font-size: var(--fs-small); }
.btn--lg { padding: 18px 36px; font-size: var(--fs-lead); }

.btn[disabled], .btn--disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  padding: var(--space-9) 0 var(--space-10);
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%);
}
.hero__title {
  font-size: clamp(2.5rem, 6vw, var(--fs-h1));
  font-weight: 700;
  line-height: var(--lh-h1);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-5);
  max-width: 960px;
}
.hero__title em { font-style: normal; color: var(--color-accent-text); }
.hero__lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--color-text-muted);
  max-width: 680px;
  margin-bottom: var(--space-6);
}
.hero__ctas { display: flex; gap: var(--space-4); flex-wrap: wrap; }

/* ============================================================
   Cards
   ============================================================ */
.card {
  padding: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  transition: border-color var(--transition-base), transform var(--transition-fast), box-shadow var(--transition-base);
}
.card__title { margin-top: 0; }
.card__link { margin-top: auto; padding-top: var(--space-4); }
.card:hover {
  border-color: var(--color-primary-400);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.card__icon {
  position: relative;
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-primary);
}
.card__icon::after {
  content: "";
  position: absolute;
  top: 6px; right: 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}
.card__badge {
  display: inline-block;
  padding: 2px 8px;
  margin-bottom: var(--space-3);
  background: var(--color-surface-2);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius-sm);
  min-height: 20px;
}
.card__badge--spacer { visibility: hidden; }
.card__eyebrow {
  display: block;
  margin-bottom: var(--space-2);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
  min-height: 2.2em;
  color: var(--color-accent-text);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ============================================================
   Stats strip (big display numbers + mono labels)
   ============================================================ */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--space-6);
  padding-block: var(--space-8);
  border-block: 1px solid var(--color-surface-2);
}
.stat { text-align: left; position: relative; padding-left: var(--space-4); }
.stat::before {
  content: "";
  position: absolute;
  left: 0; top: 8px; bottom: 8px;
  width: 3px;
  background: var(--color-accent);
  border-radius: 2px;
}
.stat__value {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: clamp(2.5rem, 4.5vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary);
}
.stat__label {
  display: block;
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  font-weight: 500;
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
  line-height: 1.4;
}

/* Principle list (numbered, clean) */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-5);
}
.principle {
  padding: var(--space-5);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  position: relative;
}
.principle__num {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--color-accent-text);
  font-weight: 500;
  margin-bottom: var(--space-2);
  letter-spacing: 0.06em;
}
.principle__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}
.principle__text { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.6; }

/* Pull quote */
.pull-quote {
  border-left: 4px solid var(--color-accent);
  padding: var(--space-2) 0 var(--space-2) var(--space-5);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  line-height: 1.45;
  font-weight: 500;
  color: var(--color-primary);
  max-width: 760px;
}
.pull-quote footer {
  margin-top: var(--space-3);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Anti-pattern list (with strike-style marker) */
.anti-list { display: flex; flex-direction: column; gap: var(--space-4); }
.anti-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-4);
  align-items: start;
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-surface-2);
}
.anti-item:last-child { border-bottom: 1px solid var(--color-surface-2); }
.anti-item__mark {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  color: var(--color-accent);
  font-weight: 700;
  padding-top: 4px;
  letter-spacing: 0.06em;
}
.anti-item__title {
  font-size: var(--fs-body);
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 4px;
}
.anti-item__text { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.55; }
.card__title {
  font-size: var(--fs-h4);
  font-weight: 600;
  line-height: var(--lh-h4);
  margin-bottom: var(--space-3);
}
.card__text { color: var(--color-text-muted); font-size: var(--fs-small); line-height: 1.6; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-4);
  color: var(--color-accent-text);
  font-weight: 600;
  font-size: var(--fs-small);
  text-decoration: none;
}
.card__link::after { content: "→"; transition: transform var(--transition-fast); }
.card__link:hover { color: var(--color-accent-strong); }
.card__link:hover::after { transform: translateX(4px); }

/* ============================================================
   Code block (for technical content)
   ============================================================ */
.code-block {
  position: relative;
  background: var(--color-primary);
  color: #E2E8F0;
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: 1.7;
  overflow-x: auto;
}
.code-block__label {
  position: absolute;
  top: var(--space-3); right: var(--space-3);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  opacity: 0.8;
}
.code-block .tk { color: var(--color-accent); }       /* keyword */
.code-block .tv { color: #7DD3FC; }                   /* value/string */
.code-block .tc { color: #94A3B8; font-style: italic; } /* comment */

/* ============================================================
   CTA banner
   ============================================================ */
.cta-banner {
  background: var(--color-primary);
  color: #FFFFFF;
  padding: var(--space-9) var(--space-5);
  text-align: center;
}
.cta-banner h2 { color: #FFFFFF; max-width: 720px; margin-inline: auto; margin-bottom: var(--space-5); }
.cta-banner h2::after { content: "."; color: var(--color-accent); }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--color-primary);
  color: #CBD5E1;
  padding: var(--space-9) 0 var(--space-6);
}
.site-footer__grid {
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--space-5);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-7);
}
.site-footer h4 {
  color: #FFFFFF;
  font-size: var(--fs-small);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}
.site-footer__brand { font-size: var(--fs-h4); font-weight: 700; color: #FFFFFF; margin-bottom: var(--space-3); }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li + li { margin-top: var(--space-2); }
.site-footer a { color: #CBD5E1; font-size: var(--fs-small); transition: color var(--transition-fast); }
.site-footer a:hover { color: var(--color-accent); }

.site-footer__legal {
  max-width: var(--container-xl);
  margin: var(--space-6) auto 0;
  padding: var(--space-5) var(--space-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.10);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--fs-caption);
  color: #94A3B8;
}

/* ============================================================
   Forms
   ============================================================ */
.field { display: flex; flex-direction: column; gap: var(--space-2); }
.field label {
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--color-text);
}
.field label .required { color: var(--color-error); margin-left: 2px; }
.input, .textarea {
  padding: var(--space-3) var(--space-4);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}
.textarea { min-height: 140px; resize: vertical; line-height: var(--lh-body); }
.input:focus, .textarea:focus { border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(255, 76, 0, 0.12); outline: none; }
.input[aria-invalid="true"], .textarea[aria-invalid="true"] { border-color: var(--color-error); }
.field__error { font-size: var(--fs-caption); color: var(--color-error); }
.field__hint { font-size: var(--fs-caption); color: var(--color-text-subtle); }

/* ============================================================
   Tooltip — legal details on hover/tap (accessible)
   ============================================================ */
.tip {
  position: relative;
  display: inline-block;
  border-bottom: 1px dotted currentColor;
  cursor: help;
}
.tip__content {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 260px;
  max-width: 320px;
  padding: var(--space-4);
  background: var(--color-primary);
  color: #E2E8F0;
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  line-height: 1.55;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-fast), visibility var(--transition-fast);
  z-index: var(--z-tooltip);
  white-space: normal;
  text-align: left;
}
.tip__content::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: var(--color-primary);
}
.tip:hover .tip__content,
.tip:focus-within .tip__content,
.tip[data-open="true"] .tip__content {
  opacity: 1;
  visibility: visible;
}
.tip__row { display: flex; justify-content: space-between; gap: var(--space-3); }
.tip__row + .tip__row { margin-top: var(--space-2); }
.tip__label { color: #94A3B8; }
.tip__value { color: #FFFFFF; }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  max-width: 640px;
  margin-inline: auto;
  padding: var(--space-5);
  background: var(--color-primary);
  color: #E2E8F0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-toast);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--space-4);
  align-items: center;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__text { font-size: var(--fs-small); line-height: 1.55; }
.cookie-banner__text a { color: var(--color-accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 18px; font-size: var(--fs-small); }
.cookie-banner .btn--primary { color: #0F1E3C; }

/* ============================================================
   Skip link (accessibility)
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-4);
  padding: var(--space-2) var(--space-4);
  background: var(--color-accent);
  color: #FFFFFF;
  font-weight: 700;
  z-index: calc(var(--z-toast) + 1);
  border-radius: var(--radius-sm);
}
.skip-link:focus { top: var(--space-4); }

/* ============================================================
   Visually hidden (screen reader only)
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   Customer carousel (marquee)
   ============================================================ */
.customers {
  overflow: hidden;
  padding-block: var(--space-7);
}
.customers__track {
  display: flex;
  gap: var(--space-8);
  align-items: center;
  animation: customers-scroll 40s linear infinite;
}
.customers__logo {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.7;
  transition: opacity var(--transition-fast), filter var(--transition-fast);
  flex-shrink: 0;
}
.customers__logo:hover { filter: grayscale(0); opacity: 1; }
@keyframes customers-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ============================================================
   Motion preferences
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .customers__track { animation: none; }
}

/* ============================================================
   Mobile (down from 768px — progressive enhancement above)
   ============================================================ */
@media (max-width: 767px) {
  :root {
    --fs-h1: 2.5rem;    /* 40 */
    --fs-h2: 1.75rem;   /* 28 */
    --fs-h3: 1.375rem;  /* 22 */
    --fs-h4: 1.125rem;  /* 18 */
    --fs-lead: 1.125rem;
  }

  .nav-list {
    position: fixed;
    top: 64px;
    left: 0;
    width: 100vw;
    height: calc(100vh - 64px);
    max-width: 100vw;
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-4);
    padding: var(--space-6) var(--space-5);
    background: var(--color-bg);
    box-shadow: 0 -1px 0 var(--color-surface-2);
    transform: translateX(100%);
    transition: transform var(--transition-base);
    z-index: calc(var(--z-sticky) - 1);
    overflow-y: auto;
  }
  .nav-list[data-open="true"] { transform: translateX(0); }
  .nav-list li { width: 100%; }
  .nav-list a { font-size: var(--fs-lead); padding: var(--space-3) 0; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .section { padding-block: var(--space-8); }
  .hero { padding: var(--space-7) 0 var(--space-8); }

  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: var(--space-5); }
  .site-footer__legal { flex-direction: column; }

  .cookie-banner {
    grid-template-columns: 1fr;
    text-align: left;
  }
}

@media (max-width: 420px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}
