/* ==========================================================================
   Syinnoviz — static build
   Design tokens ported 1:1 from the original src/styles.css
   ========================================================================== */

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/spacegrotesk/v16/V8mDoQDjQSkFtoMM3T6r8E7mPb1hHCFEgQ.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("https://fonts.gstatic.com/s/inter/v19/UcCO3FwrK3iLTeHuS_nVMrMxCp50SjIa1ZL7.woff2") format("woff2");
}

:root {
  --radius: 0.75rem;

  /* Dark by default — premium industrial */
  --background: oklch(0.16 0.012 250);
  --foreground: oklch(0.97 0.005 250);
  --surface: oklch(0.20 0.014 250);
  --surface-elevated: oklch(0.24 0.016 250);

  --card: oklch(0.20 0.014 250 / 0.6);
  --card-foreground: oklch(0.97 0.005 250);
  --popover: oklch(0.20 0.014 250);
  --popover-foreground: oklch(0.97 0.005 250);

  /* Electric orange */
  --primary: oklch(0.68 0.20 38);
  --primary-foreground: oklch(0.12 0.01 250);
  --ember: oklch(0.72 0.21 42);

  --secondary: oklch(0.26 0.016 250);
  --secondary-foreground: oklch(0.97 0.005 250);

  --muted: oklch(0.24 0.014 250);
  --muted-foreground: oklch(0.68 0.02 250);

  --accent: oklch(0.78 0.16 220);
  --accent-foreground: oklch(0.12 0.01 250);
  --cyan-glow: oklch(0.80 0.17 215);

  --destructive: oklch(0.62 0.24 27);
  --destructive-foreground: oklch(0.98 0 0);

  --border: oklch(1 0 0 / 0.08);
  --input: oklch(1 0 0 / 0.10);
  --ring: oklch(0.68 0.20 38);

  /* Glass & grid tokens */
  --glass-bg: oklch(0.20 0.014 250 / 0.5);
  --glass-border: oklch(1 0 0 / 0.08);
  --glass-strong-bg: oklch(0.22 0.014 250 / 0.75);
  --glass-strong-border: oklch(1 0 0 / 0.12);
  --grid-line: oklch(1 0 0 / 0.04);
  --hover-tint: rgba(255, 255, 255, 0.06);

  --gradient-hero: radial-gradient(ellipse at top, oklch(0.30 0.10 38 / 0.35), transparent 60%),
                   radial-gradient(ellipse at bottom left, oklch(0.30 0.10 220 / 0.25), transparent 50%);
  --gradient-ember: linear-gradient(135deg, oklch(0.68 0.20 38), oklch(0.78 0.18 50));
  --gradient-cyan: linear-gradient(135deg, oklch(0.78 0.16 220), oklch(0.85 0.14 200));
  --gradient-text: linear-gradient(135deg, oklch(0.97 0.005 250) 0%, oklch(0.70 0.02 250) 100%);

  --shadow-glow-ember: 0 0 40px oklch(0.68 0.20 38 / 0.4), 0 0 80px oklch(0.68 0.20 38 / 0.2);
  --shadow-glow-cyan: 0 0 40px oklch(0.78 0.16 220 / 0.4);
  --shadow-elevated: 0 20px 60px -20px oklch(0 0 0 / 0.6);

  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
}

