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

:root {
  --bg: #0a0a0f;
  --bg2: #0d0d18;
  --bg3: #111125;
  --surface: #14142a;
  --border: #1e1e3a;
  --border2: #2a2a50;
  --neon: #39ff14;
  --neon2: #00f5ff;
  --neon3: #bf5af2;
  --text: #e8e8f0;
  --text2: #9090b0;
  --text3: #6060a0;
  --white: #ffffff;
  --font: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

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

/* ==================== TYPOGRAPHY ==================== */
.gradient-text {
  background: linear-gradient(135deg, var(--neon) 0%, var(--neon2) 50%, var(--neon3) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== LAYOUT ==================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section-dark {
  background: var(--bg2);
}

/* ==================== NAV ==================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 24px;
  transition: background var(--transition), border-color var(--transition);
}

.nav.scrolled {
  background: rgba(10, 10, 15, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -0.5px;
}

.logo-accent {
  color: var(--neon);
}

.nav-cta {
  min-height: 44px;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--neon);
  color: #000;
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.3);
}

.btn-primary:hover {
  background: #50ff30;
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.5);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--neon);
  border: 1px solid var(--neon);
}

.btn-outline:hover {
  background: rgba(57, 255, 20, 0.1);
  box-shadow: 0 0 16px rgba(57, 255, 20, 0.2);
}

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 1px solid var(--border2);
}

.btn-ghost:hover {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border2);
}

.btn-full {
  width: 100%;
}

/* ==================== BADGE ==================== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  background: rgba(57, 255, 20, 0.08);
  border: 1px solid rgba(57, 255, 20, 0.25);
  color: var(--neon);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 24px;
}

/* ==================== HERO ==================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(57, 255, 20, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57, 255, 20, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(57, 255, 20, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero-title {
  font-size: clamp(44px, 8vw, 88px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--white);
  margin-bottom: 24px;
}

.hero-sub {
  font-size: clamp(16px, 2.5vw, 20px);
  color: var(--text2);
  max-width: 580px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.br-desktop { display: none; }
@media (min-width: 768px) { .br-desktop { display: block; } }

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: wrap;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 40px;
  max-width: 560px;
  margin: 0 auto;
  gap: 0;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 32px;
}

.stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--neon);
  font-family: var(--mono);
  line-height: 1;
}

.stat-unit {
  font-size: 24px;
}

.stat-label {
  font-size: 13px;
  color: var(--text3);
  margin-top: 4px;
  white-space: nowrap;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
  flex-shrink: 0;
}

/* ==================== SECTION LABELS ==================== */
.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--neon);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(28px, 5vw, 48px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-sub {
  font-size: 17px;
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ==================== CHAT DEMO ==================== */
.chat-demo {
  max-width: 640px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(57, 255, 20, 0.06), 0 40px 80px rgba(0,0,0,0.5);
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  background: var(--bg3);
  border-bottom: 1px solid var(--border);
}

.chat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: var(--neon); }

.chat-title {
  margin-left: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text2);
  font-family: var(--mono);
}

.chat-messages {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
}

.chat-msg {
  display: flex;
  gap: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}

.chat-msg.user {
  justify-content: flex-end;
}

.msg-bubble {
  max-width: 78%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.6;
}

.chat-msg.user .msg-bubble {
  background: rgba(57, 255, 20, 0.12);
  border: 1px solid rgba(57, 255, 20, 0.2);
  color: var(--text);
  border-bottom-right-radius: 4px;
}

.chat-msg.ai .msg-bubble {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}

.msg-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  background: rgba(57, 255, 20, 0.1);
  border: 1px solid rgba(57, 255, 20, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.chat-input-row {
  display: flex;
  gap: 8px;
  padding: 16px 20px;
  border-top: 1px solid var(--border);
  background: var(--bg3);
}

.chat-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--text3);
  font-size: 14px;
  font-family: var(--font);
  cursor: default;
}

.chat-input:focus { outline: none; }

.chat-send {
  min-height: 44px;
  padding: 0 20px;
  background: var(--neon);
  color: #000;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: all var(--transition);
}

.chat-send:hover {
  background: #50ff30;
}

/* ==================== COMPARE ==================== */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: center;
}

