/* ================= themes =================
   Three skins, selected by data-theme on <html>:
   dark    "Midnight"  — the original redesign palette
   light   "Daylight"  — same accents, paper background
   classic "Heritage"  — the original coherentit.com white/red theme
=========================================== */
:root,
[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05070e;
  --bg2: #080c17;
  --panel: #0b1120;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9edf7;
  --muted: #97a3c0;
  --dim: #6b7794;
  --accent: #4f8cff;
  --accent2: #22d3ee;
  --accent3: #7c5cff;
  --accent-rgb: 79, 140, 255;
  --accent2-rgb: 34, 211, 238;
  --accent3-rgb: 124, 92, 255;
  --grad: linear-gradient(115deg, #7c5cff 0%, #4f8cff 45%, #22d3ee 100%);
  --on-grad: #05070e;
  --accent2-hi: #7fe9ff;
  --info-link: #bfd2ff;
  --badge-text: #eef2fb;
  --danger: #ff6b81;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.85);
  --glow: 0 0 0 1px rgba(79, 140, 255, 0.35), 0 18px 50px -22px rgba(79, 140, 255, 0.55);
  --aura:
    radial-gradient(70% 50% at 12% -8%, rgba(79, 140, 255, 0.16), transparent 62%),
    radial-gradient(55% 45% at 92% 4%, rgba(124, 92, 255, 0.14), transparent 60%),
    radial-gradient(60% 55% at 60% 106%, rgba(34, 211, 238, 0.08), transparent 65%);
  --veil-rgb: 5, 7, 14;
  --media-fade-rgb: 5, 7, 14;
  --hero-veil:
    radial-gradient(62% 70% at 20% 44%, rgba(5, 7, 14, 0.97) 0%, rgba(5, 7, 14, 0.86) 34%, rgba(5, 7, 14, 0.42) 58%, transparent 76%),
    linear-gradient(180deg, rgba(5, 7, 14, 0.62) 0%, transparent 24%, rgba(5, 7, 14, 0.68) 86%, var(--bg) 100%);
  --surface-hi: rgba(255, 255, 255, 0.05);
  --surface-lo: rgba(255, 255, 255, 0.014);
  --surface-flat: rgba(255, 255, 255, 0.022);
  --surface-quiet: rgba(255, 255, 255, 0.02);
  --glass-hi: rgba(255, 255, 255, 0.055);
  --glass-lo: rgba(255, 255, 255, 0.018);
  --hairline: rgba(255, 255, 255, 0.045);
  --hover-bg: rgba(255, 255, 255, 0.055);
  --ghost-bg: rgba(255, 255, 255, 0.03);
  --ghost-hover: rgba(79, 140, 255, 0.1);
  --header-bg: rgba(6, 9, 18, 0.78);
  --panel-bg: rgba(9, 13, 24, 0.96);
  --drawer-bg: rgba(6, 9, 18, 0.98);
  --input-bg: rgba(0, 0, 0, 0.32);
  --input-bg-focus: rgba(0, 0, 0, 0.45);
  --placeholder: #5b6580;
  --mq-text: #b9c4dd;
  --tick-text: #c3cce0;
  --tab-text: #b3bed8;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fc;
  --bg2: #eaeefa;
  --panel: #ffffff;
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.20);
  --text: #0d1526;
  --muted: #4b5878;
  --dim: #6c7996;
  --accent: #2f6fe4;
  --accent2: #0b7488;
  --accent3: #6d3fe0;
  --accent-rgb: 47, 111, 228;
  --accent2-rgb: 11, 116, 136;
  --accent3-rgb: 109, 63, 224;
  --grad: linear-gradient(115deg, #6d3fe0 0%, #2f6fe4 45%, #0e8aa8 100%);
  --on-grad: #ffffff;
  --accent2-hi: #084f5f;
  --info-link: #2f6fe4;
  --badge-text: #f5f7fc;
  --danger: #d63b52;
  --radius: 18px;
  --radius-lg: 26px;
  --maxw: 1200px;
  --shadow: 0 24px 60px -30px rgba(15, 23, 42, 0.30);
  --glow: 0 0 0 1px rgba(47, 111, 228, 0.28), 0 18px 50px -24px rgba(47, 111, 228, 0.42);
  --aura:
    radial-gradient(70% 50% at 12% -8%, rgba(47, 111, 228, 0.13), transparent 62%),
    radial-gradient(55% 45% at 92% 4%, rgba(109, 63, 224, 0.11), transparent 60%),
    radial-gradient(60% 55% at 60% 106%, rgba(14, 138, 168, 0.10), transparent 65%);
  --veil-rgb: 245, 247, 252;
  --media-fade-rgb: 10, 15, 26;
  --hero-veil:
    radial-gradient(62% 70% at 20% 44%, rgba(245, 247, 252, 0.95) 0%, rgba(245, 247, 252, 0.74) 34%, rgba(245, 247, 252, 0.24) 60%, transparent 80%),
    linear-gradient(180deg, rgba(245, 247, 252, 0.42) 0%, transparent 28%, rgba(245, 247, 252, 0.36) 84%, var(--bg) 100%);
  --surface-hi: rgba(255, 255, 255, 0.95);
  --surface-lo: rgba(255, 255, 255, 0.62);
  --surface-flat: rgba(255, 255, 255, 0.72);
  --surface-quiet: rgba(15, 23, 42, 0.025);
  --glass-hi: rgba(255, 255, 255, 0.92);
  --glass-lo: rgba(255, 255, 255, 0.62);
  --hairline: rgba(15, 23, 42, 0.055);
  --hover-bg: rgba(15, 23, 42, 0.06);
  --ghost-bg: rgba(15, 23, 42, 0.035);
  --ghost-hover: rgba(47, 111, 228, 0.12);
  --header-bg: rgba(245, 247, 252, 0.84);
  --panel-bg: rgba(255, 255, 255, 0.97);
  --drawer-bg: rgba(245, 247, 252, 0.99);
  --input-bg: #ffffff;
  --input-bg-focus: #ffffff;
  --placeholder: #9aa6bf;
  --mq-text: #3d4a66;
  --tick-text: #33405e;
  --tab-text: #4a5878;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
}

[data-theme="classic"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg2: #f4f4f4;
  --panel: #ffffff;
  --line: #e4e4e4;
  --line-strong: #cacaca;
  --text: #3f3f3f;
  --muted: #7a7a7a;
  --dim: #7d7d7d;
  --accent: #b80707;
  --accent2: #b80707;
  --accent3: #8a0505;
  --accent-rgb: 184, 7, 7;
  --accent2-rgb: 184, 7, 7;
  --accent3-rgb: 138, 5, 5;
  --grad: linear-gradient(115deg, #8a0505 0%, #b80707 50%, #d61f1f 100%);
  --on-grad: #ffffff;
  --accent2-hi: #8a0505;
  --info-link: #b80707;
  --badge-text: #ffffff;
  --danger: #ff502d;
  --radius: 10px;
  --radius-lg: 14px;
  --maxw: 1200px;
  --shadow: 0 16px 34px -22px rgba(0, 0, 0, 0.35);
  --glow: 0 0 0 1px rgba(184, 7, 7, 0.28), 0 16px 40px -24px rgba(184, 7, 7, 0.38);
  --aura:
    radial-gradient(70% 50% at 12% -8%, rgba(184, 7, 7, 0.07), transparent 62%),
    radial-gradient(55% 45% at 92% 4%, rgba(184, 7, 7, 0.05), transparent 60%),
    radial-gradient(60% 55% at 60% 106%, rgba(0, 0, 0, 0.03), transparent 65%);
  --veil-rgb: 255, 255, 255;
  --media-fade-rgb: 20, 20, 20;
  --hero-veil:
    radial-gradient(62% 70% at 20% 44%, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.76) 34%, rgba(255, 255, 255, 0.26) 60%, transparent 80%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.45) 0%, transparent 28%, rgba(255, 255, 255, 0.4) 84%, var(--bg) 100%);
  --surface-hi: #ffffff;
  --surface-lo: #fbfbfb;
  --surface-flat: #f7f7f7;
  --surface-quiet: #fafafa;
  --glass-hi: #ffffff;
  --glass-lo: #fbfbfb;
  --hairline: rgba(0, 0, 0, 0.05);
  --hover-bg: #f3f3f3;
  --ghost-bg: #ffffff;
  --ghost-hover: #fdecec;
  --header-bg: rgba(255, 255, 255, 0.97);
  --panel-bg: #ffffff;
  --drawer-bg: #ffffff;
  --input-bg: #ffffff;
  --input-bg-focus: #fffdfd;
  --placeholder: #a9a9a9;
  --mq-text: #666666;
  --tick-text: #666666;
  --tab-text: #666666;
  --font: Verdana, Arial, Helvetica, sans-serif;
  --display: Verdana, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.65;
  text-align: left;
  letter-spacing: -0.005em;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: var(--aura);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.1; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 28px; position: relative; z-index: 1; }

