/* VEP Landing — "Neural Pulse" v7
   Design concept: Single-column narrative flow with scroll-driven reveals,
   pain-first hero, warm CTA accents on cool dark canvas, editorial typography.
   Kills the intro animation gate — content visible in < 0.5s. */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,300..700&display=swap');

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

:root {
  color-scheme: dark;
  --bg: #06070b;
  --bg2: #0c0e16;
  --surface: rgba(255,255,255,0.04);
  --surface-hover: rgba(255,255,255,0.08);
  --line: rgba(255,255,255,0.07);
  --line-bright: rgba(255,255,255,0.18);
  --accent: #5b8def;
  --accent-glow: rgba(91,141,239,0.25);
  --cta: #f59e0b;
  --cta-hover: #fbbf24;
  --cta-glow: rgba(245,158,11,0.3);
  --success: #22c55e;
  --text: #edf2f7;
  --text2: rgba(255,255,255,0.72);
  --text3: rgba(255,255,255,0.50);
  --serif: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --max-w: 1140px;
  --gutter: clamp(16px, 4vw, 48px);
}

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(255,255,255,0.12) transparent;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* ─── SKIP / A11Y ─── */
.skip-to-content {
  position: absolute; top: -100%; left: 16px; z-index: 9999;
  padding: 8px 16px; background: var(--cta); color: #000;
  border-radius: 0 0 6px 6px; font-size: 14px; font-weight: 600;
  text-decoration: none; transition: top 0.2s;
}
.skip-to-content:focus { top: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ─── ASSEMBLY OVERLAY — instant dismiss ─── */
.assembly-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  opacity: 1; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.assembly-overlay.done { opacity: 0; visibility: hidden; pointer-events: none; }
.assembly-logo { font-family: var(--serif); font-size: 56px; font-weight: 400; letter-spacing: 6px; color: var(--text); animation: logo-in 0.6s var(--ease) forwards; }
@keyframes logo-in { 0% { opacity: 0; transform: scale(0.7); } 100% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .assembly-overlay { display: none !important; }
  .assembly-logo { animation: none; }
  [class*="anim-block"] { opacity: 1 !important; transform: none !important; }
}

/* ─── ANIM BLOCKS — scroll-triggered reveals ─── */
.anim-block { opacity: 0; transform: translateY(30px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.anim-block[data-from="left"] { transform: translateX(-40px); }
.anim-block[data-from="right"] { transform: translateX(40px); }
.anim-block[data-from="scale"] { transform: scale(0.92); }
.anim-block[data-from="top"] { transform: translateY(-20px); }
.anim-block[data-from="bottom"] { transform: translateY(30px); }
.anim-block.in { opacity: 1; transform: none; }

/* ─── TOPBAR ─── */
.topbar {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--gutter);
  height: 56px;
  background: rgba(6,7,11,0.85);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  border-bottom: 1px solid var(--line);
}
.topbar-left { display: flex; align-items: center; gap: 8px; }
.brand {
  font-family: var(--serif);
  font-size: 22px; font-weight: 400; color: var(--text);
  text-decoration: none; letter-spacing: 3px;
}
.brand-sep { color: var(--text3); font-size: 14px; }
.brand-sub { color: var(--text3); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; }
.topbar-right { display: flex; align-items: center; gap: 6px; }
.topbar-link {
  color: var(--text2); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 6px 12px; border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.topbar-link:hover { color: var(--text); background: var(--surface-hover); }
.topbar-login {
  color: var(--text2); text-decoration: none; font-size: 13px; font-weight: 500;
  padding: 6px 14px; border-radius: 6px; border: 1px solid var(--line-bright);
  transition: all 0.2s;
}
.topbar-login:hover { color: var(--text); border-color: var(--text3); }
.top-cta {
  background: var(--cta); color: #000; font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 8px; text-decoration: none;
  transition: all 0.25s var(--ease); box-shadow: 0 0 0 0 var(--cta-glow);
}
.top-cta:hover { background: var(--cta-hover); box-shadow: 0 0 20px var(--cta-glow); transform: translateY(-1px); }

/* ─── MOBILE HERO ─── */
.mobile-hero { display: none; }
@media (max-width: 900px) {
  .mobile-hero {
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 48px var(--gutter) 32px; gap: 16px;
  }
  .mobile-hero-title {
    font-family: var(--serif); font-size: clamp(28px, 7vw, 42px);
    line-height: 1.15; color: var(--text);
  }
  .mobile-hero-sub { color: var(--text2); font-size: 15px; max-width: 360px; }
  .mobile-hero-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
  .mobile-hero-cta {
    background: var(--cta); color: #000; font-weight: 700; font-size: 15px;
    padding: 12px 28px; border-radius: 10px; text-decoration: none;
    box-shadow: 0 4px 20px var(--cta-glow);
  }
  .mobile-hero-login, .mobile-hero-demo {
    color: var(--text2); text-decoration: none; font-size: 14px; padding: 10px 16px;
    border: 1px solid var(--line-bright); border-radius: 10px;
  }
}

/* ═══════════════════════════════════════════
   MAIN GRID — narrative single-column on desktop
   Left cases + center portal + right chat
   ═══════════════════════════════════════════ */
.vep-shell {
  min-height: 100vh; display: flex; flex-direction: column;
}

.main-grid {
  flex: 1; display: grid;
  grid-template-columns: 1fr minmax(200px, 320px) 1fr;
  gap: 0;
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px var(--gutter) 0;
  min-height: calc(100vh - 56px - 48px);
}

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--gutter);
    min-height: auto;
  }
}

