/* =========================================================
   DenZ West — AI Systems for Business
   ========================================================= */

:root {
  --bg: #05080f;
  --bg-2: #070c18;
  --navy: #0a1430;
  --navy-2: #0e1c44;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --text: #f1f5f9;
  --muted: #94a3b8;
  --dim: #64748b;
  --line: rgba(148, 163, 184, 0.14);
  --line-strong: rgba(148, 163, 184, 0.24);
  --surface: rgba(255, 255, 255, 0.025);
  --surface-2: rgba(255, 255, 255, 0.045);
  --accent-grad: linear-gradient(135deg, #3b82f6 0%, #22d3ee 100%);

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 16px;
  --radius-sm: 10px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.12;
  text-wrap: balance;
}

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--cyan);
  opacity: 0.7;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 16px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background-color 0.25s, border-color 0.25s, color 0.25s;
}
.btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.25s var(--ease);
}
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--accent-grad);
  color: #04101f;
  box-shadow: 0 6px 24px -8px rgba(34, 211, 238, 0.45);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 32px -8px rgba(34, 211, 238, 0.6);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}
.btn-ghost:hover {
  border-color: rgba(34, 211, 238, 0.5);
  background: rgba(34, 211, 238, 0.06);
}

.btn-sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-lg { --h: 58px; padding: 0 32px; font-size: 17px; }

/* ---------- Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--nav-h);
  transition: background-color 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(5, 8, 15, 0.72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom-color: var(--line);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.brand img { width: 40px; height: 40px; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  position: relative;
  font-size: 15px;
  color: var(--muted);
  transition: color 0.2s;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.is-active::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(48px, 9vw, 110px)) 0 clamp(80px, 10vw, 140px);
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 20%, transparent 75%);
}
.hero-glow {
  position: absolute;
  width: 900px;
  height: 900px;
  right: -200px;
  top: -320px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.18) 0%, rgba(34, 211, 238, 0.06) 35%, transparent 65%);
}
.dot-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 46%;
  opacity: 0.9;
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  mask-image: linear-gradient(to top, #000 30%, transparent);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}

.hero h1 {
  margin-top: 22px;
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.hero-lead {
  margin-top: 24px;
  font-size: clamp(18px, 1.6vw, 21px);
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 34em;
}
.hero-sub {
  margin-top: 14px;
  color: var(--muted);
  max-width: 36em;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-note {
  margin-top: 18px;
  font-size: 14px;
  color: var(--dim);
  letter-spacing: 0.01em;
}
.hero-note span { margin: 0 6px; color: var(--cyan); opacity: 0.7; }

/* Flow visual */
.hero-visual { position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 5%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.14), transparent 70%);
  filter: blur(30px);
  z-index: -1;
}
.flow-panel {
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(14, 28, 68, 0.55), rgba(7, 12, 24, 0.75));
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.flow-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.flow-dots { display: flex; gap: 6px; }
.flow-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.25);
}
.flow-title { flex: 1; letter-spacing: 0.02em; }
.flow-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(34, 211, 238, 0.3);
  color: var(--cyan);
  font-size: 12px;
}
.flow-status i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  animation: blink 2s infinite;
}

.flow { padding: 22px 22px 26px; }
.flow-node {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: border-color 0.35s, box-shadow 0.35s, opacity 0.35s;
}
.flow-icon {
  flex: none;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid rgba(59, 130, 246, 0.25);
}
.flow-icon svg,
.solution-icon svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.flow-text { display: flex; flex-direction: column; min-width: 0; }
.flow-text strong { font-size: 15px; font-weight: 600; }
.flow-text small { font-size: 13px; color: var(--muted); }

