/* AltaSec website v3: shared styles for every page.
   Source of truth: altasec-brand (README tokens, Brand-system and website wireframe boards).
   Light page, navy bands, Signal orange as the accent. No animation. No inline styles (CSP). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("/fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 100 800;
  src: url("/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2-variations"),
       url("/fonts/jetbrains-mono-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Brand tokens (altasec-brand/README.md, website boards) */
  --signal: #F26B1D;      /* accent: graphics, fills behind ink text. 3.05:1 on white, so never text on light */
  --ember: #A94B14;       /* accent text and white-text buttons (AA) */
  --tint: #FDEDE4;        /* Glow: tinted chips and icon tiles */
  --glow: #FCE1D2;        /* soft hero glow */
  --glow-deep: #8C431F;   /* Signal mixed into Ink, for the dark CTA glow */
  --ink: #0F1222;
  --ink-2: #3A3F52;
  --ink-3: #2A2E40;
  --muted: #5B6072;
  --on-ink-muted: #A3A7B7;
  --white: #FFFFFF;
  --surface: #F7F7F9;
  --surface-2: #ECECEF;
  --border: #E6E7EC;
  --border-soft: #EEEEF2;
  --border-strong: #DCDDE3;
  --border-on-ink: #3A3F52;

  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --radius-card: 20px;
  --radius-pill: 999px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  word-spacing: 0.04em; /* Archivo's word space is tight, most of all in bold and with negative tracking */
}
img, svg { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-weight: 600; letter-spacing: -0.025em; word-spacing: 0.08em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); line-height: 1.05; }
h2 { font-size: clamp(1.875rem, 3.6vw, 3.25rem); line-height: 1.08; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 700; }
p { text-wrap: pretty; }

.mono { font-family: var(--mono); font-weight: 400; letter-spacing: 0; }
.nowrap { white-space: nowrap; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--ember); outline-offset: 3px; border-radius: 4px; }
.on-ink :focus-visible, .consent :focus-visible { outline-color: var(--signal); }

.skip-link {
  position: absolute; left: 16px; top: -64px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--ink); color: var(--white); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

/* ---------- Wordmark: Archivo Expanded, caps, 600, 125% width ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 28px; height: 28px; flex: none; }
.wordmark {
  font-family: var(--sans);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
}

/* ---------- Buttons: pills, 48px ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 24px;
  border: 1px solid transparent; border-radius: var(--radius-pill);
  font-family: var(--sans); font-size: 0.9375rem; font-weight: 700; line-height: 1; white-space: nowrap; word-spacing: 0.1em;
  text-decoration: none; cursor: pointer;
}
.btn-lg { height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-sm { height: 40px; padding: 0 18px; font-size: 0.875rem; }
@media (max-width: 420px) {
  .btn-lg { height: auto; min-height: 52px; padding: 12px 22px; white-space: normal; text-align: center; line-height: 1.25; }
}
.btn-primary { background: var(--ink); color: var(--white); }
.btn-primary:hover { background: var(--ink-2); }
.btn-secondary { background: var(--white); color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface); border-color: var(--muted); }
.btn-signal { background: var(--signal); color: var(--ink); }
.btn-signal:hover { background: #FF7A2F; }
.btn-ghost-ink { background: transparent; color: var(--white); border-color: var(--border-on-ink); }
.btn-ghost-ink:hover { border-color: var(--on-ink-muted); background: var(--ink-3); }

.cta-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  display: flex; align-items: center; flex-wrap: wrap; column-gap: 48px;
  min-height: var(--header-h);
}
.site-nav { display: flex; align-items: center; justify-content: space-between; flex: 1; gap: 24px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 6px 0; }
.nav-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; text-decoration-color: var(--signal); }
.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--white); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 900px) {
  .header-inner { column-gap: 16px; }
  .js .nav-toggle { display: inline-flex; }
  .site-nav { flex-basis: 100%; flex-direction: column; align-items: stretch; gap: 16px; padding: 8px 0 20px; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; font-size: 1.0625rem; border-bottom: 1px solid var(--border-soft); }
  .site-nav .btn { align-self: stretch; }
  .js .site-nav { display: none; }
  .js .site-nav.is-open { display: flex; }
  .js .header-inner { min-height: var(--header-h); }
}

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border-soft); padding: 56px 0 40px; background: var(--white); }
.footer-inner { display: grid; grid-template-columns: minmax(200px, 1fr) 3fr; gap: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-tag { color: var(--muted); font-size: 0.875rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-h { margin-bottom: 14px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.footer-cols ul { display: grid; gap: 10px; }
.footer-cols a, .footer-button { font-size: 0.9375rem; color: var(--ink-2); text-decoration: none; }
.footer-cols a:hover, .footer-button:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--signal); }
.footer-button { padding: 0; border: 0; background: none; cursor: pointer; text-align: left; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--border-soft);
  font-size: 0.8125rem; color: var(--muted);
}
@media (max-width: 820px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .footer-cols { grid-template-columns: 1fr; }
}

/* ---------- Consent card (small, Reject and Accept equal) ---------- */
.consent {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: min(380px, calc(100% - 32px));
  padding: 18px 20px;
  border: 1px solid var(--border); border-radius: 16px;
  background: var(--white); box-shadow: 0 20px 50px rgba(15, 18, 34, 0.14);
  font-size: 0.875rem; line-height: 1.5; color: var(--ink-2);
}
.consent a { color: var(--ink); font-weight: 600; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.consent .btn { width: 100%; }

/* Console screenshot frame (home page and platform page) */
.shot-bar { display: flex; align-items: center; gap: 14px; padding: 12px 18px; background: var(--surface); border-bottom: 1px solid var(--border-soft); }
.shot-dots { display: inline-flex; gap: 6px; }
.shot-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); }
.shot-title { font-size: 0.75rem; letter-spacing: 0.04em; color: var(--muted); }
