/* ==========================================================================
   AgentTide v2 — Dark theme, vibrant accents (styling reference: agentstide.com)
   agenttide.co.in
   ========================================================================== */

:root {
  /* Base brand */
  --navy: #001F3F;
  --blue: #0A5CA8;
  --cyan: #00D4FF;
  --white: #FFFFFF;

  /* v2 dark surface system */
  --bg: #0A0F1A;
  --bg-panel: #0F1624;
  --bg-card: #131B2B;
  --border: rgba(255,255,255,.08);
  --text-primary: #F4F7FB;
  --text-secondary: #9FB3C8;
  --text-muted: #7C8CA0; /* passes WCAG AA (5.0:1+) against all dark surfaces used on this site */

  /* v2 vibrant accents */
  --green: #22D67F;
  --amber: #F5A623;
  --purple: #9B6BFF;
  --red: #FF5D5D;

  --gradient-hero: linear-gradient(180deg, #0D1524 0%, #0A0F1A 100%);
  --gradient-accent: linear-gradient(45deg, var(--cyan) 0%, var(--blue) 100%);

  --font-brand: 'Poppins', 'Montserrat', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;

  --space-1: 4px; --space-2: 8px; --space-3: 16px; --space-4: 24px;
  --space-5: 32px; --space-6: 48px; --space-7: 64px; --space-8: 96px;

  --radius-sm: 8px; --radius-md: 16px; --radius-lg: 24px; --radius-pill: 999px;
  --shadow-md: 0 8px 32px rgba(0,0,0,.35);
  --shadow-glow-cyan: 0 0 40px rgba(0,212,255,.18);

  --max-width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

h1, h2, h3, h4 {
  font-family: var(--font-brand);
  color: var(--text-primary);
  line-height: 1.15;
  margin: 0 0 var(--space-3);
}
h1 { font-size: 56px; font-weight: 700; letter-spacing: -1.5px; }
h2 { font-size: 38px; font-weight: 700; letter-spacing: -0.8px; }
h3 { font-size: 24px; font-weight: 600; }
h4 { font-size: 18px; font-weight: 600; color: var(--text-primary); }

p { margin: 0 0 var(--space-3); }
a { color: var(--cyan); text-decoration: none; }
a:hover { color: var(--white); }

.hl { color: var(--cyan); }

/* Pill eyebrow tag (matches reference's rounded pill tag) */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-brand); font-size: 12.5px; font-weight: 700;
  color: var(--cyan); text-transform: uppercase; letter-spacing: 1.5px;
  background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.3);
  padding: 8px 16px; border-radius: var(--radius-pill); margin-bottom: var(--space-4);
}

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-4); }

