/* ============================================
   Kognitera v2 — Turquoise Edition
   ============================================ */

@font-face {
  font-family: "OneDay";
  src: url("assets/oneday.otf") format("opentype");
  font-display: swap;
}

:root {
  /* Palette — Turquoise Lead */
  --bg: #0A0A1F;
  --surface: #14142B;
  --surface-2: #1B1B38;
  --surface-3: #232347;

  --accent: #8B5CFF;
  --accent-bright: #A580FF;
  --accent-deep: #6A3FE0;
  --accent-cyan: #00B8FF;

  --support-violet: #8B5CFF;
  --support-blue: #00B8FF;

  --text: #FFFFFF;
  --text-2: #CFCEE0;
  --text-3: #8A8AA8;

  --border: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.24);
  --border-accent: rgba(139, 92, 255, 0.5);

  --grid-line: rgba(255, 255, 255, 0.04);

  /* Type */
  --font-display: "Space Grotesk", "Sora", system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", "DM Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "IBM Plex Mono", ui-monospace, monospace;

  /* Radii */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;

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

  /* Borders */
  --bw: 2px;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --surface: #F4F4FA;
  --surface-2: #EBEBF4;
  --surface-3: #E1E1ED;

  --text: #0A0A1F;
  --text-2: #2D2D4D;
  --text-3: #5E5E80;

  --border: rgba(10, 10, 31, 0.14);
  --border-strong: rgba(10, 10, 31, 0.22);
  --border-accent: rgba(106, 63, 224, 0.45);

  --grid-line: rgba(10, 10, 31, 0.05);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* ============================================
   Type
   ============================================ */
.h-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.04;
  font-size: clamp(44px, 6.5vw, 86px);
  color: var(--text);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.06;
  font-size: clamp(36px, 4.6vw, 60px);
  color: var(--text);
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.12;
  font-size: clamp(28px, 3vw, 38px);
  color: var(--text);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-size: 22px;
  color: var(--text);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}
