:root {
  --bg:       #080f20;
  --bg2:      #0c1528;
  --bg3:      #101c32;
  --amber:    #f0a742;
  --amber2:   #ffc96e;
  --cyan:     #3dd5f3;
  --text:     #e0e4f4;
  --muted:    #5a6a90;
  --border:   rgba(255,255,255,0.07);
  --amber-g:  rgba(240,167,66,0.12);
  --cyan-g:   rgba(61,213,243,0.08);
  /* ── reusable values ── */
  --hex:      polygon(50% 0%,100% 25%,100% 75%,50% 100%,0% 75%,0% 25%);
  --mono:     'JetBrains Mono', monospace;
  --sans:     'Space Grotesk', sans-serif;
  --pad:      120px 48px;
  --amber-b:  rgba(240,167,66,0.2);
  --amber-bg: rgba(240,167,66,0.07);
  --amber-bg2: rgba(240,167,66,0.1);
  --amber-b2: rgba(240,167,66,0.25);
  --amber-b3: rgba(240,167,66,0.3);
  --cyan-b:   rgba(61,213,243,0.2);
  --cyan-b2:  rgba(61,213,243,0.15);
  --cyan-bg:  rgba(61,213,243,0.06);
  --green-b:  rgba(77,219,138,0.2);
  --green-bg: rgba(77,219,138,0.06);
  --green-g:  rgba(77,219,138,0.4);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
a { text-decoration: none; }
button { text-decoration: none; }
.mono,.section-label,.stat-num,.val-num,.step-circle,.case-tag,.ts-item,.training-anim-container,.method-title,.roi-stat-num,.nav-logo .hex-badge,.term-title,.cursor{font-family:var(--mono)}
.section-padding{padding:var(--pad)}
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; }
.container { max-width: 1200px; margin: 0 auto; }
html { scroll-behavior: smooth; }

/* ── ACCESSIBILITY: Screen reader only / visually hidden ── */
.sr-only,
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

body {
  font-family:var(--sans);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--amber); border-radius: 2px; }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 48px;
  backdrop-filter: blur(16px);
  background: rgba(5,6,14,0.6);
  border-bottom: 1px solid var(--border);
  transition: background 0.3s;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em;
  color: var(--text);
}
.nav-logo .hex-badge {
  width: 32px; height: 32px;
  background: var(--amber);
  clip-path:var(--hex);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.55rem; font-weight: 800; color: #05060e;
  letter-spacing:.05em;font-family:var(--mono);
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  color: var(--muted); font-size: 0.875rem; text-decoration: none;
  transition: color 0.2s; font-weight: 500;
}
.nav-links a:hover { color: var(--amber); }
.nav-cta {
  background: var(--amber); color: #05060e;
  border: none; padding: 9px 22px; border-radius: 6px;
  font-family:var(--sans);
  font-size: 0.875rem; font-weight: 700;
  cursor: pointer; transition: all 0.2s; white-space: nowrap;
  text-decoration: none;
}
.nav-cta:hover { background: var(--amber2); transform: translateY(-1px); box-shadow: 0 6px 20px var(--amber-b3); }

