/* =====================================================================
   Cognisho — professional enterprise-tech marketing site
   Dual theme (dark / light). One disciplined navy accent + emerald
   for "live" status. Minimal shadows, near-flat surfaces, no decorative
   gradients. Plus Jakarta Sans / Inter / IBM Plex Mono.
   ===================================================================== */

/* ---------- design tokens ---------- */
:root {
  /* type */
  --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* brand hue — navy. dark mode lifts it for legibility, light mode deepens it. */
  --navy: 74, 110, 165;       /* dark-mode steel-navy accent rgb */
  --emerald: 45, 170, 125;

  /* layout */
  --wrap: 1180px;
  --radius: 16px;
  --radius-lg: 22px;
  --radius-sm: 10px;
  --nav-h: 70px;

  /* motion */
  --ease: cubic-bezier(.22, 1, .36, .08);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --reveal-y: 22px;
}

/* ---------- DARK (default) — deep navy ink ---------- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0A111E;
  --bg-2: #0b1322;
  --surface-solid: #111a2b;
  --surface-2: #152032;
  --card: rgba(255, 255, 255, .022);
  --card-hover: rgba(255, 255, 255, .045);
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .15);
  --text: #EEF2F8;
  --text-soft: #a4b1c5;
  --text-mute: #6e7c91;

  --primary: rgb(var(--navy));
  --primary-strong: #6f93c8;
  --primary-soft: rgba(var(--navy), .16);
  --primary-line: rgba(var(--navy), .42);
  --on-primary: #ffffff;

  --accent: rgb(var(--emerald));
  --accent-soft: rgba(var(--emerald), .14);
  --danger: #d98a8a;
  --danger-soft: rgba(217, 138, 138, .12);

  --grad: var(--primary);
  --glow-1: rgba(var(--navy), .16);
  --glow-2: rgba(var(--navy), .10);
  --grid-line: rgba(255, 255, 255, .03);

  --shadow-sm: 0 1px 2px rgba(0,0,0,.32);
  --shadow: 0 16px 40px -28px rgba(0, 0, 0, .7);
  --shadow-card: none;
  --nav-bg: rgba(10, 17, 30, .80);
}

/* ---------- LIGHT — paper white, deep navy accent ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F6F8FB;
  --bg-2: #eef2f7;
  --surface-solid: #ffffff;
  --surface-2: #f1f4f9;
  --card: #ffffff;
  --card-hover: #ffffff;
  --border: rgba(20, 33, 61, .10);
  --border-strong: rgba(20, 33, 61, .16);
  --text: #0E1C30;
  --text-soft: #41506a;
  --text-mute: #78859b;

  --primary: #163E72;
  --primary-strong: #0F2C54;
  --primary-soft: rgba(22, 62, 114, .07);
  --primary-line: rgba(22, 62, 114, .20);
  --on-primary: #ffffff;

  --accent: #0c9c6a;
  --accent-soft: rgba(12, 156, 106, .10);
  --danger: #bf584f;
  --danger-soft: rgba(191, 88, 79, .09);

  --grad: var(--primary);
  --glow-1: rgba(22, 62, 114, .06);
  --glow-2: rgba(22, 62, 114, .045);
  --grid-line: rgba(20, 33, 61, .035);

  --shadow-sm: 0 1px 2px rgba(16, 28, 58, .05);
  --shadow: 0 14px 32px -26px rgba(16, 28, 58, .16);
  --shadow-card: none;
  --nav-bg: rgba(246, 248, 251, .82);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color .5s var(--ease-out), color .5s var(--ease-out);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--primary-soft); color: var(--text); }

.ico { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 200;
  background: var(--primary); color: var(--on-primary);
  padding: 10px 16px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transform: translateY(-150%); transition: transform .2s;
}
.skip:focus { transform: translateY(0); }

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

/* =====================================================================
   AMBIENT BACKGROUND
   ===================================================================== */
.bg { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.bg__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}
.bg__glow { position: absolute; border-radius: 50%; filter: blur(100px); opacity: .5; }
.bg__glow--1 { width: 620px; height: 620px; top: -240px; left: 50%; transform: translateX(-46%); background: radial-gradient(circle, var(--glow-1), transparent 68%); }
.bg__glow--2 { width: 520px; height: 520px; top: 360px; right: -160px; background: radial-gradient(circle, var(--glow-2), transparent 68%); }

/* =====================================================================
   BUTTONS
   ===================================================================== */