.logo-wordmark { font-family: var(--font-brand); font-weight: 700; font-size: 26px; letter-spacing: -1px; color: var(--white); }
.logo-wordmark .dot { color: var(--cyan); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-family: var(--font-brand); font-weight: 700; font-size: 15px;
  padding: 15px 30px; border-radius: var(--radius-sm); border: none;
  cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #06301C; }
.btn-primary:hover { background: #3CE996; box-shadow: 0 8px 24px rgba(34,214,127,.35); transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--text-primary); border: 1.5px solid rgba(255,255,255,.2); }
.btn-secondary:hover { border-color: var(--cyan); color: var(--cyan); }
.btn-dashboard { background: var(--white); color: var(--navy); font-weight: 800; box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.btn-dashboard:hover { background: var(--cyan); color: #06301C; }
.btn-outline { background: transparent; color: var(--cyan); border: 1.5px solid rgba(0,212,255,.4); }
.btn-outline:hover { background: rgba(0,212,255,.1); }

/* Cards */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-5);
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.card:hover {
  border-color: rgba(0,212,255,.35); transform: translateY(-5px);
  box-shadow: 0 20px 48px rgba(0,0,0,.35), 0 0 0 1px rgba(0,212,255,.12), 0 0 32px rgba(0,212,255,.14);
}
@media (prefers-reduced-motion: reduce) {
  .card { transition: none; }
  .card:hover { transform: none; }
}

/* Gradient-mesh + grain texture — used on hero-moment sections only */
.mesh-bg { position: relative; overflow: hidden; }
.mesh-bg::before {
  content: ""; position: absolute; inset: -15%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(circle at 18% 22%, rgba(0,212,255,.22), transparent 45%),
    radial-gradient(circle at 82% 12%, rgba(155,107,255,.18), transparent 42%),
    radial-gradient(circle at 55% 92%, rgba(34,214,127,.16), transparent 48%);
  filter: blur(60px);
}
.mesh-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.mesh-bg > .container { position: relative; z-index: 1; }

/* ROI calculator */
.roi-card {
  max-width: 780px; margin: var(--space-6) auto 0; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-6); position: relative; z-index: 1;
}
.roi-inputs { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); }
.roi-field label {
  display: block; font-size: 13.5px; font-weight: 600; color: var(--text-secondary);
  margin-bottom: var(--space-2); line-height: 1.4;
}
.roi-field input {
  width: 100%; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-panel); color: var(--text-primary);
  font-family: var(--font-brand); font-size: 20px; font-weight: 700;
  transition: border-color .15s ease;
}
.roi-field input:focus { outline: none; border-color: var(--cyan); }
.roi-results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4);
  margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--border);
}
.roi-result { text-align: center; }
.roi-result-num { font-family: var(--font-brand); font-weight: 700; font-size: 28px; color: var(--text-primary); }
.roi-result-label { font-size: 12.5px; color: var(--text-muted); margin-top: 4px; }
.roi-result-highlight .roi-result-num { color: var(--green); }
.roi-disclosure { font-size: 12.5px; color: var(--text-muted); margin-top: var(--space-5); line-height: 1.6; }
.roi-disclosure strong { color: var(--text-secondary); }
@media (max-width: 640px) {
  .roi-inputs, .roi-results { grid-template-columns: 1fr; }
}

.trust-line {
  text-align: center; font-size: 13.5px; color: var(--text-muted);
  margin: var(--space-3) 0 0; max-width: 480px; margin-left: auto; margin-right: auto;
}

/* Gradient text accent */
.hl-gradient {
  background: linear-gradient(90deg, var(--cyan), var(--green));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Scroll-reveal (progressive enhancement — JS adds .in-view; CSS alone keeps content visible) */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.16,.84,.44,1), transform .7s cubic-bezier(.16,.84,.44,1); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
