/* =============================================
   NEUROSPARK AI — GLOBAL STYLES
   ============================================= */

:root {
  --dark: #0f0f1a;
  --dark-2: #16162a;
  --dark-3: #1e1e35;
  --dark-card: #1a1a2e;
  --amber: #F28C28;
  --amber-light: #ffaa55;
  --amber-glow: rgba(242,140,40,0.15);
  --text: #e2e2f0;
  --text-muted: #8888aa;
  --border: rgba(255,255,255,0.07);
  --font-head: 'Barlow Condensed', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --radius: 12px;
  --transition: 0.3s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

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

.section { padding: 100px 0; }
.dark-section { background: var(--dark-2); }

.accent { color: var(--amber); }

/* =============================================
   SECTION TAGS & TITLES
   ============================================= */
.section-tag {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--amber);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 56px;
  color: #fff;
}

/* =============================================
   BUTTONS
   ============================================= */
.btn-primary {
  display: inline-block;
  background: var(--amber);
  color: #0f0f1a;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 14px 32px;
  border-radius: 6px;
  transition: var(--transition);
  text-transform: uppercase;
}
.btn-primary:hover {
  background: var(--amber-light);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(242,140,40,0.35);
}
.btn-primary.large { padding: 18px 48px; font-size: 18px; }

