/* ==========================================================================
   Evonex — Premium Site Design System
   Mirrors the app's dark-glass theme with modern SaaS aesthetics.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* Surfaces */
  --bg: #06080e;
  --bg-darker: #030407;
  --surface: rgba(13, 17, 28, 0.45);
  --surface-opaque: #0d111c;
  --surface2: rgba(22, 28, 45, 0.6);
  --surface3: rgba(30, 39, 62, 0.85);
  --elevated: rgba(20, 26, 42, 0.8);
  --border: rgba(255, 255, 255, 0.06);
  --border2: rgba(255, 255, 255, 0.12);
  --border-glow: rgba(99, 102, 241, 0.25);

  /* Text colors */
  --text: #f3f4f6;
  --text2: #94a3b8;
  --text3: #64748b;
  --text-inverse: #0f172a;

  /* Accent colors */
  --accent: #6366f1;
  --accent-hi: #818cf8;
  --accent-purple: #8b5cf6;
  --accent-cyan: #06b6d4;
  --on-accent: #ffffff;

  /* Status */
  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.15);
  --red: #ef4444;
  --amber: #f59e0b;

  /* Glassmorphism details */
  --glass-edge: rgba(255, 255, 255, 0.05);
  --glass-hi: rgba(139, 92, 246, 0.35);
  --accent-soft: rgba(99, 102, 241, 0.08);
  --accent-cyan-soft: rgba(6, 182, 212, 0.08);

  /* Gradients */
  --grad-accent: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
  --grad-accent-horizontal: linear-gradient(90deg, #8b5cf6 0%, #6366f1 50%, #06b6d4 100%);
  --grad-card: linear-gradient(180deg, rgba(16, 22, 35, 0.6) 0%, rgba(8, 11, 18, 0.6) 100%);
  --grad-frame: linear-gradient(180deg, rgba(20, 26, 40, 0.85) 0%, rgba(7, 9, 15, 0.95) 100%);

  /* Layout */
  --container: 1200px;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;

  --font: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

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

html {
  scroll-behavior: smooth;
}

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

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

/* Premium dynamic mesh background glow */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: 
    radial-gradient(1000px 600px at 80% -10%, rgba(139, 92, 246, 0.14), transparent 60%),
    radial-gradient(900px 500px at 15% 15%, rgba(99, 102, 241, 0.12), transparent 58%),
    radial-gradient(800px 600px at 50% 60%, rgba(6, 182, 212, 0.05), transparent 50%),
    var(--bg-darker);
}

/* Mouse cursor follower interactive glow (managed by JS) */
#cursor-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(circle 600px at var(--x, -1000px) var(--y, -1000px), rgba(99, 102, 241, 0.08), transparent 80%);
  transition: opacity 0.5s ease;
}

/* Fine grain noise texture overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  z-index: -3;
  opacity: 0.025;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3联%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

h1, h2, h3, h4 {
  font-family: "Outfit", var(--font);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #ffffff;
}

h1 {
  font-size: clamp(2.3rem, 1.5rem + 3.8vw, 3.8rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
  font-weight: 700;
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--text2);
}

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

.muted { color: var(--text2); }
.faint { color: var(--text3); }
.tnum { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-cyan-soft);
  border: 1px solid rgba(6, 182, 212, 0.15);
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 20px;
}

.eyebrow .ico {
  width: 13px;
  height: 13px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}

.section-head p {
  color: var(--text2);
  margin-top: 16px;
  font-size: 1.1rem;
}

.grad {
  background: var(--grad-accent-horizontal);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ---- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  min-height: 46px;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s ease;
}

.btn:hover::after {
  transform: translateX(100%);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--grad-accent);
  color: var(--on-accent);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border-color: var(--border2);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-hi);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.05);
}

.btn-ghost:active {
  transform: translateY(0);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1rem;
  border-radius: 14px;
  min-height: 54px;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 9px;
  min-height: 38px;
}

.btn .ico {
  width: 18px;
  height: 18px;
}

/* ---- glass card --------------------------------------------------------- */
.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

/* Glowing card overlay */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(255, 255, 255, 0.06), transparent 80%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}

.card:hover::before {
  opacity: 1;
}

.card.hoverable:hover {
  border-color: var(--border-glow);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 15px 40px rgba(99, 102, 241, 0.15),
    0 0 2px rgba(99, 102, 241, 0.2);
  transform: translateY(-4px);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text2);
  background: rgba(22, 28, 45, 0.4);
  border: 1px solid var(--border);
  border-radius: 99px;
  padding: 8px 16px;
  transition: all 0.2s ease;
}