/* ─── LEFT COLUMN: CASES ─── */
.col-cases { display: flex; flex-direction: column; gap: 2px; overflow-y: auto; padding-right: 16px; }
.col-cases::-webkit-scrollbar { width: 3px; }
.col-cases::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 3px; }

.panel-group { display: flex; flex-direction: column; gap: 2px; }
.panel-features { display: none; }
.panel-features.active { display: flex; }
.panel-cases.active { display: flex; }

.case {
  padding: 20px 24px;
  border-radius: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}
.case:hover {
  background: var(--surface);
  border-color: var(--line);
}
.case[aria-expanded="true"] {
  background: var(--surface);
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(91,141,239,0.08);
}

.case-icon { color: var(--accent); margin-bottom: 10px; opacity: 0.8; }
.case-body h2 {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 8px;
}
.case-body p {
  color: var(--text2);
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 52ch;
}
.case-metric {
  display: block;
  margin-top: 10px;
  font-size: 11.5px;
  color: var(--accent);
  letter-spacing: 0.3px;
  font-weight: 500;
}
.case-expand {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), opacity 0.3s;
  opacity: 0;
}
.case[aria-expanded="true"] .case-expand { max-height: 500px; opacity: 1; }

.workflow { padding: 16px 0 8px; display: flex; flex-direction: column; gap: 0; }
.wf-step { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.wf-num {
  width: 28px; height: 28px; min-width: 28px;
  border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.wf-text { font-size: 13px; color: var(--text2); line-height: 1.5; }
.wf-text strong { color: var(--text); }
.wf-line {
  width: 1px; height: 16px; margin-left: 13px;
  background: linear-gradient(to bottom, var(--accent), transparent);
}

/* ─── CENTER: PORTAL ─── */
.col-portal {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; padding: 24px 0;
}

.portal {
  position: relative; width: 240px; height: 240px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border-radius: 50%;
  transition: transform 0.4s var(--ease);
}
.portal:hover { transform: scale(1.05); }

.portal-ring {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--line-bright);
  animation: ring-spin linear infinite;
}
.ring-1 { width: 100%; height: 100%; animation-duration: 30s; }
.ring-2 { width: 75%; height: 75%; animation-duration: 20s; animation-direction: reverse; border-color: var(--accent); opacity: 0.3; }
.ring-3 { width: 50%; height: 50%; animation-duration: 15s; border-color: var(--cta); opacity: 0.2; }
@keyframes ring-spin { to { transform: rotate(360deg); } }

.portal-core {
  width: 80px; height: 80px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  filter: blur(20px);
  animation: core-pulse 3s ease-in-out infinite;
}
@keyframes core-pulse { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }

.portal-text {
  position: absolute; text-align: center;
  pointer-events: none;
}
.portal-label {
  font-family: var(--serif);
  font-size: 20px; color: var(--text); font-weight: 400;
}
.portal-label-sub { display: block; font-size: 12px; color: var(--text3); text-transform: uppercase; letter-spacing: 2px; margin-top: 4px; }
.portal-hint { position: absolute; bottom: -30px; font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; animation: hint-fade 2s ease-in-out infinite; }
@keyframes hint-fade { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }

.stats-row {
  display: flex; gap: 24px; margin-top: 32px; justify-content: center;
}
.stat { text-align: center; }
.stat-val {
  display: block; font-family: var(--serif);
  font-size: 28px; color: var(--cta); font-weight: 400;
}
.stat-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; }

