/* ==========================================================================
   Cirrus Technologies — cirrus-tech.com
   Design language: Stripe's engineered central column + diagonal seams,
   Cloudflare's mono-label technical credibility, Cirrus's own palette.
   ========================================================================== */

@font-face {
  font-family: 'InterVar';
  src: url('/fonts/InterVariable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color */
  --navy: #0a2540;
  --navy-2: #0d2d4d;
  --ink: #0a2540;
  --slate: #425466;
  --slate-light: #adbdcc;
  --brand: #6366f1;
  --brand-deep: #4f46e5;
  --cyan: #22d3ee;
  --coral: #fb7185;
  --bg-off: #f6f9fc;
  --hairline: rgba(10, 37, 64, 0.10);
  --guide: rgba(66, 71, 112, 0.06);

  /* Type */
  --font: 'InterVar', 'SF Pro Display', -apple-system, 'Segoe UI', sans-serif;
  --mono: ui-monospace, 'SF Mono', 'Cascadia Code', 'JetBrains Mono', Menlo, monospace;

  /* Layout */
  --container: 1080px;
  --gutter: 24px;
  --skew: -6deg;

  /* Shadows — always blue-tinted, always two layers (Stripe) */
  --shadow-sm: 0 5px 14px rgba(0, 55, 112, 0.08), 0 2px 8px rgba(0, 59, 137, 0.05);
  --shadow-md: 0 6px 22px rgba(0, 55, 112, 0.10), 0 4px 8px rgba(0, 59, 137, 0.02);
  --shadow-lg: 0 15px 40px -2px rgba(0, 55, 112, 0.10), 0 5px 20px -2px rgba(0, 59, 137, 0.04);
  --shadow-hero: 0 50px 100px -20px rgba(50, 50, 93, 0.25), 0 30px 60px -30px rgba(0, 0, 0, 0.3);

  /* Motion */
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-big: cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

body {
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.555;
  color: var(--slate);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: #dfe3ff; color: #3730a3; }

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--brand); text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  position: relative;
}

/* Stripe-style vertical grid guides across the column */
@media (min-width: 1140px) {
  body::after {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background:
      linear-gradient(var(--guide), var(--guide)) calc(50% - 540px) 0 / 1px 100% no-repeat,
      linear-gradient(var(--guide), var(--guide)) calc(50% - 180px) 0 / 1px 100% no-repeat,
      linear-gradient(var(--guide), var(--guide)) calc(50% + 180px) 0 / 1px 100% no-repeat,
      linear-gradient(var(--guide), var(--guide)) calc(50% + 540px) 0 / 1px 100% no-repeat;
  }
}

/* ---------- Typography ---------- */

h1, h2, h3 { color: var(--ink); font-weight: 640; letter-spacing: -0.025em; }

h1 {
  font-size: clamp(2.6rem, 6.2vw, 4.4rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  line-height: 1.08;
}

h3 { font-size: 1.16rem; font-weight: 620; letter-spacing: -0.012em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--brand-deep);
  margin-bottom: 14px;
}

.eyebrow-cyan { color: var(--cyan); }

.section-sub {
  font-size: 1.15rem;
  max-width: 620px;
  margin-top: 18px;
}

.ink-grad {
  background: linear-gradient(92deg, var(--brand) 10%, var(--cyan) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              color 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              transform 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.btn:active { transform: scale(0.98) translateY(1px); }
.btn .arrow { transition: transform 0.15s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--navy); color: #fff; }
.btn-primary:disabled { opacity: 0.6; cursor: default; }

.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--brand-deep); }

.btn-ghost { background: rgba(255, 255, 255, 0.55); border-color: var(--hairline); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }

.btn-sm { padding: 8px 18px; font-size: 0.9rem; }
.btn-lg { padding: 14px 30px; font-size: 1.02rem; }

/* ---------- Reveals ---------- */

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease-big); }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.10s; }
.reveal.d2 { transition-delay: 0.20s; }
.reveal.d3 { transition-delay: 0.30s; }
.reveal.d4 { transition-delay: 0.40s; }

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

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--hairline);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 36px;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand-name {
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.brand-sub { font-weight: 500; font-size: 0.78rem; color: var(--slate); letter-spacing: 0.02em; }

.nav-links { display: flex; gap: 26px; margin-left: 12px; }
.nav-links a {
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 550;
  opacity: 0.82;
  transition: opacity 0.15s;
}
.nav-links a:hover { opacity: 1; }

.nav-cta { margin-left: auto; }

.nav-burger {
  display: none;
  margin-left: auto;
  width: 40px; height: 40px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
}
.nav-burger span {
  position: absolute;
  left: 9px; right: 9px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s var(--ease), top 0.25s var(--ease);
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 23px; }
.nav-burger.open span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 10px 24px 22px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
}
.nav-mobile.open { display: flex; }
.nav-mobile a { color: var(--ink); font-weight: 550; padding: 10px 0; }
.nav-mobile .btn { justify-content: center; margin-top: 10px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 168px 0 120px;
}