.grid > .reveal:nth-child(1) { transition-delay: 0ms; }
.grid > .reveal:nth-child(2) { transition-delay: 70ms; }
.grid > .reveal:nth-child(3) { transition-delay: 140ms; }
.grid > .reveal:nth-child(4) { transition-delay: 210ms; }
.grid > .reveal:nth-child(5) { transition-delay: 280ms; }
.grid > .reveal:nth-child(6) { transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Clickable card with a demo video attached */
.card-video { position: relative; cursor: pointer; padding-bottom: var(--space-6); }
.card-video:hover { border-color: rgba(34,214,127,.45); }
.card-video:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.play-badge {
  position: absolute; left: var(--space-5); bottom: var(--space-4);
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-brand); font-weight: 700; font-size: 12.5px;
  color: var(--green); background: rgba(34,214,127,.12);
  border: 1px solid rgba(34,214,127,.35); border-radius: var(--radius-pill);
  padding: 6px 12px;
}
.card-video:hover .play-badge { background: var(--green); color: #06301C; }

/* Video modal (agent demo videos) */
.video-modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; padding: var(--space-4); }
.video-modal.open { display: flex; }
.video-modal-backdrop { position: absolute; inset: 0; background: rgba(4,7,12,.85); backdrop-filter: blur(2px); }
.video-modal-dialog { position: relative; width: 100%; max-width: 900px; }
.video-modal-frame { position: relative; width: 100%; padding-top: 56.25%; border-radius: var(--radius-md); overflow: hidden; background: #000; box-shadow: var(--shadow-md); }
.video-modal-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-modal-close {
  position: absolute; top: -46px; right: 0; width: 36px; height: 36px;
  border-radius: 50%; border: 1px solid var(--border); background: var(--bg-card);
  color: var(--text-primary); font-size: 16px; cursor: pointer;
}
.video-modal-close:hover { background: var(--cyan); color: #06301C; border-color: var(--cyan); }

/* Cookie consent banner */
.cookie-banner {
  position: fixed; left: var(--space-4); right: var(--space-4); bottom: var(--space-4);
  z-index: 300; display: none; align-items: center; gap: var(--space-4);
  max-width: 760px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4) var(--space-5);
  box-shadow: var(--shadow-md); flex-wrap: wrap;
}
.cookie-banner.open { display: flex; }
.cookie-banner p { margin: 0; font-size: 14px; color: var(--text-secondary); flex: 1; min-width: 240px; }
.cookie-banner-actions { display: flex; gap: var(--space-2); flex-shrink: 0; }
.cookie-banner .btn { padding: 10px 20px; font-size: 13.5px; }

/* Chat assistant */
.chat-fab {
  position: fixed; right: 24px; bottom: 24px; z-index: 250;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(0,212,255,.35);
  transition: bottom .2s ease, transform .2s ease;
}
.chat-fab:hover { transform: scale(1.06); }
.chat-fab.raised { bottom: 112px; }
.chat-fab .icon-close { display: none; }
.chat-fab.open .icon-chat { display: none; }
.chat-fab.open .icon-close { display: block; }

.chat-panel {
  position: fixed; right: 24px; bottom: 96px; z-index: 250;
  width: 370px; max-width: calc(100vw - 32px);
  height: 530px; max-height: calc(100vh - 140px);
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  display: none; flex-direction: column; overflow: hidden;
  transition: bottom .2s ease;
}
.chat-panel.open { display: flex; }
.chat-panel.raised { bottom: 184px; }

.chat-header { display: flex; align-items: center; gap: var(--space-3); padding: var(--space-4); background: var(--gradient-hero); flex-shrink: 0; }
.chat-header .title { font-family: var(--font-brand); font-weight: 700; color: #fff; font-size: 15px; margin: 0; }
.chat-header .subtitle { font-size: 12px; color: rgba(255,255,255,.75); margin: 0; }
.chat-header-close { margin-left: auto; background: none; border: none; color: #fff; cursor: pointer; font-size: 18px; opacity: .8; padding: 4px; }
.chat-header-close:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-3); }
.chat-msg { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.55; white-space: pre-line; }
.chat-msg.bot { align-self: flex-start; background: var(--bg-panel); color: var(--text-secondary); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--cyan); color: #06301C; font-weight: 600; border-bottom-right-radius: 4px; }
.chat-msg a { color: var(--cyan); text-decoration: underline; }

.chat-quick-replies { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 var(--space-4) var(--space-3); flex-shrink: 0; }
.chat-chip {
  background: rgba(0,212,255,.1); border: 1px solid rgba(0,212,255,.3); color: var(--cyan);
  font-size: 12.5px; font-weight: 600; padding: 8px 14px; border-radius: var(--radius-pill);
  cursor: pointer; transition: background .15s ease, color .15s ease;
}
.chat-chip:hover { background: var(--cyan); color: #06301C; }

.chat-input-row { display: flex; gap: 8px; padding: var(--space-3); border-top: 1px solid var(--border); flex-shrink: 0; }
.chat-input-row input {
  flex: 1; background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 10px 14px; color: var(--text-primary); font-size: 13.5px;
}
.chat-input-row input:focus { outline: none; border-color: var(--cyan); }
.chat-input-row button {
  background: var(--cyan); color: #06301C; border: none; border-radius: var(--radius-sm);
  padding: 0 16px; cursor: pointer; font-weight: 700; font-size: 13px;
}

@media (max-width: 480px) {
  .chat-panel { right: 12px; left: 12px; width: auto; max-width: none; bottom: 88px; height: 65vh; max-height: none; }
  .chat-panel.raised { bottom: 168px; }
  .chat-fab { right: 16px; bottom: 16px; }
  .chat-fab.raised { bottom: 108px; }
}

/* Badge chip (colored icon/number badge, matches reference's category chips) */
.badge-chip {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; font-weight: 700;
  font-family: var(--font-brand); font-size: 17px; margin-bottom: var(--space-3);
}
.badge-cyan   { background: rgba(0,212,255,.14); color: var(--cyan); }
.badge-green  { background: rgba(34,214,127,.14); color: var(--green); }
.badge-amber  { background: rgba(245,166,35,.14); color: var(--amber); }
.badge-purple { background: rgba(155,107,255,.14); color: var(--purple); }

/* Stat bar (matches reference's 56+ / 13 / 7 stat row) */
.stat-bar {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4);
  background: var(--bg-panel); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5) var(--space-4);
  margin-top: var(--space-6);
}
.stat { text-align: center; }
.stat .num {
  font-family: var(--font-brand); font-weight: 700; font-size: 32px; color: var(--cyan);
  line-height: 1;
}
.stat .label {
  margin-top: 6px; font-size: 13px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
}

