/* ==========================================================================
   DUOVIA — Design System v2
   Premium executive aesthetic. Sober, technological, architectural.
   ========================================================================== */

/* ---- Tokens ------------------------------------------------------------- */
:root {
  /* Palette */
  --navy-900: #0A1628;
  --navy-850: #0C1B33;
  --navy-800: #0F2138;
  --navy-700: #13294B;
  --steel-600: #1F3557;
  --steel-500: #2A4670;
  --steel-400: #3A5A82;
  --cool-500: #6B7C93;
  --cool-400: #8FA0B6;
  --cool-300: #B6C2D2;
  --cool-200: #D8DEE9;
  --paper-50: #F4F6FA;
  --paper-100: #E9EDF3;
  --white: #FFFFFF;
  --accent: #4FC3D9;
  --accent-hi: #79DAEC;
  --accent-dim: #6FAEC4;
  --rule: #DDE3ED;
  --rule-dark: #1F3557;

  /* Typography */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px; --s-10: 128px;

  /* Layout */
  --container: 1280px;
  --pad-x: 96px;
  --section-y: 112px;
  --radius-sm: 4px;
  --radius-md: 8px;

  /* Easing */
  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-soft: cubic-bezier(.4,.0,.2,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ---- Container --------------------------------------------------------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--pad-x);
  padding-right: var(--pad-x);
}

/* ---- Typography -------------------------------------------------------- */
.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
}
.eyebrow.on-light { color: var(--steel-500); }
.eyebrow.on-light::before {
  content: "";
  display: inline-block;
  width: 18px;
  height: 1px;
  background: var(--accent);
  vertical-align: middle;
  margin: -2px 10px 0 0;
}

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.10;
  color: var(--navy-900);
}

.h-display {
  font-size: clamp(72px, 9vw, 128px);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 0.95;
  color: var(--navy-900);
}
h1, .h1 { font-size: clamp(40px, 4.6vw, 60px); }
h2, .h2 { font-size: clamp(30px, 3.4vw, 44px); }
h3, .h3 { font-size: clamp(20px, 2vw, 24px); letter-spacing: -0.01em; }
h4, .h4 { font-size: 17px; font-weight: 600; letter-spacing: -0.005em; }

.lead {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--steel-600);
  line-height: 1.65;
  max-width: 64ch;
}
.subhead {
  font-size: clamp(18px, 1.6vw, 22px);
  font-weight: 400;
  font-style: italic;
  color: var(--steel-500);
  line-height: 1.4;
}
.body { color: var(--steel-600); max-width: 70ch; }
.caption { font-size: 13px; color: var(--cool-500); }
.muted { color: var(--cool-500); }