.hero-gradient {
  position: absolute;
  top: -340px;
  bottom: 110px;
  left: 0; right: 0;
  transform: skewY(var(--skew));
  overflow: hidden;
  z-index: -1;
}
#gradient-canvas {
  width: 100%;
  height: 100%;
  filter: saturate(1.15);
}
/* soften the top so nav text stays crisp */
.hero-gradient::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.28) 38%, rgba(255, 255, 255, 0.05) 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.hero-copy { max-width: 780px; }
.hero-copy .eyebrow { color: var(--navy); opacity: 0.75; }

.hero-sub {
  font-size: 1.22rem;
  color: var(--ink);
  opacity: 0.82;
  max-width: 620px;
  margin: 22px auto 0;
}

.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; justify-content: center; }

/* floating elements (used by dashboard annotations) */
.float-a { animation: floaty 7s ease-in-out infinite alternate; }
.float-b { animation: floaty 6s ease-in-out 0.8s infinite alternate-reverse; }
.float-c { animation: floaty 5s ease-in-out 0.4s infinite alternate; }
@keyframes floaty {
  from { transform: translateY(0); }
  to { transform: translateY(-12px); }
}
.pulse-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.45); }
  70% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .pulse-dot { animation: none; }
}

/* ---------- Trust strip ---------- */

.strip { padding: 26px 0 10px; }
.strip-line {
  font-size: 1.02rem;
  color: var(--slate);
  border-top: 1px solid var(--hairline);
  padding-top: 26px;
}
.strip-line strong { color: var(--ink); font-weight: 620; }

/* ---------- Sections ---------- */

.section { padding: 110px 0; position: relative; }
.section-tint { background: var(--bg-off); }

.section-dark {
  position: relative;
  isolation: isolate;
  padding: 150px 0 130px;
  color: var(--slate-light);
  margin: 60px 0;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--navy) 55%, var(--navy-2));
  transform: skewY(var(--skew));
  z-index: -1;
}
.section-dark h2 { color: #fff; }
.section-dark .section-sub { color: var(--slate-light); }

/* ---------- Services cards ---------- */

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
}

.card {
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.07);
  border-radius: 14px;
  padding: 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card p { font-size: 0.95rem; margin-top: 10px; }

.card-icon {
  width: 42px; height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 24px; height: 24px; }
.icon-indigo { background: rgba(99, 102, 241, 0.12); color: var(--brand-deep); }
.icon-cyan { background: rgba(34, 211, 238, 0.14); color: #0891b2; }
.icon-coral { background: rgba(251, 113, 133, 0.13); color: #e11d48; }

/* ---------- Platform split ---------- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

.feature-list { list-style: none; margin-top: 30px; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 13px; font-size: 0.98rem; }
.feature-list strong { color: #fff; font-weight: 620; }
.check {
  flex-shrink: 0;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}

.split-visual {
  position: relative;
  min-height: 380px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 88px;
  padding-top: 48px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}
.stat-num {
  font-size: clamp(2rem, 3.6vw, 2.9rem);
  font-weight: 660;
  letter-spacing: -0.025em;
  font-feature-settings: 'tnum';
  background: linear-gradient(92deg, #a5b4fc, var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  margin-top: 8px;
  color: var(--slate-light);
}

/* ---------- Process steps ---------- */

.steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
  margin-top: 60px;
  counter-reset: step;
}
.step {
  border-top: 2px solid var(--hairline);
  padding-top: 22px;
  position: relative;
}
.step::before {
  content: '';
  position: absolute;
  top: -2px; left: 0;
  width: 44px; height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
}
.step-num {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-deep);
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.94rem; }