.flow-node-ai {
  border-color: rgba(34, 211, 238, 0.35);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.12), rgba(34, 211, 238, 0.05));
}
.flow-node-ai .flow-icon {
  background: var(--accent-grad);
  border-color: transparent;
}
.flow-node-ai .flow-icon svg { stroke: #04101f; }
.flow-tags {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.flow-tags em {
  font-style: normal;
  font-size: 11px;
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--line-strong);
  color: var(--muted);
}

/* Step state: pending ○ → running (spinner + progress bar) → done ✓ */
.flow-state {
  flex: none;
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid rgba(148, 163, 184, 0.3);
  position: relative;
  transition: border-color 0.3s, background-color 0.3s;
}
.flow-tags ~ .flow-state { margin-left: 10px; }
.flow-state::after {
  content: "";
  position: absolute;
  inset: 3px;
  background: #04101f;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.25s, transform 0.3s var(--ease);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.flow-progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: var(--accent-grad);
  box-shadow: 0 0 10px rgba(34, 211, 238, 0.6);
}

.flow-node.is-running {
  border-color: rgba(34, 211, 238, 0.5);
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.2), 0 0 28px -6px rgba(34, 211, 238, 0.4);
}
.flow-node.is-running .flow-state {
  border-color: rgba(34, 211, 238, 0.25);
  border-top-color: var(--cyan);
  animation: spin 0.8s linear infinite;
}
.flow-node.is-running .flow-progress {
  width: 100%;
  transition: width var(--dur, 1.2s) cubic-bezier(0.4, 0.1, 0.6, 1);
}
.flow-node.is-done { border-color: rgba(34, 211, 238, 0.22); }
.flow-node.is-done .flow-state {
  border-color: transparent;
  background: var(--cyan);
}
.flow-node.is-done .flow-state::after { opacity: 1; transform: none; }
.flow-node.is-done .flow-progress { width: 100%; opacity: 0; transition: opacity 0.6s; }

.flow-link {
  position: relative;
  height: 26px;
  margin-left: 35px;
  width: 2px;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 2px;
}
.flow-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(var(--blue), var(--cyan));
  box-shadow: 0 0 8px rgba(34, 211, 238, 0.7);
  transform: scaleY(0);
  transform-origin: top;
}
.flow-link.is-active::after {
  transform: scaleY(1);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* whole run finished: soft fade before restarting */
.flow.is-resetting .flow-node,
.flow.is-resetting .flow-link { opacity: 0.35; }

.flow-status.is-complete i { animation: none; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 140px) 0; position: relative; }
.section-head { max-width: 760px; }
.section-head h2 {
  margin-top: 18px;
  font-size: clamp(30px, 3.8vw, 46px);
}
.section-sub { margin-top: 18px; color: var(--muted); }

/* Problem */
.problem { border-top: 1px solid var(--line); }
.problem-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.problem-item {
  padding: 32px 28px 8px 0;
  border-right: 1px solid var(--line);
  padding-left: 28px;
}
.problem-item:first-child { padding-left: 0; }
.problem-item:last-child { border-right: 0; }
.problem-num {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--cyan);
  letter-spacing: 0.08em;
}
.problem-item h3 { margin-top: 18px; font-size: 20px; }
.problem-item p { margin-top: 10px; color: var(--muted); font-size: 16px; }

.principle {
  margin-top: 80px;
  padding: 40px 0 0;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.principle-lead {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.25;
  letter-spacing: -0.015em;
  background: linear-gradient(90deg, #fff 30%, #9fe9f7);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.principle p:last-child { color: var(--muted); font-size: 18px; }

/* Solutions */
.solutions {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 50%, var(--bg) 100%);
}
.solutions-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.solution {
  position: relative;
  padding: 36px 32px 40px;
  background: var(--bg-2);
  transition: background-color 0.35s;
}
.solution::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: var(--accent-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.solution:hover { background: #0a1124; }
.solution:hover::before { transform: scaleX(1); }
.solution-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.22);
}
.solution h3 { margin-top: 24px; font-size: 19px; }
.solution p { margin-top: 10px; color: var(--muted); font-size: 16px; }

/* Process */
.steps {
  margin-top: 72px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 22px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cyan), rgba(59, 130, 246, 0.4) 60%, transparent);
  opacity: 0.6;
}
.step { position: relative; }
.step-num {
  position: relative;
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid rgba(34, 211, 238, 0.5);
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
}
.step h3 { margin-top: 26px; font-size: 22px; }
.step p { margin-top: 10px; color: var(--muted); font-size: 16px; max-width: 22em; }
.center { margin-top: 64px; display: flex; justify-content: center; }

/* Use cases */
.usecases { border-top: 1px solid var(--line); }
.uc {
  margin-top: 64px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 24px;
  align-items: stretch;
}
.uc-tabs { display: flex; flex-direction: column; gap: 10px; }
.uc-tab {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  text-align: left;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  transition: border-color 0.25s, background-color 0.25s;
}
.uc-tab:hover { border-color: var(--line-strong); background: var(--surface); }
.uc-tab[aria-selected="true"] {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.1), rgba(34, 211, 238, 0.03));
}
.uc-tab-num {
  font-family: var(--font-head);
  font-size: 13px;
  color: var(--dim);
  transition: color 0.25s;
}
.uc-tab[aria-selected="true"] .uc-tab-num { color: var(--cyan); }
.uc-tab-text { display: flex; flex-direction: column; }
.uc-tab-text strong { font-size: 16.5px; font-weight: 600; }
.uc-tab-text small { font-size: 13.5px; color: var(--muted); }