/* ── HERO ── */
#hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  overflow:hidden;padding:var(--pad) 80px;
}
#hexCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
  opacity: 0.9;
}
.hero-glow {
  position: absolute; top: 30%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(240,167,66,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; max-width: 900px;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--amber-bg2); border: 1px solid var(--amber-b2);
  color: var(--amber); border-radius: 100px;
  padding: 6px 16px; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  font-family:var(--mono);margin-bottom:28px;
  animation: fadeInDown 0.8s ease both;
}
.tag-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.5;transform:scale(1.5)} }

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700; line-height: 1.05;
  letter-spacing: -0.03em; margin-bottom: 24px;
  animation: fadeInUp 0.8s 0.1s ease both;
}
h1 .accent { color: var(--amber); position: relative; }
h1 .accent::after {
  content: ''; position: absolute; left: 0; bottom: 8px;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
}
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem); color: var(--muted);
  max-width: 620px; margin: 0 auto 40px;
  line-height: 1.7; animation: fadeInUp 0.8s 0.2s ease both;
  background: rgba(8,15,32,0.65);
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 10px;
  padding: 20px 28px;
  backdrop-filter: blur(10px);
}
.hero-sub strong { color: var(--text); font-weight: 600; }
.hero-btns {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp 0.8s 0.3s ease both;
}
.btn-primary, .btn-ghost {
  padding: 14px 30px; border-radius: 8px;
  font-family:var(--sans);
  font-size: 0.95rem; cursor: pointer;
  transition: all 0.2s;
}
.btn-primary { background: var(--amber); color: #05060e; border: none; font-weight: 700; box-shadow: 0 0 0 rgba(240,167,66,0); }
.btn-primary:hover { background: var(--amber2); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(240,167,66,0.35); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--border); font-weight: 600; }
.btn-ghost:hover { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.04); }
.hero-stats {
  display: flex; gap: 48px; justify-content: center; flex-wrap: wrap;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid var(--border);
  animation: fadeInUp 0.8s 0.45s ease both;
}
.stat { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 700; color: var(--amber); letter-spacing: -0.02em; }
.stat-lbl { font-size: 0.8rem; color: var(--muted); margin-top: 2px; }
.scroll-hint {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--muted); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; animation: bounce 2s infinite;
}
.scroll-hint::after {
  content: ''; width: 1px; height: 40px;
  background: linear-gradient(var(--amber), transparent);
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── TERMINAL ── */
#demo {
  padding:var(--pad);background:var(--bg2);
  position: relative; overflow: hidden;
}
#demo::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.section-label {
  font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: 16px; display: block;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.1;
}
.section-sub { font-size: 1.05rem; color: var(--muted); max-width: 500px; line-height: 1.7; }
.demo-grid {
  display: grid; grid-template-columns: 1fr 1.3fr;
  gap: 64px; max-width: 1200px; margin: 64px auto 0;
  align-items: center;
}
.demo-text .badges {
  display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px;
}
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: 6px; font-size: 0.8rem; font-weight: 600;
  border: 1px solid;
}
.badge-amber{color:var(--amber);border-color:rgba(240,167,66,.25);background:rgba(240,167,66,.07)}
.badge-cyan{color:var(--cyan);border-color:var(--cyan-b);background:var(--cyan-bg)}
.badge-green{color:#4ddb8a;border-color:var(--green-b);background:var(--green-bg)}

.val-card, .case-card, .demo-form { background: var(--bg2); border: 1px solid var(--border); border-radius: 12px; transition: all 0.3s; }
.demo-form { border-radius: 16px; transition: none; }

/* terminal */
.terminal {
  background:#080a14;border:1px solid var(--amber-b);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 0 60px rgba(240,167,66,0.08), 0 24px 60px rgba(0,0,0,0.5);
}
.term-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px; background: #0c0e1c;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.term-dot { width: 10px; height: 10px; border-radius: 50%; }
.term-title {
  margin-left:auto;font-family:var(--mono);
  font-size: 0.7rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.live-indicator {
  width: 7px; height: 7px; border-radius: 50%; background: #4ddb8a;
  animation: pulse-live 2s infinite;
}
@keyframes pulse-live {
  0%,100%{box-shadow: 0 0 0 0 var(--green-g)}
  50%{box-shadow: 0 0 0 5px rgba(77,219,138,0)}
}
.term-body { padding: 20px; height: 420px; overflow-y: auto; font-family: var(--mono); font-size: 0.78rem; scroll-behavior: smooth; }
.term-status {
  display: flex; gap: 16px; flex-wrap: wrap;
  padding:8px 16px;background:rgba(240,167,66,.05);border-top:1px solid rgba(240,167,66,.1);font-family:var(--mono);font-size:.68rem;
}
.ts-item { display: flex; align-items: center; gap: 5px; color: var(--muted); }
.ts-item span { color: var(--amber); }
.msg { margin-bottom: 16px; animation: fadeIn 0.3s ease; }
.msg-user { text-align: right; }
.msg-user .bubble {
  display:inline-block;background:rgba(240,167,66,.12);border:1px solid var(--amber-b);
  color: var(--amber2); padding: 10px 14px; border-radius: 10px 10px 2px 10px;
  max-width: 80%; text-align: left; white-space: pre-wrap; line-height: 1.5;
}
.msg-ai .bubble {
  display: inline-block; background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--text); padding: 10px 14px; border-radius: 10px 10px 10px 2px;
  max-width: 90%; text-align: left; white-space: pre-wrap; line-height: 1.6;
}
.msg-ai .ai-label {
  font-size: 0.65rem; color: var(--amber); margin-bottom: 5px;
  letter-spacing: 0.05em; display: flex; align-items: center; gap: 5px;
}
.cursor { display: inline-block; width: 7px; height: 1em; background: var(--amber); vertical-align: text-bottom; animation: blink 1s step-end infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
@keyframes fadeIn { from{opacity:0;transform:translateY(4px)} to{opacity:1;transform:none} }

/* ── VALUES ── */
#values {
  padding:var(--pad);
  max-width: 1200px; margin: 0 auto;
}
.values-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 24px; margin-top: 64px;
}
.val-card {
  padding: 36px 32px;
  position: relative; overflow: hidden;
}
.val-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--amber), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s;
}
.val-card:hover::before { transform: scaleX(1); }
.val-card:hover{border-color:var(--amber-b);transform:translateY(-4px);box-shadow:0 20px 50px rgba(0,0,0,.3)}
.val-icon {
  width: 52px; height: 52px; margin-bottom: 24px;
  clip-path:var(--hex);background:var(--amber-g);border:1px solid var(--amber-b);
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
}
.val-icon.cyan-icon {
  background:var(--cyan-g);border-color:var(--cyan-b);
}
.val-num {
  position: absolute; top: 28px; right: 28px;
  font-family:var(--mono);font-size:.7rem;
  color: var(--muted);
}
.val-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; }
.val-card p { color: var(--muted); font-size: 0.9rem; line-height: 1.65; }