.ic {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.ic-xs { width: 16px; height: 16px; stroke-width: 2; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); }
.reveal.in {
  opacity: 1; transform: none;
  transition: opacity .85s cubic-bezier(.2,.7,.2,1) var(--d, 0s), transform .85s cubic-bezier(.2,.7,.2,1) var(--d, 0s);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 999px;
  font-family: var(--display); font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  white-space: nowrap; cursor: pointer;
  transition: transform .25s ease, box-shadow .3s ease, background .3s ease, border-color .3s ease, color .3s ease;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-full { width: 100%; justify-content: center; }
.btn-primary {
  background: var(--grad); color: var(--on-grad); font-weight: 700;
  box-shadow: 0 12px 34px -14px rgba(var(--accent-rgb), 0.85);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -14px rgba(var(--accent-rgb), 1); }
.btn-ghost {
  border: 1px solid var(--line-strong); color: var(--text);
  background: var(--ghost-bg);
  backdrop-filter: blur(8px);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--accent); background: var(--ghost-hover); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent2); font-weight: 600; font-size: 14.5px;
  font-family: var(--display);
  transition: gap .25s ease, color .25s ease;
}
.link-arrow:hover { gap: 13px; color: var(--accent2-hi); }

/* ---------- eyebrow + glass ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--display); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent2); margin-bottom: 16px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: linear-gradient(90deg, transparent, var(--accent2));
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent2);
  box-shadow: 0 0 0 0 rgba(var(--accent2-rgb), 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(var(--accent2-rgb), 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(var(--accent2-rgb), 0); }
  100% { box-shadow: 0 0 0 0 rgba(var(--accent2-rgb), 0); }
}

.glass {
  background: linear-gradient(160deg, var(--glass-hi), var(--glass-lo));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(14px);
}

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* ---------- scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 2px; width: 0;
  background: var(--grad); z-index: 200;
  box-shadow: 0 0 14px rgba(var(--accent-rgb), 0.8);
  transition: width .1s linear;
}

/* ---------- header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 120;
  transition: background .35s ease, border-color .35s ease, backdrop-filter .35s ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--header-bg);
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom-color: var(--line);
}
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; gap: 26px;
  transition: padding .35s ease;
}
.site-header.scrolled .header-inner { padding-top: 11px; padding-bottom: 11px; }

.brand { display: inline-flex; align-items: center; gap: 11px; flex: none; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; filter: drop-shadow(0 0 12px rgba(var(--accent-rgb), 0.5)); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-text { font-family: var(--display); font-weight: 700; font-size: 19.5px; letter-spacing: -0.02em; }
.brand-text span { color: var(--accent2); }

.nav { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links > li { position: relative; }
.nav-links a, .drop-toggle {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 9px 14px; border-radius: 10px;
  font-size: 14.5px; font-weight: 500; color: var(--muted);
  transition: color .22s ease, background .22s ease;
}
.nav-links a:hover, .drop-toggle:hover { color: var(--text); background: var(--hover-bg); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 50%; bottom: -4px; transform: translateX(-50%);
  width: 16px; height: 2px; border-radius: 2px;
  background: var(--grad);
}
.nav-cta { margin-left: 10px; }

.drop-toggle svg { transition: transform .25s ease; }
.has-drop:hover .drop-toggle svg { transform: rotate(180deg); }
.drop {
  position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: 344px; padding: 10px;
  background: var(--panel-bg); border: 1px solid var(--line);
  border-radius: var(--radius); backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.has-drop:hover .drop, .has-drop:focus-within .drop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
.drop a {
  display: flex; gap: 13px; align-items: flex-start;
  padding: 12px; border-radius: 12px; width: 100%;
}
.drop a:hover { background: rgba(var(--accent-rgb), 0.12); }
.drop a .ic { color: var(--accent2); margin-top: 2px; }
.drop a span { display: flex; flex-direction: column; gap: 3px; }
.drop a span { font-size: 14.5px; font-weight: 600; color: var(--text); }
.drop a em { font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--dim); line-height: 1.45; }

.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); align-items: center; justify-content: center;
  color: var(--text); background: var(--ghost-bg);
}
.nav-toggle .ic-close { display: none; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden;
  min-height: 100svh; display: flex; align-items: center;
  padding: 150px 0 90px;
}
#netCanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .95; }
.hero-glow {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: var(--hero-veil);
}
.hero-grid {
  position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--hairline) 1px, transparent 1px),
    linear-gradient(90deg, var(--hairline) 1px, transparent 1px);
  background-size: 62px 62px;
  mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000 20%, transparent 78%);
}
.hero-inner { width: 100%; }
.hero-copy { max-width: 720px; }
.hero-copy h1 { font-size: clamp(2.4rem, 5.6vw, 4.3rem); margin-bottom: 22px; }
.hero-copy h1 .grad { display: inline-block; }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 30px; }
.hero-tags li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--dim); }
.hero-tags .ic { color: var(--accent2); }
.hero .eyebrow { background: var(--ghost-bg); border: 1px solid var(--line); padding: 7px 15px 7px 13px; border-radius: 999px; }
.hero .eyebrow::before { display: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%);
  width: 24px; height: 40px; border: 1px solid var(--line-strong); border-radius: 14px;
  display: grid; place-items: center; z-index: 2;
}
.scroll-cue span { width: 3px; height: 8px; border-radius: 2px; background: var(--accent2); animation: cue 1.9s infinite; }
@keyframes cue { 0% { transform: translateY(-7px); opacity: 0; } 40% { opacity: 1; } 100% { transform: translateY(8px); opacity: 0; } }

/* ---------- marquee ---------- */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  background: var(--surface-quiet);
  overflow: hidden; padding: 18px 0; position: relative; z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: scrollx 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.marquee-group + .marquee-group { padding-left: 0; }