html.light {
  --background: oklch(0.97 0.003 80);
  --foreground: oklch(0.18 0.01 250);
  --surface: oklch(0.93 0.004 80);
  --surface-elevated: oklch(0.90 0.005 80);

  --card: oklch(1 0 0 / 0.7);
  --card-foreground: oklch(0.18 0.01 250);
  --popover: oklch(1 0 0);
  --popover-foreground: oklch(0.18 0.01 250);

  --primary: oklch(0.60 0.20 38);
  --primary-foreground: oklch(0.97 0.005 250);
  --ember: oklch(0.62 0.21 42);

  --secondary: oklch(0.90 0.005 80);
  --secondary-foreground: oklch(0.18 0.01 250);

  --muted: oklch(0.92 0.004 80);
  --muted-foreground: oklch(0.50 0.02 250);

  --accent: oklch(0.70 0.16 220);
  --accent-foreground: oklch(0.97 0.005 250);
  --cyan-glow: oklch(0.65 0.17 215);

  --border: oklch(0 0 0 / 0.08);
  --input: oklch(0 0 0 / 0.10);
  --ring: oklch(0.60 0.20 38);

  --glass-bg: oklch(1 0 0 / 0.6);
  --glass-border: oklch(0 0 0 / 0.06);
  --glass-strong-bg: oklch(0.96 0 0 / 0.75);
  --glass-strong-border: oklch(0 0 0 / 0.10);
  --grid-line: oklch(0 0 0 / 0.04);
  --hover-tint: rgba(0, 0, 0, 0.04);

  --gradient-hero: radial-gradient(ellipse at top, oklch(0.30 0.10 38 / 0.15), transparent 60%),
                   radial-gradient(ellipse at bottom left, oklch(0.30 0.10 220 / 0.12), transparent 50%);
  --gradient-ember: linear-gradient(135deg, oklch(0.60 0.20 38), oklch(0.72 0.18 50));
  --gradient-cyan: linear-gradient(135deg, oklch(0.70 0.16 220), oklch(0.80 0.14 200));
  --gradient-text: linear-gradient(135deg, oklch(0.18 0.01 250) 0%, oklch(0.40 0.02 250) 100%);

  --shadow-glow-ember: 0 0 30px oklch(0.60 0.20 38 / 0.3), 0 0 60px oklch(0.60 0.20 38 / 0.15);
  --shadow-glow-cyan: 0 0 30px oklch(0.70 0.16 220 / 0.3);
  --shadow-elevated: 0 20px 60px -20px oklch(0 0 0 / 0.15);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; border-color: var(--border); }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background-color: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-feature-settings: "cv02", "cv03", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s ease, color .5s ease;
  line-height: 1.5;
}
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; font-weight: 700; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }
::selection { background: oklch(0.68 0.20 38 / 0.35); color: var(--foreground); }
html.light ::selection { background: oklch(0.68 0.20 38 / 0.25); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }
svg { display: block; }

/* ---------- utilities ---------- */
.container { margin-inline: auto; max-width: 80rem; padding-inline: 1rem; width: 100%; }
@media (min-width: 640px) { .container { padding-inline: 1.5rem; } }

