:root {
  /* Palette matched to the app UI */
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-muted: #f2f4f6;
  --ink-950: #0b1220;
  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;
  --ink-300: #cbd5e1;
  --line: #e5e7eb;
  --line-strong: #d1d5db;

  --primary: #1f8a52;      /* green from Export DXF / Auto-place */
  --primary-600: #187045;
  --primary-050: #e8f4ee;

  --danger: #e11d48;
  --danger-050: #fff0f3;
  --danger-text: #b91c1c;

  --info: #2563eb;
  --pink: #ec4899;

  --radius-sm: 6px;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.06), 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 6px 16px rgba(16, 24, 40, 0.08);
  --shadow-lg: 0 20px 40px rgba(16, 24, 40, 0.12);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  color: var(--ink-900);
  background: #fbfbfc;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.container { width: min(1200px, 94vw); margin: 0 auto; }
a { color: inherit; text-decoration: none; }

/* ========== TOP BAR ========== */
.topbar {
  background: var(--ink-950);
  color: #cbd5e1;
  font-size: 0.76rem;
  text-align: center;
  padding: 0.5rem;
}

/* ========== HEADER ========== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.55rem; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-950); font-size: 1rem; }
.brand-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink-950); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(15,23,42,0.18); }
.brand-dot { width: 9px; height: 9px; border-radius: 99px; background: var(--primary); box-shadow: 0 0 0 3px rgba(31,138,82,0.28); }
.brand-text { font-weight: 800; letter-spacing: -0.01em; font-size: 1.05rem; color: var(--ink-950); }
.brand-text .brand-it { color: var(--primary); font-style: italic; font-weight: 700; }
.brand-text .brand-ai {
  background: var(--ink-950); color: #fff; padding: 0.1rem 0.4rem; border-radius: 6px;
  font-size: 0.72rem; letter-spacing: 0.08em; margin-left: 0.2rem; vertical-align: middle;
}
.desktop-nav { display: flex; gap: 1.3rem; }
.desktop-nav a { font-size: 0.88rem; color: var(--ink-700); font-weight: 500; }
.desktop-nav a:hover { color: var(--ink-950); }
.nav-actions { display: flex; gap: 0.5rem; }

/* ========== BUTTONS ========== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
  border: 1px solid transparent; border-radius: var(--radius);
  padding: 0.55rem 0.95rem; font: inherit; font-weight: 600; font-size: 0.85rem;
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-600); border-color: var(--primary-600); }
.btn-ghost { background: #fff; color: var(--ink-700); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-400); color: var(--ink-950); }
.btn-dark { background: var(--ink-900); color: #fff; border-color: var(--ink-900); }
.btn-dark:hover { background: #000; }
.btn-clear { background: #fff; color: var(--danger-text); border-color: var(--line); padding: 0.55rem 0.75rem; }
.btn-clear:hover { border-color: var(--danger); color: var(--danger); }
.btn-block { width: 100%; }

.menu-toggle { display: none; border: 1px solid var(--line); background: #fff; color: var(--ink-700); border-radius: 8px; padding: 0.5rem 0.7rem; font: inherit; }
.mobile-nav { display: none; flex-direction: column; gap: 0.5rem; padding: 0.75rem 4vw 1rem; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: flex; }
.mobile-nav a { color: var(--ink-700); font-size: 0.95rem; padding: 0.3rem 0; }

/* ========== HERO ========== */
.hero { padding: 3rem 0 3.5rem; position: relative; overflow: hidden; }
.hero-shell { display: block; text-align: center; position: relative; z-index: 2; }
.hero-copy { max-width: 820px; margin: 0 auto; }
.hero-copy-center { text-align: center; }
.hero-copy-center .hero-cta,
.hero-copy-center .hero-stats { justify-content: center; }
.hero-copy-center p { margin-left: auto; margin-right: auto; }

