/* ── Design Tokens ─────────────────────────────────────── */
:root {
  --bg: #0a0a0a;
  --bg-2: #111111;
  --bg-3: #1a1a1a;
  --fg: #ffffff;
  --fg-muted: #888888;
  --fg-subtle: #555555;
  --cyan: #00e5ff;
  --cyan-dim: rgba(0, 229, 255, 0.15);
  --border: #1f1f1f;
  --border-hover: #333333;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

/* ── Header ────────────────────────────────────────────── */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(10,10,10,0.92);
  backdrop-filter: blur(12px);
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: flex;
  align-items: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  letter-spacing: -0.01em;
}
.wordmark-footer {
  font-size: 1rem;
  color: var(--fg);
}
nav { display: flex; gap: 32px; }
nav a {
  text-decoration: none;
  color: var(--fg-muted);
  font-size: 0.88rem;
  font-weight: 500;
  transition: color 0.2s;
}
nav a:hover { color: var(--fg); }

/* ── Buttons ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan);
  color: #000;
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background 0.2s, transform 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #33ecff; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--fg);
  padding: 13px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border: 1.5px solid var(--border-hover);
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-secondary:hover { border-color: var(--fg-muted); background: var(--bg-3); }

/* ── Hero ──────────────────────────────────────────────── */
.hero {
  padding: 100px 0 96px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,229,255,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  margin-bottom: 28px;
  width: fit-content;
}
.badge-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero-headline {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--fg);
  letter-spacing: -0.04em;
  margin-bottom: 28px;
}
.hero-lede {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  max-width: 520px;
  margin-bottom: 40px;
}
.hero-cta-group {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 0;
}
.stat { padding: 0 28px; }
.stat:first-child { padding-left: 0; }
.stat-number {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--cyan);
  line-height: 1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border);
}

/* ── Section General ───────────────────────────────────── */
.section {
  padding: 96px 0;
  border-bottom: 1px solid var(--border);
}
.section:last-of-type { border-bottom: none; }
.section-tag {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.section-headline {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--fg);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}
.section-sub {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* ── Features ──────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: border-color 0.25s, transform 0.25s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-3px);
}
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--cyan-dim);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan);
}
.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 12px;
}
.feature-card > p {
  font-size: 0.9rem;
  color: var(--fg-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.feature-list li {
  font-size: 0.85rem;
  color: var(--fg-muted);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.feature-list li::before {
  content: '';
  width: 5px;
  height: 5px;
  background: var(--cyan);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 7px;
}

/* ── How It Works ──────────────────────────────────────── */
.how-it-works-section { background: var(--bg-2); }
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
}
.step {
  flex: 1;
  padding: 0 40px 0 0;
}
.step-number {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--cyan);
  margin-bottom: 12px;
}
.step h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 8px;
}
.step p {
  font-size: 0.88rem;
  color: var(--fg-muted);
  line-height: 1.6;
}
.step-arrow {
  color: var(--fg-subtle);
  padding-top: 12px;
  flex-shrink: 0;
}