.text-gradient {
  background: var(--gradient-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.text-ember {
  background: var(--gradient-ember);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--glass-border);
}
.glass-strong {
  background: var(--glass-strong-bg);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  border: 1px solid var(--glass-strong-border);
}
.glow-ember { box-shadow: var(--shadow-glow-ember); }
.glow-cyan { box-shadow: var(--shadow-glow-cyan); }
.grid-bg {
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px;
}
.muted { color: var(--muted-foreground); }
.mono { font-family: var(--font-mono); }

/* ---------- keyframes ---------- */
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes pulse-glow { 0%,100% { opacity:.6; filter: blur(20px);} 50% { opacity:1; filter: blur(30px);} }
@keyframes grid-move { from { background-position: 0 0; } to { background-position: 60px 60px; } }
@keyframes scan {
  0%   { transform: translateY(0);     opacity: 0; }
  50%  { opacity: 1; }
  100% { transform: translateY(176px); opacity: 0; }
}
@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade-down { from { opacity: 0; transform: translateY(-40px); } to { opacity: 1; transform: none; } }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes zoom-in { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
@keyframes slide-right { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: none; } }
@keyframes slide-left { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* Reveal-on-scroll (mirrors the Reveal component) */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s cubic-bezier(.22,1,.36,1), transform .7s cubic-bezier(.22,1,.36,1); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   Navbar
   ========================================================================== */
.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 50;
  padding-block: 1.25rem;
  transition: padding .5s ease;
  animation: fade-down .6s ease-out both;
}
.site-header.scrolled { padding-block: .75rem; }
.nav-shell {
  display: flex; align-items: center; justify-content: space-between;
  border-radius: 1rem; padding: .75rem 1rem;
  border: 1px solid transparent; background: transparent;
  transition: background .4s ease, border-color .4s ease, backdrop-filter .4s ease;
}
@media (min-width: 640px) { .nav-shell { padding-inline: 1.5rem; } }
.nav-shell.glass-strong {
  background: var(--glass-strong-bg);
  border-color: var(--glass-strong-border);
  backdrop-filter: blur(24px) saturate(160%);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
}
.brand { display: flex; align-items: center; gap: .25rem; }
.brand img.mark { width: 44px; height: 44px; object-fit: contain; }
.brand img.wordmark { width: 150px; height: auto; object-fit: contain; }
.nav-links { display: none; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .5rem .75rem; font-size: .875rem; color: var(--muted-foreground);
  transition: color .2s ease;
}
.nav-links a:hover { color: var(--foreground); }
.nav-actions { display: none; align-items: center; gap: .5rem; }
@media (min-width: 768px) {
  .nav-links, .nav-actions { display: flex; }
  .nav-toggle { display: none !important; }
}
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.25rem; height: 2.25rem; border-radius: 999px;
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--surface); }
.icon-btn svg { width: 1rem; height: 1rem; animation: zoom-in .2s ease-out; }
.btn-ember {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  background-image: var(--gradient-ember); color: var(--primary-foreground);
  padding: .5rem 1rem; font-size: .875rem; font-weight: 500;
  box-shadow: var(--shadow-glow-ember);
  transition: opacity .2s ease, transform .2s ease;
  border: none; cursor: pointer;
}
.btn-ember:hover { opacity: .9; }
.nav-toggle {
  display: inline-flex; padding: .5rem; background: none; border: none; cursor: pointer;
}
.nav-toggle span { display: block; height: 1px; width: 1.25rem; background: var(--foreground); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle span + span { margin-top: .375rem; }
.nav-toggle.open span:nth-child(1) { transform: translateY(.4rem) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-.4rem) rotate(-45deg); }
.mobile-menu {
  margin-top: .5rem; border-radius: 1rem; padding: .75rem;
  display: none; animation: fade-up .25s ease-out;
}
.mobile-menu.open { display: block; }
@media (min-width: 768px) { .mobile-menu.open { display: none; } }
.mobile-menu a, .mobile-menu button {
  display: block; width: 100%; text-align: left;
  padding: .625rem 1rem; font-size: .875rem; color: var(--muted-foreground);
  border-radius: .5rem; transition: background .2s ease, color .2s ease;
  background: none; border: none; cursor: pointer;
}
.mobile-menu a:hover, .mobile-menu button:hover { color: var(--foreground); background: var(--hover-tint); }
.mobile-menu .theme-row { display: flex; align-items: center; gap: .5rem; }
.mobile-menu .theme-row svg { width: 1rem; height: 1rem; }
.mobile-menu .cta {
  text-align: center; margin-top: .5rem; border-radius: .5rem;
  background-image: var(--gradient-ember); color: var(--primary-foreground); font-weight: 500;
}
.mobile-menu .cta:hover { color: var(--primary-foreground); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding-top: 8rem; padding-bottom: 5rem; overflow: hidden;
}
.layer { position: absolute; inset: 0; z-index: -10; }
.hero .hero-gradient { background: var(--gradient-hero); }
.hero .hero-grid { opacity: .4; animation: grid-move 30s linear infinite; }
.hero .top-hairline {
  position: absolute; inset-inline: 0; top: 0; height: 1px; z-index: -10;
  background: linear-gradient(90deg, transparent, oklch(0.68 0.20 38 / 0.4), transparent);
}
.blob { position: absolute; border-radius: 999px; z-index: -10; filter: blur(120px); }
.blob-ember { top: 25%; left: -8rem; width: 500px; height: 500px; background: oklch(0.68 0.20 38 / 0.2); animation: pulse-glow 3s ease-in-out infinite; }
.blob-cyan { bottom: 25%; right: -8rem; width: 500px; height: 500px; background: oklch(0.78 0.16 220 / 0.15); }

.nodes { position: absolute; inset: 0; z-index: -10; pointer-events: none; }
.node { position: absolute; animation: float 6s ease-in-out infinite; }
.node .dot { width: .5rem; height: .5rem; border-radius: 999px; background: var(--primary); box-shadow: var(--shadow-glow-ember); }
.node .pulse { position: absolute; inset: 0; width: .5rem; height: .5rem; border-radius: 999px; background: var(--primary); animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; }

.hero-grid-layout { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .hero-grid-layout { grid-template-columns: repeat(12, minmax(0,1fr)); }
  .hero-copy { grid-column: span 7; }
  .hero-visual { grid-column: span 5; }
}

.pill {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  padding: .375rem .75rem; font-size: .75rem; color: var(--muted-foreground);
  margin-bottom: 2rem; animation: fade-up .6s ease-out both;
}
.pill .live { position: relative; display: flex; width: .5rem; height: .5rem; }
.pill .live span:first-child { position: absolute; inset: 0; border-radius: 999px; background: var(--primary); opacity: .75; animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; }
.pill .live span:last-child { position: relative; width: .5rem; height: .5rem; border-radius: 999px; background: var(--primary); }