.accent-rule {
  display: block;
  width: 56px;
  height: 2px;
  background: var(--accent);
  margin: var(--s-5) 0;
  position: relative;
  overflow: hidden;
}
.accent-rule.center { margin-left: auto; margin-right: auto; }
.accent-rule::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-hi), transparent);
  transform: translateX(-100%);
  animation: shimmer 3.5s var(--ease-soft) infinite;
}
@keyframes shimmer {
  0%, 50% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* ====================================================================
   DARK SURFACES — comprehensive text-on-dark fix
   ==================================================================== */
.hero-dark, .section-dark, .section-darker, .site-footer {
  color: var(--cool-300);
}
.hero-dark h1, .hero-dark h2, .hero-dark h3, .hero-dark h4,
.hero-dark .h-display, .hero-dark .h1, .hero-dark .h2,
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4,
.section-darker h1, .section-darker h2, .section-darker h3, .section-darker h4,
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4 {
  color: var(--white);
}
.hero-dark p, .section-dark p, .section-darker p,
.hero-dark .lead, .hero-dark .subhead, .hero-dark .body,
.section-dark .lead, .section-dark .subhead, .section-dark .body,
.section-darker .lead, .section-darker .subhead, .section-darker .body {
  color: var(--cool-300);
}
.hero-dark .caption, .section-dark .caption, .section-darker .caption {
  color: var(--cool-400);
}
.hero-dark .eyebrow, .section-dark .eyebrow, .section-darker .eyebrow {
  color: var(--accent);
}
.hero-dark .eyebrow.on-light::before,
.section-dark .eyebrow.on-light::before,
.section-darker .eyebrow.on-light::before { background: var(--accent); }

/* ---- Header ------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--rule);
  transition: background 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: var(--s-7);
  height: 84px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
  flex-shrink: 0;
  white-space: nowrap;
  transition: opacity 200ms var(--ease-out);
}
.brand:hover { opacity: 0.85; }
.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
  transition: transform 1200ms var(--ease-soft);
}
.brand:hover .brand-logo { transform: rotate(45deg); }
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-mark {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--navy-900);
}
.brand-tag {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--cool-500);
  margin-top: 5px;
  text-transform: uppercase;
}
.primary-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.primary-nav a {
  position: relative;
  font-size: 14px;
  font-weight: 500;
  color: var(--steel-600);
  padding: 8px 0;
  white-space: nowrap;
  transition: color 200ms var(--ease-out);
}
.primary-nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 280ms var(--ease-out);
}
.primary-nav a:hover { color: var(--navy-900); }
.primary-nav a:hover::after,
.primary-nav a.active::after { transform: scaleX(1); }
.primary-nav a.active { color: var(--navy-900); }

.header-cta { flex-shrink: 0; }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  color: var(--navy-900);
  align-items: center;
  justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

.mobile-nav {
  display: none;
  background: var(--white);
  border-top: 1px solid var(--rule);
  padding: var(--s-4) var(--pad-x);
}
.mobile-nav.open { display: block; }
.mobile-nav a {
  display: block;
  padding: 14px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--steel-600);
  border-bottom: 1px solid var(--rule);
}
.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav .cta { margin-top: var(--s-4); width: 100%; text-align: center; justify-content: center; }

/* ---- Buttons / CTA ----------------------------------------------------- */
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border-radius: 4px;
  white-space: nowrap;
  transition: transform 220ms var(--ease-out),
              background 200ms var(--ease-out),
              color 200ms var(--ease-out),
              border-color 200ms var(--ease-out),
              box-shadow 240ms var(--ease-out);
}
.cta:hover { transform: translateY(-1px); }

.cta-primary {
  background: var(--navy-900);
  color: var(--white);
  border: 1px solid var(--navy-900);
  box-shadow: 0 4px 16px rgba(10,22,40,0.12);
}
.cta-primary:hover {
  background: var(--navy-700);
  border-color: var(--navy-700);
  box-shadow: 0 8px 24px rgba(10,22,40,0.18);
}
.cta-primary.on-dark {
  background: var(--accent);
  color: var(--navy-900);
  border-color: var(--accent);
  box-shadow: 0 4px 18px rgba(79,195,217,0.22);
}
.cta-primary.on-dark:hover {
  background: var(--accent-hi);
  border-color: var(--accent-hi);
  box-shadow: 0 10px 28px rgba(79,195,217,0.32);
}

.cta-secondary {
  background: transparent;
  color: var(--navy-900);
  border: 1px solid var(--cool-200);
}
.cta-secondary:hover {
  border-color: var(--navy-900);
  background: var(--white);
}
.cta-secondary.on-dark {
  color: var(--white);
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.02);
}
.cta-secondary.on-dark:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(79,195,217,0.06);
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--accent);
  transition: gap 240ms var(--ease-out), color 200ms var(--ease-out);
}
.cta-link:hover { gap: 14px; color: var(--accent); }
.cta-link.on-dark { color: var(--white); }
.cta-link.on-dark:hover { color: var(--accent); }
.cta-arrow::after { content: "→"; transition: transform 240ms var(--ease-out); }
.cta-arrow:hover::after { transform: translateX(4px); }

/* ---- Section base ------------------------------------------------------ */
section { padding: var(--section-y) 0; position: relative; }
.section-light { background: var(--paper-50); }
.section-white { background: var(--white); }
.section-dark { background: var(--navy-900); color: var(--white); overflow: hidden; }
.section-darker { background: var(--navy-850); color: var(--white); overflow: hidden; }

