/* =======================================================
   Legend Traffic Bot — Website Global Styles
   legendtrafficbot.com
======================================================= */

:root {
  --bg: #060610;
  --bg2: #0d0d1a;
  --surface: #111120;
  --surface2: #191930;
  --border: #1e1e35;
  --accent: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.3);
  --accent2: #7c3aed;
  --text: #e2e8f0;
  --text2: #94a3b8;
  --text3: #64748b;
  --green: #10b981;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- NAVBAR ---- */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: all 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(6,6,16,0.95);
  backdrop-filter: blur(20px);
  border-color: var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.logo-icon { font-size: 22px; }
.nav-links {
  display: flex;
  gap: 8px;
  flex: 1;
}
.nav-links a {
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-actions { margin-left: auto; }
.btn-outline {
  padding: 9px 20px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-outline:hover { background: var(--accent); color: #000; }
.mobile-menu-btn { display: none; background: none; border: none; color: var(--text); font-size: 20px; cursor: pointer; }

/* ---- BUTTONS ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(245,158,11,0.3);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(245,158,11,0.4); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { border-color: var(--text2); color: var(--text); }

/* ---- HERO ---- */
.hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, rgba(124,58,237,0.15) 0%, rgba(245,158,11,0.08) 40%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 13px;
  color: var(--text2);
  margin-bottom: 28px;
}
.badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(0.85); }
}
.hero-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -2px;
}
.gradient-text {
  background: linear-gradient(135deg, #f59e0b, #ef4444, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text2);
  max-width: 600px;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.stat span { font-size: 28px; font-weight: 800; color: var(--accent); }
.stat p { font-size: 13px; color: var(--text3); margin-top: 2px; }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Preview Window */
.hero-preview {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 460px;
  opacity: 0.8;
}
@media (max-width: 1100px) { .hero-preview { display: none; } }

.preview-window {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  display: grid;
  grid-template-rows: 36px 1fr;
  grid-template-columns: 120px 1fr;
}
.preview-titlebar {
  grid-column: 1 / -1;
  background: var(--bg2);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.preview-dots { display: flex; gap: 6px; }
.preview-dots span { width: 12px; height: 12px; border-radius: 50%; }
.preview-dots span:nth-child(1) { background: #ef4444; }
.preview-dots span:nth-child(2) { background: #f59e0b; }
.preview-dots span:nth-child(3) { background: #10b981; }
.preview-title { font-size: 12px; color: var(--text3); }
.preview-sidebar { background: var(--bg2); padding: 12px 8px; border-right: 1px solid var(--border); font-size: 11px; color: var(--text3); }
.preview-nav-item { padding: 8px 10px; border-radius: 6px; margin-bottom: 2px; }
.preview-nav-item.active { background: rgba(245,158,11,0.1); color: var(--accent); font-weight: 600; }
.preview-content { padding: 12px; }
.preview-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 11px; }
.preview-status { font-size: 10px; font-weight: 600; }
.preview-status.running { color: var(--green); }
.preview-status.idle { color: var(--text3); }
.preview-proxy { font-size: 10px; color: var(--accent); margin-left: auto; }
.preview-progress { height: 4px; background: var(--border); border-radius: 2px; margin: 12px 0 8px; }
.preview-bar { height: 100%; width: 60%; background: linear-gradient(90deg, var(--accent), #d97706); border-radius: 2px; animation: progress 3s ease-in-out infinite alternate; }
@keyframes progress { from { width: 40%; } to { width: 80%; } }
.preview-log { font-size: 10px; color: var(--text3); padding: 3px 0; font-family: monospace; }

/* ---- SECTIONS ---- */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--accent);
  margin-bottom: 12px;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 56px;
  letter-spacing: -1px;
}

/* ---- FEATURES ---- */
.features { padding: 100px 0; background: var(--bg2); }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  transition: all 0.3s;
}
.feature-card:hover { border-color: rgba(245,158,11,0.3); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(0,0,0,0.3); }
.feature-card:hover::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.card-highlight { border-color: rgba(245,158,11,0.2); background: linear-gradient(135deg, var(--surface), rgba(245,158,11,0.03)); }
.feature-icon { font-size: 32px; margin-bottom: 14px; }
.feature-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 13px; color: var(--text2); line-height: 1.6; margin-bottom: 16px; }
.feature-list { list-style: none; }
.feature-list li { font-size: 12px; color: var(--text3); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.feature-list li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 11px; }

/* ---- HOW IT WORKS ---- */
.how-it-works { padding: 100px 0; }
.steps-grid { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 28px; max-width: 260px; text-align: center; }
.step-num { font-size: 48px; font-weight: 900; color: var(--accent); opacity: 0.4; margin-bottom: 12px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 13px; color: var(--text2); }
.step-arrow { font-size: 28px; color: var(--accent); opacity: 0.4; }
@media (max-width: 768px) { .step-arrow { transform: rotate(90deg); } }

/* ---- CTA ---- */
.cta-section { padding: 80px 0; }
.cta-box {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(124,58,237,0.08));
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 20px;
  padding: 60px;
  text-align: center;
}
.cta-box h2 { font-size: 36px; font-weight: 800; margin-bottom: 12px; }
.cta-box p { font-size: 16px; color: var(--text2); margin-bottom: 32px; }

/* ---- FAQ ---- */
.faq { padding: 100px 0; background: var(--bg2); }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 12px; overflow: hidden; }
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
}
.faq-q:hover { background: var(--surface); }
.faq-icon { font-size: 20px; color: var(--accent); transition: transform 0.3s; }
.faq-a { padding: 0 24px 20px; font-size: 14px; color: var(--text2); line-height: 1.7; display: none; }
.faq-item.open .faq-a { display: block; }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* ---- FOOTER ---- */
.footer { padding: 80px 0 0; border-top: 1px solid var(--border); }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 60px; padding-bottom: 60px; }
@media (max-width: 768px) { .footer-inner { grid-template-columns: 1fr; gap: 32px; } }
.footer-brand .logo { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; display: block; }
.footer-brand p { font-size: 13px; color: var(--text2); line-height: 1.7; margin-bottom: 16px; }
.footer-email { font-size: 13px; color: var(--accent); text-decoration: none; }
.footer-links h4 { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links a { display: block; font-size: 13px; color: var(--text2); text-decoration: none; padding: 4px 0; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; }
.footer-bottom p { font-size: 12px; color: var(--text3); }
.footer-bottom a { color: var(--text3); text-decoration: none; }
.footer-bottom a:hover { color: var(--text2); }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: block; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { gap: 20px; }
  .steps-grid { flex-direction: column; }
  .cta-box { padding: 40px 24px; }
}