.hero h1 {
  font-size: clamp(2.75rem, 7vw, 4.5rem); line-height: 1.05; letter-spacing: -.03em;
  animation: fade-up .8s .1s ease-out both;
}
.hero .lede {
  margin-top: 2rem; max-width: 36rem; font-size: 1.125rem; line-height: 1.7;
  color: var(--muted-foreground); animation: fade-up .7s .3s ease-out both;
}
.hero-ctas { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; animation: fade-up .7s .45s ease-out both; }
.btn-lg { padding: .875rem 1.5rem; }
.btn-lg:hover { transform: scale(1.03); }
.btn-glass {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  padding: .875rem 1.5rem; font-size: .875rem; font-weight: 500; color: var(--foreground);
  transition: background .2s ease;
}
.btn-glass:hover { background: var(--hover-tint); }
.btn-ember .arrow { transition: transform .2s ease; }
.btn-ember:hover .arrow { transform: translateX(4px); }

.hero-stats { margin-top: 3.5rem; display: flex; align-items: center; gap: 2rem; font-size: .75rem; color: var(--muted-foreground); animation: fade-in .8s .7s ease-out both; }
.hero-stats .k { font-family: var(--font-display); font-size: 1.5rem; color: var(--foreground); }
.hero-stats .v { margin-top: .25rem; }

/* Dashboard visual */
.dash-wrap { position: relative; animation: zoom-in 1s .4s ease-out both; }
.dash-halo { position: absolute; inset: -1rem; background-image: var(--gradient-ember); opacity: .2; filter: blur(48px); border-radius: 1.5rem; }
.dash { position: relative; border-radius: 1rem; padding: 1.25rem; box-shadow: var(--shadow-elevated); }
.dash-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.dash-head .label { display: flex; align-items: center; gap: .5rem; font-size: .75rem; color: var(--muted-foreground); }
.dash-head .label svg { width: .875rem; height: .875rem; color: var(--primary); }
.dash-head .dots { display: flex; gap: .375rem; }
.dash-head .dots span { width: .5rem; height: .5rem; border-radius: 999px; }
.dot-primary { background: var(--primary); }
.dot-accent { background: var(--accent); }
.dot-mute { background: oklch(0.68 0.02 250 / 0.4); }

.chart {
  position: relative; height: 11rem; border-radius: .75rem; padding: 1rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
}
.chart svg { width: 100%; height: 100%; }
.chart .scan {
  position: absolute; inset-inline: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  animation: scan 4s ease-in-out infinite;
}
.line-draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2s .8s ease-out forwards; }
.line-draw-2 { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 2.4s 1s ease-out forwards; }

.kpis { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .5rem; margin-top: .75rem; }
.kpi { border-radius: .5rem; background: var(--surface); border: 1px solid var(--border); padding: .75rem; }
.kpi .l { font-size: .625rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
.kpi .v { font-family: var(--font-display); font-size: 1.125rem; }

.pills { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.chip {
  font-size: .625rem; font-family: var(--font-mono); padding: .25rem .5rem; border-radius: .375rem;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted-foreground);
  animation: fade-up .4s ease-out both;
}
.chip i { display: inline-block; width: .375rem; height: .375rem; border-radius: 999px; background: var(--primary); margin-right: .375rem; vertical-align: middle; }

.float-card { position: absolute; border-radius: .75rem; padding: .75rem; }
.float-card .l { font-size: .625rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-foreground); }
.float-card .v { font-family: var(--font-mono); font-size: .75rem; margin-top: .25rem; }
.float-left { left: -1.5rem; top: 2rem; display: none; animation: slide-right .5s 1.4s ease-out both; }
@media (min-width: 640px) { .float-left { display: block; } }
.float-right { right: -1rem; bottom: -1.5rem; animation: slide-left .5s 1.6s ease-out both; }

/* ==========================================================================
   Section header
   ========================================================================== */
.section { position: relative; padding-block: 8rem; }
.section-head { max-width: 42rem; }
.section-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; border-radius: 999px;
  padding: .25rem .75rem; font-size: .6875rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-foreground);
}
.eyebrow i { width: .25rem; height: .25rem; border-radius: 999px; background: var(--primary); }
.section-head h2 {
  margin-top: 1.25rem; font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -.03em; line-height: 1.05;
}
.section-head p { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.7; color: var(--muted-foreground); }

/* ==========================================================================
   About
   ========================================================================== */