/* Architectural grid pattern */
.section-dark::before, .section-darker::before, .site-footer::before, .hero-dark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(143,168,199,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143,168,199,0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 80%);
}
.section-dark > .container, .section-darker > .container, .site-footer > .container { position: relative; z-index: 2; }

/* Light architectural background */
.arch-light { position: relative; }
.arch-light::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(31,53,87,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31,53,87,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 85%);
}
.arch-light > .container { position: relative; z-index: 2; }

.section-header { max-width: 760px; margin-bottom: var(--s-8); }
.section-header.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-header.center .lead { margin-left: auto; margin-right: auto; }
.section-header.center .accent-rule { margin-left: auto; margin-right: auto; }
.section-header h2 { margin-bottom: var(--s-3); }
.section-header .lead { margin-top: var(--s-4); }

/* ---- Hero -------------------------------------------------------------- */
.hero {
  position: relative;
  padding: 128px 0 var(--s-9);
  overflow: hidden;
}
.hero-light { background: var(--paper-50); }
.hero-dark {
  background:
    radial-gradient(ellipse 1200px 600px at 80% -10%, rgba(79,195,217,0.10), transparent 70%),
    radial-gradient(ellipse 800px 500px at 0% 100%, rgba(42,70,112,0.40), transparent 70%),
    var(--navy-900);
  color: var(--white);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--s-9);
  align-items: center;
  z-index: 2;
}
.hero-inner.single { grid-template-columns: 1fr; max-width: 880px; }

.hero h1, .hero .h-display { margin: var(--s-3) 0 var(--s-4); }
.hero .subhead { margin-top: var(--s-5); }
.hero .lead { margin-top: var(--s-5); }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-7);
}

.hero-dark .h-display {
  color: var(--white);
  background: linear-gradient(180deg, #FFFFFF 0%, #B6C2D2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Hero logo treatment — Home page centerpiece */
.hero-logo-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 460px;
}
.hero-logo {
  position: relative;
  width: clamp(280px, 36vw, 460px);
  height: auto;
  z-index: 2;
  filter: drop-shadow(0 0 60px rgba(79,195,217,0.22))
          drop-shadow(0 0 120px rgba(79,195,217,0.10));
  animation: logo-breathe 6s var(--ease-soft) infinite;
}
@keyframes logo-breathe {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 60px rgba(79,195,217,0.22)) drop-shadow(0 0 120px rgba(79,195,217,0.10)); }
  50% { transform: scale(1.025); filter: drop-shadow(0 0 80px rgba(79,195,217,0.32)) drop-shadow(0 0 140px rgba(79,195,217,0.16)); }
}
.hero-logo-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}
.hero-logo-rings::before,
.hero-logo-rings::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(79,195,217,0.12);
  border-radius: 50%;
}
.hero-logo-rings::before {
  width: clamp(380px, 50vw, 600px);
  height: clamp(380px, 50vw, 600px);
  animation: ring-rotate 40s linear infinite;
  border-style: dashed;
  border-color: rgba(79,195,217,0.10);
}
.hero-logo-rings::after {
  width: clamp(480px, 62vw, 720px);
  height: clamp(480px, 62vw, 720px);
  animation: ring-rotate 60s linear infinite reverse;
  border-color: rgba(143,168,199,0.08);
}
@keyframes ring-rotate { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero-logo-wrap { min-height: 360px; }
}