.pill:hover {
  color: var(--text);
  border-color: var(--accent-hi);
  transform: translateY(-2px);
  background: rgba(22, 28, 45, 0.6);
}

.pill .ico {
  width: 14px;
  height: 14px;
  color: var(--accent-cyan);
}

.badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  border-radius: 99px;
  padding: 3px 10px;
}

/* ---- nav ---------------------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 14, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav.scrolled {
  background: rgba(6, 8, 14, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
  transition: height 0.3s ease;
}

.nav.scrolled .nav-inner {
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

.nav.scrolled .brand img {
  height: 28px;
}

.brand .badge {
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  color: var(--text2);
  font-size: 0.92rem;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--grad-accent-horizontal);
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #ffffff;
}

.nav-links a:hover::after, 
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-links a[aria-current="page"] {
  color: #ffffff;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.nav-burger:hover {
  border-color: var(--accent-hi);
  background: rgba(255, 255, 255, 0.06);
}

.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  flex-direction: column;
  padding: 10px 24px 30px;
  background: rgba(6, 8, 14, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.nav.scrolled + .nav-drawer {
  top: 64px;
}

.nav-drawer.open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.nav-drawer a {
  padding: 16px 8px;
  color: var(--text2);
  font-weight: 500;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}

.nav-drawer a:last-child {
  border-bottom: 0;
}

.nav-drawer a:hover, 
.nav-drawer a[aria-current="page"] {
  color: #ffffff;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-drawer { display: flex; }
}

/* ---- hero --------------------------------------------------------------- */
.hero {
  padding: 100px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.hero h1 {
  margin-top: 10px;
  margin-bottom: 20px;
}

.hero-sub {
  color: var(--text2);
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 34em;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.hero-meta {
  margin-top: 18px;
  font-size: 0.85rem;
  color: var(--text3);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .hero-sub {
    margin-inline: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-mock {
    order: -1;
    max-width: 640px;
    margin-inline: auto;
    width: 100%;
  }
}

/* Premium App Mockup Simulator Frame */
.hero-mock {
  position: relative;
}

.shot-frame {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  overflow: hidden;
  background: var(--bg-darker);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.6),
    0 0 40px rgba(99, 102, 241, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  transition: all 0.3s ease;
}

.shot-frame:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 
    0 30px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(99, 102, 241, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* HTML-based Interactive Dashboard Mockup */
.mock-container {
  display: flex;
  flex-direction: column;
  height: 380px;
  font-size: 0.8rem;
  background: #090c15;
}

.mock-titlebar {
  height: 36px;
  background: #0f1322;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 14px;
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #1f293d;
}

.mock-dots span.red { background: #ef4444; }
.mock-dots span.yellow { background: #f59e0b; }
.mock-dots span.green { background: #10b981; }

.mock-window-title {
  color: var(--text3);
  font-size: 0.75rem;
  font-family: var(--mono);
}

.mock-tabs {
  display: flex;
  background: #0b0f1a;
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
}

.mock-tab {
  padding: 10px 16px;
  color: var(--text3);
  border-right: 1px solid var(--border);
  cursor: pointer;
  user-select: none;
  transition: all 0.2s ease;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mock-tab:hover {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text2);
}

.mock-tab.active {
  background: #0d1222;
  color: #ffffff;
  border-bottom: 2px solid var(--accent);
}

.mock-tab .ico {
  width: 12px;
  height: 12px;
}

.mock-content {
  flex: 1;
  display: none;
  overflow: hidden;
}

.mock-content.active {
  display: flex;
}

/* View 1: Fleet Status */
.mock-fleet {
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 180px 1fr;
  background: #0d1222;
}

.mock-sidebar {
  border-right: 1px solid var(--border);
  background: #090d18;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text3);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.instance-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid transparent;
}

.instance-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.instance-item.active {
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
  color: #ffffff;
}

.instance-name {
  font-weight: 500;
}

.instance-status {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
}

.instance-status.idle {
  background: var(--text3);
  box-shadow: none;
}

.instance-status.warn {
  background: var(--amber);
  box-shadow: 0 0 6px var(--amber);
}

.mock-details {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-tile {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  padding: 10px;
  border-radius: 8px;
}

.stat-tile.accent {
  border-color: rgba(99, 102, 241, 0.2);
  background: rgba(99, 102, 241, 0.02);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text3);
}

.stat-val {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-top: 2px;
  font-family: var(--mono);
}

.stat-desc {
  font-size: 0.68rem;
  color: var(--text2);
  margin-top: 4px;
}

/* View 2: Live Console Log */
.mock-terminal {
  flex: 1;
  background: #05070c;
  padding: 16px;
  font-family: var(--mono);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
  line-height: 1.5;
  font-size: 0.78rem;
}

.term-line {
  display: flex;
  gap: 10px;
  opacity: 0.85;
}

.term-line.accent { color: var(--accent-hi); }
.term-line.success { color: var(--green); }
.term-line.warning { color: var(--amber); }

.term-time {
  color: var(--text3);
  flex-shrink: 0;
}

.term-text {
  word-break: break-all;
}

/* View 3: Visual Flow Builder Demo */
.mock-flow {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #0d1222;
  padding: 16px;
  overflow: hidden;
}

.flow-canvas {
  flex: 1;
  background: 
    radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px) 0 0 / 16px 16px,
    #080c16;
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.flow-node {
  background: #0f1526;
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 8px 12px;
  width: 120px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  position: relative;
  z-index: 2;
  transition: all 0.2s ease;
}

.flow-node.active {
  border-color: var(--accent);
  box-shadow: 
    0 4px 15px rgba(99, 102, 241, 0.2),
    0 0 0 1px var(--accent);
}

.flow-node-title {
  font-weight: 600;
  font-size: 0.72rem;
  color: #ffffff;
}

.flow-node-status {
  font-size: 0.65rem;
  color: var(--text2);
  margin-top: 3px;
}

.flow-node.active .flow-node-status {
  color: var(--accent-hi);
}

.flow-arrow {
  color: var(--border2);
  z-index: 1;
  font-size: 1.1rem;
}

.flow-node.active + .flow-arrow {
  color: var(--accent);
}

.flow-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
}

.flow-controls .btn-sm {
  min-height: 32px;
}

/* ---- trust strip -------------------------------------------------------- */
.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 12px 0;
}

/* ---- feature bento ------------------------------------------------------ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}

.feature {
  grid-column: span 2;
  padding: 30px;
}

.feature.wide {
  grid-column: span 3;
}

.feature .ico-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.2);
  color: var(--accent-hi);
  margin-bottom: 20px;
  transition: all 0.3s ease;
}

.feature:hover .ico-box {
  background: var(--grad-accent);
  border-color: transparent;
  color: #ffffff;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.feature .ico-box .ico {
  width: 22px;
  height: 22px;
}

.feature h3 {
  margin-bottom: 10px;
  font-size: 1.2rem;
}

.feature p {
  color: var(--text2);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.wide { grid-column: span 1; }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
}

/* ---- steps -------------------------------------------------------------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

/* Glowing connector line behind steps */
.steps::before {
  content: "";
  position: absolute;
  top: 60px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: linear-gradient(90deg, var(--border) 0%, var(--accent) 50%, var(--border) 100%);
  z-index: 0;
}

.step {
  padding: 28px;
  z-index: 1;
}

.step .num {
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--accent-cyan);
  letter-spacing: 0.1em;
  background: var(--accent-cyan-soft);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(6, 182, 212, 0.1);
  display: inline-block;
}

.step .ico-box {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--accent-hi);
  margin: 16px 0 16px;
  transition: all 0.3s ease;
}

.step:hover .ico-box {
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

.step h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.step p {
  color: var(--text2);
  font-size: 0.9rem;
}

@media (max-width: 820px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---- Interactive Vision Lab Sandbox ------------------------------------- */
.vision-sandbox {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  margin-top: 60px;
}

.vision-display {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  background: #000;
}

.vision-img {
  display: block;
  width: 100%;
  height: auto;
}

.vision-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), transparent);
  box-shadow: 0 0 12px var(--accent-cyan);
  z-index: 5;
  animation: scan 3s linear infinite;
}

@keyframes scan {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.vision-overlay-box {
  position: absolute;
  border: 2px solid var(--green);
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.12);
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.vision-overlay-box:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

.vision-overlay-box::after {
  content: attr(data-label);
  position: absolute;
  bottom: 100%;
  left: 0;
  background: var(--green);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 3px 3px 3px 0;
  white-space: nowrap;
  font-weight: 600;
  transform: translateY(-2px);
  pointer-events: none;
}

.vision-overlay-box:hover::after {
  background: #ffffff;
  color: #000000;
}

/* Position mapping for overlays */
.box-general { top: 18%; left: 32%; width: 28%; height: 35%; border-color: var(--accent-purple); background: rgba(139, 92, 246, 0.12); }
.box-general::after { background: var(--accent-purple); }

.box-monster { top: 62%; left: 12%; width: 24%; height: 20%; }
.box-resource { top: 52%; left: 60%; width: 26%; height: 22%; border-color: var(--accent-cyan); background: rgba(6, 182, 212, 0.12); }
.box-resource::after { background: var(--accent-cyan); }

.vision-sandbox-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.detector-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.detector-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.01);
  cursor: pointer;
  transition: all 0.2s ease;
}

.detector-item:hover, .detector-item.active {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border-glow);
}