/* ─── RIGHT: CHAT ─── */
.col-chat {
  display: flex; flex-direction: column;
  padding-left: 16px;
}
.chat-section-title {
  font-family: var(--serif);
  font-size: 15px; color: var(--text3);
  text-transform: uppercase; letter-spacing: 2px;
  margin-bottom: 12px;
  text-align: right;
}

.chat-panel {
  flex: 1;
  display: flex; flex-direction: column;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  max-height: calc(100vh - 200px);
}

.chat-employees {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.emp-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--cta));
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: #fff;
}
.emp-status { font-size: 13px; color: var(--text2); flex: 1; }
.emp-status strong { color: var(--text); }
.emp-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--success); margin-right: 4px;
  animation: dot-blink 2s ease-in-out infinite;
}
@keyframes dot-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
.chat-msg-count { font-size: 11px; color: var(--text3); white-space: nowrap; }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.chat-messages::-webkit-scrollbar { width: 3px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--line-bright); border-radius: 3px; }

.chat-suggestions { display: flex; flex-direction: column; gap: 6px; }
.chat-suggest-label { font-size: 12px; color: var(--text3); margin-bottom: 2px; }
.chat-suggest-chip {
  background: var(--surface); border: 1px solid var(--line);
  color: var(--text2); font-size: 13px; padding: 8px 14px;
  border-radius: 10px; cursor: pointer; text-align: left;
  transition: all 0.2s; font-family: var(--sans);
}
.chat-suggest-chip:hover { background: var(--surface-hover); border-color: var(--accent); color: var(--text); }

.msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px;
  font-size: 14px; line-height: 1.55;
  animation: msg-in 0.3s var(--ease-bounce);
}
@keyframes msg-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.msg.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.msg.assistant { align-self: flex-start; background: var(--surface); color: var(--text2); border-bottom-left-radius: 4px; border: 1px solid var(--line); }

.chat-input {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.chat-input input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 14px; font-family: var(--sans);
}
.chat-input input::placeholder { color: var(--text3); }
.send-btn {
  background: var(--cta); border: none; border-radius: 10px;
  padding: 8px 12px; cursor: pointer; color: #000;
  transition: all 0.2s;
}
.send-btn:hover { background: var(--cta-hover); transform: scale(1.05); }
.send-btn svg { stroke: #000; }

/* ─── BOTTOM BAR ─── */
.bottombar {
  padding: 10px var(--gutter);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  background: rgba(6,7,11,0.9);
  backdrop-filter: blur(8px);
}
.bottom-items { display: flex; align-items: center; gap: 4px; flex: 1; flex-wrap: wrap; }
.bottom-items-features { display: none; }
.bottom-items-features.active { display: flex; }
.bottom-items-cases.active { display: flex; }
.bottom-item {
  background: none; border: none; color: var(--text3); font-size: 12px;
  padding: 4px 10px; cursor: pointer; font-family: var(--sans);
  border-radius: 4px; transition: all 0.2s; white-space: nowrap;
  text-transform: uppercase; letter-spacing: 0.8px; font-weight: 500;
}
.bottom-item:hover { color: var(--text); background: var(--surface-hover); }
.dot-sep { color: var(--text3); font-size: 8px; opacity: 0.4; }
.dot-sep::after { content: '\00B7'; }

.mode-tabs { display: flex; gap: 2px; background: var(--surface); border-radius: 8px; padding: 2px; }
.mode-tab {
  background: none; border: none; color: var(--text3); font-size: 12px;
  padding: 5px 14px; cursor: pointer; border-radius: 6px;
  font-family: var(--sans); font-weight: 500; transition: all 0.2s;
}
.mode-tab.active { background: var(--accent); color: #fff; }

.bottom-cta {
  background: var(--cta); color: #000; font-size: 12px; font-weight: 700;
  padding: 7px 18px; border-radius: 8px; text-decoration: none;
  white-space: nowrap; transition: all 0.2s;
}
.bottom-cta:hover { background: var(--cta-hover); box-shadow: 0 0 16px var(--cta-glow); }

/* ═══════════════════════════════════════════
   SOCIAL PROOF SECTION
   ═══════════════════════════════════════════ */
.social-proof {
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
}
.social-proof-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.social-proof-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2; margin-bottom: 40px;
}
.social-proof-metrics {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px; margin-bottom: 40px;
}
.sp-metric {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  transition: all 0.3s;
}
.sp-metric:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 8px 30px rgba(91,141,239,0.08); }
.sp-metric-val {
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 48px);
  color: var(--cta);
  display: block; line-height: 1;
}
.sp-metric-label { font-size: 13px; color: var(--text3); margin-top: 8px; display: block; }
.sp-cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.sp-cta-primary {
  background: var(--cta); color: #000; font-weight: 700; font-size: 16px;
  padding: 14px 36px; border-radius: 12px; text-decoration: none;
  box-shadow: 0 4px 24px var(--cta-glow);
  transition: all 0.25s var(--ease);
}
.sp-cta-primary:hover { background: var(--cta-hover); transform: translateY(-2px); box-shadow: 0 8px 32px var(--cta-glow); }
.sp-cta-secondary {
  color: var(--text2); border: 1px solid var(--line-bright); font-size: 16px;
  padding: 14px 32px; border-radius: 12px; text-decoration: none;
  transition: all 0.2s;
}
.sp-cta-secondary:hover { color: var(--text); border-color: var(--text3); }