/* ── CTA Section ───────────────────────────────────────── */
.cta-section { padding: 96px 0; }
.cta-card {
  background: linear-gradient(135deg, #0d1f2e 0%, #0a1a28 100%);
  border: 1px solid rgba(0,229,255,0.2);
  border-radius: 24px;
  padding: 72px 64px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cta-content { max-width: 600px; width: 100%; }
.cta-form { margin-bottom: 20px; }
.form-group-inline { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-input {
  flex: 1;
  min-width: 260px;
  padding: 14px 18px;
  background: rgba(255,255,255,0.07);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 8px;
  color: var(--fg);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
}
.cta-input::placeholder { color: var(--fg-muted); }
.cta-input:focus { outline: none; border-color: var(--cyan); }
.cta-submit { flex-shrink: 0; }
.form-note {
  font-size: 0.85rem;
  margin-top: 12px;
}
.cta-trust {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.cta-trust span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--fg-muted);
}

/* ── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: 64px 0 40px;
  border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand { display: flex; flex-direction: column; gap: 8px; }
.footer-tagline { font-size: 0.85rem; color: var(--fg-muted); }
.footer-links { display: flex; gap: 56px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.88rem;
  color: var(--fg-muted);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--fg); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--fg-subtle);
}
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { color: var(--fg-subtle); transition: color 0.2s; }
.footer-legal a:hover { color: var(--fg-muted); }

/* ── AI Widget (dark overrides) ─────────────────────────── */
#ai-widget-root {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  font-family: 'Inter', system-ui, sans-serif;
}
.widget-fab {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--cyan);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,229,255,0.3);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative;
}
.widget-fab:hover { transform: scale(1.05); box-shadow: 0 6px 28px rgba(0,229,255,0.4); }
.widget-fab svg { width: 26px; height: 26px; fill: #000; }
.widget-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  background: #0a0a0a;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
}
.widget-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}
.widget-panel {
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 380px;
  max-height: 580px;
  background: var(--bg-2);
  border: 1px solid var(--border-hover);
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.widget-panel.hidden { display: none; }
.widget-header {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border);
  color: var(--fg);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.widget-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,229,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.widget-header-text { flex: 1; }
.widget-header-text h3 { font-size: 0.92rem; font-weight: 700; }
.widget-header-text p { font-size: 0.75rem; color: var(--fg-muted); }
.widget-close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--fg-muted);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}
.widget-close:hover { color: var(--fg); }
.widget-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 0;
}
.widget-message { display: flex; gap: 10px; align-items: flex-start; }
.widget-message.user { flex-direction: row-reverse; }
.msg-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
}
.msg-avatar.bot { background: var(--cyan); color: #000; }
.msg-avatar.user { background: var(--bg-3); border: 1px solid var(--border-hover); color: var(--fg-muted); }
.msg-bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.88rem;
  line-height: 1.5;
  word-break: break-word;
}
.msg-bubble.bot {
  background: var(--bg-3);
  color: var(--fg);
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
}
.msg-bubble.user {
  background: var(--cyan);
  color: #000;
  border-bottom-right-radius: 4px;
}
.msg-time {
  font-size: 0.68rem;
  color: var(--fg-subtle);
  margin-top: 4px;
  text-align: right;
}
.msg-time.left { text-align: left; }
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 10px 14px;
  background: var(--bg-3);
  border-radius: 12px;
  border-bottom-left-radius: 4px;
  border: 1px solid var(--border);
  width: fit-content;
}
.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--fg-muted);
  animation: typing-bounce 1.2s infinite;
}
.typing-indicator span:nth-child(2) { animation-delay: 0.15s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.widget-lead-form {
  padding: 16px;
  border-top: 1px solid var(--border);
  background: var(--bg-3);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lead-form-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--fg);
  text-align: center;
}
.lead-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.lead-input, .lead-select, .lead-textarea {
  padding: 9px 12px;
  border: 1.5px solid var(--border-hover);
  border-radius: 8px;
  font-size: 0.85rem;
  font-family: inherit;
  background: var(--bg-2);
  color: var(--fg);
  width: 100%;
  transition: border-color 0.2s;
}
.lead-input::placeholder, .lead-textarea::placeholder { color: var(--fg-muted); }
.lead-input:focus, .lead-select:focus, .lead-textarea:focus {
  outline: none;
  border-color: var(--cyan);
}
.lead-select { cursor: pointer; }
.lead-textarea { resize: none; height: 60px; }
.widget-submit {
  background: var(--cyan);
  color: #000;
  border: none;
  padding: 10px;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s;
  width: 100%;
}
.widget-submit:hover { background: #33ecff; }
.widget-submit:disabled { background: var(--fg-subtle); cursor: not-allowed; }
.widget-input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.widget-input {
  flex: 1;
  padding: 10px 14px;
  border: 1.5px solid var(--border-hover);
  border-radius: 24px;
  font-size: 0.88rem;
  font-family: inherit;
  background: var(--bg-2);
  color: var(--fg);
  resize: none;
  max-height: 100px;
  line-height: 1.4;
}
.widget-input::placeholder { color: var(--fg-muted); }
.widget-input:focus { outline: none; border-color: var(--cyan); }
.widget-send {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--cyan);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.widget-send:hover { background: #33ecff; }
.widget-send:disabled { background: var(--fg-subtle); cursor: not-allowed; }
.widget-send svg { width: 16px; height: 16px; fill: #000; }
.widget-success {
  padding: 24px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.widget-success-icon {
  width: 52px;
  height: 52px;
  background: var(--cyan-dim);
  border-radius: 50%;
  border: 1px solid rgba(0,229,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.widget-success h4 { font-size: 0.95rem; font-weight: 700; color: var(--fg); }
.widget-success p { font-size: 0.82rem; color: var(--fg-muted); line-height: 1.5; }
.quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 16px 12px;
}
.quick-reply {
  background: var(--bg-3);
  border: 1.5px solid var(--border-hover);
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.8rem;
  font-family: inherit;
  color: var(--fg-muted);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.quick-reply:hover { background: var(--cyan-dim); border-color: var(--cyan); color: var(--cyan); }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; gap: 32px; }
  .step { padding: 0; }
  .step-arrow { display: none; }
  .cta-card { padding: 48px 32px; }
}
@media (max-width: 768px) {
  nav { display: none; }
  .hero { padding: 72px 0 64px; }
  .hero-stats { flex-direction: column; align-items: flex-start; gap: 16px; }
  .stat-divider { display: none; }
  .stat { padding: 0; }
  .form-group-inline { flex-direction: column; }
  .cta-input { min-width: 0; }
  .cta-submit { width: 100%; justify-content: center; }
  .cta-trust { flex-direction: column; gap: 12px; }
  .footer-inner { flex-direction: column; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 16px; text-align: center; }
  .widget-panel { width: calc(100vw - 32px); right: -8px; }
}