.uc-panels {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background:
    radial-gradient(ellipse at 100% 0%, rgba(59, 130, 246, 0.12), transparent 60%),
    var(--bg-2);
  padding: clamp(28px, 4vw, 44px);
  min-height: 100%;
}
.uc-trigger {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.3;
}
.uc-pill {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--cyan);
  border: 1px solid rgba(34, 211, 238, 0.35);
}
.uc-intro { margin-top: 22px; color: var(--muted); }
.uc-steps { margin-top: 18px; display: grid; gap: 10px; }
.uc-steps li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 16px;
  opacity: 0;
  transform: translateX(-8px);
  animation: stepIn 0.5s var(--ease) forwards;
  animation-delay: calc(var(--n, 0) * 0.12s + 0.05s);
}
.uc-steps li::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  background: var(--cyan);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat;
}
@keyframes stepIn { to { opacity: 1; transform: none; } }

.uc-foot {
  margin-top: 56px;
  text-align: center;
  color: var(--muted);
  font-size: 18px;
}

/* Industries */
.industries { padding-top: 0; }
.industries-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding-top: clamp(64px, 9vw, 110px);
  position: relative;
}
/* hairline aligned to the content edge, not the container padding */
.industries-inner::before,
.footer-bottom::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--gutter);
  right: var(--gutter);
  height: 1px;
  background: var(--line);
}
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 11px 18px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  color: #cbd5e1;
  font-size: 15px;
  background: var(--surface);
  transition: border-color 0.25s, color 0.25s;
}
.chips li:hover { border-color: rgba(34, 211, 238, 0.45); color: var(--text); }

/* Why */
.why-inner {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: start;
}
.why .section-head { position: sticky; top: calc(var(--nav-h) + 40px); }
.why-list { display: grid; gap: 0; }
.why-item {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--line);
}
.why-item:last-child { border-bottom: 1px solid var(--line); }
.why-item dt {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.01em;
}
.why-item dd { color: var(--muted); }