.btn {
  --pad-y: 12px; --pad-x: 20px;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  padding: var(--pad-y) var(--pad-x);
  border-radius: 12px;
  background: var(--primary); color: var(--on-primary);
  position: relative; isolation: isolate;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s, filter .25s;
  box-shadow: none;
  white-space: nowrap;
}
[data-theme="light"] .btn { box-shadow: 0 1px 2px rgba(16, 28, 58, .14); }
.btn .ico { width: 17px; height: 17px; transition: transform .25s var(--ease-out); }
.btn:hover { transform: translateY(-1px); background: var(--primary-strong); box-shadow: var(--shadow-sm); }
.btn:hover .ico { transform: translateX(3px); }
.btn:active { transform: translateY(0); }
.btn--lg { --pad-y: 15px; --pad-x: 26px; font-size: 16px; border-radius: 13px; }
.btn--sm { --pad-y: 9px; --pad-x: 15px; font-size: 14px; border-radius: 10px; }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent; color: var(--text);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn--ghost:hover { background: var(--card-hover); box-shadow: inset 0 0 0 1px var(--primary-line); filter: none; }

/* =====================================================================
   SCROLL PROGRESS
   ===================================================================== */
.progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0%;
  background: var(--primary); z-index: 120;
}

/* =====================================================================
   NAV
   ===================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; transition: background-color .35s, box-shadow .35s, border-color .35s; }
.nav__inner {
  max-width: var(--wrap); margin: 0 auto; height: var(--nav-h);
  padding: 0 24px; display: flex; align-items: center; gap: 22px;
}
.nav.is-scrolled {
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; margin-right: auto; }
.brand__mark {
  width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center;
  background: var(--primary); color: #fff;
}
.brand__mark svg { width: 20px; height: 20px; color: #fff; }
.brand__name { color: var(--text); }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-soft);
  padding: 8px 13px; border-radius: 9px; transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--text); background: var(--card-hover); }

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

.theme-toggle {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text-soft); position: relative;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: color .2s, background-color .2s, box-shadow .2s;
}
.theme-toggle:hover { color: var(--text); background: var(--card-hover); box-shadow: inset 0 0 0 1px var(--border-strong); }
.theme-toggle .ico { position: absolute; width: 19px; height: 19px; transition: opacity .3s var(--ease-out), transform .4s var(--ease-out); }
[data-theme="dark"] .theme-toggle__sun { opacity: 1; transform: rotate(0) scale(1); }
[data-theme="dark"] .theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
[data-theme="light"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
[data-theme="light"] .theme-toggle__moon { opacity: 1; transform: rotate(0) scale(1); }

.nav__burger { display: none; width: 40px; height: 40px; border-radius: 10px; position: relative; box-shadow: inset 0 0 0 1px var(--border); }
.nav__burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .3s var(--ease-out), opacity .2s; }
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 19px; }
.nav__burger span:nth-child(3) { top: 24px; }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

.nav__mobile {
  display: none; flex-direction: column; gap: 4px; padding: 12px 20px 22px;
  background: var(--nav-bg); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__mobile a { padding: 12px 14px; border-radius: 10px; font-weight: 500; color: var(--text-soft); }
.nav__mobile a:hover { background: var(--card-hover); color: var(--text); }
.nav__mobile .btn { margin-top: 8px; color: var(--on-primary); }
.nav.is-open .nav__mobile { display: flex; }

/* =====================================================================
   SHARED SECTION PRIMITIVES
   ===================================================================== */
.section { padding: clamp(70px, 10vw, 132px) 0; position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 500;
  letter-spacing: .02em; text-transform: uppercase;
  color: var(--text-soft);
  padding: 7px 14px 7px 12px; border-radius: 100px;
  background: var(--card); box-shadow: inset 0 0 0 1px var(--border);
}
.pill__dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft); }
.pill--accent { color: var(--text); }
.pill--accent .pill__dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }

.sec-head { max-width: 680px; margin-bottom: 56px; }
.sec-h {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(30px, 4.6vw, 50px); line-height: 1.07; letter-spacing: -.03em;
  margin-top: 18px; color: var(--text);
}
.sec-h--lg { font-size: clamp(32px, 5vw, 56px); }
.grad { color: var(--primary); }
.sec-sub { margin-top: 18px; font-size: clamp(16px, 1.7vw, 18.5px); color: var(--text-soft); max-width: 60ch; }