.compare-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
}

.compare-new {
  border-color: rgba(57, 255, 20, 0.3);
  box-shadow: 0 0 32px rgba(57, 255, 20, 0.06);
}

.compare-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 20px;
}

.compare-tag-new {
  color: var(--neon);
}

.compare-items {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.compare-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.compare-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.compare-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.compare-desc {
  font-size: 12px;
  color: var(--text3);
  margin-top: 2px;
}

.compare-price {
  margin-left: auto;
  font-size: 14px;
  font-weight: 700;
  color: var(--text2);
  white-space: nowrap;
  font-family: var(--mono);
}

.compare-price.neon {
  color: var(--neon);
}

.compare-arrow {
  font-size: 18px;
  font-weight: 800;
  color: var(--text3);
  text-align: center;
  padding: 16px 8px;
}

/* ==================== TIMELINE ==================== */
.timeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 64px;
  flex-wrap: nowrap;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.timeline-step {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  font-family: var(--mono);
  flex-shrink: 0;
}

.step-neon {
  background: rgba(57, 255, 20, 0.1);
  border: 2px solid var(--neon);
  color: var(--neon);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.2);
}

.timeline-line {
  flex: 1;
  height: 2px;
  background: linear-gradient(90deg, var(--neon), var(--neon2));
  opacity: 0.3;
  margin-top: 26px;
  max-width: 80px;
  align-self: flex-start;
}

.timeline-time {
  font-size: 12px;
  font-family: var(--mono);
  color: var(--neon);
  font-weight: 600;
}

.timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 13px;
  color: var(--text3);
}

.timeline-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

/* ==================== SPEED NUMBERS ==================== */
.speed-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.speed-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
}

.speed-num {
  font-size: 52px;
  font-weight: 900;
  color: var(--neon);
  font-family: var(--mono);
  line-height: 1;
  margin-bottom: 8px;
}

.speed-label {
  font-size: 14px;
  color: var(--text2);
}

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.feature-card:hover {
  border-color: rgba(57, 255, 20, 0.3);
  box-shadow: 0 0 24px rgba(57, 255, 20, 0.06);
  transform: translateY(-2px);
}

.feature-icon {
  font-size: 32px;
  margin-bottom: 12px;
}

.feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}

.feature-desc {
  font-size: 14px;
  color: var(--text3);
  line-height: 1.6;
}

/* ==================== CTA ==================== */
.section-cta {
  position: relative;
  overflow: hidden;
  background: var(--bg3);
  text-align: center;
}

.cta-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(57, 255, 20, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
}

.cta-sub {
  font-size: 17px;
  color: var(--text2);
  margin-bottom: 48px;
  line-height: 1.7;
}

.cta-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: border-color var(--transition);
  min-height: 44px;
}

.form-input::placeholder {
  color: var(--text3);
}

.form-input:focus {
  outline: none;
  border-color: rgba(57, 255, 20, 0.4);
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.cta-note {
  font-size: 13px;
  color: var(--text3);
  margin-top: 12px;
}

/* ==================== FOOTER ==================== */
.footer {
  padding: 28px 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

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

.footer-copy {
  font-size: 13px;
  color: var(--text3);
}

/* ==================== TOAST ==================== */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--surface);
  border: 1px solid rgba(57, 255, 20, 0.3);
  color: var(--text);
  padding: 14px 24px;
  border-radius: 12px;
  font-size: 15px;
  z-index: 999;
  transition: transform 0.4s ease;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  white-space: nowrap;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 768px) {
  .section { padding: 72px 0; }

  .hero-title { letter-spacing: -1px; }

  .hero-stats {
    padding: 20px 16px;
    gap: 0;
  }

  .stat { padding: 0 16px; }
  .stat-num { font-size: 28px; }
  .stat-unit { font-size: 18px; }

  .compare-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .compare-arrow {
    padding: 4px 8px;
    font-size: 14px;
  }

  .timeline {
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
  }

  .timeline-item {
    flex-direction: row;
    text-align: left;
    gap: 16px;
  }

  .timeline-line {
    display: none;
  }

  .speed-numbers {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .speed-num { font-size: 40px; }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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