.eyebrow-mute {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.lead {
  font-size: clamp(18px, 1.4vw, 21px);
  line-height: 1.6;
  color: var(--text-2);
  font-weight: 400;
}
.body {
  color: var(--text-2);
  font-size: 17px;
  line-height: 1.65;
}
.muted { color: var(--text-3); }
.accent { color: var(--accent); }

/* ============================================
   Layout
   ============================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  padding: clamp(72px, 9vw, 140px) 0;
  position: relative;
}
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 760px;
  margin-bottom: 56px;
}
.section-head > * { margin: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }

.divider {
  height: var(--bw);
  background: var(--border);
  width: 100%;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.005em;
  transition: transform .18s ease, background .2s ease, border-color .2s ease, box-shadow .25s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary {
  background: #00B8FF;
  color: #FFFFFF;
  border: var(--bw) solid #00B8FF;
  box-shadow: 0 0 0 0 rgba(0, 184, 255, 0);
}
.btn-primary:hover {
  background: #4FCDFF;
  border-color: #4FCDFF;
  transform: translateY(-1px);
  box-shadow: 0 10px 32px -8px rgba(0, 184, 255, 0.55), 0 0 0 6px rgba(0, 184, 255, 0.1);
}
.btn-secondary {
  background: transparent;
  color: #00B8FF;
  border: var(--bw) solid #00B8FF;
}
.btn-secondary:hover {
  background: rgba(0, 184, 255, 0.08);
  color: #4FCDFF;
  border-color: #4FCDFF;
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: var(--bw) solid var(--border-strong);
}
.btn-ghost:hover { border-color: #00B8FF; color: #00B8FF; }

.btn-sm { padding: 10px 16px; font-size: 14px; }
.btn-lg { padding: 18px 28px; font-size: 16px; }

.btn .arrow {
  transition: transform .25s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* ============================================
   Cards
   ============================================ */
.card {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover {
  border-color: var(--border-accent);
}
.card-pad-lg { padding: 36px; }

.icon-frame {
  width: 48px;
  height: 64px;
  border-radius: var(--r-md);
  border: var(--bw) solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  background: rgba(139, 92, 255, 0.06);
}
.icon-frame-lg {
  width: 56px;
  height: 56px;
}

/* ============================================
   Nav
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 31, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: var(--bw) solid var(--border);
}
[data-theme="light"] .nav {
  background: rgba(255, 255, 255, 0.82);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  color: var(--text);
}
.nav-logo svg {
  display: block;
  flex: none;
}
.nav-logo-img {
  display: block;
  height: 64px;
  width: auto;
  flex: none;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-link {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-weight: 600;
  font-size: 14.5px;
  color: var(--text-2);
  font-family: var(--font-body);
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--text); background: rgba(255,255,255,0.04); }
[data-theme="light"] .nav-link:hover { background: rgba(10, 10, 31, 0.04); }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.theme-toggle {
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  border: var(--bw) solid var(--border-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: border-color .2s, color .2s;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }

.lang-toggle {
  height: 38px;
  padding: 0 12px;
  border-radius: var(--r-md);
  border: var(--bw) solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: border-color .2s, color .2s;
}
.lang-toggle:hover { border-color: var(--accent); color: var(--accent); }
.lang-toggle .lang-active { color: var(--accent); }

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: clamp(56px, 7vw, 96px) 0 clamp(64px, 8vw, 120px);
  overflow: hidden;
}
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 2px, transparent 2px),
    linear-gradient(90deg, var(--grid-line) 2px, transparent 2px);
  background-size: 80px 80px;
  background-position: center center;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 40%, black 30%, transparent 80%);
  pointer-events: none;
}
.hero-glow {
  position: absolute;
  width: 760px;
  height: 760px;
  right: -200px;
  top: -120px;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.18), transparent 60%);
  filter: blur(10px);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 64px;
  align-items: center;
}
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  border: var(--bw) solid var(--border);
  background: rgba(139, 92, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-2);
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.18);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(139, 92, 255, 0.18); }
  50% { box-shadow: 0 0 0 8px rgba(139, 92, 255, 0.0); }
}
.hero-h1 {
  margin: 20px 0 22px;
}
.hero-h1 .grad {
  background: linear-gradient(100deg, var(--accent) 0%, var(--accent-cyan) 60%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  max-width: 560px;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  gap: 28px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.hero-meta .item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}
.hero-meta .check {
  color: var(--accent);
  display: inline-flex;
}

/* ============================================
   AI Engine diagram
   ============================================ */
.engine-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1.04 / 1;
  max-width: 660px;
  margin-left: auto;
}
.engine-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.engine-chip {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 2;
  transition: stroke .2s ease;
}
.engine-chip-group:hover .engine-chip { stroke: var(--accent); }
.engine-chip-label {
  fill: var(--text);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
}
.engine-chip-icon-bg {
  fill: rgba(139, 92, 255, 0.08);
  stroke: var(--border);
  stroke-width: 2;
  rx: 6;
}
.engine-link {
  fill: none;
  stroke: var(--border-strong);
  stroke-width: 3;
  stroke-linecap: round;
}
.engine-node-dot {
  fill: var(--accent);
}
.engine-pulse {
  fill: var(--accent-bright);
  filter: drop-shadow(0 0 6px var(--accent-bright));
}
.engine-core-ring {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}
.engine-core-ring-soft {
  fill: none;
  stroke: rgba(139, 92, 255, 0.25);
  stroke-width: 2;
}
.engine-core-bg {
  fill: var(--surface);
  stroke: var(--accent);
  stroke-width: 3;
}
.engine-core-label {
  fill: var(--text);
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.engine-core-sub {
  fill: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}

/* ============================================
   Trust strip
   ============================================ */
.trust-strip {
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 32px;
  border-top: var(--bw) solid var(--border);
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  white-space: nowrap;
}
.trust-logos {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 44px);
  flex-wrap: wrap;
  flex: 1;
}
.trust-logo {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-2);
  font-size: 16px;
  opacity: 0.78;
  transition: opacity .2s, color .2s;
}
.trust-logo:hover { opacity: 1; color: var(--text); }

/* ============================================
   Metrics bar
   ============================================ */
.metrics {
  position: relative;
  border-top: var(--bw) solid var(--border);
  border-bottom: var(--bw) solid var(--border);
  background: var(--surface);
}
.metrics-tag {
  position: absolute;
  top: 18px;
  right: var(--gutter);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--text-3);
  text-transform: uppercase;
}
.metrics-tag .pip {
  width: 6px; height: 6px; background: var(--accent); border-radius: 50%;
  opacity: 0.7;
}
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0;
}
@media (max-width: 1180px) { .metrics-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 720px) { .metrics-grid { grid-template-columns: repeat(2, 1fr); } }
.metric {
  padding: 56px 28px 48px;
  border-left: var(--bw) solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.metric:first-child { border-left: none; }
@media (max-width: 1180px) {
  .metric:nth-child(4n+1) { border-left: none; }
}
@media (max-width: 720px) {
  .metric:nth-child(2n+1) { border-left: none; }
}
.metric-value {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--text);
}
.metric-value.accent { color: var(--accent); }
.metric-label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  margin-top: 6px;
  line-height: 1.5;
}