/* Final CTA */
.final-cta { padding: 0 0 clamp(80px, 10vw, 130px); }
.cta-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, rgba(59, 130, 246, 0.22), transparent 70%),
    linear-gradient(180deg, var(--navy) 0%, var(--bg-2) 100%);
  padding: clamp(56px, 8vw, 104px) clamp(24px, 6vw, 80px);
  text-align: center;
}
.dot-wave-cta { height: 60%; z-index: -1; opacity: 0.8; }
.cta-content { max-width: 780px; margin-inline: auto; }
.cta-panel h2 { font-size: clamp(30px, 4.2vw, 50px); }
.cta-panel p { margin-top: 20px; color: #cbd5e1; font-size: 18px; }
.cta-panel .btn { margin-top: 36px; }
.cta-panel .cta-small { margin-top: 22px; font-size: 14.5px; color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 32px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand p { margin-top: 10px; color: var(--muted); font-size: 15px; }
.footer-email {
  display: inline-block;
  margin-top: 14px;
  color: var(--cyan);
  font-size: 15px;
}
.footer-email:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 32px;
  align-content: flex-start;
}
.footer-links a { color: var(--muted); font-size: 15px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  position: relative;
  margin-top: 48px;
  padding-top: 24px;
  color: var(--dim);
  font-size: 14px;
}

.footer-legal {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}
.footer-legal nav { display: flex; gap: 24px; }
.footer-legal a { color: var(--muted); transition: color 0.2s; }
.footer-legal a:hover,
.footer-legal a[aria-current="page"] { color: var(--text); }
.legal + .site-footer .footer-bottom { margin-top: 0; }
.legal + .site-footer .footer-bottom::before { display: none; }

/* ---------- Legal pages ---------- */
.legal { padding: calc(var(--nav-h) + clamp(48px, 7vw, 88px)) 0 clamp(64px, 8vw, 104px); }
.legal-inner { max-width: 780px; }
.legal h1 { margin-top: 18px; font-size: clamp(34px, 4.6vw, 52px); }
.legal-updated { margin-top: 12px; color: var(--dim); font-size: 15px; }
.legal h2 {
  margin-top: 48px;
  font-size: clamp(20px, 2.2vw, 24px);
  letter-spacing: -0.01em;
}
.legal h3 { margin-top: 24px; font-size: 17px; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.legal p,
.legal li { color: #cbd5e1; }
.legal-inner > p { margin-top: 16px; }
.legal-inner > p.eyebrow { margin-top: 0; }
.legal ul { margin-top: 12px; display: grid; gap: 10px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}
.legal a:not(.btn) { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.legal strong { color: var(--text); font-weight: 600; }

/* ---------- Reveal animations ---------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
  transition-delay: var(--d, 0s);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; }
  .hero-visual { max-width: 560px; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .problem-item,
  .problem-item:first-child { padding: 32px 28px 32px 0; }
  .problem-item:nth-child(2n) { border-right: 0; padding-left: 28px; }
  .problem-item:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .solutions-grid { grid-template-columns: repeat(2, 1fr); }
  .why-item { grid-template-columns: 1fr; gap: 8px; }
}

@media (max-width: 860px) {
  :root { --nav-h: 64px; }

  .nav-toggle { display: block; z-index: 2; }
  .nav-menu {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px var(--gutter) 32px;
    background: rgba(5, 8, 15, 0.97);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, transform 0.25s var(--ease), visibility 0.25s;
  }
  .nav-menu.is-open { opacity: 1; transform: none; visibility: visible; }
  .site-header:has(.nav-menu.is-open) { background: rgba(5, 8, 15, 0.97); border-bottom-color: var(--line); }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 18px;
    color: var(--text);
    border-bottom: 1px solid var(--line);
  }
  .nav-links a::after { display: none; }
  .nav-menu .btn { --h: 52px; font-size: 16px; }

  .principle { grid-template-columns: 1fr; gap: 16px; }
  .steps { grid-template-columns: 1fr; gap: 0; margin-top: 56px; }
  .steps::before {
    top: 0;
    bottom: 0;
    left: 22px;
    right: auto;
    width: 1px;
    height: auto;
    background: linear-gradient(180deg, var(--cyan), rgba(59, 130, 246, 0.4) 70%, transparent);
  }
  .step {
    display: grid;
    grid-template-columns: 45px 1fr;
    column-gap: 22px;
    padding-bottom: 40px;
  }
  .step-num { grid-row: span 2; }
  .step h3 { margin-top: 8px; font-size: 20px; }
  .step p { margin-top: 6px; }

  .uc { grid-template-columns: 1fr; }
  .industries-inner { grid-template-columns: 1fr; gap: 32px; }
  .why-inner { grid-template-columns: 1fr; gap: 32px; }
  .why .section-head { position: static; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }

  .hero h1 { font-size: clamp(34px, 10vw, 44px); }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .hero-note { text-align: center; }
  .flow { padding: 16px 14px 18px; }
  .flow-node { padding: 11px 12px; gap: 12px; }
  .flow-link { margin-left: 29px; height: 20px; }
  .flow-state { width: 20px; height: 20px; }
  .flow-tags { display: none; }
  .flow-icon { width: 34px; height: 34px; }

  .problem-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .problem-item,
  .problem-item:first-child,
  .problem-item:nth-child(2n) {
    padding: 26px 0;
    border-right: 0;
    border-top: 1px solid var(--line);
  }
  .problem-item:first-child { border-top: 0; }

  .solutions-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .solution { padding: 28px 24px 32px; }

  .uc-tabs {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .uc-tabs::-webkit-scrollbar { display: none; }
  .uc-tab { flex: 0 0 78%; scroll-snap-align: start; padding: 16px 18px; }
  .uc-steps li { font-size: 15px; }

  .chips li { font-size: 14px; padding: 9px 14px; }
  .cta-panel { border-radius: 20px; }
  .cta-panel .btn { width: 100%; white-space: normal; text-align: center; }
  .footer-links { gap: 12px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  /* keep the workflow demo's gentle fills; just stop the spinner */
  .flow-node.is-running .flow-progress { transition-duration: var(--dur, 1.2s) !important; }
  .flow-link.is-active::after { transition-duration: 0.4s !important; }
  .flow-node.is-running .flow-state { animation: none !important; }
  .uc-steps li { opacity: 1; transform: none; }
}