/* ---------- Principles ---------- */

.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  margin-top: 54px;
}
.principle {
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.07);
  border-radius: 14px;
  padding: 30px 30px 26px;
  box-shadow: var(--shadow-sm);
}
.principle h3 { margin-bottom: 8px; }
.principle p { font-size: 0.97rem; }

/* ---------- CTA / Contact ---------- */

.section-cta { margin-bottom: 0; padding-bottom: 150px; overflow: visible; }
/* Stripe rule: one diagonal edge per section. The CTA keeps its skewed top
   seam but squares off against the footer with an unskewed lower fill. */
.section-cta::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 45%; bottom: 0;
  background: var(--navy);
  z-index: -1;
}
.section-cta::before { background: var(--navy); }
.cta-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: skewY(var(--skew));
  overflow: hidden;
  pointer-events: none;
}
.cta-glow::before,
.cta-glow::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}
.cta-glow::before { width: 520px; height: 520px; background: var(--brand); top: -160px; right: -80px; }
.cta-glow::after { width: 420px; height: 420px; background: var(--cyan); bottom: -180px; left: -60px; opacity: 0.18; }

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  gap: 64px;
  align-items: start;
}

.contact-form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-form label {
  display: grid;
  gap: 7px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #dbe6f5;
  letter-spacing: 0.01em;
}
.contact-form .opt { color: var(--slate-light); font-weight: 450; }
.contact-form input,
.contact-form textarea {
  font-family: var(--font);
  font-size: 0.96rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 12px 14px;
  transition: border-color 0.16s, box-shadow 0.16s, background 0.16s;
  resize: vertical;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(219, 230, 245, 0.4); }
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.28);
}
.contact-form .btn { justify-self: start; margin-top: 6px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form-status { font-size: 0.9rem; min-height: 1.4em; color: var(--slate-light); }
.form-status.ok { color: #5eead4; }
.form-status.err { color: #fda4af; }

/* ---------- Statement ---------- */

.statement { padding: 40px 0 110px; }
.statement-line {
  font-size: clamp(1.55rem, 3.4vw, 2.5rem);
  font-weight: 630;
  line-height: 1.28;
  letter-spacing: -0.022em;
  color: var(--ink);
  max-width: 900px;
}
.statement-line .st-word {
  opacity: 0.16;
  transition: opacity 0.35s var(--ease);
}
.statement-line .st-word.lit { opacity: 1; }

/* ---------- Centered section heads ---------- */

.center-head { text-align: center; }
.center-head .section-sub { margin-left: auto; margin-right: auto; }

/* ---------- Globe (Cloudflare-style: huge, frameless, annotated) ---------- */

.section-globe { overflow: hidden; }
.globe-stage {
  position: relative;
  max-width: 1200px;
  margin: 26px auto 0;
  height: 680px;
  cursor: grab;
}
.globe-stage:active { cursor: grabbing; }
.globe-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }

.globe-note {
  position: absolute;
  top: 24%;
  width: 232px;
  padding: 14px 16px;
  border: 1px dashed rgba(34, 211, 238, 0.55);
  background: rgba(7, 20, 39, 0.72);
  backdrop-filter: blur(4px);
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.65;
  color: #9db8d8;
  pointer-events: none;
}
.globe-note strong {
  display: block;
  color: var(--cyan);
  font-size: 0.82rem;
  margin-bottom: 5px;
  letter-spacing: 0.02em;
}
.note-left { left: max(24px, calc(50% - 570px)); }
.note-right { right: max(24px, calc(50% - 570px)); top: 48%; }
/* dashed connector stubs pointing into the globe */
.globe-note::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 56px;
  border-top: 1px dashed rgba(34, 211, 238, 0.55);
}
.note-left::after { right: -56px; }
.note-right::after { left: -56px; }

.globe-hint,
.morph-hint {
  position: absolute;
  bottom: 10px;
  left: 0; right: 0;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  pointer-events: none;
}

/* Blueprint-bordered feature grid under the globe */
.edge-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 64px;
}
/* blueprint corner handles */
.edge-grid::before,
.edge-grid::after {
  content: '';
  position: absolute;
  width: 7px; height: 7px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.edge-grid::before { top: -4px; left: -4px; }
.edge-grid::after { bottom: -4px; right: -4px; }
.edge-cell {
  padding: 26px 24px 28px;
  border-left: 1px solid rgba(255, 255, 255, 0.1);
}
.edge-cell:first-child { border-left: 0; }
.edge-icon { color: var(--cyan); width: 26px; height: 26px; margin-bottom: 16px; }
.edge-cell h3 { color: #fff; font-size: 1rem; margin-bottom: 8px; }
.edge-cell p { font-size: 0.88rem; color: var(--slate-light); }

/* ---------- Morph section (Stripe-style: tabs + seamless field) ---------- */

.morph-section { padding-bottom: 0; }

.morph-tabs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 54px;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid rgba(10, 37, 64, 0.06);
}
.morph-tab {
  appearance: none;
  background: none;
  border: 0;
  border-top: 2px solid transparent;
  border-left: 1px solid var(--hairline);
  margin-top: -1px;
  padding: 22px 18px 20px;
  text-align: left;
  font-family: var(--font);
  cursor: pointer;
  transition: border-color 0.25s var(--ease);
}
.morph-tab:first-child { border-left: 0; }
.mt-word {
  display: block;
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #9aa8bd;
  transition: color 0.25s var(--ease);
}
.mt-cap {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--slate);
  opacity: 0.75;
}
.morph-tab:hover .mt-word { color: var(--slate); }
.morph-tab.active { border-top-color: var(--ink); }
.morph-tab.active .mt-word { color: var(--ink); }