.mq-item { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 15.5px; color: var(--mq-text); white-space: nowrap; }
.mq-item .ic { color: var(--accent2); }
.mq-sep { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); flex: none; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* ---------- stats ---------- */
.stats { padding: 66px 0 20px; position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.stat { padding: 6px 26px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 700; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- sections ---------- */
.section { padding: 110px 0; position: relative; z-index: 1; }
.section-alt { background: linear-gradient(180deg, transparent, var(--surface-quiet) 12%, var(--surface-quiet) 88%, transparent); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 58px; }
.section-head h2 { font-size: clamp(1.9rem, 3.9vw, 2.9rem); margin-bottom: 18px; }
.section-head p { color: var(--muted); font-size: 1.03rem; }

/* ---------- solutions ---------- */
.solutions-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.solution-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-hi), var(--surface-lo));
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.2,1), border-color .4s ease, box-shadow .4s ease;
}
.solution-card:hover { transform: translateY(-7px); border-color: rgba(var(--accent-rgb), 0.45); box-shadow: var(--glow); }
.sol-media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.sol-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) contrast(1.05); transition: transform .8s cubic-bezier(.2,.7,.2,1); }
.solution-card:hover .sol-media img { transform: scale(1.06); }
.sol-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(var(--media-fade-rgb), 0.1) 0%, rgba(var(--media-fade-rgb), 0.55) 62%, rgba(var(--media-fade-rgb), 0.95) 100%);
}
.sol-badge {
  position: absolute; left: 16px; bottom: 16px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: rgba(8, 12, 23, 0.72); border: 1px solid var(--line-strong);
  color: var(--badge-text);
  backdrop-filter: blur(10px);
  font-family: var(--display); font-weight: 600; font-size: 13px; letter-spacing: 0.02em;
}
.sol-badge .ic { width: 16px; height: 16px; color: var(--accent2); }
.sol-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.sol-body h3 { font-size: 1.32rem; }
.sol-body > p { color: var(--muted); font-size: 14.8px; }
.ticks { display: flex; flex-direction: column; gap: 10px; margin-top: 2px; }
.ticks li { position: relative; padding-left: 26px; font-size: 14.3px; color: var(--tick-text); }
.ticks li::before {
  content: ""; position: absolute; left: 4px; top: 8px;
  width: 7px; height: 7px; border-radius: 2px;
  background: var(--grad); transform: rotate(45deg);
}
.sol-body .link-arrow { margin-top: auto; padding-top: 6px; }

