/* ==========================================================================
   BlockSands AI Limited — Core stylesheet
   Design language: "Azure & White" — clean white surfaces, deep navy type,
   electric blue accents. Light by default, full dark (deep navy) support.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Palette — light (default) */
  --bg:            #f5f8ff;
  --bg-soft:       #ffffff;
  --surface:       #ffffff;
  --surface-2:     #eef4ff;
  --surface-3:     #e0eafb;
  --border:        rgba(12, 32, 71, 0.10);
  --border-strong: rgba(12, 32, 71, 0.20);

  --text:          #0a1a35;
  --text-soft:     #33415c;
  --muted:         #64748b;

  --brand:         #1d4ed8;
  --brand-bright:  #3b82f6;
  --brand-deep:    #14307d;
  --accent:        #0891b2;

  --btn-grad:      linear-gradient(135deg, #3b82f6, #1d4ed8);
  --btn-fg:        #ffffff;

  --ring:          rgba(29, 78, 216, 0.28);
  --shadow-sm:     0 1px 2px rgba(10, 26, 53, 0.08);
  --shadow-md:     0 14px 34px -16px rgba(10, 26, 53, 0.32);
  --shadow-lg:     0 44px 84px -38px rgba(10, 26, 53, 0.4);

  --grad-brand:    linear-gradient(120deg, #1d4ed8, #3b82f6 55%, #0891b2 130%);
  --grad-surface:  linear-gradient(160deg, rgba(29, 78, 216, 0.045), rgba(29, 78, 216, 0.005));

  --glow-a:        rgba(59, 130, 246, 0.30);
  --glow-b:        rgba(8, 145, 178, 0.22);
  --grain-op:      0.02;

  /* Typography */
  --font-display: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body:    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;

  /* Rhythm */
  --maxw:      1200px;
  --maxw-wide: 1380px;
  --gutter:    clamp(1.25rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 9vw, 8.5rem);
  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

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

  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg:            #050b18;
  --bg-soft:       #08111f;
  --surface:       #0c1729;
  --surface-2:     #112038;
  --surface-3:     #17294a;
  --border:        rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.18);

  --text:          #eaf1ff;
  --text-soft:     #b6c6e0;
  --muted:         #8497b5;

  --brand:         #5b9dff;
  --brand-bright:  #9cc6ff;
  --brand-deep:    #2563eb;
  --accent:        #38bdf8;

  --btn-grad:      linear-gradient(135deg, #3b82f6, #1d4ed8);
  --btn-fg:        #ffffff;

  --ring:          rgba(91, 157, 255, 0.35);
  --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md:     0 14px 34px -14px rgba(0, 0, 0, 0.7);
  --shadow-lg:     0 44px 84px -34px rgba(0, 0, 0, 0.85);

  --grad-brand:    linear-gradient(120deg, #9cc6ff, #5b9dff 50%, #38bdf8 130%);
  --grad-surface:  linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));

  --glow-a:        rgba(59, 130, 246, 0.34);
  --glow-b:        rgba(56, 189, 248, 0.20);
  --grain-op:      0.035;

  color-scheme: dark;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

ul, ol { list-style: none; padding: 0; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection {
  background: var(--brand-deep);
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   3. Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.5rem, 6vw, 4.35rem); }
h2 { font-size: clamp(1.95rem, 4.2vw, 3.1rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); letter-spacing: -0.015em; }
h4 { font-size: 1.0625rem; letter-spacing: -0.01em; }

p { text-wrap: pretty; }

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  color: var(--text-soft);
  line-height: 1.7;
  max-width: 62ch;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--brand);
}