.detector-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.detector-color.purple { background: var(--accent-purple); box-shadow: 0 0 8px var(--accent-purple); }
.detector-color.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.detector-color.cyan { background: var(--accent-cyan); box-shadow: 0 0 8px var(--accent-cyan); }

.detector-details {
  flex: 1;
}

.detector-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.detector-desc {
  font-size: 0.8rem;
  color: var(--text3);
}

.detector-confidence {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--text2);
  background: rgba(255, 255, 255, 0.03);
  padding: 3px 8px;
  border-radius: 5px;
}

@media (max-width: 900px) {
  .vision-sandbox {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* ---- gallery ------------------------------------------------------------ */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--bg-darker);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
}

.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--border);
  filter: grayscale(15%) brightness(90%);
  transition: all 0.3s ease;
}

.shot:hover img {
  filter: none;
}

.shot figcaption {
  padding: 14px 18px;
  font-size: 0.88rem;
  color: var(--text2);
  font-weight: 500;
  background: rgba(13, 17, 28, 0.5);
}

@media (max-width: 820px) {
  .gallery { grid-template-columns: 1fr; }
}

/* ---- faq ---------------------------------------------------------------- */
.faq {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq details {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 6px 24px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: all 0.3s ease;
}

.faq details[open] {
  border-color: var(--border-glow);
  box-shadow: 
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 30px rgba(99, 102, 241, 0.05);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .chev {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text3);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.faq details[open] summary .chev {
  transform: rotate(180deg);
  color: var(--accent-hi);
}

.faq .answer {
  color: var(--text2);
  padding: 0 0 20px;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ---- cta band ----------------------------------------------------------- */
.cta-band {
  text-align: center;
  padding: 64px 40px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border2);
  background: 
    radial-gradient(400px circle at 50% 50%, rgba(99, 102, 241, 0.15), transparent 80%),
    linear-gradient(180deg, rgba(16, 22, 35, 0.8) 0%, rgba(8, 11, 18, 0.9) 100%);
  position: relative;
  overflow: hidden;
}

.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(300px circle at var(--mouse-x, 0) var(--mouse-y, 0), rgba(6, 182, 212, 0.1), transparent 85%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.cta-band:hover::after {
  opacity: 1;
}

.cta-band h2 {
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 1.2rem + 1.8vw, 2.4rem);
}

.cta-band p {
  color: var(--text2);
  margin-bottom: 30px;
  font-size: 1.05rem;
}

/* ---- footer ------------------------------------------------------------- */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding: 50px 0;
  background: rgba(3, 4, 7, 0.4);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer .links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}

.footer .links a {
  color: var(--text2);
  font-size: 0.9rem;
}

.footer .links a:hover {
  color: #ffffff;
}

.footer .legal {
  color: var(--text3);
  font-size: 0.8rem;
  max-width: 54ch;
  line-height: 1.5;
}

/* skip link */
.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  background: var(--surface-opaque);
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 8px;
  z-index: 1000;
  border: 1px solid var(--border-glow);
}

.skip:focus {
  left: 20px;
}

/* ==========================================================================
   Motion & entrance animations
   ========================================================================== */

.reveal {
  opacity: 0;
  transform: translateY(24px) scale(0.98);
  transition: opacity .8s cubic-bezier(0.16, 1, 0.3, 1), transform .8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero .eyebrow { animation: rise .6s cubic-bezier(0.16, 1, 0.3, 1) both; }
.hero h1 { animation: rise .7s cubic-bezier(0.16, 1, 0.3, 1) .08s both; }
.hero-sub { animation: rise .7s cubic-bezier(0.16, 1, 0.3, 1) .16s both; }
.hero-actions { animation: rise .7s cubic-bezier(0.16, 1, 0.3, 1) .24s both; }
.hero-meta { animation: rise .7s cubic-bezier(0.16, 1, 0.3, 1) .32s both; }
.hero-mock { animation: rise .8s cubic-bezier(0.16, 1, 0.3, 1) .20s both; }

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