/* ============================================================
   NUMERIICA — deep-tech redesign
   Design system: tokens, type, base, components
   ============================================================ */

:root {
  /* surfaces */
  --bg:        #05070e;
  --bg-2:      #080b16;
  --surface:   rgba(255, 255, 255, 0.025);
  --surface-2: #0c1120;
  --panel:     #0a0f1d;

  /* lines */
  --line:      rgba(255, 255, 255, 0.08);
  --line-2:    rgba(255, 255, 255, 0.14);

  /* ink */
  --ink:       #eef2ff;
  --ink-soft:  #b9c2dc;
  --muted:     #8a96b6;
  --muted-2:   #5c688a;

  /* brand — modernized blue + electric accents */
  --brand:     #356bff;
  --brand-2:   #1f4fe0;
  --cyan:      #36e6ff;
  --violet:    #9a78ff;

  /* accent is tweakable */
  --accent:    var(--brand);
  --accent-2:  var(--cyan);

  --glow: 0 0 80px -20px var(--accent);

  /* type */
  --display: "Space Grotesk", "Manrope", sans-serif;
  --body:    "Manrope", system-ui, sans-serif;
  --mono:    "JetBrains Mono", ui-monospace, monospace;

  /* layout */
  --maxw: 1240px;
  --pad:  clamp(20px, 5vw, 80px);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

/* ambient page gradient + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(1100px 700px at 78% -8%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 60%),
    radial-gradient(900px 600px at 8% 12%, color-mix(in oklab, var(--violet) 16%, transparent), transparent 55%),
    radial-gradient(700px 500px at 50% 110%, color-mix(in oklab, var(--accent-2) 12%, transparent), transparent 60%);
  pointer-events: none;
  z-index: 0;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ---------- layout helpers ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { position: relative; z-index: 2; padding-block: clamp(80px, 11vw, 160px); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }

/* ---------- type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent-2);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-2), transparent);
}

h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.02; letter-spacing: -0.02em; }

.h-display {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.h-section {
  font-size: clamp(32px, 4.6vw, 58px);
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 58ch;
  text-wrap: pretty;
}
.muted { color: var(--muted); }

.grad {
  background: linear-gradient(105deg, var(--ink) 35%, var(--accent-2) 75%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.3s, border-color 0.3s;
  white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn--primary {
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 92%, white), var(--accent));
  color: #fff;
  box-shadow: 0 10px 30px -10px color-mix(in oklab, var(--accent) 70%, transparent), inset 0 1px 0 rgba(255,255,255,0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px color-mix(in oklab, var(--accent) 75%, transparent), inset 0 1px 0 rgba(255,255,255,0.3); }
.btn--ghost {
  background: rgba(255,255,255,0.02);
  border-color: var(--line-2);
  color: var(--ink);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { border-color: var(--accent-2); transform: translateY(-2px); background: rgba(255,255,255,0.05); }

/* ---------- nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px var(--pad);
  transition: background 0.4s, backdrop-filter 0.4s, border-color 0.4s, padding 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  border-bottom-color: var(--line);
  padding-block: 12px;
}
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(150deg, var(--accent), var(--violet));
  display: grid; place-items: center;
  box-shadow: var(--glow);
  position: relative;
}
.brand .mark::after {
  content: ""; position: absolute; inset: 6px;
  border: 1.5px solid rgba(255,255,255,0.85); border-radius: 4px;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand b { font-weight: 700; }
.brand span { color: var(--accent-2); }
.brand-logo { height: 69px; width: auto; display: block; }
.nav.is-stuck .brand-logo { height: 60px; }
.foot .brand-logo { height: 34px; }

.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  padding: 9px 14px; border-radius: 10px; transition: color 0.25s, background 0.25s;
}
.nav-links a:hover { color: var(--ink); background: rgba(255,255,255,0.04); }
.nav-right { display: flex; align-items: center; gap: 14px; }

.lang {
  display: inline-flex; font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--line); border-radius: 999px; overflow: hidden;
}
.lang button, .lang a {
  background: none; border: none; color: var(--muted); cursor: pointer;
  padding: 6px 11px; font-family: inherit; font-size: inherit; letter-spacing: 0.05em;
  transition: color 0.25s, background 0.25s; text-align: center;
}
.lang button.active, .lang a.active { color: var(--bg); background: var(--accent-2); font-weight: 600; }

.burger { display: none; }

/* ---------- hero ---------- */
.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; padding-top: 136px; overflow: hidden; }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; opacity: 0.9; }
.hero-grid { position: absolute; inset: 0; z-index: -2; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 70% 10%, black, transparent 75%);
  mask-image: radial-gradient(120% 90% at 70% 10%, black, transparent 75%);
}
.hero-inner { max-width: 920px; }
.hero h1 { margin: 22px 0 26px; }
.hero .lede { font-size: clamp(18px, 1.7vw, 23px); }
.hero-cta { display: flex; gap: 14px; margin-top: 38px; flex-wrap: wrap; }