/* ---------- mini cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.mini-card {
  padding: 26px 24px; border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface-lo));
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.mini-card:hover { transform: translateY(-6px); border-color: rgba(var(--accent2-rgb), 0.4); box-shadow: 0 22px 50px -28px rgba(var(--accent2-rgb), 0.6); }
.mc-ic {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(150deg, rgba(var(--accent-rgb), 0.22), rgba(var(--accent2-rgb), 0.1));
  border: 1px solid rgba(var(--accent-rgb), 0.28); color: var(--accent2);
  margin-bottom: 18px;
}
.mini-card h3 { font-size: 1.08rem; margin-bottom: 9px; }
.mini-card p { color: var(--muted); font-size: 13.9px; line-height: 1.6; }

/* ---------- security ---------- */
.security-wrap { display: grid; grid-template-columns: 0.92fr 1fr; gap: 60px; align-items: center; }
.security-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.security-media img { width: 100%; aspect-ratio: 4 / 3.5; object-fit: cover; }
.security-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(200deg, rgba(var(--media-fade-rgb), 0.15), rgba(var(--media-fade-rgb), 0.72)); }
.security-float {
  position: absolute; left: 18px; bottom: 18px; z-index: 2;
  display: flex; align-items: center; gap: 12px; padding: 13px 17px; border-radius: 14px;
}
.security-float b { display: block; font-family: var(--display); font-size: 14px; }
.security-float span { font-size: 12.3px; color: var(--muted); }
.sf-dot { width: 9px; height: 9px; border-radius: 50%; background: #34e5a4; box-shadow: 0 0 12px #34e5a4; flex: none; animation: pulse 2.4s infinite; }
.security-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 18px; }
.lead-sm { color: var(--muted); font-size: 1rem; margin-bottom: 30px; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 34px; }
.features li { display: flex; gap: 13px; align-items: flex-start; }
.features .ic { color: var(--accent2); margin-top: 2px; width: 20px; height: 20px; }
.features b { display: block; font-family: var(--display); font-size: 14.4px; font-weight: 600; }
.features span { font-size: 12.9px; color: var(--muted); line-height: 1.5; }