/* ---- Cards ------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--s-7) var(--s-6);
  position: relative;
  overflow: hidden;
  transition: transform 320ms var(--ease-out),
              box-shadow 320ms var(--ease-out),
              border-color 240ms var(--ease-out);
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--accent);
  transform: scaleY(0);
  transform-origin: top center;
  transition: transform 360ms var(--ease-out);
}
.card.card-accent::before { transform: scaleY(1); }
.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(10,22,40,0.08);
  border-color: var(--cool-200);
}
.card:hover::before { transform: scaleY(1); }

.card .card-num {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--s-3);
}
.card h3 { margin: 0 0 var(--s-3); }
.card .card-body { color: var(--steel-600); font-size: 15px; line-height: 1.6; }
.card-link {
  margin-top: var(--s-5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-900);
  border-bottom: 1px solid var(--accent);
  padding-bottom: 3px;
  transition: gap 240ms var(--ease-out);
}
.card-link:hover { gap: 12px; }

.card-dark {
  background: var(--navy-700);
  color: var(--white);
  border: 1px solid var(--steel-500);
}
.card-dark h3 { color: var(--white); }
.card-dark .card-body { color: var(--cool-300); }
.card-dark .card-link { color: var(--accent); }

/* ---- Grids ------------------------------------------------------------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }

/* ---- Statement / Pull quote ------------------------------------------- */
.statement {
  border-left: 3px solid var(--accent);
  padding: var(--s-5) var(--s-6);
  background: var(--white);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: var(--s-7) 0 0;
  font-size: clamp(17px, 1.5vw, 20px);
  font-style: italic;
  color: var(--navy-900);
  max-width: 920px;
  box-shadow: 0 12px 32px rgba(10,22,40,0.05);
}
.section-dark .statement,
.section-darker .statement {
  background: rgba(255,255,255,0.04);
  color: var(--white);
  border-color: var(--accent);
  box-shadow: none;
}

/* ---- Pillar grid ------------------------------------------------------- */
.pillar {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--s-6);
  height: 100%;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), border-color 240ms var(--ease-out);
}
.pillar:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(10,22,40,0.06);
  border-color: var(--cool-200);
}
.pillar-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--s-4);
  transition: transform 320ms var(--ease-out), background 200ms var(--ease-out);
}
.pillar:hover .pillar-icon { transform: scale(1.06); background: var(--accent); color: var(--navy-900); }
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 { font-size: 18px; margin-bottom: var(--s-3); }
.pillar p { font-size: 14px; color: var(--steel-600); line-height: 1.6; }
.section-dark .pillar { background: rgba(255,255,255,0.03); border-color: var(--steel-500); }
.section-dark .pillar h3 { color: var(--white); }
.section-dark .pillar p { color: var(--cool-300); }
.section-dark .pillar:hover { background: rgba(255,255,255,0.06); border-color: var(--accent); }

/* ---- Process Chain ----------------------------------------------------- */
.chain {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: var(--s-3);
  position: relative;
}
.chain-step {
  background: var(--white);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: var(--s-5) var(--s-4);
  text-align: left;
  position: relative;
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.chain-step:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(10,22,40,0.06); }
.chain-step .num {
  font-size: 11px; font-weight: 700; color: var(--accent);
  letter-spacing: 0.16em;
}
.chain-step h4 { margin: 6px 0 8px; font-size: 14px; line-height: 1.25; }
.chain-step p { font-size: 12.5px; color: var(--steel-600); line-height: 1.5; }
.chain-step::after {
  content: "→";
  position: absolute;
  top: 50%; right: -14px;
  transform: translateY(-50%);
  font-size: 14px; color: var(--cool-400); font-weight: 700;
}
.chain-step:last-child::after { content: ""; }

/* ---- Stack (architecture) ---------------------------------------------- */
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack-layer {
  padding: var(--s-5) var(--s-6);
  border-radius: var(--radius-sm);
  position: relative;
  overflow: hidden;
}
.stack-layer .layer-label { font-size: 11px; font-weight: 700; letter-spacing: 0.18em; }
.stack-layer .layer-body { font-size: 14px; margin-top: 6px; }
.stack-1 { background: var(--accent); color: var(--navy-900); }
.stack-1 .layer-label { color: var(--navy-900); }
.stack-2 { background: var(--navy-900); color: var(--white); }
.stack-2 .layer-label { color: var(--accent); }
.stack-3 { background: var(--steel-500); color: var(--white); }
.stack-3 .layer-label { color: var(--accent-hi); }
.stack-4 { background: var(--steel-600); color: var(--white); }
.stack-4 .layer-label { color: var(--accent-hi); }

/* ---- Comparison strip -------------------------------------------------- */
.compare {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--s-6);
}
.compare th, .compare td {
  padding: var(--s-4);
  text-align: left;
  font-size: 14px;
  border-bottom: 1px solid var(--rule);
}
.compare thead th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool-500);
  background: var(--paper-100);
}
.compare td.highlight { color: var(--navy-900); font-weight: 600; }
.compare th.highlight { color: var(--accent); background: rgba(79,195,217,0.08); }
.compare tr:hover td { background: rgba(79,195,217,0.04); }