.morph-stage {
  position: relative;
  height: 640px;
  margin-top: 8px;
}
.morph-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Stripe-style soft warm/cool glow behind the particles */
.morph-stage::before {
  content: '';
  position: absolute;
  inset: 6% 12%;
  z-index: -1;
  background:
    radial-gradient(42% 52% at 50% 62%, rgba(251, 191, 36, 0.30), transparent 70%),
    radial-gradient(55% 60% at 38% 40%, rgba(99, 102, 241, 0.16), transparent 70%),
    radial-gradient(50% 55% at 66% 45%, rgba(34, 211, 238, 0.16), transparent 70%);
  filter: blur(30px);
}
.morph-hint { color: rgba(10, 37, 64, 0.32); }

/* ---------- Compare: chaos vs calm (Cloudflare-style) ---------- */

.compare-wrap {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  min-height: 640px;
  margin-top: 70px;
}

/* dotted line threading through both halves */
.compare-dotline {
  position: absolute;
  left: -6%; right: -6%;
  top: 54%;
  border-top: 2px dotted rgba(255, 255, 255, 0.28);
  z-index: 0;
}

.compare-title {
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.06;
  color: #fff;
  text-align: center;
}

/* --- chaos half: open field, chips scattered around the title --- */
.compare-chaos {
  position: relative;
  padding-top: 96px;
}
.compare-chaos .compare-title { position: relative; z-index: 2; opacity: 0.95; }