/* ── HOW IT WORKS ── */
#how {
  padding:var(--pad);background:var(--bg2);
  position: relative; overflow: hidden;
}
#how::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}
.steps {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 0; max-width: 1100px; margin: 64px auto 0;
  position: relative;
}
.steps::before {
  content: ''; position: absolute; top: 36px; left: calc(16.66% + 36px);
  right: calc(16.66% + 36px); height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
}
.step { text-align: center; padding: 0 32px; }
.step-circle {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--bg3); border: 1px solid var(--amber-b3);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 1.1rem;
  font-weight: 700; color: var(--amber); margin: 0 auto 28px;
  position: relative; z-index: 1;
  box-shadow: 0 0 20px rgba(240,167,66,0.15);
}
.step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 0.875rem; line-height: 1.6; }

/* ── USE CASES ── */
#cases {
  padding: var(--pad);
  max-width: 1200px; margin: 0 auto;
}
.cases-grid {
  display: grid; grid-template-columns: repeat(3,1fr);
  gap: 20px; margin-top: 56px;
}
.case-card {
  padding: 32px;
  display: grid; grid-template-columns: auto 1fr; gap: 20px;
  align-items: start;
}
.case-card:hover {
  border-color: var(--cyan-b);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
.case-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--cyan-g); border: 1px solid var(--cyan-b2);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.case-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.case-card p { color: var(--muted); font-size: 0.85rem; line-height: 1.6; }
.case-tags { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.case-tag {
  font-size: 0.7rem; font-family: var(--mono);
  color: var(--cyan); background: var(--cyan-bg);
  border: 1px solid var(--cyan-b2); padding: 3px 9px; border-radius: 4px;
}

/* ── SECURITY STRIP ── */
#security {
  padding: 80px 48px; position: relative; overflow: hidden;
  background: var(--bg3); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.sec-inner {
  width: 100%;
  max-width: 1200px;
  display: flex; align-items: center; justify-content: center; gap: 80px; margin: 0 auto;
}
.sec-hex-grid { flex-shrink: 0; position: relative; width: 260px; height: 260px; display:flex; align-items:center; justify-content:center; }
.sec-hex-grid svg { width: 100%; height: 100%; }
.hex-cell {
  position: absolute; clip-path: var(--hex);
  border: 1px solid;
}
.sec-content h2 { font-size: 2rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 16px; }
.sec-content p { color: var(--muted); line-height: 1.7; max-width: 500px; }
.sec-features { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; }
.sec-feat {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.875rem;
}
.sec-feat::before {
  content: ''; width: 8px; height: 8px; border-radius: 2px;
  background: var(--amber); flex-shrink: 0;
  clip-path: var(--hex);
}

/* ── CTA ── */
#cta {
  padding: 140px 24px; text-align: center; position: relative; overflow: hidden;
}
#cta::before {
  content: ''; position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240,167,66,0.05) 0%, transparent 70%);
  pointer-events: none;
}
#cta .section-title { font-size: clamp(2.5rem, 5vw, 4rem); }
#cta .section-sub { margin: 20px auto 40px; max-width: 600px; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer {
  padding: 40px 48px; border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted); font-size: 0.82rem;
}
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--amber); }
.footer-links { display: flex; gap: 24px; }

