/* ═══════════════════════════════════════════════════════════
   GlassProof™ by IRCODE — landing page
   Design language: OFFICIAL IRCODE 2026 BRAND SYSTEM
   Ink #0E0E10 · Coral #FF1B45 · Yellow #FFD600 · Spectral #2B4CF0 (#6E82FF on dark)
   Bebas Neue eyebrows · Inter body+headlines · Instrument Serif italic accent ·
   JetBrains Mono stats · 1280px container · custom cubic-bezier easing only
   ═══════════════════════════════════════════════════════════ */

:root {
  /* Palette — verbatim from BRAND-GUIDELINES-v2 */
  --bg: #FFFFFF;
  --bg-2: #FAFAF9;
  --bg-3: #F5F5F4;
  --ink: #0E0E10;
  --ink-2: #16161A;
  --ink-mute: #6B6B73;
  --ink-faint: #9B9BA3;
  --rule: #E5E5E8;
  --red: #FF1B45;
  --red-deep: #C4123A;
  --yellow: #FFD600;
  --yellow-deep: #C4A800;
  --spectral: #2B4CF0;
  --spectral-deep: #1E39C4;
  --spectral-lift: #6E82FF;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-italic: "Instrument Serif", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
  --font-eyebrow: "Bebas Neue", "Inter", sans-serif;

  /* Type scale (brand fluid clamps; H1 min lowered for 390px safety) */
  --text-h1: clamp(44px, 9vw, 128px);
  --text-h2: clamp(40px, 5.5vw, 80px);
  --text-h3: clamp(24px, 2.4vw, 32px);
  --text-lede: clamp(18px, 1.4vw, 22px);

  /* Layout */
  --container-max: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);

  /* Motion — custom curves only; ease/ease-in/ease-out/linear are banned */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-overshoot: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Surface system — light by default, .dark flips the local tokens */
.surface {
  --s-bg: var(--bg);
  --s-text: var(--ink);
  --s-mute: var(--ink-mute);
  --s-faint: var(--ink-faint);
  --s-rule: var(--rule);
  --s-card: var(--bg-2);
  --s-accent: var(--red);        /* italic accents, eyebrows, stats: red on light */
  --s-spectral: var(--spectral);
  background: var(--s-bg);
  color: var(--s-text);
}
.surface.bg2 { --s-bg: var(--bg-2); --s-card: var(--bg); }
.surface.dark {
  --s-bg: var(--ink);
  --s-text: #FFFFFF;
  --s-mute: rgba(255, 255, 255, 0.65);
  --s-faint: rgba(255, 255, 255, 0.4);
  --s-rule: rgba(255, 255, 255, 0.12);
  --s-card: var(--ink-2);
  --s-accent: var(--yellow);     /* yellow on dark */
  --s-spectral: var(--spectral-lift);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

/* ─── Typography ─────────────────────────────────────────── */

h1, h2, h3 { margin: 0; }

h1 {
  font-size: var(--text-h1);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.96;
  margin: 28px 0 36px;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.0;
  margin: 22px 0 30px;
  max-width: 22ch;
}

/* The italic signature: one word per headline drops to Instrument Serif.
   Yellow on dark, red on light — never spectral. */
h1 em, h2 em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  color: var(--s-accent);
}

h3 {
  font-size: var(--text-h3);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0 0 14px;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Eyebrow — Bebas Neue in parenthesis arcs. Yellow on dark, red on light. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-eyebrow);
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--s-accent);
  margin: 0;
}
.eyebrow .pa { width: 6px; height: 17px; flex: none; display: block; }
.eyebrow .pa path { stroke: currentColor; }
.eyebrow .txt { padding-top: 2px; }  /* optical baseline nudge for Bebas */

.section-body {
  font-size: var(--text-lede);
  font-weight: 300;
  line-height: 1.45;
  color: var(--s-mute);
  max-width: 62ch;
}