.dotg { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); display: inline-block; box-shadow: 0 0 0 4px var(--accent-soft); }

/* reveal animation base — hidden state is gated behind `.js` so that without
   JavaScript (or if scripts fail) the content is always visible. */
.js [data-reveal] { opacity: 0; transform: translateY(var(--reveal-y)); }
.js.reveal-ready [data-reveal] { transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.js [data-reveal].in { opacity: 1; transform: none; }
.no-reveal [data-reveal] { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* =====================================================================
   HERO
   ===================================================================== */
.hero { padding-top: calc(var(--nav-h) + clamp(40px, 8vw, 86px)); padding-bottom: 0; position: relative; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
}
.hero__copy { max-width: 580px; }
.hero__h {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 6.4vw, 70px); line-height: 1.02; letter-spacing: -.035em;
  margin: 22px 0 0; color: var(--text);
}
.hero__sub { margin-top: 22px; font-size: clamp(17px, 2vw, 20px); color: var(--text-soft); max-width: 48ch; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 13px; }
.hero__trust {
  margin-top: 30px; display: flex; align-items: center; gap: 11px;
  font-family: var(--font-mono); font-size: 13px; color: var(--text-mute); letter-spacing: .01em;
}

/* hero illustration */
.hero__art { position: relative; display: grid; place-items: center; }
.art__halo {
  position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--glow-1), transparent 65%);
  filter: blur(30px); opacity: .6;
}
.art { width: 100%; max-width: 520px; overflow: visible; position: relative; }
.art__rings circle { fill: none; stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 6; opacity: .7; }
.art__rings { animation: spin 60s linear infinite; transform-origin: 240px 215px; }
.art__wires line { stroke: var(--border-strong); stroke-width: 1.2; }
.art__pulses .pls { fill: var(--primary); filter: drop-shadow(0 0 5px var(--primary)); }

.sigchip { animation: float 6s ease-in-out infinite; transform-origin: center; }
.sigchip rect { fill: var(--surface-solid); stroke: var(--border); stroke-width: 1; }
[data-theme="dark"] .sigchip rect { fill: #131b29; }
.sigchip use { color: var(--primary); stroke: var(--primary); fill: none; stroke-width: 1.8; }
.sigchip text { fill: var(--text-soft); font-family: var(--font-body); font-size: 13px; font-weight: 600; }

.dash rect:first-of-type { fill: var(--surface-solid); stroke: var(--border-strong); stroke-width: 1.2; filter: drop-shadow(0 24px 40px rgba(0,0,0,.35)); }
[data-theme="dark"] .dash rect:first-of-type { fill: #0f1622; }
.dash__led { fill: var(--accent); }
.dash__t { fill: var(--text); font-family: var(--font-display); font-size: 13px; font-weight: 700; }
.dash__lbl { fill: var(--text-mute); font-family: var(--font-body); font-size: 10.5px; }
.dash__track { fill: var(--border); }
.dash__bar { fill: var(--primary); }
.dash__bar.g { fill: var(--accent); }
.dash__ok circle { fill: var(--accent-soft); }
.dash__ok use { color: var(--accent); stroke: var(--accent); stroke-width: 2.4; }
.dash__okt { fill: var(--text-soft); font-family: var(--font-body); font-size: 10.5px; font-weight: 600; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .sigchip, .art__rings, .art__pulses .pls { animation: none; } }

/* marquee */
.marquee { position: relative; margin-top: clamp(48px, 7vw, 80px); padding: 18px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee__track { display: inline-flex; align-items: center; gap: 22px; white-space: nowrap; animation: marquee 38s linear infinite; will-change: transform; }
.marquee__track span { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text-soft); }
.marquee__track i { color: var(--primary); font-style: normal; opacity: .55; }
.marquee__fade { display: none; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; } }

/* =====================================================================
   SNAPSHOT (Chairman's test interactive)
   ===================================================================== */
.snap__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 48px; flex-wrap: wrap; }
.snap__intro { max-width: 640px; }
.snap__intro .sec-sub { margin-top: 16px; }

.toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; padding: 5px;
  border-radius: 13px; background: var(--card); box-shadow: inset 0 0 0 1px var(--border);
  flex-shrink: 0;
}
.toggle__btn {
  position: relative; z-index: 2; padding: 11px 18px; border-radius: 9px;
  font-family: var(--font-display); font-weight: 600; font-size: 14.5px;
  color: var(--text-soft); transition: color .3s; text-align: center; white-space: nowrap;
}
.toggle__btn.is-active { color: var(--on-primary); }
.toggle__pill {
  position: absolute; z-index: 1; top: 5px; bottom: 5px; left: 5px;
  width: calc(50% - 5px); border-radius: 9px; background: var(--primary);
  box-shadow: var(--shadow-sm);
  transition: transform .42s var(--ease-out), background-color .3s;
}

.metrics {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.metric {
  position: relative; padding: 22px 20px; border-radius: var(--radius);
  background: var(--card); box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 5px; min-height: 158px;
  transition: border-color .4s, transform .4s var(--ease-out), background-color .4s;
}
.metric__ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  color: var(--text-mute); background: var(--surface-2); margin-bottom: 8px;
  box-shadow: inset 0 0 0 1px var(--border);
  transition: color .4s, background-color .4s, box-shadow .4s;
}
.metric__ic .ico { width: 19px; height: 19px; }
.metric__label { font-size: 13px; color: var(--text-mute); font-weight: 500; }
.metric__val {
  font-family: var(--font-mono); font-weight: 600; font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -.02em; color: var(--text-soft); margin-top: auto; line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.metric__cap { font-size: 12px; color: var(--text-mute); opacity: 0; max-height: 0; transition: opacity .4s, max-height .4s; }

/* "Without" state — muted/red dashes */
.metrics.is-today .metric__val { color: var(--danger); }

/* "With Cognisho" state — values light up */
.metrics.is-cog .metric { border-color: var(--primary-line); transform: translateY(-2px); }
.metrics.is-cog .metric__ic { color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line); }
.metrics.is-cog .metric__val { color: var(--text); }
.metrics.is-cog .metric__cap { opacity: 1; max-height: 40px; }

.snap__foot { margin-top: 30px; display: flex; align-items: center; gap: 11px; font-family: var(--font-mono); font-size: 13.5px; color: var(--text-soft); }

/* =====================================================================
   HOW IT WORKS
   ===================================================================== */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 14px; }
.flow__step {
  position: relative; padding: 30px 26px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: border-color .3s, transform .3s var(--ease-out);
}
.flow__step:hover { transform: translateY(-3px); border-color: var(--border-strong); }
.flow__step--core { border-color: var(--primary-line); background: var(--primary-soft); }
.flow__ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line); margin-bottom: 18px; }
.flow__ic .ico { width: 23px; height: 23px; }
.flow__step--core .flow__ic { color: var(--on-primary); background: var(--primary); box-shadow: none; }
.flow__step-no { position: absolute; top: 24px; right: 24px; font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); letter-spacing: .05em; }
.flow__step h3 { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; }
.flow__step p { margin-top: 8px; font-size: 15px; color: var(--text-soft); }
.flow__arrow { width: 46px; height: 22px; align-self: center; fill: none; stroke: var(--border-strong); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.vs { margin-top: 22px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; gap: 14px; }
.vs__col { padding: 26px 28px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); }
.vs__col--old { opacity: .82; }
.vs__col--new { border-color: var(--primary-line); background: var(--primary-soft); }
.vs__tag { display: inline-block; font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-mute); margin-bottom: 12px; padding: 4px 10px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--border); }
.vs__tag--new { color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary-line); }
.vs__col p { font-size: 16px; color: var(--text-soft); }
.vs__col p em { font-style: normal; color: var(--text); font-weight: 600; }
.vs__div { align-self: center; display: grid; place-items: center; }
.vs__div span { font-family: var(--font-mono); font-size: 12px; color: var(--text-mute); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--border); background: var(--bg); }

/* =====================================================================
   SOLUTIONS (bento)
   ===================================================================== */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.tile {
  position: relative; padding: 26px; border-radius: var(--radius-lg);
  background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card);
  transition: border-color .3s, transform .35s var(--ease-out), background-color .3s;
  overflow: hidden;
}
.tile:hover { transform: translateY(-4px); border-color: var(--border-strong); background: var(--card-hover); }
.tile--feature {
  grid-column: 1 / -1; display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px;
  align-items: center; border-color: var(--primary-line); padding: 30px;
}
.tile--feature::before { content: ""; position: absolute; inset: 0; background: var(--primary-soft); opacity: .45; pointer-events: none; }
.tile__lead { position: relative; }
.tile__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tile__ic { width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line); margin-bottom: 16px; position: relative; }
.tile__top .tile__ic { margin-bottom: 0; }
.tile__ic .ico { width: 24px; height: 24px; }
.tile h3 { font-family: var(--font-display); font-weight: 700; font-size: 21px; letter-spacing: -.02em; position: relative; }
.tile p { margin-top: 8px; font-size: 15px; color: var(--text-soft); position: relative; }
.badge { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); padding: 5px 11px; border-radius: 100px; background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line); }