/* ---------- tabs ---------- */
.tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--hover-bg); margin-bottom: 34px; }
.tab { padding: 10px 22px; border-radius: 999px; font-family: var(--display); font-weight: 600; font-size: 14.5px; color: var(--tab-text); transition: color .25s, background .25s; }
.tab:hover { color: var(--text); background: var(--hover-bg); }
.tab.is-active { background: var(--grad); color: var(--on-grad); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fade .45s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.course-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.course {
  padding: 24px; border-radius: var(--radius); border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-hi), var(--surface-lo));
  transition: transform .35s cubic-bezier(.2,.7,.2,1), border-color .35s, box-shadow .35s;
}
.course:hover { transform: translateY(-5px); border-color: rgba(var(--accent3-rgb), 0.45); box-shadow: 0 22px 50px -28px rgba(var(--accent3-rgb), 0.7); }
.course-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.course h3 { font-size: 1.16rem; }
.chip {
  font-family: var(--display); font-size: 10.6px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
  color: var(--accent2); background: rgba(var(--accent2-rgb), 0.1); border: 1px solid rgba(var(--accent2-rgb), 0.24);
}
.course p { color: var(--muted); font-size: 13.6px; line-height: 1.6; }

.edu-cta { margin-top: 34px; padding: 26px 30px; display: flex; align-items: center; justify-content: space-between; gap: 22px; flex-wrap: wrap; background: linear-gradient(120deg, rgba(var(--accent-rgb), 0.16), rgba(var(--accent2-rgb), 0.05) 60%, var(--ghost-bg)); border-color: rgba(var(--accent-rgb), 0.32); }
.edu-cta b { display: block; font-family: var(--display); font-size: 1.12rem; }
.edu-cta span { font-size: 14px; color: var(--muted); }