.eyebrow::before {
  content: "";
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

.gradient-text {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.muted { color: var(--muted); }
.text-soft { color: var(--text-soft); }

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: var(--maxw-wide); }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head > * + * { margin-top: 1rem; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lede { margin-inline: auto; }
.section-head--center .eyebrow::before { display: none; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17.5rem), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: 0;
}

/* --------------------------------------------------------------------------
   5. Ambient background art
   -------------------------------------------------------------------------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  overflow: hidden;
}

.aurora::before,
.aurora::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.55;
}

.aurora::before {
  width: 55vw;
  height: 55vw;
  top: -18vw;
  right: -12vw;
  background: radial-gradient(circle, var(--glow-a), transparent 68%);
}

.aurora::after {
  width: 48vw;
  height: 48vw;
  bottom: -16vw;
  left: -14vw;
  background: radial-gradient(circle, var(--glow-b), transparent 68%);
}

.grain {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: var(--grain-op);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* --------------------------------------------------------------------------
   6. Header & navigation
   -------------------------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--brand-deep);
  color: #ffffff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--radius-sm) 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              backdrop-filter var(--dur) var(--ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-stuck {
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(150%) blur(16px);
  -webkit-backdrop-filter: saturate(150%) blur(16px);
  border-bottom-color: var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.brand__mark { width: 2rem; height: 2rem; flex-shrink: 0; }
.brand__name strong { font-weight: 700; }
.brand__name span { color: var(--muted); font-weight: 400; }

.nav__links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: auto;
}

.nav__link {
  position: relative;
  padding: 0.5rem 0.85rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-soft);
  border-radius: 999px;
}

.nav__link:hover { color: var(--brand); }

.nav__link[aria-current="page"] {
  color: var(--brand);
  background: var(--surface-2);
}

.nav__actions { display: flex; align-items: center; gap: 0.6rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: all var(--dur) var(--ease);
}

.icon-btn:hover {
  color: var(--brand);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.icon-btn svg { width: 1.1rem; height: 1.1rem; }

.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.nav__toggle { display: none; }

/* Mobile drawer */
@media (max-width: 900px) {
  .nav__links {
    position: fixed;
    inset: 4.75rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1.25rem var(--gutter) 2rem;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    transition: transform var(--dur) var(--ease);
    box-shadow: var(--shadow-lg);
  }

  .nav__links.is-open { transform: translateY(0); }

  .nav__link {
    padding: 0.85rem 1rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
  }

  .nav__links .btn { margin-top: 0.75rem; justify-content: center; }
  .nav__toggle { display: inline-grid; }
  .nav__actions .btn--desktop { display: none; }
}

/* --------------------------------------------------------------------------
   7. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              background var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease);
}

.btn svg { width: 1.05em; height: 1.05em; flex-shrink: 0; }

.btn--primary {
  background: var(--btn-grad);
  color: var(--btn-fg);
  box-shadow: 0 10px 26px -12px var(--ring);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 38px -14px var(--ring);
}

.btn--ghost {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: var(--surface-2);
  border-color: var(--brand);
  color: var(--brand);
}

.btn--quiet {
  padding-inline: 0.25rem;
  background: none;
  color: var(--brand);
}

.btn--quiet:hover { gap: 0.85rem; }

.btn--lg { padding: 1rem 1.85rem; font-size: 1rem; }
.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

/* --------------------------------------------------------------------------
   8. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  padding-block: clamp(3.5rem, 8vw, 7rem) clamp(4rem, 8vw, 7rem);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
  mask-image: radial-gradient(ellipse 90% 70% at 60% 35%, #000 25%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 60% 35%, #000 25%, transparent 78%);
}

.hero__inner { position: relative; z-index: 1; }

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

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

.hero h1 { margin-block: 1.25rem 1.5rem; }
.hero .lede { margin-bottom: 2.25rem; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  margin-top: 2.75rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.hero__meta span { display: inline-flex; align-items: center; gap: 0.5rem; }

.hero__meta span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--brand);
}

/* Floating console panel */
.console {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  background-image: var(--grad-surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: float 9s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.console__bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.console__dots { display: flex; gap: 0.4rem; }
.console__dots i {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: var(--border-strong);
}
.console__dots i:first-child { background: var(--brand); }

.console__title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.console__body {
  padding: 1.4rem 1.5rem 1.6rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.95;
  overflow-x: auto;
}

.console__body .c-key { color: var(--accent); }
.console__body .c-str { color: var(--brand); }
.console__body .c-num { color: #0d9488; }
.console__body .c-cmt { color: var(--muted); }
.console__body .c-fn  { color: var(--brand-deep); }

:root[data-theme="dark"] .console__body .c-num { color: #5eead4; }
:root[data-theme="dark"] .console__body .c-fn  { color: var(--brand-bright); }

.console__meters {
  display: grid;
  gap: 0.85rem;
  padding: 0 1.5rem 1.6rem;
}

.meter { display: grid; gap: 0.4rem; }

.meter__top {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.meter__track {
  height: 4px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}

.meter__fill {
  height: 100%;
  border-radius: 999px;
  background: var(--grad-brand);
  width: 0;
  transition: width 1.4s var(--ease);
}

/* --------------------------------------------------------------------------
   9. Marquee / capability ticker
   -------------------------------------------------------------------------- */
.ticker {
  border-block: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  overflow: hidden;
  padding-block: 1.1rem;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.ticker__track {
  display: flex;
  width: max-content;
  gap: 3.5rem;
  animation: scroll-x 42s linear infinite;
}

.ticker:hover .ticker__track { animation-play-state: paused; }

@keyframes scroll-x {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker__item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.ticker__item::before {
  content: "◆";
  font-size: 0.55rem;
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: clamp(1.5rem, 2.5vw, 2rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  background-image: var(--grad-surface);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}

.card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(140deg, var(--brand), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
  pointer-events: none;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.card:hover::after { opacity: 0.8; }

.card p { color: var(--text-soft); font-size: 0.9375rem; }

.card__icon {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--brand);
  margin-bottom: 0.35rem;
}

.card__icon svg { width: 1.4rem; height: 1.4rem; }

.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: auto;
  padding-top: 0.9rem;
}

.tag {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.card--feature {
  grid-column: span 2;
  flex-direction: row;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}

@media (max-width: 780px) {
  .card--feature { grid-column: span 1; flex-direction: column; align-items: flex-start; }
}

/* Numbered process steps */
.step {
  position: relative;
  padding: 1.75rem 1.5rem 1.75rem 0;
  border-top: 1px solid var(--border);
}

.step__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--brand);
  margin-bottom: 0.85rem;
  display: block;
}

.step h3 { margin-bottom: 0.6rem; }
.step p { color: var(--text-soft); font-size: 0.9375rem; }

/* Facts band */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface);
  background-image: var(--grad-surface);
}

.fact {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.fact:last-child { border-right: 0; }

.fact__value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
  color: var(--brand);
}

.fact__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Checklist */
.checklist { display: grid; gap: 0.9rem; }

.checklist li {
  display: grid;
  grid-template-columns: 1.35rem 1fr;
  gap: 0.85rem;
  align-items: start;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.checklist li::before {
  content: "";
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233b82f6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 0.8rem no-repeat,
    var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   11. Split feature blocks
   -------------------------------------------------------------------------- */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr));
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  background-image: var(--grad-surface);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  box-shadow: var(--shadow-md);
}

.stack-list { display: grid; gap: 0.65rem; }

.stack-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.05rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.875rem;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.stack-row:hover { transform: translateX(4px); border-color: var(--brand); }

.stack-row__label { display: flex; align-items: center; gap: 0.7rem; font-weight: 500; }
.stack-row__label svg { width: 1.05rem; height: 1.05rem; color: var(--brand); }
.stack-row__meta { font-family: var(--font-mono); font-size: 0.7rem; color: var(--muted); }

/* --------------------------------------------------------------------------
   12. Accordion
   -------------------------------------------------------------------------- */
.accordion { border-top: 1px solid var(--border); }

.accordion__item { border-bottom: 1px solid var(--border); }

.accordion__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: 100%;
  padding: 1.5rem 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  transition: color var(--dur) var(--ease);
}

.accordion__trigger:hover { color: var(--brand); }

.accordion__icon {
  position: relative;
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
}

.accordion__icon::before,
.accordion__icon::after {
  content: "";
  position: absolute;
  inset: 50% 0.35rem auto;
  height: 1px;
  background: currentColor;
  transition: transform var(--dur) var(--ease);
}

.accordion__icon::after { transform: rotate(90deg); }

.accordion__trigger[aria-expanded="true"] .accordion__icon::after { transform: rotate(0deg); }

.accordion__panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows var(--dur) var(--ease);
}

.accordion__panel[data-open="true"] { grid-template-rows: 1fr; }

.accordion__panel > div { overflow: hidden; }

.accordion__panel p {
  padding-bottom: 1.5rem;
  color: var(--text-soft);
  max-width: 62ch;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   13. CTA band
   -------------------------------------------------------------------------- */
.cta {
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  background-image:
    radial-gradient(ellipse 60% 100% at 15% 0%, var(--glow-a), transparent 70%),
    radial-gradient(ellipse 60% 100% at 90% 100%, var(--glow-b), transparent 70%),
    var(--grad-surface);
  padding: clamp(2.5rem, 6vw, 4.5rem);
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.cta h2 { margin-bottom: 1rem; }
.cta .lede { margin-inline: auto; margin-bottom: 2rem; }
.cta .btn-row { justify-content: center; }

/* --------------------------------------------------------------------------
   14. Forms
   -------------------------------------------------------------------------- */
.form { display: grid; gap: 1.15rem; }

.form__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
  gap: 1.15rem;
}

.field { display: grid; gap: 0.5rem; }

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-soft);
}

.field label .req { color: var(--brand); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9375rem;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea { resize: vertical; min-height: 8rem; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted); opacity: 0.75; }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--ring);
}