.chip {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.04em;
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255,255,255,0.025);
  color: var(--ink-soft); backdrop-filter: blur(6px);
}
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-2); box-shadow: 0 0 12px var(--accent-2); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.35; } }

.hero-stats {
  display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 64px);
  margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--line);
}
.stat .n { font-family: var(--display); font-size: clamp(32px, 3.6vw, 46px); font-weight: 600; letter-spacing: -0.03em; }
.stat .n span { color: var(--accent-2); }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- trust bar ---------- */
.trustbar { position: relative; z-index: 2; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,0.018), transparent); }
.trustbar .wrap { padding-block: clamp(22px, 3vw, 32px); display: flex; align-items: center; justify-content: space-between; gap: 18px 44px; flex-wrap: wrap; }
.trust-label { font-size: 14.5px; color: var(--muted); max-width: 36ch; line-height: 1.5; }
.trust-label b { color: var(--ink); font-weight: 600; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.trust-chips .chip svg { width: 14px; height: 14px; color: var(--accent-2); flex: none; }
@media (max-width: 720px) { .trustbar .wrap { flex-direction: column; align-items: flex-start; } }

/* ---------- framework & governance ---------- */
.flist { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 11px; }
.flist li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }
.flist li svg { width: 17px; height: 17px; color: var(--accent-2); flex: none; margin-top: 3px; }
.privacy { margin-top: 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(110deg, var(--surface-2), rgba(255,255,255,0.01)); padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 44px); align-items: start; position: relative; overflow: hidden; }
.privacy::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 130% at 100% 0%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%); }
.privacy > * { position: relative; z-index: 1; }
.privacy .pic { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center;
  border: 1px solid var(--line-2); color: var(--accent-2); background: rgba(255,255,255,0.03); }
.privacy .pic svg { width: 27px; height: 27px; }
.privacy h3 { font-size: clamp(23px, 2.4vw, 30px); margin: 12px 0 10px; letter-spacing: -0.02em; }
.privacy p { color: var(--ink-soft); max-width: 66ch; }
@media (max-width: 720px) { .privacy { grid-template-columns: 1fr; } }

/* ---------- generic section header ---------- */
.shead { max-width: 760px; margin-bottom: clamp(40px, 5vw, 64px); }
.shead h2 { margin: 18px 0 18px; }

/* ---------- pillar grid ---------- */
.pillars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.pillar {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface), rgba(255,255,255,0.008));
  padding: 30px; overflow: hidden;
  transition: transform 0.5s var(--ease), border-color 0.4s, background 0.4s;
}
.pillar:hover { transform: translateY(-4px); border-color: var(--line-2); }
.pillar::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(140deg, color-mix(in oklab, var(--accent) 60%, transparent), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.4s;
}
.pillar:hover::before { opacity: 1; }
.pillar .ic {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); margin-bottom: 20px;
  color: var(--accent-2);
}
.pillar .ic svg { width: 24px; height: 24px; }
.pillar h3 { font-size: 22px; margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 15.5px; }
.pill-wide p { max-width: 74ch; }
.pillar .tag { position: absolute; top: 24px; right: 24px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; color: var(--muted-2); text-transform: uppercase; }
.col-7 { grid-column: span 7; } .col-5 { grid-column: span 5; }
.col-6 { grid-column: span 6; } .col-4 { grid-column: span 4; }
.col-12 { grid-column: span 12; }

/* ---------- tools (feature rows) ---------- */
.tool {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 80px);
  align-items: center; padding-block: clamp(48px, 6vw, 92px);
  border-top: 1px solid var(--line);
}
.tool:first-of-type { border-top: none; }
.tool--rev .tool-art { order: -1; }
.tool .knum { font-family: var(--mono); font-size: 13px; color: var(--accent-2); letter-spacing: 0.1em; }
.tool h3 { font-size: clamp(28px, 3vw, 40px); margin: 16px 0 18px; letter-spacing: -0.03em; }
.tool p { color: var(--ink-soft); max-width: 46ch; }
.tool ul { list-style: none; margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.tool li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-soft); }
.tool li svg { width: 18px; height: 18px; color: var(--accent-2); flex: none; margin-top: 3px; }