/* ---------- steps / values ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 34px; }
.step { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-flat); position: relative; overflow: hidden; }
.step::before { content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 2px; background: var(--grad); opacity: .5; }
.step-n { font-family: var(--display); font-size: 13px; font-weight: 700; letter-spacing: 0.1em; color: var(--accent2); }
.step h3 { font-size: 1.1rem; margin: 12px 0 9px; }
.step p { color: var(--muted); font-size: 13.8px; line-height: 1.6; }
.values-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.09), var(--surface-lo)); }
.value .ic { color: var(--accent2); margin-bottom: 8px; }
.value b { font-family: var(--display); font-size: 15.4px; }
.value p { color: var(--muted); font-size: 13.5px; }

/* ---------- about ---------- */
.about-wrap { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: start; }
.about-copy h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); margin-bottom: 20px; }
.about-copy p { color: var(--muted); margin-bottom: 16px; font-size: 15.4px; }
.about-copy .hero-tags { margin-top: 22px; }
.vision { display: flex; gap: 15px; align-items: flex-start; margin: 26px 0 0; padding: 20px 22px; border-left: 2px solid var(--accent2); background: linear-gradient(90deg, rgba(var(--accent2-rgb), 0.09), transparent); border-radius: 0 14px 14px 0; }
.vision .ic { color: var(--accent2); margin-top: 3px; }
.vision p { font-family: var(--display); font-size: 1.06rem; color: var(--text); margin: 0; }
.about-side { display: flex; flex-direction: column; gap: 22px; }
.about-media { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
.about-media img { aspect-ratio: 4 / 3; object-fit: cover; }
.fact-list { padding: 26px; }
.fact-list h3 { font-size: 1.1rem; margin-bottom: 18px; }
.fact { padding: 14px 0; border-top: 1px solid var(--line); }
.fact:first-of-type { border-top: 0; padding-top: 0; }
.fact b { display: block; font-family: var(--display); font-size: 15px; margin-bottom: 5px; }
.fact span { font-size: 13.4px; color: var(--muted); line-height: 1.55; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 30px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 18px; }
.info-card { padding: 26px; }
.info-card .mc-ic { margin-bottom: 16px; }
.info-card h3 { font-size: 1.06rem; margin-bottom: 9px; }
.info-card p { color: var(--muted); font-size: 14.3px; line-height: 1.65; }
.info-card a { color: var(--info-link); transition: color .22s; }
.info-card a:hover { color: var(--accent2); }
.contact-form { padding: 30px; display: flex; flex-direction: column; gap: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field span { font-family: var(--display); font-size: 12.6px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--dim); }
.field input, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px;
  background: var(--input-bg); border: 1px solid var(--line);
  color: var(--text); font-family: var(--font); font-size: 14.6px;
  transition: border-color .25s, box-shadow .25s, background .25s; resize: vertical;
}
.field input::placeholder, .field textarea::placeholder { color: var(--placeholder); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16); background: var(--input-bg-focus); }
.field.invalid input, .field.invalid textarea { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(255, 107, 129, 0.14); }
.form-note { font-size: 12.4px; color: var(--dim); text-align: center; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: linear-gradient(180deg, var(--surface-quiet), transparent); padding-top: 70px; position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 52px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--muted); font-size: 14px; max-width: 300px; }
.footer-col h4 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); margin-bottom: 18px; }
.footer-col a, .footer-col span { display: block; color: var(--muted); font-size: 14.2px; padding: 6px 0; transition: color .22s, transform .22s; }
.footer-col a:hover { color: var(--accent2); transform: translateX(3px); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 24px; padding-bottom: 34px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13.2px; }