.chip {
  position: absolute;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  max-width: 250px;
  background: rgba(13, 20, 36, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 10px 13px;
  font-family: var(--mono);
  font-size: 0.7rem;
  line-height: 1.55;
  color: #aebbd0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.chip strong { display: block; color: #dbe4f0; font-weight: 650; }
.chip .p0 {
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.18);
  color: #f87171;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 4px;
}
.chip .warn { color: #fbbf24; font-size: 0.62rem; }
.chip .bell { filter: grayscale(1) brightness(1.4); }
.chip-status { color: #e2e8f0; letter-spacing: 0.05em; }

/* hand-placed scatter, overlapping like a bad day */
.c1 { top: 2%;  left: 4%;  z-index: 3; }
.c2 { top: 0;   left: 46%; }
.c3 { top: 16%; right: 2%;  max-width: 280px; z-index: 3; }
.c4 { top: 48%; left: 22%; }
.c5 { top: 52%; left: 26%; }
.c6 { top: 56%; left: 30%; z-index: 3; }
.c7 { top: 76%; left: 6%; }
.c8 { top: 68%; right: 4%;  z-index: 2; }
.c9 { top: 88%; left: 38%; }

/* jitter + occasional refire */
.chip { animation: chip-jitter 4.2s linear infinite, chip-blink 11s var(--ease) infinite; }
.c2 { animation-delay: -1.2s, -3s; }
.c3 { animation-delay: -2.1s, -7.5s; }
.c4 { animation-delay: -0.6s, -5s; }
.c5 { animation-delay: -1.8s, -9s; }
.c6 { animation-delay: -2.7s, -1.5s; }
.c7 { animation-delay: -0.3s, -6.5s; }
.c8 { animation-delay: -1.5s, -4s; }
.c9 { animation-delay: -2.4s, -8.5s; }
@keyframes chip-jitter {
  0%, 100% { transform: translate(0, 0); }
  22% { transform: translate(-2px, 1px); }
  45% { transform: translate(2px, -1px); }
  68% { transform: translate(-1px, -2px); }
  86% { transform: translate(1px, 2px); }
}
@keyframes chip-blink {
  0%, 91%, 100% { opacity: 1; }
  93%, 97% { opacity: 0.15; }
  95% { opacity: 0.8; }
}

/* flickering dot-matrix columns behind the chaos */
.dotfield {
  position: absolute;
  z-index: 0;
  background-image: radial-gradient(rgba(239, 68, 68, 0.55) 1px, transparent 1.4px);
  background-size: 8px 9px;
  -webkit-mask-image:
    repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 11px),
    linear-gradient(180deg, transparent, #000 40%, #000 75%, transparent);
  -webkit-mask-composite: source-in;
  mask-image:
    repeating-linear-gradient(90deg, #000 0 5px, transparent 5px 11px),
    linear-gradient(180deg, transparent, #000 40%, #000 75%, transparent);
  mask-composite: intersect;
  animation: dot-flicker 2.3s steps(3) infinite;
}
.df1 { top: 34%; left: 6%; width: 46%; height: 34%; }
.df2 { top: 26%; right: 8%; width: 30%; height: 26%; animation-delay: -1.1s; opacity: 0.7; }
@keyframes dot-flicker {
  0%, 100% { opacity: 0.9; }
  33% { opacity: 0.45; }
  66% { opacity: 0.7; }
}

@media (prefers-reduced-motion: reduce) {
  .chip, .dotfield { animation: none; }
}

/* --- calm half: one bold gradient panel --- */
.compare-calm {
  position: relative;
  z-index: 1;
  border-radius: 10px;
  background: linear-gradient(150deg, #6366f1 0%, #7c5cf6 55%, #8b5cf6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 96px 36px 0;
  box-shadow: var(--shadow-hero);
}
/* blueprint corner handles */
.compare-calm::before,
.compare-calm::after {
  content: '';
  position: absolute;
  width: 8px; height: 8px;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.7);
}
.compare-calm::before { top: -4px; left: -4px; }
.compare-calm::after { bottom: -4px; right: -4px; }

.calm-pill {
  position: absolute;
  top: calc(54% - 26px);
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 15px 24px;
  font-weight: 620;
  font-size: 1.02rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  font-feature-settings: 'tnum';
}
.calm-tick {
  width: 20px; height: 20px;
  border-radius: 50%;
  margin-right: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.odo {
  display: inline-block;
  min-width: 2ch;
  text-align: center;
  color: var(--brand-deep);
  font-weight: 720;
}

/* ---------- Dashboard mock ---------- */

.dash-wrap { position: relative; }
.dash-note {
  position: absolute;
  z-index: 3;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  padding: 10px 14px;
  pointer-events: none;
}
.dash-note .dn-title { font-size: 0.78rem; font-weight: 650; color: var(--ink); margin-bottom: 3px; }
.dash-note code { font-family: var(--mono); font-size: 0.68rem; color: var(--slate); }
.dash-note .dn-str { color: var(--brand-deep); }
.dash-note-tl { top: -24px; left: -20px; }
.dash-note-br { bottom: -22px; right: -16px; }

.split-wide { align-items: center; }
.feature-list-light strong { color: var(--ink); }
.feature-list-light li { color: var(--slate); }

.dash-mock {
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 16px;
  box-shadow: var(--shadow-hero);
  overflow: hidden;
  font-feature-settings: 'tnum';
}
.dash-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid rgba(10, 37, 64, 0.07);
  flex-wrap: wrap;
}
.dash-title {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink);
}
.dash-pills { display: inline-flex; gap: 7px; flex-wrap: wrap; }
.pill {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 4px 9px;
  border-radius: 999px;
}
.pill-ok { background: rgba(16, 185, 129, 0.12); color: #047857; }
.pill-warn { background: rgba(245, 158, 11, 0.14); color: #b45309; }

.dash-grid { display: grid; grid-template-columns: 1.5fr 1fr; }
.dash-cell { padding: 18px 18px 14px; }
.dash-cell + .dash-cell { border-left: 1px solid rgba(10, 37, 64, 0.07); }
.dash-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--slate);
}
.dash-big {
  font-size: 1.55rem;
  font-weight: 680;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 4px;
}
.dash-ok { color: #059669; }
.dash-chart { width: 100%; height: 70px; margin-top: 10px; }

.dash-logs {
  font-family: var(--mono);
  font-size: 0.66rem;
  line-height: 1.9;
  color: #8aa3c4;
  background: #0c1e36;
  padding: 12px 18px;
  height: 118px;
  overflow: hidden;
  white-space: nowrap;
}
.dash-logs .log-ok { color: #34d399; }
.dash-logs .log-warn { color: #fbbf24; }
.dash-logs div { animation: log-in 0.3s var(--ease); }
@keyframes log-in { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Steps progress line ---------- */

.steps-line {
  position: relative;
  height: 2px;
  background: var(--hairline);
  margin-top: 64px;
  border-radius: 2px;
  overflow: hidden;
}
.steps-line-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  transition: width 0.2s linear;
}
.steps { margin-top: 30px; }
.step { border-top: 0; padding-top: 0; }
.step::before { display: none; }

/* ---------- Engagement ---------- */

.engage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 56px;
  align-items: stretch;
}
.engage-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 16px;
  padding: 30px 28px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.engage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.engage-featured {
  border-color: rgba(99, 102, 241, 0.45);
  box-shadow: var(--shadow-lg);
}
.engage-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  background: linear-gradient(92deg, var(--brand), var(--cyan));
  color: #fff;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.engage-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-deep);
  margin: 6px 0 12px;
}
.engage-card > p:not(.engage-tag) { font-size: 0.95rem; }
.engage-card ul {
  list-style: none;
  margin: 16px 0 22px;
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}
.engage-card ul li { padding-left: 20px; position: relative; }
.engage-card ul li::before {
  content: '';
  position: absolute;
  left: 2px; top: 8px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: linear-gradient(92deg, var(--brand), var(--cyan));
}
.engage-card .btn { margin-top: auto; justify-content: center; }
.engage-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--slate);
  margin-top: 30px;
}

/* ---------- FAQ ---------- */

.faq-list { margin-top: 44px; display: grid; gap: 12px; max-width: 820px; }
.faq-item {
  background: #fff;
  border: 1px solid rgba(10, 37, 64, 0.08);
  border-radius: 13px;
  padding: 0 24px;
  box-shadow: var(--shadow-sm);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  font-weight: 620;
  font-size: 1.02rem;
  color: var(--ink);
  letter-spacing: -0.01em;
  padding: 19px 34px 19px 0;
  position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 2px;
  top: 50%;
  translate: 0 -50%;
  font-size: 1.35rem;
  font-weight: 420;
  color: var(--brand);
  transition: rotate 0.25s var(--ease);
}
.faq-item[open] summary::after { rotate: 45deg; }
.faq-item p {
  font-size: 0.95rem;
  padding-bottom: 20px;
  max-width: 700px;
  animation: faq-in 0.32s var(--ease);
}
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Footer ---------- */

.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-off);
  border-top: 1px solid var(--hairline);
  padding: 64px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 44px;
  align-items: start;
}
.footer-brand { display: flex; align-items: flex-start; gap: 13px; }
.footer-brand .brand-mark { width: 34px; height: 34px; }
.footer-name { font-weight: 680; color: var(--ink); letter-spacing: -0.01em; }
.footer-tag { font-size: 0.8rem; color: var(--slate); margin-top: 3px; }
.footer-col { display: grid; gap: 10px; justify-items: start; }
.footer-head {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--slate);
  margin-bottom: 4px;
}
.footer-col a { color: var(--slate); font-size: 0.9rem; font-weight: 520; }
.footer-col a:hover { color: var(--brand-deep); }
.footer-col .btn { margin-top: 4px; }
.footer-note { font-size: 0.85rem; color: var(--slate); max-width: 240px; }
.footer-meta-row {
  border-top: 1px solid var(--hairline);
  margin-top: 46px;
  padding-top: 24px;
}
.footer-meta { font-size: 0.8rem; color: var(--slate); }