.btn-ghost {
  display: inline-block;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  padding: 14px 24px;
  border-radius: 6px;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.btn-ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn-cta {
  display: inline-block;
  background: var(--amber);
  color: #0f0f1a;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  padding: 10px 22px;
  border-radius: 6px;
  text-transform: uppercase;
  transition: var(--transition);
}
.btn-cta:hover { background: var(--amber-light); }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(15,15,26,0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: #fff;
  white-space: nowrap;
}
.logo-icon { color: var(--amber); font-size: 20px; }
.logo-ai { color: var(--amber); margin-left: 2px; }

.nav-links {
  display: flex;
  gap: 32px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  transition: var(--transition);
}
.nav-links a:hover { color: #fff; }

.hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 22px;
  cursor: pointer;
  margin-left: auto;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 16px 24px 24px;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.mobile-menu a { font-size: 16px; color: var(--text-muted); }
.mobile-menu.open { display: flex; }

/* =============================================
   HERO
   ============================================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1160px;
  margin: 0 auto;
  gap: 60px;
  position: relative;
}

.hero-bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(242,140,40,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242,140,40,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: -1;
}

.hero-road {
  position: fixed;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 40vh;
  background: linear-gradient(to bottom, var(--amber), transparent);
  opacity: 0.15;
  pointer-events: none;
  z-index: -1;
}

.hero-content { flex: 1; min-width: 0; }

.hero-badge {
  display: inline-block;
  background: var(--amber-glow);
  border: 1px solid rgba(242,140,40,0.3);
  color: var(--amber);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.hero-title {
  font-family: var(--font-head);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 24px;
  animation: fadeUp 0.6s 0.1s ease both;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
  line-height: 1.8;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: fadeUp 0.6s 0.3s ease both;
}

.hero-stats {
  display: flex;
  gap: 32px;
  align-items: center;
  animation: fadeUp 0.6s 0.4s ease both;
}
.stat { text-align: left; }
.stat-num {
  font-family: var(--font-head);
  font-size: 32px;
  font-weight: 800;
  color: var(--amber);
  display: block;
}
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-divider { width: 1px; height: 40px; background: var(--border); }

/* =============================================
   DASHBOARD MOCKUP
   ============================================= */
.hero-visual {
  flex: 1;
  min-width: 0;
  animation: fadeUp 0.8s 0.2s ease both;
}

.dashboard-mock {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), 0 0 60px rgba(242,140,40,0.05);
}

.dash-header {
  background: var(--dark-3);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.dash-dot { width: 10px; height: 10px; border-radius: 50%; }
.dash-dot.red { background: #ff5f57; }
.dash-dot.yellow { background: #febc2e; }
.dash-dot.green { background: #28c840; }
.dash-title { font-size: 12px; color: var(--text-muted); margin-left: 8px; }

.dash-body { display: flex; height: 340px; }

.dash-sidebar {
  width: 140px;
  background: var(--dark-3);
  border-right: 1px solid var(--border);
  padding: 12px 0;
  flex-shrink: 0;
}
.dash-nav-item {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.dash-nav-item.active { color: var(--amber); background: var(--amber-glow); border-left: 2px solid var(--amber); }

.dash-main { flex: 1; padding: 16px; overflow: hidden; display: flex; flex-direction: column; gap: 12px; }

.dash-cards { display: flex; gap: 10px; }
.dash-card {
  flex: 1;
  background: var(--dark-3);
  border-radius: 8px;
  padding: 12px;
  border: 1px solid var(--border);
}
.dash-card-label { font-size: 10px; color: var(--text-muted); margin-bottom: 4px; }
.dash-card-num { font-family: var(--font-head); font-size: 24px; font-weight: 700; color: #fff; }
.dash-card-num.accent { color: var(--amber); }
.dash-card-num.warn { color: #ff9f43; }
.dash-card-trend { font-size: 10px; margin-top: 2px; }
.dash-card-trend.up { color: #26de81; }
.dash-card-trend.down { color: #26de81; }

.dash-chart { background: var(--dark-3); border-radius: 8px; padding: 12px; border: 1px solid var(--border); }
.chart-label { font-size: 10px; color: var(--text-muted); margin-bottom: 10px; }
.chart-bars { display: flex; gap: 6px; align-items: flex-end; height: 50px; }
.bar { flex: 1; background: rgba(242,140,40,0.25); border-radius: 3px 3px 0 0; transition: height 1s ease; }
.accent-bar { background: var(--amber); }

.dash-drivers { display: flex; flex-direction: column; gap: 8px; }
.driver-row { display: flex; align-items: center; gap: 10px; }
.driver-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--amber-glow);
  border: 1px solid rgba(242,140,40,0.3);
  color: var(--amber);
  font-size: 10px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.driver-name { font-size: 11px; color: var(--text); }
.driver-status { font-size: 10px; }
.driver-status.on-route { color: #26de81; }
.driver-status.rest { color: var(--amber); }
.driver-score { margin-left: auto; font-size: 11px; font-weight: 600; color: var(--amber); }

/* =============================================
   TRUST STRIP
   ============================================= */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--dark-2);
  padding: 28px 24px;
  text-align: center;
}
.trust-label { font-size: 11px; letter-spacing: 3px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 20px; }
.trust-logos {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.trust-logos span {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.2);
  transition: var(--transition);
}
.trust-logos span:hover { color: rgba(255,255,255,0.5); }

/* =============================================
   PROBLEMS
   ============================================= */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.problem-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
}
.problem-card:hover { border-color: rgba(242,140,40,0.3); transform: translateY(-4px); }

.problem-icon { font-size: 32px; margin-bottom: 16px; }
.problem-card h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.problem-card p { font-size: 14px; color: var(--text-muted); line-height: 1.7; margin-bottom: 20px; }

.arrow-right {
  font-size: 24px;
  color: var(--amber);
  margin-bottom: 12px;
}

.solution {
  font-size: 14px;
  color: var(--amber);
  font-weight: 500;
  padding: 12px;
  background: var(--amber-glow);
  border-radius: 8px;
  border-left: 3px solid var(--amber);
}

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

.feature-item {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}
.feature-item:hover { border-color: rgba(242,140,40,0.3); }
.feature-icon { font-size: 28px; margin-bottom: 14px; }
.feature-item h3 { font-family: var(--font-head); font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.feature-item p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.features-cta { text-align: center; }

/* =============================================
   HOW IT WORKS
   ============================================= */
.steps {
  display: flex;
  align-items: center;
  gap: 0;
}

.step {
  flex: 1;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 32px;
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: var(--transition);
}
.step:hover { border-color: rgba(242,140,40,0.3); }

.step-num {
  font-family: var(--font-head);
  font-size: 48px;
  font-weight: 800;
  color: var(--amber);
  opacity: 0.4;
  line-height: 1;
  flex-shrink: 0;
}

.step-content h3 { font-family: var(--font-head); font-size: 22px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-content p { font-size: 14px; color: var(--text-muted); line-height: 1.7; }

.step-connector {
  width: 48px;
  height: 2px;
  background: linear-gradient(to right, var(--amber), transparent);
  flex-shrink: 0;
}

/* =============================================
   FOOTER CTA
   ============================================= */
.footer-cta {
  background: linear-gradient(135deg, var(--dark-2) 0%, rgba(242,140,40,0.08) 100%);
  border-top: 1px solid var(--border);
  padding: 100px 24px;
  text-align: center;
}

.footer-cta h2 {
  font-family: var(--font-head);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
}
.footer-cta p { font-size: 16px; color: var(--text-muted); margin-bottom: 36px; }

/* =============================================
   FOOTER
   ============================================= */
.footer {
  background: var(--dark-2);
  border-top: 1px solid var(--border);
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p { font-size: 14px; color: var(--text-muted); margin-top: 16px; max-width: 280px; line-height: 1.7; }

.footer-links h4 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.footer-links a { display: block; font-size: 14px; color: var(--text-muted); margin-bottom: 10px; transition: var(--transition); }
.footer-links a:hover { color: var(--amber); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

/* =============================================
   PAGE HERO (inner pages)
   ============================================= */
.page-hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: linear-gradient(180deg, var(--dark-2) 0%, var(--dark) 100%);
  border-bottom: 1px solid var(--border);
}
.page-hero .section-tag { justify-content: center; display: flex; }
.page-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 800;
  color: #fff;
  margin-bottom: 20px;
}
.page-hero p { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 0 auto; }

/* =============================================
   PRICING PAGE
   ============================================= */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  transition: var(--transition);
}

.pricing-card.featured {
  border-color: var(--amber);
  box-shadow: 0 0 40px rgba(242,140,40,0.1);
  position: relative;
}

.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--amber);
  color: #0f0f1a;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 100px;
}

.pricing-plan { font-family: var(--font-head); font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.pricing-price { font-family: var(--font-head); font-size: 52px; font-weight: 800; color: #fff; line-height: 1; }
.pricing-price span { font-size: 20px; color: var(--text-muted); }
.pricing-period { font-size: 13px; color: var(--text-muted); margin-bottom: 28px; }
.pricing-features { margin-bottom: 32px; }
.pricing-features li { font-size: 14px; color: var(--text-muted); padding: 10px 0; border-bottom: 1px solid var(--border); display: flex; gap: 10px; }
.pricing-features li::before { content: '✓'; color: var(--amber); font-weight: 700; }

/* =============================================
   ABOUT PAGE
   ============================================= */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-text h2 { font-family: var(--font-head); font-size: 40px; font-weight: 800; color: #fff; margin-bottom: 20px; line-height: 1.1; }
.about-text p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }

.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 60px; }
.value-card { background: var(--dark-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.value-icon { font-size: 24px; margin-bottom: 12px; }
.value-card h3 { font-family: var(--font-head); font-size: 18px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }

.about-visual {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
}
.about-stat-big { font-family: var(--font-head); font-size: 80px; font-weight: 800; color: var(--amber); line-height: 1; }
.about-stat-label { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }

/* =============================================
   CONTACT PAGE
   ============================================= */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: start; }

.contact-info h2 { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 16px; }
.contact-info p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }

.contact-details { display: flex; flex-direction: column; gap: 20px; }
.contact-detail { display: flex; gap: 16px; align-items: flex-start; }
.contact-detail-icon { font-size: 20px; width: 44px; height: 44px; background: var(--amber-glow); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-detail-text h4 { font-family: var(--font-head); font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 2px; }
.contact-detail-text p { font-size: 14px; color: var(--text-muted); }

.contact-form-wrap {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group label { display: block; font-size: 13px; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  background: var(--dark-3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
  -webkit-appearance: none;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--amber); box-shadow: 0 0 0 3px var(--amber-glow); }
.form-group textarea { resize: vertical; min-height: 120px; }
.form-submit { width: 100%; padding: 14px; font-size: 16px; cursor: pointer; border: none; }

.form-success {
  display: none;
  text-align: center;
  padding: 40px;
  color: #26de81;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
}

/* =============================================
   FEATURES PAGE
   ============================================= */
.features-detail { display: flex; flex-direction: column; gap: 80px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-row-text .section-tag { display: inline-block; }
.feature-row-text h2 { font-family: var(--font-head); font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 16px; line-height: 1.1; }
.feature-row-text p { font-size: 15px; color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }
.feature-list { display: flex; flex-direction: column; gap: 10px; }
.feature-list li { display: flex; gap: 10px; font-size: 14px; color: var(--text-muted); }
.feature-list li::before { content: '→'; color: var(--amber); flex-shrink: 0; }

.feature-visual {
  background: var(--dark-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 260px;
  justify-content: center;
}

.visual-metric { display: flex; align-items: center; gap: 16px; }
.metric-bar-wrap { flex: 1; height: 8px; background: var(--dark-3); border-radius: 100px; overflow: hidden; }
.metric-bar { height: 100%; background: var(--amber); border-radius: 100px; }
.metric-label { font-size: 13px; color: var(--text-muted); width: 140px; flex-shrink: 0; }
.metric-val { font-family: var(--font-head); font-size: 16px; font-weight: 700; color: var(--amber); width: 40px; text-align: right; flex-shrink: 0; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 900px) {
  .hero { flex-direction: column; padding-top: 100px; }
  .hero-visual { width: 100%; }
  .problem-grid, .features-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; }
  .step-connector { width: 2px; height: 32px; background: linear-gradient(to bottom, var(--amber), transparent); }
  .pricing-grid { grid-template-columns: 1fr; }
  .about-grid, .contact-grid, .feature-row, .feature-row.reverse { grid-template-columns: 1fr; direction: ltr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .nav-links, .btn-cta { display: none; }
  .hamburger { display: block; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .values-grid { grid-template-columns: 1fr; }
}