/* ---------- to top + toast ---------- */
.to-top {
  position: fixed; right: 24px; bottom: 24px; z-index: 110;
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--panel-bg); border: 1px solid var(--line-strong); color: var(--text);
  backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .3s, transform .3s, visibility .3s, border-color .3s;
}
.to-top .ic { transform: rotate(180deg); }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { border-color: var(--accent); color: var(--accent2); }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(24px);
  z-index: 300; display: inline-flex; align-items: center; gap: 11px;
  padding: 13px 20px; border-radius: 999px;
  background: var(--panel-bg); border: 1px solid rgba(var(--accent2-rgb), 0.4);
  backdrop-filter: blur(14px); box-shadow: var(--shadow);
  font-size: 14.3px; font-weight: 500;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity .35s, transform .35s, visibility .35s;
}
.toast .ic { color: var(--accent2); }
.toast.show { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .solutions-grid { grid-template-columns: 1fr; gap: 22px; }
  .solution-card { flex-direction: row; }
  .sol-media { width: 42%; aspect-ratio: auto; flex: none; }
  .sol-body { padding: 26px; }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .security-wrap { grid-template-columns: 1fr; gap: 34px; }
  .security-media { max-width: 560px; }
  .about-wrap { grid-template-columns: 1fr; gap: 34px; }
  .about-side { flex-direction: row; }
  .about-media, .fact-list { flex: 1; }
  .steps, .values-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
}

@media (max-width: 1200px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(370px, 86vw);
    margin-left: 0; padding: 96px 24px 40px;
    background: var(--drawer-bg); backdrop-filter: blur(22px);
    border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 6px;
    transform: translateX(100%); transition: transform .42s cubic-bezier(.2,.7,.2,1);
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav-links { flex-direction: column; align-items: stretch; gap: 4px; }
  .nav-links a, .drop-toggle { padding: 14px 14px; font-size: 17px; width: 100%; justify-content: space-between; border-radius: 12px; }
  .nav-links a.active::after { display: none; }
  .nav-links a.active { color: var(--accent2); }
  .drop {
    position: static; transform: none; width: 100%; opacity: 1; visibility: visible; pointer-events: auto;
    background: var(--ghost-bg); box-shadow: none; border-color: var(--line);
    max-height: 0; overflow: hidden; padding: 0 6px; border-width: 0;
    transition: max-height .35s ease, padding .35s ease;
  }
  .has-drop.open .drop { max-height: 460px; padding: 8px 6px; border-width: 1px; }
  .has-drop.open .drop-toggle svg { transform: rotate(180deg); }
  .nav-cta { margin: 16px 0 0; justify-content: center; padding: 15px; }
}