#about { overflow: hidden; }
#about .halo { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 800px; height: 400px; background: oklch(0.68 0.20 38 / 0.1); filter: blur(120px); border-radius: 999px; z-index: -10; }
.about-grid { display: grid; gap: 4rem; align-items: start; }
@media (min-width: 1024px) {
  .about-grid { grid-template-columns: repeat(12, minmax(0,1fr)); }
  .about-left { grid-column: span 5; position: sticky; top: 8rem; }
  .about-right { grid-column: span 7; }
}
.about-left p { margin-top: 1.5rem; color: var(--muted-foreground); line-height: 1.7; max-width: 32rem; }
.about-left p strong { color: var(--foreground); font-weight: 400; }
.pillars { display: grid; gap: 1rem; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.pillar {
  position: relative; height: 100%; border-radius: 1rem; padding: 1.5rem; overflow: hidden;
  transition: background .2s ease;
}
.pillar:hover { background: var(--hover-tint); }
.pillar .top-line {
  position: absolute; inset-inline: 0; top: -1px; height: 1px; opacity: 0;
  background: linear-gradient(90deg, transparent, oklch(0.68 0.20 38 / 0.4), transparent);
  transition: opacity .2s ease;
}
.pillar:hover .top-line { opacity: 1; }
.icon-tile {
  display: flex; align-items: center; justify-content: center;
  width: 2.75rem; height: 2.75rem; border-radius: .75rem;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .2s ease;
}
.icon-tile svg { width: 1.25rem; height: 1.25rem; color: var(--primary); }
.pillar:hover .icon-tile { border-color: oklch(0.68 0.20 38 / 0.4); }
.pillar .title { margin-top: 1.25rem; font-family: var(--font-display); font-size: 1rem; }
.pillar .desc { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }

/* ==========================================================================
   Vision & Mission
   ========================================================================== */
.vm-grid { position: relative; margin-top: 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 768px) {
  .vm-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .vm-connector {
    display: block; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 6rem; height: 1px; background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
  }
}
.vm-connector { display: none; }
.vm-card { position: relative; border-radius: 1.5rem; padding: 2rem; height: 100%; overflow: hidden; }
@media (min-width: 640px) { .vm-card { padding: 2.5rem; } }
.vm-card .halo { position: absolute; top: -8rem; right: -8rem; width: 16rem; height: 16rem; border-radius: 999px; filter: blur(48px); opacity: .6; transition: opacity .2s ease; }
.vm-card:hover .halo { opacity: 1; }
.vm-card.primary .halo { background: oklch(0.68 0.20 38 / 0.2); }
.vm-card.cyan .halo { background: oklch(0.78 0.16 220 / 0.2); }
.vm-card .tile {
  display: inline-flex; align-items: center; justify-content: center;
  width: 3rem; height: 3rem; border-radius: .75rem;
  background: var(--surface); border: 1px solid var(--border); margin-bottom: 1.5rem;
}
.vm-card .tile svg { width: 1.25rem; height: 1.25rem; }
.vm-card.primary .tile svg { color: var(--primary); }
.vm-card.cyan .tile svg { color: var(--accent); }
.vm-card .kicker { font-size: .75rem; text-transform: uppercase; letter-spacing: .2em; margin-bottom: .75rem; }
.vm-card.primary .kicker { color: var(--primary); }
.vm-card.cyan .kicker { color: var(--accent); }
.vm-card p {
  font-size: 1.25rem; font-family: var(--font-display); line-height: 1.375; letter-spacing: -.02em;
  color: oklch(0.97 0.005 250 / 0.9);
}
html.light .vm-card p { color: oklch(0.18 0.01 250 / 0.9); }
@media (min-width: 640px) { .vm-card p { font-size: 1.5rem; } }

/* ==========================================================================
   Services
   ========================================================================== */
#services { overflow: hidden; }
#services .grid-layer { opacity: .3; }
.services-grid { margin-top: 4rem; display: grid; gap: 1rem; }
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
.service {
  position: relative; height: 100%; border-radius: 1rem; padding: 1.5rem; overflow: hidden;
  transition: transform .3s ease, background .3s ease;
}
.service:hover { transform: translateY(-4px); background: var(--hover-tint); }
.service .row { display: flex; align-items: flex-start; justify-content: space-between; }
.service .tile-wrap { position: relative; }
.service .tile-glow { position: absolute; inset: 0; border-radius: .75rem; background: oklch(0.68 0.20 38 / 0.3); filter: blur(20px); opacity: 0; transition: opacity .2s ease; }
.service:hover .tile-glow { opacity: .8; }
.service:hover .icon-tile { border-color: oklch(0.68 0.20 38 / 0.5); }
.service .out { width: 1rem; height: 1rem; color: var(--muted-foreground); transition: color .2s ease, transform .2s ease; }
.service:hover .out { color: var(--primary); transform: translate(2px, -2px); }
.service h3 { margin-top: 1.5rem; font-size: 1.125rem; letter-spacing: -.02em; }
.service p { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); line-height: 1.7; }
.service .rule { margin-top: 1.5rem; height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); }
.service .code { margin-top: .75rem; font-size: .6875rem; font-family: var(--font-mono); color: var(--muted-foreground); text-transform: uppercase; letter-spacing: .08em; }