/* ─── Header ─────────────────────────────────────────────── */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(14, 14, 16, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.wordmark {
  font-family: var(--font-eyebrow);
  font-weight: 400;
  font-size: 1.35rem;
  letter-spacing: 0.14em;
  color: #FFFFFF;
  text-decoration: none;
  padding-top: 3px;   /* Bebas optical baseline */
}

.wordmark .tm {
  font-size: 0.55em;
  vertical-align: super;
  color: var(--red);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.35s var(--ease-quart);
}

.nav-link:hover, .nav-link:focus-visible { color: #FFFFFF; }

.nav-cta {
  color: var(--red);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.35s var(--ease-quart);
}

.nav-cta:hover, .nav-cta:focus-visible { color: #FFFFFF; }
.nav-cta:hover .arrow, .nav-cta:focus-visible .arrow { transform: translateX(3px); }

@media (max-width: 720px) {
  .nav-link { display: none; }
}

/* ─── Hero ───────────────────────────────────────────────── */

.hero {
  position: relative;
  padding: 190px 0 130px;
  overflow: hidden;
}

.hero-wash {
  position: absolute;
  inset: 0;
  background: url("assets/IRCODE-BG-01-fade-down-dark.jpg") center / cover no-repeat;
  pointer-events: none;
}

.hero .container { position: relative; z-index: 1; }

.hero-row {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-sub {
  font-size: var(--text-lede);
  font-weight: 300;
  line-height: 1.45;
  color: var(--s-mute);
  max-width: 58ch;
  margin-bottom: 44px;
}

/* Reticle lock-on device — "verification at the glass" */
.hero-device {
  margin: 0;
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-device img {
  display: block;
  width: 100%;
  height: auto;
}

.device-reticle {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

@media (max-width: 900px) {
  .hero { padding: 150px 0 96px; }
  .hero-row { grid-template-columns: 1fr; }
  .hero-device { max-width: 560px; }
}

/* ─── CTAs ───────────────────────────────────────────────── */

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

.cta-center { justify-content: center; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 8px;
  transition: background 0.35s var(--ease-quart), border-color 0.35s var(--ease-quart), transform 0.6s var(--ease-expo);
}

.btn:hover { transform: translateY(-3px); }

.arrow {
  display: inline-block;
  transition: transform 0.35s var(--ease-quart);
}

/* Coral primary CTA */
.btn-primary {
  background: var(--red);
  color: #FFFFFF;
}

.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--red-deep);
}

.btn-primary:hover .arrow, .btn-primary:focus-visible .arrow { transform: translateX(4px); }

.btn-ghost {
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
}

.btn-ghost:hover, .btn-ghost:focus-visible {
  border-color: rgba(255, 255, 255, 0.6);
}

.btn-ghost:hover .arrow, .btn-ghost:focus-visible .arrow { transform: translateY(3px); }

a:focus-visible {
  outline: 2px solid var(--s-spectral, var(--spectral-lift));
  outline-offset: 3px;
}

/* ─── Sections ───────────────────────────────────────────── */

.section { padding: 112px 0; }

/* Problem — light surface, coral accents */

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.stat-card {
  background: var(--s-card);
  border: 1px solid var(--s-rule);
  border-radius: 12px;
  padding: 36px 30px;
}

/* Stats live in JetBrains Mono — coral on light, yellow on dark */
.stat-number {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4.5vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--s-accent);
  margin: 0 0 14px;
}

.stat-label {
  font-size: 0.98rem;
  color: var(--s-mute);
  margin: 0;
}

/* How it works — ink surface with recognition-mesh texture */

.section-how { position: relative; overflow: hidden; }

.section-how::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/scan-mesh-tile_yellow_400px.png") repeat;
  background-size: 400px 400px;
  opacity: 0.06;
  pointer-events: none;
}

.section-how .container { position: relative; z-index: 1; }

.steps {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.step {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  padding: 48px 0;
  border-top: 1px solid var(--s-rule);
}

.step:last-child { border-bottom: 1px solid var(--s-rule); }

.step-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-accent);
  margin: 8px 0 0;
}

.step-body h3 { color: var(--s-text); }

.step-body p {
  color: var(--s-mute);
  max-width: 58ch;
}

@media (max-width: 820px) {
  .step { grid-template-columns: 1fr; gap: 12px; padding: 36px 0; }
  .step-label { margin: 0; }
}

/* The technology — light surface, three plain-English explainer cards */

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.tech-card {
  background: var(--s-card);
  border: 1px solid var(--s-rule);
  border-radius: 12px;
  padding: 38px 32px;
}

.tech-card h3 {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--s-text);
}

.tech-card p { color: var(--s-mute); font-size: 0.98rem; margin: 0; }

.tech-closer {
  font-size: var(--text-lede);
  font-weight: 300;
  line-height: 1.45;
  color: var(--s-mute);
  max-width: 62ch;
  margin: 56px 0 0;
}

/* The standard — bg-2 surface, four mono-labeled condition cards */

.cond-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.cond-card {
  background: var(--s-card);
  border: 1px solid var(--s-rule);
  border-radius: 12px;
  padding: 32px 28px;
}

/* Condition labels share the step-label mono grammar — coral on light */
.cond-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-accent);
  margin: 0 0 16px;
}

.cond-copy { color: var(--s-mute); font-size: 0.98rem; margin: 0; }

.standard-closer {
  font-size: var(--text-lede);
  font-weight: 300;
  line-height: 1.45;
  color: var(--s-mute);
  max-width: 62ch;
  margin: 56px 0 0;
}