/* ============================================
   Problem -> Solution
   ============================================ */
.ps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 840px) { .ps-grid { grid-template-columns: 1fr; } }
.ps-col {
  padding: 44px 40px;
}
.ps-col + .ps-col {
  border-left: var(--bw) solid var(--border);
}
@media (max-width: 840px) {
  .ps-col + .ps-col { border-left: none; border-top: var(--bw) solid var(--border); }
}
.ps-col.problems {
  background: rgba(4, 24, 28, 0.4);
}
[data-theme="light"] .ps-col.problems {
  background: linear-gradient(180deg, rgba(244, 63, 94, 0.06), rgba(244, 63, 94, 0.0) 70%);
}
.ps-col.solutions {
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.08), rgba(139, 92, 255, 0.0) 60%);
}
.ps-head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}
.ps-stamp {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: var(--bw) solid var(--border);
  white-space: nowrap;
}
.ps-stamp.problem { color: var(--text-3); }
.ps-stamp.solution { color: var(--accent); border-color: var(--border-accent); background: rgba(139, 92, 255, 0.06); }
.ps-list { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.ps-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 14px 0;
  border-top: var(--bw) solid var(--border);
}
.ps-item:first-child { border-top: none; padding-top: 0; }
.ps-item .marker {
  width: 28px;
  height: 28px;
  flex: none;
  border-radius: var(--r-sm);
  border: var(--bw) solid var(--border);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-3);
}
.ps-col.solutions .ps-item .marker {
  border-color: var(--border-accent);
  background: rgba(139, 92, 255, 0.1);
  color: var(--accent);
}
.ps-item .text {
  font-size: 16.5px;
  color: var(--text);
  font-weight: 600;
  line-height: 1.4;
}
.ps-col.problems .ps-item .text {
  color: var(--text-2);
  font-weight: 500;
}

/* ============================================
   Capabilities
   ============================================ */
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 1024px) { .cap-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .cap-grid { grid-template-columns: 1fr; } }
.cap-card {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .25s;
}
.cap-card::after {
  content: "";
  position: absolute;
  inset: auto -50% -50% auto;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(139, 92, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity .3s;
  pointer-events: none;
}
.cap-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.cap-card:hover::after { opacity: 1; }
.cap-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  color: var(--text-3);
}
.cap-card .icon-frame { margin-bottom: 4px; }
.cap-title { font-size: 19px; line-height: 1.25; }
.cap-desc { color: var(--text-2); font-size: 15.5px; line-height: 1.6; }

.cap-summary {
  margin-top: 32px;
  padding: 32px;
  border: var(--bw) solid var(--border-accent);
  border-radius: var(--r-lg);
  background: linear-gradient(100deg, rgba(139, 92, 255, 0.1), rgba(0, 184, 255, 0.04));
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 28px;
  align-items: center;
}
@media (max-width: 720px) { .cap-summary { grid-template-columns: 1fr; text-align: left; } }
.cap-summary .core-mark {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(139, 92, 255, 0.06);
  position: relative;
}
.cap-summary .core-mark::before {
  content: "";
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 2px solid rgba(139, 92, 255, 0.25);
}
.cap-summary p {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.4;
  color: var(--text);
  margin: 0;
}
.cap-summary .core-mark .chev { color: var(--accent); }

/* ============================================
   Phases timeline
   ============================================ */