/* Problem list w/ colored x badges */
.problem-list { list-style: none; margin: 0; padding: 0; }
.problem-list li {
  display: flex; align-items: flex-start; gap: var(--space-3);
  padding: var(--space-3) 0; border-bottom: 1px solid var(--border);
  font-size: 16.5px; color: var(--text-secondary);
}
.problem-list li:last-child { border-bottom: none; }
.problem-list .x {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: rgba(255,93,93,.14); color: var(--red); display: flex;
  align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-top: 2px;
}

/* Track cards (color-coded per niche, like reference's category color-coding) */
.track { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); background: var(--bg-card); }
.track-head { padding: var(--space-5) var(--space-5) var(--space-4); position: relative; }
.track-head .tag {
  display: inline-block; font-family: var(--font-brand); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px; padding: 5px 12px; border-radius: var(--radius-pill);
  margin-bottom: var(--space-3);
}
.track-amber .track-head .tag { background: rgba(245,166,35,.15); color: var(--amber); }
.track-cyan  .track-head .tag { background: rgba(0,212,255,.15); color: var(--cyan); }
.track-head h3 { margin-bottom: 6px; }
.track-head p { color: var(--text-muted); margin: 0; font-size: 14px; }
.track-body { padding: var(--space-4) var(--space-5) var(--space-5); }
.track-item { display: flex; gap: var(--space-3); padding: var(--space-3) 0; border-bottom: 1px solid var(--border); }
.track-item:last-child { border-bottom: none; padding-bottom: 0; }
.track-item .dot { flex-shrink: 0; width: 9px; height: 9px; border-radius: 50%; margin-top: 8px; }
.track-amber .track-item .dot { background: var(--amber); }
.track-cyan .track-item .dot { background: var(--cyan); }
.track-item h4 { margin-bottom: 4px; font-size: 16px; }
.track-item p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Track contact line (phone, inside solution/training tiles) */
.track-contact {
  display: flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4); padding-top: var(--space-4);
  border-top: 1px solid var(--border); font-size: 14.5px; color: var(--text-secondary);
}
.track-contact a { color: var(--text-primary); font-weight: 600; }
.track-contact a:hover { color: var(--cyan); }
.track-contact svg { flex-shrink: 0; }