/* ---- Pills / chips ----------------------------------------------------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  padding: 9px 16px;
  border: 1px solid var(--cool-200);
  border-radius: 999px;
  font-size: 13px;
  color: var(--steel-600);
  background: var(--white);
  transition: border-color 200ms var(--ease-out), color 200ms var(--ease-out);
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.section-dark .chip {
  background: rgba(255,255,255,0.04);
  color: var(--cool-300);
  border-color: var(--steel-500);
}
.section-dark .chip:hover { border-color: var(--accent); color: var(--accent); }

.kicker {
  display: inline-block;
  padding: 6px 12px;
  background: rgba(79,195,217,0.14);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  border-radius: var(--radius-sm);
  text-transform: uppercase;
}

/* ---- Two-column layout ------------------------------------------------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-7); align-items: start; }

.split-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(10,22,40,0.04);
}
.split-card > div { padding: var(--s-6); }
.split-card .right {
  background: var(--navy-900);
  color: var(--white);
  border-left: 3px solid var(--accent);
}
.split-card .right h3,
.split-card .right .eyebrow { color: var(--white); }
.split-card .right .eyebrow { color: var(--accent); }
.split-card .right p,
.split-card .right ul { color: var(--cool-300); }

/* ---- Number list (How We Start) --------------------------------------- */
.num-list { display: flex; flex-direction: column; gap: var(--s-5); }
.num-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-5);
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--s-7) var(--s-6);
  border-left: 3px solid var(--accent);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}
.num-row:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(10,22,40,0.06); }
.num-row .num { font-size: 40px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; line-height: 1; }
.num-row h3 { font-size: 20px; margin-bottom: var(--s-2); }
.num-row p { color: var(--steel-600); font-size: 15px; }
.num-row .outcome { display: block; margin-top: var(--s-3); font-size: 13px; color: var(--cool-500); font-style: italic; }
.num-row .row-actions { margin-top: var(--s-4); }

/* ---- Roadmap ----------------------------------------------------------- */
.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--s-3);
}
.roadmap-step {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--steel-500);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: var(--s-5) var(--s-4);
  position: relative;
  transition: background 200ms var(--ease-out), border-color 200ms var(--ease-out);
}
.roadmap-step:hover { background: rgba(255,255,255,0.06); border-color: var(--accent); }
.roadmap-step .num { font-size: 22px; font-weight: 800; color: var(--accent); letter-spacing: -0.02em; }
.roadmap-step h4 { color: var(--white); font-size: 16px; margin: 8px 0 12px; }
.roadmap-step p { color: var(--cool-300); font-size: 13px; line-height: 1.5; }
.roadmap-step::after {
  content: "→";
  position: absolute; top: 50%; right: -10px;
  transform: translateY(-50%);
  color: var(--accent); font-size: 14px;
}
.roadmap-step:last-child::after { content: ""; }

/* ---- Module grid ------------------------------------------------------- */
.module-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}
.module {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius-md);
  padding: var(--s-5);
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  border-top: 3px solid var(--cool-400);
  transition: transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out), border-top-color 200ms var(--ease-out);
}
.module:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(10,22,40,0.06);
  border-top-color: var(--accent);
}
.module .icon-circle {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--steel-600);
  color: var(--white);
  display: inline-flex;
  align-items: center; justify-content: center;
  transition: background 200ms var(--ease-out);
}
.module:hover .icon-circle { background: var(--navy-900); }
.module .icon-circle svg { width: 20px; height: 20px; }
.module h4 { font-size: 15px; }
.module p { font-size: 13px; color: var(--steel-600); margin-top: 4px; line-height: 1.5; }

/* ---- Ecosystem / radial diagram --------------------------------------- */
.radial-diagram, .ecosystem-map { display: block; margin: 0 auto; max-width: 720px; }

/* ---- CTA band ---------------------------------------------------------- */
.cta-band { text-align: center; padding: 112px 0; }
.cta-band h2 { margin-bottom: var(--s-4); }
.cta-band .lead { margin-left: auto; margin-right: auto; margin-bottom: var(--s-7); }
.cta-band .cta { margin: 0 6px; }