.tool-art {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(165deg, var(--panel), #06090f);
  padding: 22px; min-height: 340px; overflow: hidden;
  box-shadow: 0 40px 90px -50px #000;
}
.tool-art::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(120% 90% at 80% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%);
  pointer-events: none;
}

/* mini UI mock primitives */
.mock-bar { height: 1px; background: var(--line); margin: 14px 0; }
.mock-row { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--ink-soft); padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,0.02); }
.mock-row .led { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.led--g { background: #35e6a0; box-shadow: 0 0 10px #35e6a0; }
.led--b { background: var(--accent-2); box-shadow: 0 0 10px var(--accent-2); }
.led--v { background: var(--violet); box-shadow: 0 0 10px var(--violet); }
.mock-pill { margin-left: auto; font-size: 10.5px; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.mock-stack { display: flex; flex-direction: column; gap: 9px; }

.window { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: #070b14; }
.window-top { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.window-top i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); display: block; }
.window-top .ttl { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.window-body { padding: 16px; }
.code { font-family: var(--mono); font-size: 12.5px; line-height: 1.85; }
.code .k { color: var(--violet); } .code .s { color: #6fe6a8; } .code .c { color: var(--muted-2); } .code .f { color: var(--accent-2); } .code .n { color: #ffb86b; }

/* image slot framing */
image-slot { width: 100%; }
/* dark-theme empty state — the component ships light-on-light, invisible on our dark bg */
image-slot::part(frame) {
  background:
    radial-gradient(120% 120% at 30% 18%, rgba(255,255,255,0.06), transparent 60%),
    rgba(255,255,255,0.022);
}
image-slot::part(ring) { border-color: rgba(255,255,255,0.20); }
image-slot::part(empty) { color: var(--ink-soft); }
.slot-frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }

/* ---------- showcase / dashboard ---------- */
.showcase { display: grid; grid-template-columns: repeat(12,1fr); gap: 16px; }
.metric {
  border: 1px solid var(--line); border-radius: 15px; padding: 22px;
  background: linear-gradient(180deg, var(--surface), transparent);
}
.metric .lab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.metric .big { font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.03em; margin-top: 10px; }
.metric .trend { font-size: 13px; margin-top: 6px; color: #35e6a0; display: flex; align-items: center; gap: 6px; }
.spark { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 14px; }
.spark i { flex: 1; background: linear-gradient(180deg, var(--accent-2), color-mix(in oklab, var(--accent) 40%, transparent)); border-radius: 3px 3px 0 0; display: block; opacity: 0.85; }

/* ---------- e-commerce demoted band ---------- */
.ecom {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(110deg, var(--surface-2), rgba(255,255,255,0.01));
  padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: auto 1fr; gap: clamp(20px, 4vw, 48px); align-items: start;
}
.ecom .ic { width: 56px; height: 56px; border-radius: 15px; display: grid; place-items: center; border: 1px solid var(--line-2); color: var(--accent-2); background: rgba(255,255,255,0.03); margin-top: 4px; }
.ecom .ic svg { width: 26px; height: 26px; }
.ecom h3 { font-size: 24px; margin-bottom: 6px; }
.ecom p { color: var(--muted); font-size: 15px; max-width: 66ch; }
.ecom-list { margin-top: 18px; max-width: 70ch; }
.ecom-list li { color: var(--ink-soft); }
.ecom-close { margin-top: 18px; color: var(--ink-soft); font-weight: 600; }

/* ---------- process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.step { border-top: 1px solid var(--line-2); padding-top: 22px; }
.step .num { font-family: var(--mono); font-size: 13px; color: var(--accent-2); }
.step h4 { font-family: var(--display); font-size: 20px; margin: 14px 0 8px; font-weight: 600; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; z-index: 2; border: 1px solid var(--line-2); border-radius: 28px;
  background: linear-gradient(150deg, color-mix(in oklab, var(--accent) 18%, var(--panel)), var(--panel));
  padding: clamp(44px, 7vw, 96px); overflow: hidden; text-align: center;
}
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 120% at 50% 0%, color-mix(in oklab, var(--accent-2) 22%, transparent), transparent 60%); }
.cta-band > * { position: relative; }
.cta-band h2 { margin-bottom: 18px; }
.cta-band .lede { margin: 0 auto 34px; text-align: center; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.news { display: flex; gap: 10px; max-width: 440px; margin: 22px auto 0; }
.news input {
  flex: 1; background: rgba(0,0,0,0.3); border: 1px solid var(--line-2); border-radius: 999px;
  padding: 14px 20px; color: var(--ink); font-family: var(--body); font-size: 15px;
}
.news input::placeholder { color: var(--muted-2); }
.news input:focus { outline: none; border-color: var(--accent-2); }

/* ---------- contact form ---------- */
.cform { max-width: 560px; margin: 10px auto 0; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.cform-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cform input, .cform textarea {
  width: 100%; background: rgba(0,0,0,0.32); border: 1px solid var(--line-2); border-radius: 14px;
  padding: 14px 18px; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5;
}
.cform textarea { resize: vertical; min-height: 108px; }
.cform input::placeholder, .cform textarea::placeholder { color: var(--muted-2); }
.cform input:focus, .cform textarea:focus { outline: none; border-color: var(--accent-2); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent-2) 16%, transparent); }
.cform-submit { justify-content: center; margin-top: 4px; }
.cform .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cform-status { font-size: 14px; margin-top: 2px; min-height: 1.2em; text-align: center; transition: color 0.3s; }
.cform-status.ok { color: #35e6a0; }
.cform-status.err { color: #ff7a7a; }
.cta-alt { font-size: 14px; margin-top: 18px; }
.cta-alt a { color: var(--accent-2); font-weight: 600; }
@media (max-width: 600px) { .cform-row { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */
.foot { position: relative; z-index: 2; border-top: 1px solid var(--line); padding-block: 64px 40px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.foot h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.foot a { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 5px 0; transition: color 0.25s; }
.foot .brand { display: flex; padding: 0; color: var(--ink); }
.foot a:hover { color: var(--accent-2); }
.foot p.desc { color: var(--muted); font-size: 14.5px; max-width: 34ch; margin-top: 16px; }
.foot-legal-link { display: block; color: var(--ink-soft); font-size: 14.5px; padding: 5px 0; cursor: default; transition: color 0.25s; }
.foot-legal-link:hover { color: var(--accent-2); }
a.foot-legal-link { cursor: pointer; }

/* ---------- legal / policy pages ---------- */
.legal-page { position: relative; z-index: 2; padding-top: clamp(120px, 15vh, 168px); padding-bottom: clamp(64px, 9vw, 120px); min-height: 68vh; }
.legal-head { max-width: 940px; margin: 0 auto clamp(26px, 4vw, 42px); }
.legal-head h1 { margin: 16px 0 14px; }
.legal-head .lede { color: var(--ink-soft); max-width: 68ch; }
.legal-card { max-width: 940px; margin: 0 auto; background: #f5f7fb; color: #1b2436;
  border: 1px solid var(--line-2); border-radius: var(--radius); padding: clamp(24px, 4vw, 52px);
  box-shadow: 0 40px 90px -50px #000; line-height: 1.6; overflow-wrap: break-word; }
.legal-card :is(h1,h2,h3,h4,h5,h6) { color: #0b1220; font-family: var(--display); letter-spacing: -0.01em; margin: 1.4em 0 0.5em; line-height: 1.2; }
.legal-card :is(h1,h2,h3,h4,h5,h6):first-child { margin-top: 0; }
.legal-card p, .legal-card li { color: #2a3346; }
.legal-card a { color: #2450c8; text-decoration: underline; }
.legal-card table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 14px; }
.legal-card th, .legal-card td { border: 1px solid #d4d9e6; padding: 9px 12px; text-align: left; vertical-align: top; }
.legal-card th { background: #e9edf6; color: #0b1220; font-weight: 600; }
.legal-card :is(table, .cky-cookie-table-wrapper) { overflow-x: auto; display: block; }
.legal-loading { color: #6b7488; font-size: 15px; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--line); color: var(--muted-2); font-size: 13px; font-family: var(--mono); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.08s; } .reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; } .reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .burger { display: grid; }
  .brand-logo { height: 48px; }
  .nav.is-stuck .brand-logo { height: 44px; }
  .lang button { padding: 9px 14px; }
  .nav .burger { padding: 12px 13px !important; }
  .pillars > * { grid-column: span 12 !important; }
  .tool { grid-template-columns: 1fr; }
  .tool--rev .tool-art { order: 0; }
  .showcase > * { grid-column: span 6 !important; }
  .showcase > .col-12 { grid-column: span 12 !important; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .ecom { grid-template-columns: 1fr; text-align: left; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .metric.col-12 { grid-template-columns: 1fr !important; }
  .metric.col-12 .slot-frame { width: 100% !important; }
}
@media (max-width: 560px) {
  .brand-logo { height: 40px; }
  .nav.is-stuck .brand-logo { height: 38px; }
  .showcase > * { grid-column: span 12 !important; }
  .steps { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 24px; }
}

/* ============================================================
   AI in Healthcare — industry spotlight
   ============================================================ */
.industry { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: stretch; }
.industry-art { min-height: 480px; }
.uc-list { display: flex; flex-direction: column; }
.uc { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.uc:first-child { border-top: none; padding-top: 4px; }
.uc .uic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); color: var(--accent-2); }
.uc .uic svg { width: 22px; height: 22px; }
.uc h4 { font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 5px; letter-spacing: -0.01em; }
.uc p { color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.compliance { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.compliance .chip svg { width: 14px; height: 14px; color: var(--accent-2); }

/* ============================================================
   WAWI — flagship project (purple-themed band)
   ============================================================ */
.wawi {
  position: relative; overflow: hidden;
  border: 1px solid var(--line-2); border-radius: 28px;
  background:
    radial-gradient(80% 130% at 100% 0%, color-mix(in oklab, var(--accent) 30%, transparent), transparent 55%),
    radial-gradient(70% 120% at 0% 100%, color-mix(in oklab, var(--accent-2) 16%, transparent), transparent 60%),
    linear-gradient(160deg, color-mix(in oklab, var(--accent) 13%, var(--panel)), #07060f);
  padding: clamp(30px, 4.5vw, 62px);
}
.wawi::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: radial-gradient(80% 80% at 90% 0%, black, transparent 70%);
  mask-image: radial-gradient(80% 80% at 90% 0%, black, transparent 70%);
}
.wawi > * { position: relative; z-index: 1; }
.wawi-top { display: grid; grid-template-columns: 1.35fr 0.85fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.wawi-word { font-family: var(--display); font-weight: 700; font-size: clamp(46px, 7vw, 84px); letter-spacing: -0.045em; line-height: 0.88; margin: 18px 0 12px;
  background: linear-gradient(100deg, #fff 40%, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wawi-logo { height: clamp(44px, 6.2vw, 74px); width: auto; display: block; margin: 16px 0 14px; }
.wawi-tag { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent-2); }
.wawi-lede { color: var(--ink-soft); max-width: 60ch; margin-top: 20px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.55; text-wrap: pretty; }
.wawi-art { min-height: 300px; }
.wawi-pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: clamp(32px, 4vw, 46px) 0 0; }
.wpillar { border: 1px solid var(--line-2); border-radius: 16px; padding: 22px; background: rgba(255,255,255,0.035); transition: transform 0.45s var(--ease), border-color 0.4s, background 0.4s; }
.wpillar:hover { transform: translateY(-5px); border-color: color-mix(in oklab, var(--accent-2) 55%, transparent); background: rgba(255,255,255,0.06); }
.wpillar .wp-ic { width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: color-mix(in oklab, var(--accent) 22%, transparent); border: 1px solid color-mix(in oklab, var(--accent-2) 35%, transparent); color: #fff; }
.wpillar .wp-ic svg { width: 21px; height: 21px; }
.wpillar h4 { font-family: var(--display); font-size: 19px; font-weight: 600; margin: 16px 0 4px; letter-spacing: -0.01em; }
.wpillar p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; }
.wawi-facts { display: flex; flex-wrap: wrap; gap: clamp(24px, 4vw, 52px); margin-top: clamp(30px, 4vw, 44px); padding-top: 28px; border-top: 1px solid var(--line-2); }
.wfact .n { font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; letter-spacing: -0.03em; color: #fff; }
.wfact .l { font-size: 12.5px; color: var(--muted); margin-top: 3px; }

@media (max-width: 900px) {
  .industry { grid-template-columns: 1fr; }
  .industry-art { min-height: 320px; }
  .wawi-top { grid-template-columns: 1fr; }
  .wawi-pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .wawi-pillars { grid-template-columns: 1fr; }
}