/* ── REVEAL ── */
.reveal { opacity: 0; transform: translateY(30px); transition: all 0.7s cubic-bezier(0.16,1,0.3,1); }
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }

@keyframes fadeInDown { from{opacity:0;transform:translateY(-12px)} to{opacity:1;transform:none} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(18px)} to{opacity:1;transform:none} }

/* ── AURORA BG ── */
#bgAurora {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.aurora-blob {
  position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: 0;
  animation: aurora-drift linear infinite;
}
@keyframes aurora-drift {
  0%   { transform: translate(0px, 0px) scale(1); opacity: 0; }
  10%  { opacity: 1; }
  50%  { transform: translate(var(--dx), var(--dy)) scale(var(--ds)); }
  90%  { opacity: 1; }
  100% { transform: translate(0px, 0px) scale(1); opacity: 0; }
}

/* ── SECTION TITLE WORD ANIMATION ── */
.section-title .word {
  display: inline-block; overflow: hidden;
  vertical-align: bottom; margin-right: 0.22em;
}
.section-title .word-inner {
  display: inline-block;
  transform: translateY(110%) skewY(4deg);
  opacity: 0;
  transition: transform 0.75s cubic-bezier(0.16,1,0.3,1), opacity 0.5s ease;
}
.section-title.words-visible .word-inner {
  transform: translateY(0) skewY(0deg);
  opacity: 1;
}
/* stagger delays */
.section-title .word:nth-child(1) .word-inner { transition-delay: 0s; }
.section-title .word:nth-child(2) .word-inner { transition-delay: 0.08s; }
.section-title .word:nth-child(3) .word-inner { transition-delay: 0.16s; }
.section-title .word:nth-child(4) .word-inner { transition-delay: 0.24s; }
.section-title .word:nth-child(5) .word-inner { transition-delay: 0.32s; }
.section-title .word:nth-child(6) .word-inner { transition-delay: 0.40s; }
.section-title .word:nth-child(7) .word-inner { transition-delay: 0.48s; }
.section-title .word:nth-child(8) .word-inner { transition-delay: 0.56s; }