/* ---- Form ------------------------------------------------------------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: var(--s-9);
  align-items: start;
}
.contact-side h3 { color: var(--white); margin-bottom: var(--s-3); }
.contact-side .quick-list { margin-top: var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.contact-side .quick-list a {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-4) var(--s-5);
  border: 1px solid var(--steel-500);
  border-radius: var(--radius-md);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out), transform 240ms var(--ease-out);
}
.contact-side .quick-list a:hover {
  border-color: var(--accent);
  background: rgba(79,195,217,0.06);
  transform: translateX(2px);
}
.contact-side .quick-list a::after { content: "→"; color: var(--accent); }

form.contact-form {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--steel-500);
  border-radius: var(--radius-md);
  padding: var(--s-7);
}
.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cool-300);
  margin-bottom: var(--s-2);
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--steel-500);
  border-radius: var(--radius-sm);
  color: var(--white);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 200ms var(--ease-out), background 200ms var(--ease-out);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(79,195,217,0.04);
}
.field textarea { min-height: 130px; resize: vertical; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.field-checkbox { display: flex; gap: var(--s-3); align-items: flex-start; font-size: 13px; color: var(--cool-300); }
.field-checkbox input { width: 18px; height: 18px; margin-top: 2px; }
.form-confirm {
  display: none;
  padding: var(--s-5);
  border-left: 3px solid var(--accent);
  background: rgba(79,195,217,0.08);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--white);
  margin-bottom: var(--s-5);
}
.form-confirm.show { display: block; animation: slide-in 360ms var(--ease-out); }

/* ---- Foundation strip on Home ----------------------------------------- */
.foundation-strip {
  background: var(--navy-900);
  color: var(--white);
  padding: var(--s-5) var(--s-6);
  border-radius: var(--radius-md);
  margin-top: var(--s-8);
  display: flex;
  align-items: center;
  gap: var(--s-6);
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
  border-left: 3px solid var(--accent);
}
.foundation-strip .label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
}
.foundation-strip .items { color: var(--cool-300); font-size: 14px; }

/* ---- Hero offer card on Home ----------------------------------------- */
.hero-offer-card {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  padding: var(--s-8) var(--s-7);
  border-left: 4px solid var(--accent);
  margin-bottom: var(--s-5);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(10,22,40,0.18);
}
.hero-offer-card::after {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(79,195,217,0.12), transparent 70%);
  pointer-events: none;
}
.hero-offer-card h3 { color: var(--white); font-size: 28px; margin: 8px 0 12px; }
.hero-offer-card p { color: var(--cool-300); font-size: 16px; max-width: 70ch; }
.hero-offer-card .badge {
  position: absolute;
  top: var(--s-6); right: var(--s-7);
  background: rgba(79,195,217,0.18);
  color: var(--accent);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

/* ---- Footer ----------------------------------------------------------- */
.site-footer {
  background: var(--navy-900);
  color: var(--cool-300);
  padding: 96px 0 56px;
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-7);
  padding-bottom: var(--s-7);
  border-bottom: 1px solid var(--rule-dark);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-brand .footer-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 4px;
}
.footer-brand .brand-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 0 16px rgba(79,195,217,0.18));
}
.footer-brand .brand-mark {
  color: var(--white);
  font-size: 28px;
  letter-spacing: 0.20em;
}
.footer-brand .brand-tag {
  color: var(--cool-400);
  font-size: 11px;
  letter-spacing: 0.14em;
  margin-top: 6px;
}
.footer-brand p {
  font-size: 14px;
  margin-top: var(--s-4);
  max-width: 32ch;
  line-height: 1.6;
  color: var(--cool-300);
}
.footer-grid h4 {
  font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-4);
  font-weight: 700;
}
.footer-grid a {
  display: block;
  padding: 7px 0;
  color: var(--cool-300);
  font-size: 14px;
  transition: color 200ms var(--ease-out), padding-left 200ms var(--ease-out);
}
.footer-grid a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--s-5);
  font-size: 12px;
  color: var(--cool-500);
  flex-wrap: wrap;
  gap: var(--s-3);
}
.footer-bottom a { color: var(--cool-400); margin-left: var(--s-4); transition: color 200ms var(--ease-out); }
.footer-bottom a:hover { color: var(--white); }