.field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7c99' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 1.1rem;
  padding-right: 2.6rem;
}

.field select option { background: var(--surface); color: var(--text); }

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
}

.consent input { width: 1.05rem; height: 1.05rem; margin-top: 0.25rem; accent-color: var(--brand); }
.consent a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

.form__note { font-size: 0.78rem; color: var(--muted); }

.form__status {
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 0.875rem;
  display: none;
}

.form__status.is-visible { display: block; }
.form__status.is-ok { border-color: var(--brand); color: var(--text); }

/* Contact info list */
.info-list { display: grid; gap: 1.5rem; }

.info-item { display: grid; grid-template-columns: 2.75rem 1fr; gap: 1rem; align-items: start; }

.info-item__icon {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--brand);
}

.info-item__icon svg { width: 1.15rem; height: 1.15rem; }
.info-item h4 { margin-bottom: 0.2rem; }
.info-item p, .info-item a { font-size: 0.9rem; color: var(--text-soft); }
.info-item a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   15. Legal / prose pages
   -------------------------------------------------------------------------- */
.prose { max-width: 46rem; }
.prose > * + * { margin-top: 1.15rem; }
.prose h2 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); margin-top: 3rem; }
.prose h3 { font-size: 1.0625rem; margin-top: 2rem; }
.prose p, .prose li { color: var(--text-soft); font-size: 0.9375rem; line-height: 1.8; }
.prose ul { display: grid; gap: 0.6rem; padding-left: 1.1rem; list-style: disc; }
.prose ul li::marker { color: var(--brand); }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }

.page-header {
  padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--border);
}

.page-header h1 { margin-block: 1rem 1.25rem; }

.breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb a:hover { color: var(--brand); }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  margin-top: var(--section-y);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 55%, transparent);
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-block: clamp(3rem, 6vw, 4.5rem) 2.5rem;
}

@media (max-width: 860px) {
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
}

.footer__brand p {
  margin-top: 1.1rem;
  max-width: 34ch;
  font-size: 0.875rem;
  color: var(--muted);
}

.footer__legal {
  margin-top: 1.5rem;
  display: grid;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.03em;
}

.footer__col h4 {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.15rem;
}

.footer__col ul { display: grid; gap: 0.7rem; }
.footer__col a { font-size: 0.875rem; color: var(--text-soft); }
.footer__col a:hover { color: var(--brand); }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

.footer__social { display: flex; gap: 0.5rem; }

/* --------------------------------------------------------------------------
   17. Scroll reveal & motion prefs
   -------------------------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] { opacity: 1; transform: none; }
  .console { animation: none; }
}

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.center { text-align: center; }

@media print {
  .site-header, .site-footer, .aurora, .grain, .hero__canvas { display: none; }
  body { background: #fff; color: #000; }
}