/* ---------- Responsive ---------- */

@media (max-width: 980px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav { background: rgba(255, 255, 255, 0.88); backdrop-filter: blur(12px); }

  .hero { padding: 130px 0 90px; }
  .hero-inner { grid-template-columns: 1fr; gap: 64px; }

  .cards-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; gap: 36px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cta-inner { grid-template-columns: 1fr; gap: 44px; }
  .engage-grid { grid-template-columns: 1fr; max-width: 460px; }
  .compare-wrap { grid-template-columns: 1fr; min-height: 0; }
  .compare-chaos { min-height: 540px; }
  .compare-calm { min-height: 440px; }
  .compare-dotline { display: none; }
  .calm-pill { position: static; margin-top: 70px; }
  .globe-stage { height: 520px; }
  .globe-note { display: none; }
  .edge-grid { grid-template-columns: 1fr 1fr; }
  .edge-cell:nth-child(3) { border-left: 0; }
  .edge-cell:nth-child(n + 3) { border-top: 1px solid rgba(255, 255, 255, 0.1); }
  .morph-stage { height: 480px; }
  .morph-tabs { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; }
  .dash-note-tl { top: -16px; left: 0; }
  .dash-note-br { bottom: -16px; right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
}

@media (max-width: 620px) {
  body { font-size: 16.5px; }
  .cards-grid, .steps, .principles-grid, .form-row { grid-template-columns: 1fr; }
  .section { padding: 80px 0; }
  .section-dark { padding: 110px 0 100px; }
  .globe-stage { height: 380px; }
  .morph-stage { height: 380px; }
  .c5, .c8, .c9 { display: none; }
  .compare-chaos { min-height: 440px; }
  .chip { max-width: 200px; }
  .calm-pill { font-size: 0.85rem; padding: 12px 16px; }
  .mt-cap { display: none; }
  .morph-tab { padding: 14px 12px; }
  .dash-grid { grid-template-columns: 1fr; }
  .dash-cell + .dash-cell { border-left: 0; border-top: 1px solid rgba(10, 37, 64, 0.07); }
  .statement { padding: 20px 0 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}