/* ═══════════════════════════════════════════
   PRICING
   ═══════════════════════════════════════════ */
.pricing-section {
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background: var(--bg);
}
.pricing-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.pricing-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2; margin-bottom: 8px;
}
.pricing-subtitle { color: var(--text3); font-size: 16px; margin-bottom: 40px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 20px 24px;
  text-align: left;
  position: relative;
  transition: all 0.3s;
}
.price-card:hover { border-color: var(--line-bright); transform: translateY(-2px); }
.price-card.highlighted {
  border-color: var(--cta);
  background: linear-gradient(180deg, rgba(245,158,11,0.06) 0%, var(--surface) 100%);
  box-shadow: 0 0 40px rgba(245,158,11,0.08);
}
.price-card-badge {
  position: absolute; top: -10px; right: 16px;
  background: var(--cta); color: #000; font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.5px;
}
.price-card-header { margin-bottom: 4px; }
.price-card-name { font-family: var(--serif); font-size: 20px; color: var(--text); }
.price-card-price { margin: 8px 0 16px; }
.price-amount { font-family: var(--serif); font-size: 36px; color: var(--text); }
.price-period { font-size: 14px; color: var(--text3); }
.price-card-features {
  list-style: none; padding: 0; margin: 0 0 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.price-card-features li {
  font-size: 13.5px; color: var(--text2); padding-left: 20px;
  position: relative;
}
.price-card-features li::before {
  content: '\2713'; position: absolute; left: 0;
  color: var(--success); font-size: 14px; font-weight: 700;
}
.price-card-cta {
  display: block; text-align: center;
  padding: 10px; border-radius: 10px;
  font-size: 14px; font-weight: 600; text-decoration: none;
  color: var(--text); border: 1px solid var(--line-bright);
  transition: all 0.2s;
}
.price-card-cta:hover { border-color: var(--accent); color: var(--accent); }
.price-card-cta.cta-primary {
  background: var(--cta); color: #000; border-color: var(--cta);
}
.price-card-cta.cta-primary:hover { background: var(--cta-hover); }

/* ═══════════════════════════════════════════
   TEMPLATES
   ═══════════════════════════════════════════ */
.templates-section {
  padding: clamp(48px, 8vw, 96px) var(--gutter);
  background: var(--bg2);
  border-top: 1px solid var(--line);
}
.templates-inner { max-width: var(--max-w); margin: 0 auto; text-align: center; }
.templates-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.2; margin-bottom: 8px;
}
.templates-subtitle { color: var(--text3); font-size: 16px; margin-bottom: 40px; }
.templates-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.template-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 20px;
  text-align: left;
  transition: all 0.3s;
}
.template-card:hover { border-color: var(--accent); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(91,141,239,0.08); }
.template-icon { font-size: 32px; margin-bottom: 12px; }
.template-name { font-family: var(--serif); font-size: 18px; color: var(--text); margin-bottom: 8px; }
.template-desc { font-size: 13.5px; color: var(--text2); line-height: 1.55; margin-bottom: 12px; }
.template-metric { font-size: 12px; color: var(--cta); font-weight: 600; display: block; margin-bottom: 16px; }
.template-cta {
  display: inline-block; font-size: 13px; font-weight: 600;
  color: var(--accent); text-decoration: none;
  padding: 6px 16px; border: 1px solid var(--accent); border-radius: 8px;
  transition: all 0.2s;
}
.template-cta:hover { background: var(--accent); color: #fff; }

/* ═══════════════════════════════════════════
   WIZARD OVERLAY
   ═══════════════════════════════════════════ */
.wizard-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.85);
  display: flex; align-items: center; justify-content: center;
  padding: 16px;
}
.wizard-overlay.hidden { display: none; }
.wizard-container {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 20px; max-width: 560px; width: 100%;
  padding: 32px; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.wizard-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text3); font-size: 28px;
  cursor: pointer; transition: color 0.2s;
}
.wizard-close:hover { color: var(--text); }
.wizard-progress {
  display: flex; gap: 4px; margin-bottom: 24px;
}
.wizard-step {
  flex: 1; text-align: center; padding: 8px 4px;
  font-size: 11px; color: var(--text3); text-transform: uppercase;
  letter-spacing: 0.5px; border-bottom: 2px solid var(--line);
  transition: all 0.3s;
}
.wizard-step.active { color: var(--cta); border-color: var(--cta); }
.wizard-step.done { color: var(--success); border-color: var(--success); }
.wizard-chat {
  min-height: 200px; max-height: 400px; overflow-y: auto;
  margin-bottom: 16px; display: flex; flex-direction: column; gap: 8px;
}
.wizard-input-row { display: flex; gap: 8px; }
.wizard-input {
  flex: 1; background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; color: var(--text);
  font-size: 14px; font-family: var(--sans); outline: none;
}
.wizard-input:focus { border-color: var(--accent); }
.wizard-send {
  background: var(--cta); color: #000; border: none; border-radius: 10px;
  padding: 10px 20px; font-weight: 700; cursor: pointer; font-size: 14px;
  transition: all 0.2s;
}
.wizard-send:hover { background: var(--cta-hover); }