/* Training week timeline */
.week-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-4);
}
.week-card .wk { font-family: var(--font-brand); font-weight: 700; font-size: 13px; color: var(--purple); letter-spacing: 1px; }
.week-card .days { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }
.week-card h4 { margin-top: var(--space-2); margin-bottom: 0; font-size: 17px; }

/* Student Dashboard tabs */
.dash-tabs {
  display: flex; gap: var(--space-2); justify-content: center; flex-wrap: wrap;
  margin-top: var(--space-6); margin-bottom: var(--space-6);
}
.dash-tab {
  background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary);
  font-family: var(--font-brand); font-weight: 700; font-size: 14.5px;
  padding: 14px 26px; border-radius: var(--radius-pill); cursor: pointer;
  transition: all .15s ease;
}
.dash-tab:hover { border-color: rgba(0,212,255,.4); color: var(--text-primary); }
.dash-tab.active { background: var(--cyan); color: #06301C; border-color: var(--cyan); }
.dash-panel { display: none; }
.dash-panel.active { display: block; }

/* Pre-assessment quiz */
.assessment-card {
  max-width: 640px; margin: var(--space-6) auto 0; background: var(--bg-card);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--space-6);
}
.assessment-progress-labels {
  display: flex; justify-content: space-between; font-size: 13px;
  color: var(--text-muted); margin-bottom: var(--space-2);
}
#assessmentPercentLabel { color: var(--cyan); font-weight: 700; }
.assessment-progress-track { width: 100%; height: 6px; background: var(--bg-panel); border-radius: var(--radius-pill); overflow: hidden; }
.assessment-progress-fill { height: 100%; background: linear-gradient(90deg, var(--cyan), var(--blue)); border-radius: var(--radius-pill); transition: width .25s ease; width: 0%; }

.assessment-question { margin-top: var(--space-6); }
.assessment-question h4 { font-size: 19px; margin-bottom: var(--space-4); }
.assessment-options { display: flex; flex-direction: column; gap: 10px; }
.assessment-option {
  display: block; width: 100%; text-align: left; background: var(--bg-panel);
  border: 1.5px solid var(--border); color: var(--text-secondary);
  font-family: var(--font-body); font-size: 14.5px; font-weight: 500;
  padding: 14px 18px; border-radius: var(--radius-sm); cursor: pointer; transition: all .15s ease;
}
.assessment-option:hover { border-color: rgba(0,212,255,.4); color: var(--text-primary); }
.assessment-option.selected { background: rgba(0,212,255,.12); border-color: var(--cyan); color: var(--text-primary); font-weight: 700; }

.assessment-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-6); }
.assessment-nav .btn:disabled { opacity: .4; cursor: not-allowed; }

.assessment-result { text-align: center; padding: var(--space-4) 0; }
.assessment-result .result-icon {
  width: 64px; height: 64px; border-radius: 50%; margin: 0 auto var(--space-4);
  background: radial-gradient(circle, var(--cyan) 0%, var(--blue) 70%);
  display: flex; align-items: center; justify-content: center;
}

/* Generic callout box (mission statement, etc.) */
.callout-box {
  background: var(--bg-card); border: 1px solid rgba(0,212,255,.25);
  border-radius: var(--radius-lg); padding: var(--space-6) var(--space-6);
}
.callout-box h3 { color: var(--text-primary); }
.callout-box p { color: var(--text-secondary); font-size: 16.5px; line-height: 1.7; }

/* Capstone card + tags */
.capstone-card {
  background: var(--bg-card); border: 1px solid rgba(155,107,255,.25);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-3); }
.tag-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(155,107,255,.12); border: 1px solid rgba(155,107,255,.3);
  color: var(--purple); font-size: 13px; font-weight: 600;
  padding: 7px 14px; border-radius: var(--radius-sm);
}