/* ── SECTION LABEL SHIMMER ── */
.section-label {
  position: relative; display: inline-block;
  background: linear-gradient(90deg, var(--amber) 0%, #fff8e8 40%, var(--amber) 60%, var(--amber) 100%);
  background-size: 200%;
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: label-shimmer 6s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  will-change: background-position;
}
@keyframes label-shimmer {
  0%, 15%   { background-position: 100%; }
  100%      { background-position: -100%; }
}

/* ── STAT COUNTER ── */
.stat-num { position: relative; }
.stat-num.counting { color: var(--amber2); }

/* ── TWEAKS PANEL ── */
#tweaks-panel {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  background: #0c0f1e; border: 1px solid var(--amber-b);
  border-radius: 12px; padding: 20px; width: 260px;
  display: none; box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  font-size: 0.82rem;
}
#tweaks-panel h4 {
  color: var(--amber); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; font-family: var(--mono);
  margin-bottom: 16px;
}
.tweak-row { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.tweak-row label { color: var(--muted); font-size: 0.75rem; }
.tweak-row select, .tweak-row input[type=range] {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 5px 8px; border-radius: 5px;
  font-family: var(--sans); width: 100%;
  accent-color: var(--amber);
}
.tweak-row select { cursor: pointer; }
.tweak-row input[type=color] {
  width: 100%; height: 30px; border: 1px solid var(--border);
  border-radius: 5px; cursor: pointer; padding: 2px;
  background: var(--bg3);
}

/* ── LANG TOGGLE ── */
.lang-toggle {
  display: flex; background: var(--bg3); border: 1px solid var(--border);
  border-radius: 6px; overflow: hidden;
}
.lang-btn {
  background: none; border: none; color: var(--muted);
  font-family: var(--mono); font-size: 0.72rem;
  font-weight: 700; padding: 6px 12px; cursor: pointer;
  transition: all 0.2s; letter-spacing: 0.05em;
}
.lang-btn.active { background: var(--amber); color: #05060e; }
.lang-btn:hover:not(.active) { color: var(--text); }

/* ── DEMO FORM ── */
.demo-form {
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3);
}
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form-group label { font-size: 0.8rem; color: var(--muted); font-weight: 600; }
.form-group input, .form-group select {
  background: var(--bg3); border: 1px solid var(--border);
  color: var(--text); padding: 11px 14px; border-radius: 8px;
  font-family: var(--sans); font-size: 0.9rem;
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.form-group input:focus { border-color: var(--amber); }
.form-group input::placeholder { color: var(--muted); }

/* ── Input Error State ── */
.input-error {
  border-color: #e74c3c !important;
  box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}
.error-message {
  font-size: 0.75rem;
  color: #e74c3c;
  min-height: 1em;
  display: none;
  font-weight: 500;
}
.error-message[style*="display: block"] {
  animation: fadeInError 0.2s ease;
}

@keyframes fadeInError {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Global Form Error (above submit button) ── */
.form-error-global {
  font-size: 0.875rem;
  color: #e74c3c;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.3);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-weight: 500;
}
.form-error-global[style*="display: block"] {
  animation: fadeInError 0.2s ease;
}

/* ── Honeypot Spam Protection ── */
.honeypot-container {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  pointer-events: none;
}

/* ── Submit Button with Spinner ── */
#submitBtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
#submitBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
.btn-spinner {
  display: none;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.version-picker { display: flex; flex-direction: column; gap: 8px; }
.version-picker-group {
  border: none;
  padding: 0;
  margin: 0;
}
.version-cards { display: flex; flex-direction: column; gap: 8px; }
.version-cards input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.version-card {
  display: block; padding: 12px 16px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--bg3);
  cursor: pointer; transition: all 0.2s;
}
.version-card:hover { border-color: var(--amber-b); }
.version-card:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}
.version-card.selected { border-color: var(--amber); background: var(--amber-bg); }
.vc-name { font-size: 0.9rem; font-weight: 700; margin-bottom: 2px; display: flex; align-items: center; gap: 8px; }
.vc-desc { font-size: 0.75rem; color: var(--muted); }
.vc-popular {
  font-size: 0.65rem; background: var(--amber); color: #05060e;
  padding: 2px 7px; border-radius: 4px; font-weight: 700;
}

@media (max-width: 900px) {
  nav { padding: 16px 24px; }
  .nav-links { display: none; }
  #hero { padding: 100px 24px 60px; }
  .demo-grid, .values-grid, .steps, .cases-grid, .training-grid, .roi-strip, .cta-container, #agents .values-grid, #agents > div > div:first-of-type { grid-template-columns: 1fr !important; gap: 40px !important; }
  .steps::before { display: none; }
  .sec-inner { flex-direction: column; }
  footer { flex-direction: column; gap: 16px; text-align: center; }
  .roi-strip { padding: 32px !important; }
}

.training-grid, .roi-strip { display: grid; grid-template-columns: 1fr 1fr; align-items: center; max-width: 1200px; margin: 0 auto; }
.training-grid { gap: 80px; }
.roi-strip { gap: 48px; }
.cta-container { display: grid; grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }

/* ── UTILITY CLASSES - Extracted from inline styles ── */

/* ─ Layout ── */
.section-pad { padding: 120px 48px; }
.container-lg { max-width: 1200px; margin: 0 auto; }
.container-md { max-width: 1100px; margin: 0 auto; }

/* ─ Text alignment ── */
.tc { text-align: center; }
.tl { text-align: left; }

/* ─ Flexbox ── */
.flex-ac { display: flex; align-items: center; gap: 12px; }
.flex-as { display: flex; align-items: start; gap: 16px; }
.flex-col { display: flex; flex-direction: column; gap: 16px; }
.flex-col-14 { display: flex; flex-direction: column; gap: 14px; }
.flex-center { display: flex; align-items: center; justify-content: center; }

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

/* ─ Colors & Text ── */
.muted { color: var(--muted); }
.amber { color: var(--amber); }
.cyan { color: var(--cyan); }
.lh17 { line-height: 1.7; }
.lh175 { line-height: 1.75; }

/* ─ Spacing ── */
.mb-56 { margin-bottom: 56px; }
.mb-64 { margin-bottom: 64px; }
.mb-80 { margin-bottom: 80px; }
.mt-16 { margin-top: 16px; }
.mt-56 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }

/* ─ Borders ── */
.border-cyan-subtle { border-color: rgba(61, 213, 243, 0.15); }
.border-amber-subtle { border-color: rgba(240, 167, 66, 0.18); }

/* ─ Cards ── */
.stat-card {
  text-align: center; padding: 24px;
  background: var(--bg2); border-radius: 10px;
  border: 1px solid var(--border);
}

/* ─ Icon boxes ── */
.icon-box {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.icon-box-amber { background: rgba(240, 167, 66, 0.1); }
.icon-box-cyan { background: rgba(61, 213, 243, 0.08); }

/* ─ Typography helpers ── */
.fw-bold { font-weight: 700; }
.fs-09 { font-size: 0.9rem; }
.fs-08 { font-size: 0.8rem; }
.fs-072 { font-size: 0.72rem; }
.mb-4 { margin-bottom: 4px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mt-4 { margin-top: 4px; }

/* ─ Section heading ── */
.section-h3 {
  font-size: 1.8rem; font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.2;
}
.section-h4 {
  font-size: 1.2rem; font-weight: 700; margin-bottom: 24px;
}

/* ─ Slogan box ── */
.slogan-box {
  display: inline-block; position: relative;
  padding: 36px 56px;
  border: 1px solid rgba(240, 167, 66, 0.25);
  border-radius: 16px;
  background: rgba(240, 167, 66, 0.04);
}
.slogan-box::before {
  content: ''; position: absolute;
  top: -1px; left: 10%; right: 10%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}

/* ─ Training panel ── */
.training-panel {
  background: var(--bg2);
  border: 1px solid rgba(240, 167, 66, 0.18);
  border-radius: 16px;
  padding: 40px;
  position: relative; overflow: hidden;
}
.training-panel::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 60% 40%, rgba(240, 167, 66, 0.06), transparent 70%);
  pointer-events: none;
}

/* ─ Data grid cells ── */
.data-cell {
  text-align: center; padding: 16px;
  background: var(--bg3); border-radius: 8px;
  border: 1px solid var(--border);
}
.data-cell-lg {
  text-align: center; padding: 24px;
  background: var(--bg2); border-radius: 10px;
  border: 1px solid var(--border);
}

/* ─ ROI strip ── */
.roi-panel {
  background: var(--bg3);
  border: 1px solid rgba(240, 167, 66, 0.2);
  border-radius: 16px;
  padding: 40px;
}


/* ─ Gradient dividers ── */
.divider-amber {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
}
.divider-cyan {
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--cyan), transparent);
}