/* ═══════════════════════════════════════════
   PORTAL WORLD (fullscreen overlay)
   ═══════════════════════════════════════════ */
.portal-world {
  position: fixed; inset: 0; z-index: 400;
  background: var(--bg);
  display: none; flex-direction: column;
  padding: clamp(16px, 3vw, 48px);
  overflow-y: auto;
}
.portal-world.active { display: flex; }
.pw-close {
  position: absolute; top: 16px; right: 20px;
  background: none; border: none; color: var(--text3); font-size: 32px;
  cursor: pointer; z-index: 10;
}
.pw-close:hover { color: var(--text); }
.pw-header { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; }
.pw-company { font-family: var(--serif); font-size: 20px; color: var(--text); }
.pw-badge { font-size: 11px; color: var(--cta); background: rgba(245,158,11,0.12); padding: 3px 10px; border-radius: 6px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.pw-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 24px; flex: 1;
}
@media (max-width: 600px) { .pw-grid { grid-template-columns: 1fr; } }
.pw-workers { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.pw-worker {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; transition: all 0.3s;
}
.pw-worker:hover { border-color: var(--accent); }
.pw-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--success); }
.pw-role { font-size: 12px; color: var(--text3); display: block; }
.pw-count { font-size: 12px; color: var(--accent); margin-left: auto; white-space: nowrap; }
.pw-anim { opacity: 0; transform: translateY(12px); animation: pw-in 0.5s var(--ease) forwards; animation-delay: var(--delay, 0s); }
@keyframes pw-in { to { opacity: 1; transform: none; } }
.pw-feed { display: flex; flex-direction: column; gap: 12px; }
.pw-feed-title { font-family: var(--serif); font-size: 16px; color: var(--text3); margin-bottom: 4px; }
.pw-entry { font-size: 14px; color: var(--text2); padding: 10px 14px; background: var(--surface); border-radius: 10px; }
.pw-check { color: var(--success); margin-right: 6px; }
.pw-authority { grid-column: 1 / -1; }
.pw-auth-title { font-family: var(--serif); font-size: 16px; color: var(--text3); margin-bottom: 8px; }
.pw-auth-item { font-size: 14px; color: var(--text2); padding: 8px 0; }
.pw-bottom { margin-top: 32px; text-align: center; }
.pw-tagline { font-size: 14px; color: var(--text3); margin-bottom: 16px; letter-spacing: 1px; }
.pw-cta {
  display: inline-block; background: var(--cta); color: #000;
  font-size: 16px; font-weight: 700; padding: 14px 36px;
  border-radius: 12px; text-decoration: none;
  box-shadow: 0 4px 24px var(--cta-glow); transition: all 0.25s;
}
.pw-cta:hover { background: var(--cta-hover); transform: translateY(-2px); }