/* --- PRICING PAGE specific --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 16px;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
}
.pricing-card.popular {
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--surface), rgba(245,158,11,0.04));
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 20px;
}
.pricing-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.4); }
.plan-name { font-size: 14px; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.plan-price { font-size: 48px; font-weight: 900; color: var(--accent); margin-bottom: 4px; }
.plan-price span { font-size: 18px; font-weight: 500; color: var(--text2); }
.plan-duration { font-size: 13px; color: var(--text3); margin-bottom: 28px; }
.plan-features { list-style: none; text-align: left; margin-bottom: 28px; }
.plan-features li { font-size: 13px; color: var(--text2); padding: 7px 0; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--border); }
.plan-features li:last-child { border: none; }
.plan-features li::before { content: '✓'; color: var(--green); font-weight: 700; font-size: 12px; flex-shrink: 0; }
.plan-cta { display: block; width: 100%; padding: 13px; border-radius: 8px; border: none; text-align: center; font-size: 14px; font-weight: 700; cursor: pointer; text-decoration: none; transition: all 0.2s; }
.plan-cta-primary { background: linear-gradient(135deg, #f59e0b, #d97706); color: #000; }
.plan-cta-secondary { background: var(--surface2); color: var(--text); border: 1px solid var(--border); }
.plan-cta:hover { transform: translateY(-1px); }