/* ─ CTA glow ── */
.cta-glow {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240, 167, 66, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ─ Form ── */
.form-btn-full { width: 100%; padding: 14px; font-size: 1rem; margin-top: 8px; }
.form-success { display: none; text-align: center; padding: 48px 32px; }

/* ─ Footer ── */
.footer-muted { color: var(--muted); }

/* ─ Terminal ── */
.term-dot-amber { background: #ff5f57; }
.term-dot-yellow { background: #ffbd2e; }
.term-dot-green { background: #28c840; }
.term-status-active { color: #4ddb8a; }

/* ─ Value num ── */
.val-num-lg { font-size: 1.5rem; font-weight: 700; }
.val-num-xl { font-size: 2.2rem; font-weight: 700; }

/* ─ Agent card icon ── */
.agent-icon { font-size: 1.4rem; }

/* ─ Training feature item ── */
.train-feat {
  display: flex; gap: 16px; align-items: start;
  padding: 18px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.3s;
}
.train-feat-icon {
  width: 36px; height: 36px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 1rem;
}
.train-feat-icon-amber { background: rgba(240, 167, 66, 0.1); }
.train-feat-icon-cyan { background: rgba(61, 213, 243, 0.08); }

/* ─ Training data grid ── */
.train-data-grid {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

/* ─ Training data cell ── */
.train-data-cell {
  text-align: center; padding: 16px;
  background: var(--bg3); border-radius: 8px;
  border: 1px solid var(--border);
}

/* ─ ROI stat cell ── */
.roi-stat {
  text-align: center; padding: 24px;
  background: var(--bg2); border-radius: 10px;
  border: 1px solid var(--border);
}
.roi-stat-lg {
  font-size: 2.2rem; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}

/* ─ CTA section ── */
.cta-glow-lg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 800px; height: 400px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(240, 167, 66, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

/* ─ Form button full ── */
.form-btn-full {
  width: 100%; padding: 14px; font-size: 1rem; margin-top: 8px;
}

/* ─ Form success ── */
.form-success {
  display: none; text-align: center; padding: 48px 32px;
}

/* ─ Slogan text ── */
.slogan-text {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  color: var(--text);
}

/* ─ Training anim label ── */
.train-anim-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.72rem;
  color: var(--muted);
  margin-bottom: 20px;
}

/* ─ Training anim pipeline ── */
.train-pipeline-label {
  color: var(--amber);
  margin-bottom: 8px;
}

/* ─ Agents sub text ── */
.agents-sub {
  margin: 16px auto 0; max-width: 660px;
}

/* ─ CTA sub ── */
.cta-sub {
  color: var(--muted);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 32px;
}

/* ─ Form group spacing ── */
.form-group { margin-bottom: 14px; }

/* ─ Training section heading ── */
.train-title {
  font-size: 1.8rem; font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.2;
}

/* ─ Training description ── */
.train-desc {
  color: var(--muted);
  line-height: 1.75;
  margin-top: 16px;
  margin-bottom: 28px;
}

/* ─ CTA form heading ── */
.cta-form-title {
  font-size: 1.2rem; font-weight: 700;
  margin-bottom: 24px;
}

/* ─ Form success heading ── */
.form-success-title {
  font-size: 1.4rem; font-weight: 700;
  margin-bottom: 12px;
  color: var(--amber);
}

/* ─ Form success text ── */
.form-success-text {
  color: var(--muted);
}

/* ─ Form note ── */
.form-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 12px;
}

/* ─ Training form item desc ── */
.train-item-desc {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─ Training item title ── */
.train-item-title {
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

/* ─ Case tags spacing ── */
.case-tags-mt14 { margin-top: 14px; }

/* ─ Slogan label ── */
.slogan-label { margin-bottom: 12px; }

/* ─ Training anim container ── */
.train-anim {
  height: 220px; overflow: hidden;
  position: relative;
  display: flex; flex-direction: column;
  justify-content: flex-end; gap: 0;
}

/* ─ Train data value ── */
.train-data-val {
  font-size: 1.5rem; font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
}
.train-data-val-amber { color: var(--amber); }
.train-data-val-cyan { color: var(--cyan); }

/* ─ Margin top 4px ── */
.mt-4 { margin-top: 4px; }

/* ─ ROI stat color variants ── */
.roi-stat-amber { color: var(--amber); }
.roi-stat-cyan { color: var(--cyan); }

/* ─ Training container relative ── */
.train-rel { position: relative; }

/* ─ Section overflow wrapper ── */
.section-ovf { position: relative; overflow: hidden; }

/* ─ Background variant for sections ── */
.bg2 { background: var(--bg2); }

/* ─ Form success icon ── */
.form-success-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

/* ─ Security heading accent ── */
.sec-heading-amber { color: var(--amber); }