.tile--feature h3 { font-size: 25px; }
.tile--feature .tile__lead p { font-size: 15.5px; max-width: 48ch; }
.minidash {
  position: relative; display: flex; flex-direction: column; gap: 13px;
  padding: 20px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--border);
}
.minidash__top { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--text-mute); margin-bottom: 2px; }
.minidash__led { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); flex-shrink: 0; }
.minirow { display: grid; grid-template-columns: 1fr 1.3fr; align-items: center; gap: 14px; }
.minirow span { font-size: 12.5px; color: var(--text-mute); font-family: var(--font-mono); }
.minirow .bar { height: 7px; border-radius: 4px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); overflow: hidden; }
.minirow .bar b { display: block; height: 100%; width: var(--w); border-radius: 4px; background: var(--primary); transform-origin: left; }
.minirow .bar b.g { background: var(--accent); }

.chips { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500; color: var(--text-soft);
  padding: 7px 12px; border-radius: 9px;
  background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border);
  transition: color .2s, box-shadow .2s, transform .2s;
}
.chip:hover { transform: translateY(-1px); color: var(--text); box-shadow: inset 0 0 0 1px var(--border-strong); }
.chip .ico { width: 15px; height: 15px; color: var(--text-mute); }
.chip--live { color: var(--text); box-shadow: inset 0 0 0 1px var(--accent-soft); }
.chip--live .ico { color: var(--accent); }
.live { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--accent); padding: 2px 6px; border-radius: 5px; background: var(--accent-soft); margin-left: 2px; }

/* =====================================================================
   WHY
   ===================================================================== */
.why__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.why__card { padding: 32px 28px; border-radius: var(--radius-lg); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: border-color .3s, transform .35s var(--ease-out); }
.why__card:hover { transform: translateY(-4px); border-color: var(--border-strong); }
.why__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); box-shadow: inset 0 0 0 1px var(--primary-line); margin-bottom: 20px; }
.why__ic .ico { width: 25px; height: 25px; }
.why__card h3 { font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -.02em; }
.why__card p { margin-top: 10px; font-size: 15.5px; color: var(--text-soft); }

/* =====================================================================
   CONNECT / CTA
   ===================================================================== */
.connect { overflow: hidden; }
.connect__glow { position: absolute; top: -10%; left: 50%; transform: translateX(-50%); width: 760px; height: 520px; background: radial-gradient(ellipse at center, var(--glow-1), transparent 65%); filter: blur(60px); pointer-events: none; opacity: .5; }
.connect__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 52px; align-items: center; }
.connect__copy { max-width: 480px; }
.connect__copy .sec-h { margin-top: 18px; }
.ticks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 13px; }
.ticks li { display: flex; align-items: center; gap: 12px; font-size: 15.5px; color: var(--text-soft); }
.ticks .ico { width: 20px; height: 20px; flex-shrink: 0; color: var(--accent); padding: 3px; border-radius: 6px; background: var(--accent-soft); box-sizing: content-box; stroke-width: 2.6; }
.connect__direct { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px 24px; }
.connect__link { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: 14px; color: var(--text-soft); transition: color .2s; }
.connect__link .ico { width: 16px; height: 16px; color: var(--primary); }
.connect__link:hover { color: var(--text); }

