/* ============================================
   AGENTIA — Design Tokens
   ============================================ */

:root {
  /* Brand palette — exact from brand guide */
  --navy: #091D3A;
  --navy-deep: #050F22;
  --blue: #254EE5;
  --blue-hot: #1A3FD1;
  --sand: #D8D1C8;
  --sand-soft: #E8E2D8;
  --bone: #E5E6EA;
  --bone-warm: #F4F2EE;
  --steel: #AEB7C4;
  --ink: #091D3A;
  --ink-soft: #2A3C5A;
  --ink-mute: #6E7A8E;

  /* Type */
  --f-display: "Bricolage Grotesque", "Space Grotesk", system-ui, sans-serif;
  --f-body: "Inter", system-ui, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, monospace;

  /* Layout */
  --max: 1440px;
  --pad-x: clamp(20px, 4vw, 64px);
  --section: clamp(80px, 12vw, 160px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bone-warm);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

/* ============================================
   Type scale
   ============================================ */
.t-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.t-mono {
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* Bricolage with width axis pushed wide */
.wide {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125, "wght" 600, "opsz" 96;
  letter-spacing: -0.02em;
  line-height: 0.92;
}
.xwide {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 125, "wght" 700, "opsz" 96;
  letter-spacing: -0.025em;
  line-height: 0.88;
}
.condensed {
  font-family: var(--f-display);
  font-variation-settings: "wdth" 75, "wght" 500;
}

/* ============================================
   Helpers
   ============================================ */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad-x);
}
.grid { display: grid; }
.flex { display: flex; }
.hide-mobile { }
@media (max-width: 720px) {
  .hide-mobile { display: none !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 26px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border-radius: 999px;
  transition: transform 180ms cubic-bezier(0.25,0.1,0.25,1), background 180ms;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }

.btn--blue { background: var(--blue); color: white; }
.btn--blue:hover { background: var(--blue-hot); }
.btn--ghost { background: transparent; color: currentColor; border: 1px solid currentColor; }
.btn--ghost:hover { background: currentColor; }
.btn--ghost:hover span { color: var(--bone-warm); }

.btn .arrow {
  width: 18px; height: 18px;
  border-radius: 999px;
  background: currentColor;
  display: grid; place-items: center;
  transition: transform 180ms;
}
.btn:hover .arrow { transform: rotate(-45deg); }
.btn--blue .arrow { background: white; color: var(--blue); }
.btn--blue .arrow svg { color: var(--blue); }
.btn .arrow svg { width: 10px; height: 10px; }

/* ============================================
   Background helpers — pixel grid + scan lines
   ============================================ */
.pixel-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
}
.pixel-grid--dark {
  background-image:
    linear-gradient(to right, rgba(9,29,58,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(9,29,58,0.06) 1px, transparent 1px);
}