/* ==========================================================================
   Trusted by
   ========================================================================== */
.marquee-wrap { margin-top: 4rem; position: relative; overflow: hidden; }
.marquee-wrap .fade { position: absolute; inset-block: 0; width: 8rem; z-index: 10; pointer-events: none; }
.marquee-wrap .fade.left { left: 0; background: linear-gradient(90deg, var(--background), transparent); }
.marquee-wrap .fade.right { right: 0; background: linear-gradient(270deg, var(--background), transparent); }
.marquee { display: flex; gap: 1.5rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee-wrap:hover .marquee { animation-play-state: paused; }
.client {
  display: flex; align-items: center; justify-content: center;
  min-width: 260px; height: 6rem; border-radius: 1rem; padding-inline: 2rem;
  transition: background .2s ease, border-color .2s ease;
}
.client:hover { background: var(--hover-tint); border-color: oklch(0.68 0.20 38 / 0.3); }
.client span { font-family: var(--font-display); font-size: 1.125rem; color: var(--muted-foreground); letter-spacing: -.02em; transition: color .2s ease; }
.client:hover span { color: var(--foreground); }

/* ==========================================================================
   Training
   ========================================================================== */
#training { overflow: hidden; }
#training .halo { position: absolute; left: -10rem; top: 50%; transform: translateY(-50%); width: 500px; height: 500px; border-radius: 999px; background: oklch(0.78 0.16 220 / 0.1); filter: blur(120px); z-index: -10; }
.training-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) {
  .training-grid { grid-template-columns: repeat(12, minmax(0,1fr)); }
  .training-left { grid-column: span 5; }
  .training-right { grid-column: span 7; }
}
.checks { margin-top: 2rem; display: flex; flex-direction: column; gap: .75rem; }
.check { display: flex; align-items: center; gap: .75rem; font-size: .875rem; color: var(--muted-foreground); }
.check svg { width: 1rem; height: 1rem; color: var(--primary); flex-shrink: 0; }
.training-cta { margin-top: 2.5rem; }
.timeline { position: relative; }
.timeline .spine { position: absolute; left: 1.5rem; top: .5rem; bottom: .5rem; width: 1px; background: linear-gradient(180deg, var(--primary), var(--accent), transparent); }
.steps { display: flex; flex-direction: column; gap: 1rem; }
.step { position: relative; padding-left: 4rem; }
.step .badge {
  position: absolute; left: 0; top: .5rem; width: 3rem; height: 3rem; border-radius: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: .875rem; color: var(--primary);
  transition: box-shadow .2s ease;
}
.step:hover .badge { box-shadow: var(--shadow-glow-ember); }
.step .body { border-radius: 1rem; padding: 1.5rem; transition: background .2s ease; }
.step:hover .body { background: var(--hover-tint); }
.step .body .t { font-family: var(--font-display); font-size: 1.25rem; letter-spacing: -.02em; }
.step .body .d { margin-top: .375rem; font-size: .875rem; color: var(--muted-foreground); }

/* ==========================================================================
   Contact
   ========================================================================== */