/* ---- Animations: reveal-on-scroll ------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 540ms var(--ease-out), transform 540ms var(--ease-out);
  }
  .reveal.visible { opacity: 1; transform: translateY(0); }

  .reveal-stagger > * {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  }
  .reveal-stagger.visible > *:nth-child(1) { opacity: 1; transform: translateY(0); transition-delay: 0ms; }
  .reveal-stagger.visible > *:nth-child(2) { opacity: 1; transform: translateY(0); transition-delay: 80ms; }
  .reveal-stagger.visible > *:nth-child(3) { opacity: 1; transform: translateY(0); transition-delay: 160ms; }
  .reveal-stagger.visible > *:nth-child(4) { opacity: 1; transform: translateY(0); transition-delay: 240ms; }
  .reveal-stagger.visible > *:nth-child(5) { opacity: 1; transform: translateY(0); transition-delay: 320ms; }
  .reveal-stagger.visible > *:nth-child(6) { opacity: 1; transform: translateY(0); transition-delay: 400ms; }
  .reveal-stagger.visible > *:nth-child(7) { opacity: 1; transform: translateY(0); transition-delay: 480ms; }
  .reveal-stagger.visible > *:nth-child(n+8) { opacity: 1; transform: translateY(0); transition-delay: 560ms; }
}

/* ---- Hero entrance animation ------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .hero-enter > * {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-rise 900ms var(--ease-out) forwards;
  }
  .hero-enter > *:nth-child(1) { animation-delay: 100ms; }
  .hero-enter > *:nth-child(2) { animation-delay: 220ms; }
  .hero-enter > *:nth-child(3) { animation-delay: 340ms; }
  .hero-enter > *:nth-child(4) { animation-delay: 460ms; }
  .hero-enter > *:nth-child(5) { animation-delay: 580ms; }
  .hero-enter > *:nth-child(6) { animation-delay: 700ms; }
}
@keyframes hero-rise {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slide-in {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Floating glass volumes (hero) ----------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-svg-float { animation: float 8s var(--ease-soft) infinite; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---- SVG line draw ---------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
  .draw-on-view {
    stroke-dasharray: 600;
    stroke-dashoffset: 600;
    transition: stroke-dashoffset 1400ms var(--ease-out);
  }
  .draw-on-view.visible { stroke-dashoffset: 0; }
}

/* ---- Responsive ------------------------------------------------------- */
@media (max-width: 1180px) {
  :root { --pad-x: 56px; --section-y: 96px; }
  .primary-nav { gap: 24px; }
  .header-cta { display: none; }
  .h-display { font-size: clamp(56px, 8vw, 92px); }
}
@media (max-width: 980px) {
  :root { --section-y: 80px; }
  .hero-inner { grid-template-columns: 1fr; gap: var(--s-7); }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain-step::after { content: ""; }
  .roadmap { grid-template-columns: 1fr 1fr; }
  .roadmap-step::after { content: ""; }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
  .two-col { grid-template-columns: 1fr; }
  .split-card { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .primary-nav { gap: 18px; }
}
@media (max-width: 760px) {
  :root { --pad-x: 24px; --section-y: 64px; }
  .primary-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .roadmap { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .footer-bottom a { margin-left: 0; margin-right: var(--s-4); }
  h1, .h1 { font-size: 36px; }
  h2, .h2 { font-size: 28px; }
  .h-display { font-size: clamp(48px, 14vw, 80px); }
  .hero { padding: 80px 0 var(--s-8); }
}

/* ---- Print ------------------------------------------------------------ */
@media print {
  .site-header, .site-footer, .cta { display: none; }
  body { color: #000; background: #fff; }
}

/* ---- Focus state ------------------------------------------------------ */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---- Scrollbar (subtle) ----------------------------------------------- */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--paper-50); }
::-webkit-scrollbar-thumb { background: var(--cool-200); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--cool-400); }