/* CAD sheet background */
.cad-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse at 50% 0%, #ffffff 0%, #ffffff 45%, rgba(255,255,255,0) 80%),
    linear-gradient(180deg, #fbfcfe, #f3f5f9);
}
.cad-bg-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.05) 1px, transparent 1px),
    linear-gradient(rgba(15,23,42,0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.09) 1px, transparent 1px);
  background-size: 24px 24px, 24px 24px, 120px 120px, 120px 120px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 90%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 30%, transparent 90%);
  opacity: 0.5;
  filter: blur(0.6px);
}
.cad-bg-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0.28;
  filter: blur(1.4px);
}
.cad-bg-svg .cad-stroke { fill: none; stroke: rgba(15,23,42,0.4); stroke-width: 1.2; }
.cad-bg-svg .cad-stroke.thin { stroke: rgba(15,23,42,0.22); stroke-width: 0.8; stroke-dasharray: 3 3; }
.cad-bg-svg .cad-fill { fill: rgba(15,23,42,0.55); }
.cad-bg-svg .cad-text { font-family: 'JetBrains Mono', monospace; font-size: 11px; fill: rgba(15,23,42,0.55); text-anchor: middle; letter-spacing: 0.05em; }
.cad-bg-svg .cad-text.sm { font-size: 9px; fill: rgba(15,23,42,0.45); }
.cad-bg-svg .cad-dim line { stroke: rgba(15,23,42,0.35); stroke-width: 0.8; }
.cad-bg-svg .cad-section { stroke: rgba(225,29,72,0.45); stroke-width: 1; stroke-dasharray: 10 4 2 4; }
.cad-bg-svg .cad-hatch { stroke: rgba(15,23,42,0.35); stroke-width: 0.6; }
.cad-bg-svg .cad-sprinkler line { stroke: rgba(37,99,235,0.35); stroke-width: 0.7; stroke-dasharray: 4 3; }
.cad-bg-svg .cad-device { fill: rgba(31,138,82,0.6); stroke: rgba(31,138,82,0.9); stroke-width: 0.8; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--primary); font-weight: 700; margin-bottom: 0.9rem;
  background: var(--primary-050); padding: 0.3rem 0.6rem; border-radius: 999px;
}
.live-dot { width: 7px; height: 7px; background: var(--primary); border-radius: 99px; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity:1; transform: scale(1);} 50% { opacity:.5; transform: scale(1.3);} }

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.04; letter-spacing: -0.03em; margin-bottom: 1rem; color: var(--ink-950);
  font-weight: 800;
}
.hero-copy h1 em { font-style: italic; color: var(--ink-700); font-weight: 700; }
.hero-copy h1 u { text-decoration: none; background: linear-gradient(transparent 62%, rgba(31,138,82,0.25) 62%); padding: 0 0.1em; }
.hero-copy h1 span { color: var(--primary); }
.hero-copy p { color: var(--ink-700); margin-bottom: 1.2rem; max-width: 62ch; font-size: 1.02rem; }
.hero-cta { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 1.4rem; margin-top: 1.4rem; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { color: var(--ink-950); font-size: 0.92rem; }
.hero-stats span { font-size: 0.68rem; color: var(--ink-500); letter-spacing: 0.14em; }

/* ========== LAPTOP FRAME ========== */
.laptop-wrap {
  width: min(1280px, 96vw);
  margin: 2.5rem auto 0;
  position: relative;
  z-index: 2;
}
.laptop {
  position: relative;
  background: #1f2937;
  border-radius: 22px 22px 6px 6px;
  padding: 22px 22px 16px;
  box-shadow:
    0 30px 70px rgba(15,23,42,0.25),
    inset 0 0 0 1px rgba(255,255,255,0.05);
}
.laptop::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 14px;
  background: #0b1220;
  z-index: 0;
}
.laptop-camera {
  position: absolute;
  top: 9px; left: 50%; transform: translateX(-50%);
  width: 6px; height: 6px; border-radius: 99px;
  background: #475569;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.5);
  z-index: 2;
}
.laptop .app-window {
  position: relative;
  z-index: 1;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  border-color: #0f172a;
}
.laptop-base {
  width: calc(100% + 120px);
  height: 14px;
  margin: 0 -60px;
  background: linear-gradient(180deg, #cbd5e1, #94a3b8);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 18px 30px rgba(15,23,42,0.18);
  position: relative;
}
.laptop-base::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 120px; height: 6px;
  background: #94a3b8;
  border-radius: 0 0 12px 12px;
}
.laptop-foot {
  width: 40%;
  height: 4px;
  margin: 0 auto;
  background: rgba(15, 23, 42, 0.15);
  filter: blur(6px);
  border-radius: 99px;
}
.laptop .app-body { min-height: 540px; }