#contact { overflow: hidden; }
.contact-grid { margin-top: 4rem; display: grid; gap: 1.5rem; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(5, minmax(0,1fr)); }
  .contact-info { grid-column: span 2; }
  .contact-form-wrap { grid-column: span 3; }
}
.contact-card { position: relative; border-radius: 1.5rem; padding: 2rem; height: 100%; overflow: hidden; }
.contact-card .halo { position: absolute; top: -8rem; right: -8rem; width: 16rem; height: 16rem; border-radius: 999px; background: oklch(0.68 0.20 38 / 0.2); filter: blur(48px); }
.contact-card h3 { font-size: 1.5rem; letter-spacing: -.02em; }
.contact-card .sub { margin-top: .5rem; font-size: .875rem; color: var(--muted-foreground); }
.info-list { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.info { display: flex; gap: 1rem; }
.info .tile { flex-shrink: 0; width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.info .tile svg { width: 1rem; height: 1rem; color: var(--primary); }
.info .l { font-size: .6875rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.info .c { margin-top: .25rem; font-size: .875rem; line-height: 1.6; color: oklch(0.97 0.005 250 / 0.9); }
html.light .info .c { color: oklch(0.18 0.01 250 / 0.9); }
.info .c a:hover { color: var(--primary); }
.map { margin-top: 2rem; position: relative; height: 11rem; border-radius: 1rem; overflow: hidden; border: 1px solid var(--border); }
.map .grid-layer { opacity: .4; }
.map .tint { position: absolute; inset: 0; background: linear-gradient(135deg, oklch(0.68 0.20 38 / 0.1), transparent, oklch(0.78 0.16 220 / 0.1)); }
.map .pin-wrap { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.map .pin { position: relative; }
.map .pin .d { width: .75rem; height: .75rem; border-radius: 999px; background: var(--primary); box-shadow: var(--shadow-glow-ember); }
.map .pin .p { position: absolute; inset: 0; width: .75rem; height: .75rem; border-radius: 999px; background: var(--primary); animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite; }
.map .caption { position: absolute; bottom: .75rem; left: .75rem; font-size: .625rem; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .15em; color: var(--muted-foreground); }

.contact-form { border-radius: 1.5rem; padding: 2rem; height: 100%; }
.field-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .field-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }
.field label, .textarea-block label { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted-foreground); }
.field input, .textarea-block textarea {
  margin-top: .5rem; width: 100%; border-radius: .75rem;
  background: var(--surface); border: 1px solid var(--border);
  padding: .75rem 1rem; font-size: .875rem; transition: border-color .2s ease;
}
.field input::placeholder, .textarea-block textarea::placeholder { color: oklch(0.68 0.02 250 / 0.6); }
.field input:focus, .textarea-block textarea:focus { outline: none; border-color: oklch(0.68 0.20 38 / 0.6); }
.textarea-block { margin-top: 1rem; }
.textarea-block textarea { resize: none; display: block; }
.contact-form .submit { margin-top: 1.5rem; padding: .875rem 1.5rem; }
.contact-form .submit:hover { transform: scale(1.02); }
.contact-form .submit:disabled { opacity: .7; transform: none; cursor: default; }
.fineprint { margin-top: .75rem; font-size: .75rem; color: var(--muted-foreground); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; border-top: 1px solid var(--border); }
.footer-top { display: flex; flex-direction: column; align-items: flex-start; gap: 1.5rem; }
@media (min-width: 768px) { .footer-top { flex-direction: row; align-items: center; justify-content: space-between; } }
.footer-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.footer-nav a { padding: .5rem .75rem; font-size: .875rem; color: var(--muted-foreground); transition: color .2s ease; }
.footer-nav a:hover { color: var(--foreground); }
.footer-bottom {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: .75rem; font-size: .75rem; color: var(--muted-foreground);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }
.footer-bottom .made { font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .15em; }

/* theme icon swap */
.theme-icon-sun, .theme-icon-moon { width: 1rem; height: 1rem; }

/* ==========================================================================
   v2 — brand logo, CRM service, FAQ, CTA band, expanded footer
   ========================================================================== */

section[id] { scroll-margin-top: 6rem; }

/* ---------- brand lockup ---------- */
.brand { gap: .6rem; }
.brand .mark { width: 42px; height: 42px; object-fit: contain; }
.brand .wordmark { width: 168px; height: auto; object-fit: contain; }
.brand .wordmark.for-light { display: none; }
html.light .brand .wordmark.for-dark { display: none; }
html.light .brand .wordmark.for-light { display: block; }
@media (max-width: 420px) {
  .brand .wordmark { width: 132px; }
  .brand .mark { width: 34px; height: 34px; }
}

/* active nav link */
.nav-links a.active { color: var(--foreground); }
.nav-links a.active::after {
  content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px;
  background-image: var(--gradient-ember);
}

/* ---------- FAQ ---------- */
.faq-list { margin-top: 3rem; max-width: 52rem; margin-inline: auto; display: flex; flex-direction: column; gap: .75rem; }
.faq { border-radius: 1rem; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1.25rem 1.5rem; font-family: var(--font-display); font-size: 1.05rem;
  letter-spacing: -.01em; transition: color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--primary); }
.faq summary .sign {
  flex-shrink: 0; width: 1.75rem; height: 1.75rem; border-radius: 999px;
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--primary); transition: transform .25s ease, background .2s ease;
}
.faq[open] summary .sign { transform: rotate(45deg); background: var(--surface); }
.faq .answer { padding: 0 1.5rem 1.5rem; font-size: .9375rem; line-height: 1.7; color: var(--muted-foreground); max-width: 46rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; border-radius: 1.75rem; padding: 3.5rem 2rem; text-align: center; overflow: hidden; }
.cta-band .halo { position: absolute; top: -10rem; left: 50%; transform: translateX(-50%); width: 32rem; height: 20rem; border-radius: 999px; background: oklch(0.68 0.20 38 / 0.25); filter: blur(90px); }
.cta-band .inner { position: relative; }
.cta-band h2 { font-size: clamp(1.875rem, 4vw, 3rem); letter-spacing: -.03em; line-height: 1.1; max-width: 32rem; margin-inline: auto; }
.cta-band p { margin-top: 1rem; color: var(--muted-foreground); max-width: 34rem; margin-inline: auto; }
.cta-band .row { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
@media (min-width: 640px) { .cta-band { padding: 4.5rem 3rem; } }

/* ---------- footer v2 ---------- */
.footer-cols { display: grid; gap: 2.5rem; }
@media (min-width: 768px) { .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; } }
@media (min-width: 1024px) { .footer-cols { grid-template-columns: 1.6fr .8fr .8fr 1.4fr; } }
.footer-cols h4 { font-size: .75rem; text-transform: uppercase; letter-spacing: .16em; color: var(--foreground); margin-bottom: 1rem; font-family: var(--font-sans); font-weight: 600; }
.footer-blurb { margin-top: 1.25rem; font-size: .875rem; line-height: 1.7; color: var(--muted-foreground); max-width: 24rem; }
.footer-link-list { display: flex; flex-direction: column; gap: .625rem; }
.footer-link-list a { font-size: .875rem; color: var(--muted-foreground); transition: color .2s ease; width: fit-content; }
.footer-link-list a:hover { color: var(--primary); }
.office { display: flex; gap: .75rem; }
.office + .office { margin-top: 1.25rem; }
.office .tile { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: .5rem; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.office .tile svg { width: .875rem; height: .875rem; color: var(--primary); }
.office .l { font-size: .6875rem; text-transform: uppercase; letter-spacing: .12em; color: var(--primary); }
.office .a { margin-top: .25rem; font-size: .8125rem; line-height: 1.6; color: var(--muted-foreground); }
.office .a:hover { color: var(--foreground); }
.footer-mail { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--muted-foreground); transition: color .2s ease; }
.footer-mail:hover { color: var(--primary); }
.footer-mail svg { width: 1rem; height: 1rem; }
.socials { margin-top: 1.5rem; display: flex; gap: .5rem; }
.socials a {
  width: 2.25rem; height: 2.25rem; border-radius: 999px; border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; color: var(--muted-foreground);
  transition: color .2s ease, border-color .2s ease, background .2s ease;
}
.socials a:hover { color: var(--primary); border-color: oklch(0.68 0.20 38 / 0.4); background: var(--surface); }
.socials svg { width: 1rem; height: 1rem; }

/* ---------- contact tweaks ---------- */
.office-pair { margin-top: 2rem; display: flex; flex-direction: column; gap: 1.25rem; }
.form-note { margin-top: .75rem; font-size: .75rem; color: var(--primary); min-height: 1rem; }
.field input:invalid:not(:placeholder-shown) { border-color: oklch(0.62 0.24 27 / 0.6); }

/* ---------- back to top ---------- */
.to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40;
  width: 2.75rem; height: 2.75rem; border-radius: 999px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--foreground);
  opacity: 0; pointer-events: none; transform: translateY(8px);
  transition: opacity .3s ease, transform .3s ease;
}
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top svg { width: 1.125rem; height: 1.125rem; }

/* ---------- v2 fixes ---------- */
a.service { display: block; color: inherit; }
.faq .sign svg { width: .875rem; height: .875rem; }
.footer-cols .office .a { display: inline-block; }
.cta-band .btn-glass { background: var(--glass-bg); }