.phases {
  background: linear-gradient(180deg, transparent, rgba(139, 92, 255, 0.03) 50%, transparent);
}
.phases-track {
  position: relative;
  margin-top: 56px;
}
.phases-line {
  position: absolute;
  top: 36px;
  left: 7%;
  right: 7%;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg,
    rgba(139, 92, 255, 0.25) 0%,
    rgba(139, 92, 255, 0.7) 50%,
    rgba(139, 92, 255, 1) 100%);
}
.phases-line::before, .phases-line::after {
  content: "";
  position: absolute;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent);
  top: 50%; transform: translateY(-50%);
  box-shadow: 0 0 0 4px rgba(10, 10, 31, 1);
}
.phases-line::before { left: 0; opacity: 0.4; }
.phases-line::after {
  right: 0;
  background: var(--accent-bright);
  box-shadow: 0 0 0 4px rgba(10, 10, 31, 1), 0 0 16px var(--accent-bright);
}
[data-theme="light"] .phases-line::before,
[data-theme="light"] .phases-line::after {
  box-shadow: 0 0 0 4px var(--bg);
}
[data-theme="light"] .phases-line::after {
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px var(--accent);
}
.phases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
@media (max-width: 980px) {
  .phases-grid { grid-template-columns: 1fr; gap: 24px; }
  .phases-line { display: none; }
}
.phase {
  position: relative;
  padding-top: 88px;
}
.phase-num {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  color: var(--accent);
  z-index: 1;
}
.phase:nth-child(1) .phase-num { opacity: 1; }
.phase:nth-child(2) .phase-num { background: linear-gradient(rgba(139, 92, 255, 0.12), rgba(139, 92, 255, 0.12)) var(--bg); }
.phase:nth-child(3) .phase-num { background: var(--accent); color: #0A0A1F; box-shadow: 0 0 32px rgba(139, 92, 255, 0.45); }
@media (max-width: 980px) {
  .phase { padding-top: 16px; }
  .phase-num { position: relative; left: 0; transform: none; margin-bottom: 20px; }
}
.phase-card {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.phase:nth-child(3) .phase-card {
  border-color: var(--border-accent);
  background: linear-gradient(180deg, rgba(139, 92, 255, 0.06), var(--surface));
}
.phase-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.phase-title { font-size: 22px; }
.phase-desc { color: var(--text-2); font-size: 15.5px; line-height: 1.6; }
.phase-bar {
  margin-top: 8px;
  display: flex;
  gap: 4px;
}
.phase-bar .seg {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}
.phase-bar .seg.on { background: var(--accent); }

.phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  border: var(--bw) solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-3);
  width: max-content;
  margin-top: 6px;
  white-space: nowrap;
}

/* ============================================
   Sectors
   ============================================ */
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 1024px) { .sec-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }
.sec-tile {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s, transform .2s;
  cursor: default;
}
.sec-tile:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
}
.sec-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sec-name { font-size: 18px; }
.sec-use {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
}
.sec-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  color: var(--text-3);
  transition: color .2s, transform .2s;
}
.sec-tile:hover .sec-arrow { color: var(--accent); transform: translate(2px, -2px); }

/* ============================================
   Deployment Strip
   ============================================ */
.deploy-strip {
  display: grid;
  grid-template-columns: 1fr 18px 1fr 18px 1fr 18px 1fr;
  align-items: stretch;
  gap: 0;
}
@media (max-width: 1024px) { .deploy-strip { grid-template-columns: 1fr; gap: 12px; } }
.deploy-step {
  background: var(--surface);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.deploy-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}
@media (max-width: 1024px) { .deploy-arrow { transform: rotate(90deg); } }
.deploy-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.deploy-title { font-size: 18px; line-height: 1.2; }
.deploy-desc { color: var(--text-2); font-size: 14.5px; line-height: 1.5; }

.trust-chips {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 820px) { .trust-chips { grid-template-columns: 1fr; } }
.trust-chip {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 20px;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
}
.trust-chip .icon-frame {
  width: 40px; height: 40px;
  flex: none;
}
.trust-chip .text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.trust-chip .text strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--text);
}
.trust-chip .text span {
  font-size: 13.5px;
  color: var(--text-3);
  line-height: 1.4;
}

/* ============================================
   References
   ============================================ */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: var(--bw) solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
}
@media (max-width: 1024px) { .ref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .ref-grid { grid-template-columns: 1fr; } }
.ref-cell {
  padding: 32px 24px;
  border-left: var(--bw) solid var(--border);
  border-top: var(--bw) solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  text-align: center;
  transition: color .2s, background .2s;
}
.ref-cell:hover { color: var(--text); background: rgba(139, 92, 255, 0.04); }
/* fix outer borders */
.ref-grid > .ref-cell:nth-child(-n+4) { border-top: none; }
.ref-grid > .ref-cell:nth-child(4n+1) { border-left: none; }
@media (max-width: 1024px) {
  .ref-grid > .ref-cell { border-top: var(--bw) solid var(--border); border-left: var(--bw) solid var(--border); }
  .ref-grid > .ref-cell:nth-child(-n+2) { border-top: none; }
  .ref-grid > .ref-cell:nth-child(2n+1) { border-left: none; }
}
@media (max-width: 520px) {
  .ref-grid > .ref-cell { border-left: none !important; border-top: var(--bw) solid var(--border) !important; }
  .ref-grid > .ref-cell:first-child { border-top: none !important; }
}
.ref-cell .sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: 6px;
}