/* ========== APP WINDOW (matches screenshot) ========== */
.app-window {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  position: relative;
}
/* Inside the laptop the UI is a showcase only — user interaction is disabled */
.laptop .app-window,
.laptop .app-window * { pointer-events: none !important; user-select: none; }

/* Fake animated cursor for the auto demo */
.fake-cursor {
  position: absolute; top: 0; left: 0; width: 22px; height: 22px;
  transform: translate(-100px, -100px);
  transition: transform 0.9s cubic-bezier(.35,.05,.25,1);
  z-index: 5; pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.cursor-ripple {
  position: absolute; left: 4px; top: 4px;
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(31,138,82,0.5); opacity: 0;
  transform: scale(0.6);
}
.fake-cursor.clicking .cursor-ripple {
  animation: cursorRipple .55s ease-out;
}
@keyframes cursorRipple {
  0% { opacity: 0.7; transform: scale(0.5); }
  100% { opacity: 0; transform: scale(4.5); }
}

/* Smoke detectors placed by the demo */
.demo-placed .det {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation: detPop .45s cubic-bezier(.2,.9,.3,1.3) forwards;
}
.demo-placed .det circle.ring { fill: rgba(31,138,82,0.18); stroke: #1f8a52; stroke-width: 1.5; }
.demo-placed .det circle.core { fill: #1f8a52; }
.demo-placed .det text { fill: #fff; font-size: 8px; font-weight: 700; text-anchor: middle; font-family: 'JetBrains Mono', monospace; }
@keyframes detPop {
  0% { opacity: 0; transform: scale(0.2); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}

/* Auto-place button state feedback during the demo */
#autoPlaceBtn.is-busy { background: #0f172a; border-color: #0f172a; }
#autoPlaceBtn.is-done { background: #16a34a; border-color: #16a34a; }

.app-titlebar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.5rem 0.8rem; background: #fafbfc;
  border-bottom: 1px solid var(--line); font-size: 0.78rem;
}
.tl-dots { display: flex; gap: 0.3rem; }
.tl-dots span { width: 10px; height: 10px; border-radius: 99px; background: var(--line-strong); }
.tl-dots span:nth-child(1) { background: #fca5a5; }
.tl-dots span:nth-child(2) { background: #fde68a; }
.tl-dots span:nth-child(3) { background: #86efac; }
.tl-crumb, .tl-right { display: flex; align-items: center; gap: 0.5rem; }
.crumb-label { color: var(--ink-500); font-size: 0.76rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.3rem;
  border: 1px solid var(--line-strong); background: #fff; color: var(--ink-700);
  padding: 0.22rem 0.55rem; border-radius: 6px; font-size: 0.76rem; font-weight: 500;
}
.chip-green { border-color: rgba(31,138,82,0.35); color: var(--primary); background: var(--primary-050); }
.chip-light { background: #fff; }

.app-toolbar, .app-device-bar {
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.45rem 0.55rem; border-bottom: 1px solid var(--line);
  background: #fff; overflow-x: auto;
}
.app-device-bar { gap: 0.15rem; }
.tool-btn, .dev-chip {
  display: inline-flex; align-items: center; gap: 0.35rem;
  border: 1px solid var(--line); background: #fff; color: var(--ink-700);
  padding: 0.35rem 0.6rem; border-radius: 6px; font: inherit; font-size: 0.78rem;
  white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.tool-btn:hover, .dev-chip:hover { border-color: var(--ink-300); color: var(--ink-950); }
.tool-btn.active, .dev-chip.active { background: var(--primary-050); color: var(--primary); border-color: rgba(31,138,82,0.35); }
.tool-btn.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.tool-btn.primary:hover { background: var(--primary-600); }
.tool-btn .ico, .dev-chip .dot { font-size: 0.9rem; }
.dev-chip .dot { width: 8px; height: 8px; border-radius: 99px; }
.dot-red { background: var(--danger); }
.dot-blue { background: var(--info); }
.dot-pink { background: var(--pink); }

.app-body { display: grid; grid-template-columns: 1fr 300px; min-height: 460px; }

/* ========== CANVAS ========== */
.app-canvas {
  position: relative; overflow: hidden; background: #ffffff; border-right: 1px solid var(--line);
}
.canvas-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(17,24,39,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,39,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
}
.plan { position: absolute; inset: 0; width: 100%; height: 100%; }
.plot-yellow { fill: #fffbeb; stroke: #f59e0b; stroke-width: 1.4; }
.plot-pink { fill: none; stroke: #ec4899; stroke-width: 1.4; stroke-dasharray: 4 3; }
.zone-red { fill: rgba(225,29,72,0.18); stroke: #e11d48; stroke-width: 1.2; }
.zone-green-outline { fill: none; stroke: #10b981; stroke-width: 1.4; }
.zone-light { fill: #f9fafb; stroke: #9ca3af; stroke-width: 1; }

.pipe-red {
  fill: none; stroke: #e11d48; stroke-width: 1.8; stroke-dasharray: 6 5;
  animation: flow 3s linear infinite;
}
.pipe-mag path { fill: none; stroke: #d946ef; stroke-width: 1; opacity: 0.7; }
@keyframes flow { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -22; } }

.titleblock { fill: #fff; stroke: var(--ink-400); stroke-width: 0.8; }
.tb-line { stroke: var(--ink-400); stroke-width: 0.8; }
.tb-label { font-family: 'JetBrains Mono', monospace; font-size: 8px; fill: var(--ink-700); text-anchor: middle; }

.note-box { fill: #fff; stroke: #2563eb; stroke-width: 0.8; stroke-dasharray: 3 2; }
.note-text { font-family: 'JetBrains Mono', monospace; font-size: 8px; fill: #1d4ed8; text-anchor: middle; }
.note-text.sm { font-size: 7px; fill: var(--ink-500); }

.eq.hydrant circle { fill: var(--danger); stroke: #fff; stroke-width: 1.5; filter: drop-shadow(0 2px 3px rgba(225,29,72,0.35)); }
.eq.hydrant text { fill: #fff; font-family: 'JetBrains Mono', monospace; font-size: 8px; font-weight: 700; text-anchor: middle; }

.ai-badge rect { fill: var(--ink-950); opacity: 0.9; }
.ai-badge text { fill: #86efac; font-family: 'JetBrains Mono', monospace; font-size: 9px; text-anchor: middle; font-weight: 600; }

.zoom-bar {
  position: absolute; left: 12px; bottom: 12px; z-index: 2;
  display: flex; align-items: center; gap: 0.4rem;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 0.3rem 0.5rem; font-size: 0.74rem; color: var(--ink-700);
  box-shadow: var(--shadow-sm);
}
.zoom-bar button { border: none; background: transparent; color: var(--ink-700); font: inherit; cursor: pointer; padding: 0.1rem 0.3rem; }
.zoom-bar button:hover { color: var(--ink-950); }
.zoom-track { position: relative; width: 90px; height: 4px; background: var(--line); border-radius: 99px; }
.zoom-thumb { position: absolute; left: 18%; top: -3px; width: 10px; height: 10px; background: var(--primary); border-radius: 99px; }
.zoom-fit { border: 1px solid var(--line) !important; padding: 0.18rem 0.5rem !important; border-radius: 6px; }
.zoom-pct { color: var(--ink-500); }

/* ========== SIDEBAR ========== */
.app-sidebar { padding: 0.9rem; background: #fff; overflow-y: auto; }
.side-head { display: flex; align-items: baseline; gap: 0.4rem; margin-bottom: 0.35rem; }
.side-head strong { font-size: 0.95rem; color: var(--ink-950); }
.side-head .count { color: var(--ink-500); font-size: 0.82rem; }
.side-desc { color: var(--ink-500); font-size: 0.78rem; margin-bottom: 0.9rem; }

.eq-card { border: 1px solid var(--line); border-radius: 10px; padding: 0.7rem; margin-bottom: 0.6rem; background: #fff; }
.eq-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.55rem; }
.eq-title { display: flex; align-items: center; gap: 0.45rem; font-weight: 600; color: var(--ink-950); font-size: 0.88rem; }
.eq-sub { color: var(--ink-500); font-size: 0.75rem; margin-top: 0.1rem; }
.eq-glyph { width: 18px; height: 18px; border-radius: 4px; display: inline-grid; place-items: center; font-size: 0.72rem; color: #fff; font-weight: 700; }
.eq-glyph.green { background: var(--primary); }
.eq-glyph.red { background: var(--danger); }
.eq-glyph.blue { background: var(--info); }

.pill { font-size: 0.64rem; letter-spacing: 0.1em; font-weight: 700; padding: 2px 6px; border-radius: 4px; color: var(--primary); background: var(--primary-050); }
.pill-soft { background: var(--primary-050); color: var(--primary); }

.btn-row { display: flex; gap: 0.35rem; }
.btn-row .btn-primary { flex: 1; }
.side-foot { color: var(--ink-500); font-size: 0.78rem; margin-top: 0.4rem; }

/* ========== SECTION HEAD ========== */
.section-head { margin-bottom: 1.4rem; }
.section-head.center { text-align: center; max-width: 720px; margin: 0 auto 1.6rem; }
.section-head h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); letter-spacing: -0.02em; font-weight: 800; color: var(--ink-950); }
.section-head .lede { color: var(--ink-700); margin-top: 0.5rem; }

/* ========== DEMO VIDEO ========== */
.demo { padding: 3rem 0; }
.demo-poster {
  position: relative; display: block; width: 100%; aspect-ratio: 16/9;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  cursor: pointer; background:
    radial-gradient(1200px 400px at 50% 120%, rgba(31,138,82,0.25), transparent 60%),
    linear-gradient(135deg, #0b1220 0%, #1e293b 60%, #0f172a 100%);
  box-shadow: var(--shadow-md);
  transition: transform .25s ease, box-shadow .25s ease;
}
.demo-poster:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.poster-grid {
  position: absolute; inset: 0; opacity: 0.35;
  background-image:
    linear-gradient(rgba(148,163,184,0.25) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148,163,184,0.25) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at center, black 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 50%, transparent 100%);
}
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 90px; height: 90px; border-radius: 99px;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 12px 30px rgba(31,138,82,0.55), 0 0 0 8px rgba(31,138,82,0.15);
  animation: pulseRing 2.2s ease-out infinite;
}
.play-icon { font-size: 1.8rem; margin-left: 6px; }
@keyframes pulseRing {
  0% { box-shadow: 0 12px 30px rgba(31,138,82,0.55), 0 0 0 0 rgba(31,138,82,0.35); }
  100% { box-shadow: 0 12px 30px rgba(31,138,82,0.55), 0 0 0 28px rgba(31,138,82,0); }
}
.poster-meta {
  position: absolute; left: 20px; bottom: 18px; color: #e2e8f0; text-align: left;
  display: grid; gap: 2px;
}
.poster-title { font-weight: 700; font-size: 1rem; }
.poster-sub { font-size: 0.8rem; color: #94a3b8; }

/* modal */
.video-modal {
  position: fixed; inset: 0; display: none; align-items: center; justify-content: center;
  z-index: 200; padding: 4vw;
}
.video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,0.82); backdrop-filter: blur(3px); }
.video-modal-body { position: relative; width: min(1100px, 100%); border-radius: 12px; overflow: hidden; box-shadow: 0 30px 80px rgba(0,0,0,0.6); background: #000; }
.video-modal-ratio { position: relative; width: 100%; aspect-ratio: 16/9; }
.video-modal-ratio iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -42px; right: 0;
  width: 34px; height: 34px; border-radius: 99px;
  border: none; background: #fff; color: var(--ink-950);
  font-size: 1rem; cursor: pointer; font-weight: 600;
}

/* ========== FEATURES ========== */
.features { padding: 2.5rem 0; }
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1.1rem; box-shadow: var(--shadow-sm); }
.feat-ico { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: var(--primary-050); color: var(--primary); font-weight: 700; margin-bottom: 0.55rem; }
.feat h3 { font-size: 0.98rem; margin-bottom: 0.3rem; color: var(--ink-950); }
.feat p { color: var(--ink-500); font-size: 0.88rem; }

/* ========== STEPS ========== */
.steps-section { padding: 3rem 0; background: #0b1220; color: #e5e7eb; border-radius: 20px; margin: 2rem auto; }
.steps-section .container { max-width: 1100px; }
.steps-section .section-head { color: #fff; }
.steps-section .section-head h2 { color: #fff; }
.steps-section .eyebrow { background: rgba(31,138,82,0.15); color: #4ade80; }

.stepper {
  list-style: none; margin: 2rem auto 1.6rem;
  padding: 2rem 1.8rem;
  background: #131a2a;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 0;
  max-width: 560px;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 1rem;
  padding-bottom: 2.2rem;
}
.step:last-child { padding-bottom: 0; }
.step-track {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  width: 36px;
}
.step-bubble {
  position: relative;
  width: 36px; height: 36px; border-radius: 99px;
  background: #1f2937;
  border: 1.5px solid rgba(255,255,255,0.35);
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700; font-size: 0.9rem;
  color: #e5e7eb;
  transition: all .35s ease;
  z-index: 2;
  flex-shrink: 0;
}
.step-bubble-n, .step-bubble-check {
  grid-area: 1 / 1;
  transition: opacity .25s ease, transform .25s ease;
}
.step-bubble-check { opacity: 0; transform: scale(0.5); color: #fff; }
.step-line {
  flex: 1; width: 2px; min-height: 40px;
  background: rgba(255,255,255,0.18);
  position: relative; overflow: hidden;
  margin-top: 4px;
}
.step-line::after {
  content: ''; position: absolute; inset: 0;
  background: #fff;
  transform: scaleY(var(--line-fill, 0)); transform-origin: top center;
  transition: transform .25s linear;
}
.step:last-child .step-line { display: none; }

.step-meta { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.step-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem; letter-spacing: 0.14em;
  color: #9ca3af; text-transform: uppercase;
}
.step-title {
  margin: 0; color: #fff; font-weight: 700;
  font-size: 1.05rem; letter-spacing: -0.01em;
}
.step-status {
  align-self: flex-start;
  font-size: 0.68rem; letter-spacing: 0.04em;
  padding: 3px 10px; border-radius: 99px;
  background: rgba(255,255,255,0.06); color: #9ca3af;
  border: 1px solid rgba(255,255,255,0.04);
  font-weight: 600;
  transition: all .3s ease;
}

/* Completed */
.step.is-done .step-bubble {
  background: #fff; border-color: #fff; color: #0b1220;
}
.step.is-done .step-bubble-n { opacity: 0; transform: scale(0.5); }
.step.is-done .step-bubble-check { opacity: 1; transform: scale(1); color: #0b1220; }
.step.is-done .step-line::after { transform: scaleY(1); }
.step.is-done .step-status {
  background: rgba(34,197,94,0.18); color: #4ade80;
  border-color: rgba(34,197,94,0.3);
}

/* Active / in progress */
.step.is-active .step-bubble {
  background: #fff; border-color: #fff; color: #0b1220;
  box-shadow: 0 0 0 6px rgba(255,255,255,0.08);
}
.step.is-active .step-status {
  background: rgba(59,130,246,0.2); color: #93c5fd;
  border-color: rgba(59,130,246,0.35);
}

@media (max-width: 820px) {
  .stepper { padding: 1.4rem; }
}

.kpis {
  margin-top: 1.4rem; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.7rem;
  background: #131a2a; border-radius: 12px; padding: 1.2rem; color: #e5e7eb;
  border: 1px solid rgba(255,255,255,0.06);
}
.kpis div { display: flex; flex-direction: column; }
.kpis strong { font-size: 1.6rem; letter-spacing: -0.02em; color: #fff; font-weight: 800; }
.kpis span { font-size: 0.7rem; color: #9ca3af; letter-spacing: 0.14em; text-transform: uppercase; }

/* ========== SOLUTIONS ========== */
.solutions { padding: 2.5rem 0; }
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.85rem; }
.sol { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; box-shadow: var(--shadow-sm); }
.sol span { font-family: 'JetBrains Mono', monospace; font-size: 0.66rem; letter-spacing: 0.14em; color: var(--primary); }
.sol h4 { margin: 0.3rem 0; font-size: 0.98rem; color: var(--ink-950); }
.sol p { color: var(--ink-500); font-size: 0.86rem; }

/* ========== FAQ ========== */
.faq { padding: 2.5rem 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.4rem; align-items: start; }
.faq-grid h2 { font-size: clamp(1.5rem,2.8vw,2.1rem); letter-spacing: -0.02em; margin: 0.4rem 0 0.9rem; color: var(--ink-950); font-weight: 800; }
.faq-list { display: grid; gap: 0.5rem; }
.faq-list details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 0.9rem 1rem; }
.faq-list summary { list-style: none; cursor: pointer; font-weight: 600; color: var(--ink-950); display: flex; justify-content: space-between; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; color: var(--ink-500); font-weight: 500; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list p { margin-top: 0.4rem; color: var(--ink-500); font-size: 0.88rem; }

/* ========== CONTACT ========== */
.contact { padding: 2.8rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; align-items: start; }
.contact-grid h2 { font-size: clamp(1.5rem,2.8vw,2.1rem); letter-spacing: -0.02em; margin: 0.4rem 0 0.8rem; color: var(--ink-950); font-weight: 800; }
.contact-grid p { color: var(--ink-700); margin-bottom: 0.35rem; }
.contact-form { display: grid; gap: 0.6rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 1.1rem; box-shadow: var(--shadow-sm); }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; background: #fff; color: var(--ink-950);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(31,138,82,0.3); border-color: var(--primary); }
.contact-form button { margin-top: 0.2rem; }

/* ========== FOOTER ========== */
.site-footer { padding: 2rem 0 1rem; border-top: 1px solid var(--line); background: #fff; }
.foot { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1.4rem; align-items: start; }
.foot-note { color: var(--ink-500); font-size: 0.86rem; margin-top: 0.5rem; max-width: 40ch; }
.foot-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.foot-cols > div { display: flex; flex-direction: column; gap: 0.25rem; }
.foot-cols strong { font-size: 0.76rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-950); margin-bottom: 0.2rem; }
.foot-cols a { color: var(--ink-500); font-size: 0.86rem; }
.foot-cols a:hover { color: var(--ink-950); }
.foot-bottom { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.76rem; color: var(--ink-500); }

/* ========== RESPONSIVE ========== */
@media (max-width: 1100px) {
  .app-body { grid-template-columns: 1fr; }
  .app-canvas { border-right: none; border-bottom: 1px solid var(--line); min-height: 360px; }
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .sol-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-grid, .contact-grid, .foot { grid-template-columns: 1fr; }
  .laptop { padding: 16px 14px 12px; border-radius: 16px 16px 4px 4px; }
  .laptop-base { width: calc(100% + 60px); margin: 0 -30px; }
  .laptop .app-body { min-height: 420px; }
}

@media (max-width: 720px) {
  .desktop-nav, .nav-actions { display: none; }
  .menu-toggle { display: inline-block; }
  .app-toolbar, .app-device-bar { padding: 0.45rem; }
  .hero-stats { gap: 1rem; }
  .laptop .app-body { min-height: 340px; }
}

@media (max-width: 480px) {
  .feat-grid, .sol-grid, .steps, .kpis { grid-template-columns: 1fr; }
  .contact-form .row { grid-template-columns: 1fr; }
  .hero-copy h1 { font-size: 2.1rem; }
}