@media (max-width: 860px) {
  body { font-size: 16px; }
  .header-inner { padding: 14px 20px; }
  .container { padding: 0 20px; }
  .hero { padding-top: 128px; }
  .section { padding: 82px 0; }
  .steps, .values-grid, .features { grid-template-columns: 1fr; }
  .features { gap: 18px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .solution-card { flex-direction: column; }
  .sol-media { width: 100%; aspect-ratio: 16 / 10; }
  .solution-card .sol-media { order: -1; }
  .cards-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 28px 0; }
  .stat { padding: 4px 16px; }
  .field-row { grid-template-columns: 1fr; }
  .about-side { flex-direction: column; }
  .edu-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .tabs { width: 100%; justify-content: space-between; }
  .tab { flex: 1; padding: 10px 8px; font-size: 13px; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom { justify-content: center; text-align: center; }
  .scroll-cue { display: none; }
  .hero-actions .btn { flex: 1; justify-content: center; }
}


/* ---------- theme switcher ---------- */
.theme-switch { position: relative; flex: none; }
.theme-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--ghost-bg);
  color: var(--muted); font-family: var(--display); font-size: 13.5px; font-weight: 600;
  transition: color .22s ease, background .22s ease, border-color .22s ease;
}
.theme-btn:hover { color: var(--text); border-color: var(--line-strong); }
.theme-btn:focus-visible, .theme-opt:focus-visible { outline: 2px solid rgba(var(--accent-rgb), 0.75); outline-offset: 2px; }
.theme-btn .ic { width: 18px; height: 18px; color: var(--accent2); }
.theme-caret { transition: transform .25s ease; opacity: .65; }
.theme-switch.open .theme-caret { transform: rotate(180deg); }
.theme-menu {
  position: absolute; top: calc(100% + 15px); right: 0; width: 302px; padding: 10px;
  background: var(--panel-bg); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); backdrop-filter: blur(20px); z-index: 5;
  opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px) scale(.985);
  transform-origin: top right;
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
}
.theme-switch.open .theme-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: none; }
.theme-menu-head {
  padding: 4px 12px 9px; text-align: left;
  font-family: var(--display); font-size: 10.5px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--dim);
}
.theme-menu-foot {
  margin-top: 6px; padding: 10px 12px 4px; border-top: 1px solid var(--line-strong);
  display: flex; align-items: center; gap: 8px; text-align: left;
  font-size: 11.5px; color: var(--dim);
}
.theme-menu-foot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--accent);
}
.theme-opt {
  display: grid; grid-template-columns: 38px 1fr 20px; align-items: center; gap: 12px;
  width: 100%; padding: 10px 12px; border-radius: 13px; text-align: left; color: var(--text);
  transition: background .2s ease;
}
.theme-opt:hover { background: rgba(var(--accent-rgb), 0.12); }
.theme-opt[aria-checked="true"] { background: rgba(var(--accent-rgb), 0.14); }
.theme-opt > span:nth-child(2) { display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; font-weight: 600; font-family: var(--display); }
.theme-opt em { font-style: normal; font-size: 12.5px; font-weight: 400; color: var(--dim); font-family: var(--font); line-height: 1.4; }
.theme-opt .theme-tick {
  width: 20px; height: 20px; padding: 4px; border-radius: 50%;
  background: transparent; color: transparent; stroke-width: 3;
  box-shadow: inset 0 0 0 1.5px var(--line-strong);
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.theme-opt[aria-checked="true"] .theme-tick {
  background: var(--accent); color: var(--on-grad); box-shadow: inset 0 0 0 0 transparent, 0 6px 14px -8px rgba(var(--accent-rgb), 1);
}
.sw {
  width: 38px; height: 38px; border-radius: 11px; flex: none; position: relative; overflow: hidden;
  background: var(--sw-bg); box-shadow: inset 0 0 0 1px var(--sw-ring), 0 8px 16px -12px rgba(0, 0, 0, .8);
  transition: transform .25s cubic-bezier(.2,.7,.2,1), box-shadow .25s ease;
}
.sw::before {
  content: ""; position: absolute; left: 6px; right: 6px; top: 6px; height: 6px;
  border-radius: 3px; background: var(--sw-bar);
}
.sw::after {
  content: ""; position: absolute; left: 7px; bottom: 7px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--sw-dot);
}
.theme-opt:hover .sw { transform: translateY(-1px) scale(1.04); }
.theme-opt[aria-checked="true"] .sw { box-shadow: inset 0 0 0 2px var(--accent), 0 8px 16px -12px rgba(0, 0, 0, .8); }
.sw[data-sw="dark"] {
  --sw-bg: linear-gradient(160deg, #0d1326, #05070e);
  --sw-bar: linear-gradient(90deg, #4f8cff, #22d3ee);
  --sw-dot: #22d3ee; --sw-ring: rgba(255, 255, 255, .18);
}
.sw[data-sw="light"] {
  --sw-bg: linear-gradient(160deg, #ffffff, #e9eefa);
  --sw-bar: linear-gradient(90deg, #2f6fe4, #0ea5b7);
  --sw-dot: #2f6fe4; --sw-ring: rgba(15, 23, 42, .16);
}
.sw[data-sw="classic"] {
  --sw-bg: linear-gradient(160deg, #ffffff, #f1f1f1);
  --sw-bar: #b80707;
  --sw-dot: #b80707; --sw-ring: rgba(0, 0, 0, .18);
}

/* ---------- classic (original coherentit.com) typography ---------- */
[data-theme="classic"] body { letter-spacing: 0; }
[data-theme="classic"] h1,
[data-theme="classic"] h2 { color: var(--accent); letter-spacing: -0.01em; font-weight: 700; }
[data-theme="classic"] h3,
[data-theme="classic"] h4 { color: #666666; letter-spacing: 0; }
[data-theme="classic"] .hero-copy h1 .grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; }
[data-theme="classic"] .glass { backdrop-filter: none; }
[data-theme="classic"] .drop,
[data-theme="classic"] .theme-menu { backdrop-filter: none; }
[data-theme="classic"] .hero .eyebrow,
[data-theme="classic"] .eyebrow { text-transform: none; letter-spacing: 0.08em; }

@media (max-width: 1200px) {
  .theme-switch { position: static; margin-left: auto; }
  .theme-menu { right: 20px; top: calc(100% + 12px); width: min(302px, calc(100vw - 40px)); }
}
@media (max-width: 560px) {
  .theme-current, .theme-caret { display: none; }
  .theme-btn { padding: 10px 11px; }
}