.ref-quote {
  margin-top: 56px;
  padding: 44px;
  border: var(--bw) solid var(--border);
  border-radius: var(--r-xl);
  background: var(--surface);
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 720px) { .ref-quote { grid-template-columns: 1fr; gap: 18px; } }
.ref-quote .mark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 80px;
  line-height: 0.7;
  color: var(--accent);
}
.ref-quote .text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 28px);
  line-height: 1.35;
  color: var(--text);
  letter-spacing: -0.005em;
}
.ref-quote .attrib {
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* ============================================
   CTA Band
   ============================================ */
.cta {
  position: relative;
  margin: clamp(56px, 7vw, 96px) var(--gutter) 0;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(120deg, #1B1538 0%, #2A1F5C 50%, #1F3A8A 100%);
  border: var(--bw) solid var(--border-accent);
}
[data-theme="light"] .cta {
  background: linear-gradient(120deg, #EDE9FE 0%, #DDD6FE 50%, #DBEAFE 100%);
}
.cta-inner {
  position: relative;
  padding: clamp(56px, 7vw, 96px) clamp(28px, 5vw, 72px);
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 880px) { .cta-inner { grid-template-columns: 1fr; gap: 36px; } }
.cta-glow {
  position: absolute;
  width: 540px; height: 540px;
  right: -120px; top: -150px;
  background: radial-gradient(circle, var(--accent-bright), transparent 60%);
  opacity: 0.35;
  filter: blur(20px);
  pointer-events: none;
}
.cta h2 { font-size: clamp(32px, 4vw, 52px); }
.cta-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-logo-img {
  display: block;
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* ============================================
   Footer
   ============================================ */
footer {
  margin-top: clamp(64px, 8vw, 120px);
  padding: 56px 0 32px;
  border-top: var(--bw) solid var(--border);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 44px;
}
@media (max-width: 880px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--text);
}
.foot-logo svg { display: block; flex: none; }
.foot-logo-img {
  display: block;
  height: 48px;
  width: auto;
  flex: none;
}
.foot-tag {
  color: var(--text-2);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 320px;
}
.foot-h {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
  font-weight: 500;
}
.foot-list { display: flex; flex-direction: column; gap: 10px; }
.foot-list a {
  color: var(--text-2);
  font-size: 14.5px;
  transition: color .15s;
}
.foot-list a:hover { color: var(--accent); }
.foot-addr {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.6;
}
.foot-bottom {
  border-top: var(--bw) solid var(--border);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-3);
  font-size: 13.5px;
}
.foot-social { display: flex; gap: 8px; }
.foot-social a {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  border: var(--bw) solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--text-2);
  transition: border-color .2s, color .2s;
}
.foot-social a:hover { border-color: var(--accent); color: var(--accent); }

/* ============================================
   Misc
   ============================================ */
.section-title-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-title-row .head { max-width: 720px; display: flex; flex-direction: column; gap: 14px; }

/* Engine pulse animation */
@keyframes flow {
  to { offset-distance: 100%; opacity: 0; }
}

/* Hide focus outline noise */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Mobile nav simplification */
@media (max-width: 880px) {
  .nav-links { display: none; }
}

/* On small screens, stack logo (top row) and actions (bottom row) so the
   header logo doesn't get squeezed by the lang/theme/CTA group. */
@media (max-width: 768px) {
  .nav-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .nav-logo {
    justify-content: center;
  }
  .nav-actions {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* Kognitera brand mark — show the variant matching the active theme. The
   component renders both <img>s; the inactive one is positioned out of flow
   so it doesn't claim layout. */
.km-wrap { position: relative; display: inline-block; }
.km-wrap > .km { position: absolute; inset: 0; display: block; }
[data-theme="dark"]  .km-light { display: none; }
[data-theme="light"] .km-dark  { display: none; }