/* Contact form */
.contact-form { max-width: 560px; margin: var(--space-5) auto 0; text-align: left; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); }
.form-field { margin-bottom: var(--space-3); }
.form-field label {
  display: block; font-family: var(--font-brand); font-weight: 600;
  font-size: 13.5px; color: var(--text-primary); margin-bottom: 6px;
}
.form-field input, .form-field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 15px;
  color: var(--text-primary); background: var(--bg-card); transition: border-color .15s ease;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--cyan);
}
.form-field textarea { resize: vertical; min-height: 110px; }
.hidden-field { position: absolute; left: -9999px; opacity: 0; }
.form-note { font-size: 13px; color: var(--text-muted); margin-top: var(--space-3); }
.form-success {
  display: none; background: rgba(34,214,127,.1); border: 1px solid rgba(34,214,127,.35);
  color: var(--green); padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm);
  font-weight: 600; margin-top: var(--space-4);
}

/* Footer socials */
.footer-socials { display: flex; gap: var(--space-3); margin-top: var(--space-4); }
.footer-socials a {
  width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center; transition: background .15s ease, border-color .15s ease;
}
.footer-socials a:hover { background: var(--cyan); border-color: var(--cyan); }
.footer-socials a:hover svg path, .footer-socials a:hover svg rect, .footer-socials a:hover svg circle { stroke: #06301C; }

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* Steps */
.step .step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px; font-family: var(--font-brand);
  font-weight: 700; font-size: 17px; margin-bottom: var(--space-3);
}
.step:nth-child(1) .step-num { background: rgba(0,212,255,.14); color: var(--cyan); }
.step:nth-child(2) .step-num { background: rgba(34,214,127,.14); color: var(--green); }
.step:nth-child(3) .step-num { background: rgba(245,166,35,.14); color: var(--amber); }
.step p { color: var(--text-muted); font-size: 15px; }

/* Sections */
.section { padding: var(--space-8) 0; }
.section-panel { background: var(--bg-panel); }
#problem, #about, #how-it-works, #agents, #solutions, #dashboard, #contact {
  scroll-margin-top: 108px;
}
.section-subtitle { max-width: 640px; font-size: 18px; color: var(--text-secondary); }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* Nav — floating glass pill, sticky */
.navbar {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: 14px 16px; position: sticky; top: 16px; z-index: 100;
  background: rgba(13, 19, 32, .62);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 32px rgba(0,0,0,.28);
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.navbar.is-scrolled {
  background: rgba(10, 14, 24, .82);
  box-shadow: 0 12px 40px rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.14);
}
@media (prefers-reduced-motion: reduce) {
  .navbar { transition: none; }
}
.nav-links { display: flex; align-items: center; gap: var(--space-4); list-style: none; margin: 0; padding: 0; white-space: nowrap; }
.nav-links a { color: var(--text-secondary); font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { color: var(--cyan); }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-cta .btn { padding: 11px 20px; font-size: 14px; white-space: nowrap; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text-primary); border-radius: 2px; }
.mobile-menu {
  display: none; position: absolute; top: 100%; left: 0; right: 0;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 0 0 var(--radius-md) var(--radius-md); padding: var(--space-4); z-index: 50;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: var(--space-3) 0; color: var(--text-primary); font-weight: 600; border-bottom: 1px solid var(--border); }
.mobile-menu a:last-child { border-bottom: none; }

/* Footer */
.footer { background: #060910; padding: var(--space-7) 0 var(--space-4); border-top: 1px solid var(--border); }
.footer a { color: var(--text-muted); }
.footer a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border); margin-top: var(--space-6);
  padding-top: var(--space-4); font-size: 13px; color: var(--text-muted);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2);
}

.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 860px) {
  h1 { font-size: 38px; }
  h2 { font-size: 28px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-bar { grid-template-columns: repeat(2, 1fr); }
  .nav-links, .nav-cta .btn-secondary, .nav-cta .btn-dashboard { display: none; }
  .nav-toggle { display: flex; }
  .section { padding: var(--space-7) 0; }
}