.cform {
  padding: 32px; border-radius: var(--radius-lg);
  background: var(--surface-solid); border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.cform__h { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; }
.cform__sub { margin-top: 6px; font-size: 14.5px; color: var(--text-mute); margin-bottom: 22px; }
.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.field .opt { color: var(--text-mute); font-weight: 400; }
.field input, .select-wrap select {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--text);
  padding: 12px 14px; border-radius: 11px;
  background: var(--bg); border: 1px solid var(--border);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
[data-theme="light"] .field input, [data-theme="light"] .select-wrap select { background: var(--surface-2); }
.field input::placeholder { color: var(--text-mute); }
.field input:focus, .select-wrap select:focus { outline: none; border-color: var(--primary-line); box-shadow: 0 0 0 3px var(--primary-soft); }
.field input:user-invalid { border-color: var(--danger); }
.select-wrap { position: relative; }
.select-wrap select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 40px; }
.select-wrap__chev { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; fill: none; stroke: var(--text-mute); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.cform .btn { margin-top: 8px; color: var(--on-primary); }
.cform__note { margin-top: 14px; text-align: center; font-size: 13px; color: var(--text-mute); transition: color .3s; }
.cform__note.ok { color: var(--accent); }
.cform__note.err { color: var(--danger); }

/* =====================================================================
   FOOTER
   ===================================================================== */
.footer { border-top: 1px solid var(--border); padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.footer__brand { display: flex; align-items: center; gap: 13px; }
.footer__brand .brand__mark { width: 38px; height: 38px; border-radius: 11px; }
.footer__brand .brand__mark svg { width: 22px; height: 22px; color: #fff; }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -.02em; color: var(--text); }
.footer__tag { font-size: 13px; color: var(--text-mute); }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 4px; }
.footer__links a { font-size: 14px; color: var(--text-soft); padding: 6px 12px; border-radius: 8px; transition: color .2s, background-color .2s; }
.footer__links a:hover { color: var(--text); background: var(--card-hover); }
.footer__meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; font-size: 13px; color: var(--text-mute); }
.footer__meta a { color: var(--text-soft); font-family: var(--font-mono); }
.footer__meta a:hover { color: var(--text); }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */

/* ---------- ≤1024: tablet landscape — tighten the container ---------- */
@media (max-width: 1024px) {
  :root { --wrap: 940px; }
  .section { padding: clamp(64px, 9vw, 110px) 0; }
}

/* ---------- ≤980: stack hero, Decision Center banner & CTA ---------- */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; gap: 40px; }
  .hero__art { max-width: 440px; margin: 0 auto; order: 2; }
  .hero__copy { order: 1; max-width: none; }
  .hero__sub { max-width: 58ch; }
  .tile--feature { grid-template-columns: 1fr; gap: 22px; }
  .tile--feature .tile__lead p { max-width: none; }
  .connect__grid { grid-template-columns: 1fr; gap: 40px; }
  .connect__copy { max-width: none; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- ≤860: mobile nav + stacked content sections ---------- */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: block; }
  .flow { grid-template-columns: 1fr; }
  .flow__arrow { transform: rotate(90deg); justify-self: center; }
  .vs { grid-template-columns: 1fr; }
  .vs__div { transform: rotate(90deg); margin: 2px 0; }
  .why__grid { grid-template-columns: 1fr; }
  .snap__head { flex-direction: column; align-items: stretch; gap: 22px; }
  .toggle { width: 100%; }
}

/* ---------- ≤760: single-column "work we do" ---------- */
@media (max-width: 760px) {
  .bento { grid-template-columns: 1fr; }
}

/* ---------- ≤560: phones — layout + type scale ---------- */
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding-top: calc(var(--nav-h) + 36px); }
  .hero__h { font-size: clamp(31px, 8.8vw, 42px); }
  .hero__sub { font-size: 16.5px; }
  .hero__cta .btn { flex: 1 1 auto; }
  .sec-h { font-size: clamp(26px, 7.6vw, 34px); }
  .sec-h--lg { font-size: clamp(27px, 8vw, 36px); }
  .sec-sub { font-size: 16px; }
  .sec-head { margin-bottom: 34px; }
  .snap__head { margin-bottom: 32px; }
  .metrics { grid-template-columns: 1fr 1fr; gap: 12px; }
  .metric { min-height: 128px; padding: 18px 16px; }
  .metric__val { font-size: 22px; }
  .tile, .tile--feature, .why__card { padding: 24px 22px; }
  .footer__inner { flex-direction: column; align-items: flex-start; text-align: left; }
  .footer__meta { align-items: flex-start; }
  .cform { padding: 24px 20px; }
  .field-row { grid-template-columns: 1fr; }
  .toggle__btn { padding: 11px 8px; font-size: 13.5px; }
}

/* ---------- ≤400: small phones ---------- */
@media (max-width: 400px) {
  .metrics { grid-template-columns: 1fr; }
  .hero__cta { flex-direction: column; align-items: stretch; }
  .hero__cta .btn { width: 100%; }
  .connect__direct { flex-direction: column; gap: 12px; }
}