/* ═══════════════════════════════════════════
   SIGNUP MODAL
   ═══════════════════════════════════════════ */
.modal {
  position: fixed; inset: 0; z-index: 600;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,0.8);
  padding: 16px;
}
.modal.hidden { display: none; }
.modal-content {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: 20px; max-width: 440px; width: 100%;
  padding: 36px 32px; position: relative;
  max-height: 90vh; overflow-y: auto;
}
.modal-close {
  position: absolute; top: 12px; right: 16px;
  background: none; border: none; color: var(--text3); font-size: 28px;
  cursor: pointer;
}
.modal-close:hover { color: var(--text); }
.modal-content h2 {
  font-family: var(--serif);
  font-size: 28px; margin-bottom: 4px;
}
.modal-content .subtitle { color: var(--text3); font-size: 14px; margin-bottom: 24px; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 13px; color: var(--text3); margin-bottom: 6px; font-weight: 500; }
.form-field input {
  width: 100%; padding: 11px 14px; background: var(--surface);
  border: 1px solid var(--line); border-radius: 10px;
  color: var(--text); font-size: 15px; font-family: var(--sans);
  outline: none; transition: border-color 0.2s;
}
.form-field input:focus { border-color: var(--accent); }
.form-field input::placeholder { color: var(--text3); }
.field-error { font-size: 12px; color: #ef4444; margin-top: 4px; min-height: 16px; }
.submit-btn {
  width: 100%; padding: 12px; background: var(--cta); color: #000;
  border: none; border-radius: 10px; font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all 0.2s; margin-top: 4px;
}
.submit-btn:hover { background: var(--cta-hover); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.error-msg { color: #ef4444; font-size: 13px; margin-top: 8px; text-align: center; }
.success-msg { color: var(--success); font-size: 13px; margin-top: 8px; text-align: center; }
.oauth-divider {
  display: flex; align-items: center; gap: 10px; margin: 20px 0 16px;
  color: var(--text3); font-size: 12px; text-transform: uppercase;
}
.oauth-divider::before, .oauth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.oauth-buttons { display: flex; gap: 8px; margin-bottom: 8px; }
.oauth-btn {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 10px; font-size: 13px; font-weight: 500;
  text-decoration: none; border: 1px solid var(--line); transition: all 0.2s;
}
.oauth-google { background: #fff; color: #333; }
.oauth-microsoft { background: #f3f3f3; color: #333; }
.oauth-github { background: #24292f; color: #fff; }
.oauth-linkedin { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.oauth-btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.3); }
.verify-section { display: none; text-align: center; }
.verify-section input {
  width: 100%; padding: 14px; text-align: center; font-size: 28px;
  letter-spacing: 8px; font-weight: 700;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 10px; color: var(--text); margin: 12px 0;
  font-family: var(--sans); outline: none;
}
.verify-section input:focus { border-color: var(--accent); }

/* ═══════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════ */
.site-footer {
  padding: clamp(40px, 6vw, 72px) var(--gutter) 32px;
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 32px; max-width: var(--max-w); margin: 0 auto;
}
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; } }
.footer-col { min-width: 0; }
.footer-brand { font-family: var(--serif); font-size: 24px; letter-spacing: 3px; margin-bottom: 8px; }
.footer-desc { font-size: 13px; color: var(--text3); line-height: 1.6; max-width: 280px; }
.footer-heading { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 12px; font-weight: 600; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text2); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  max-width: var(--max-w); margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--line);
  font-size: 12px; color: var(--text3);
}
.footer-loc { font-size: 12px; }

/* ─── MOBILE STICKY CTA ─── */
@media (max-width: 900px) {
  .topbar-right .topbar-link { display: none; }
  .col-portal { display: none; }
  .col-chat { padding-left: 0; margin-top: 16px; }
  .col-cases { padding-right: 0; }
  .chat-panel { max-height: 400px; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
}

@media (max-width: 480px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .templates-grid { grid-template-columns: 1fr; }
  .stats-row { gap: 16px; }
  .stat-val { font-size: 22px; }
}

/* ─── FOCUS INDICATORS ─── */
:focus-visible {
  outline: 2px solid var(--cta);
  outline-offset: 2px;
  border-radius: 4px;
}
a:focus-visible, button:focus-visible { outline-offset: 3px; }

/* ─── REDUCED MOTION ─── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