.standard-closer em {
  font-family: var(--font-italic);
  font-style: italic;
  font-weight: 400;
  font-size: 1.12em;
  color: var(--s-accent);
}

@media (max-width: 1020px) {
  .cond-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .cond-grid { grid-template-columns: 1fr; }
}

/* Product tiers — light surface, Bebas card titles */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 64px;
}

.tier-card {
  background: var(--s-card);
  border: 1px solid var(--s-rule);
  border-radius: 12px;
  padding: 38px 32px;
  transition: border-color 0.35s var(--ease-quart), transform 0.6s var(--ease-expo);
}

.tier-card:hover {
  border-color: var(--red);
  transform: translateY(-3px);
}

.tier-card h3 {
  font-family: var(--font-eyebrow);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-accent);
}

.tier-card p { color: var(--s-mute); font-size: 0.98rem; }

/* Under the hood — ink surface, five-step technical flow with connecting rule */

.hood-flow {
  list-style: none;
  margin: 72px 0 0;
  padding: 0;
  max-width: 900px;
}

.hood-step {
  position: relative;
  padding: 0 0 52px 46px;
}

.hood-step:last-child { padding-bottom: 0; }

/* Node marker — yellow-outlined, mono-grammar companion to the step label */
.hood-step::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 10px;
  height: 10px;
  border: 1px solid var(--s-accent);
  border-radius: 2px;
}

/* Connecting rule down to the next node */
.hood-step::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 24px;
  bottom: 3px;
  width: 1px;
  background: var(--s-rule);
}

.hood-step:last-child::after { display: none; }

/* Step labels share the step/condition mono grammar — yellow on dark */
.hood-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--s-accent);
  margin: 0 0 14px;
}

.hood-copy {
  color: var(--s-mute);
  font-size: 0.98rem;
  max-width: 66ch;
  margin: 0;
}

.hood-closer {
  font-size: var(--text-lede);
  font-weight: 300;
  line-height: 1.45;
  color: var(--s-mute);
  max-width: 62ch;
  margin: 64px 0 36px;
}

@media (max-width: 720px) {
  .hood-step { padding: 0 0 44px 32px; }
  .hood-step:last-child { padding-bottom: 0; }
}

/* Who it's for — bg-2 surface, Bebas column labels */

.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  margin-top: 64px;
}

.who-col h3 {
  font-family: var(--font-eyebrow);
  font-size: 1.3rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--s-accent);
}

.who-col p { color: var(--s-mute); font-size: 0.98rem; }

@media (max-width: 900px) {
  .stat-grid, .card-grid, .who-grid, .tech-grid { grid-template-columns: 1fr; }
}

/* Proof band — ink surface with scan-sweep wash, mono yellow stats */

.section-proof {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.section-proof::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/IRCODE-BG-09-sweep-band-dark.jpg") center / cover no-repeat;
  opacity: 0.75;
  pointer-events: none;
}

.section-proof .container { position: relative; z-index: 1; }

.section-proof .eyebrow { margin-bottom: 48px; }

.proof-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin: 56px 0 64px;
}

.proof-stat .stat-number { margin-bottom: 10px; }

.proof-stat .stat-label {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.75rem;
  color: var(--s-faint);
}

.proof-line {
  font-weight: 300;
  color: var(--s-mute);
  font-size: var(--text-lede);
  line-height: 1.45;
  max-width: 56ch;
  margin: 0 auto;
}

@media (max-width: 720px) {
  .proof-stats { grid-template-columns: repeat(2, 1fr); }
}

/* Final CTA — ink surface with coral corner bloom */

.section-final {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: 150px 0;
}

.section-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/IRCODE-BG-12-corner-bloom-coral.jpg") center / cover no-repeat;
  pointer-events: none;
}

.section-final .container { position: relative; z-index: 1; }

.section-final h2 { margin: 0 auto 24px; }

.section-final .section-body { margin: 0 auto 40px; }

/* ─── Footer ─────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 40px 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  color: var(--s-faint);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.footer-inner p { margin: 0; }

/* Spectral is functional only: links, focus rings. Lift variant on dark. */
.footer-link {
  color: var(--spectral-lift);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.35s var(--ease-quart);
}

.footer-link:hover, .footer-link:focus-visible { color: #FFFFFF; }

/* ─── Reveal animations (JS-enhanced; content visible without JS) ── */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}

.js [data-reveal].in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn, .tier-card { transition: none; }
}

/* ─── Mobile refinements ─────────────────────────────────── */

@media (max-width: 720px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .section-final { padding: 110px 0; }
  .btn { padding: 13px 24px; font-size: 0.98rem; }
}
