/* ========================================
   EFAdrive Design System
   Dark theme with teal accent
   ======================================== */

/* CSS Custom Properties */
:root {
  --bg: #0a0f1a;
  --surface: #111827;
  --surface-raised: #1a2332;
  --accent: #00d4aa;
  --accent-hover: #00f0c0;
  --text: #f0f0f0;
  --text-secondary: #94a3b8;
  --border: #1e293b;
  --danger: #ef4444;
}

/* ========================================
   1. CSS Reset
   ======================================== */
*, *::before, *::after {
  box-sizing: border-box;
}

body, html {
  margin: 0;
  padding: 0;
}

/* ========================================
   2. Base Body
   ======================================== */
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ========================================
   3. Container
   ======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ========================================
   4. Typography
   ======================================== */
h1 {
  font-size: 3rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

h2 {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

h4 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

body {
  font-size: 1rem;
}

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

.text-secondary {
  color: var(--text-secondary);
}

/* ========================================
   5. Links
   ======================================== */
a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ========================================
   6. Buttons
   ======================================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #0a0f1a;
}

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

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

.btn-outline:hover {
  background: var(--accent);
  color: #0a0f1a;
  text-decoration: none;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.125rem;
}

/* ========================================
   7. Cards
   ======================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: transform 0.2s;
}

.card:hover {
  transform: translateY(-4px);
}

.card-accent {
  border-left: 4px solid var(--accent);
}

.card-bundle {
  border: 2px solid var(--accent);
  background: var(--surface-raised);
}

/* ========================================
   8. Grid
   ======================================== */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

/* ========================================
   9. Sections
   ======================================== */
section,
.section {
  padding: 5rem 0;
}

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

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

.nav-links a.active {
  color: var(--accent);
  position: relative;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

/* ========================================
   11. Hamburger
   ======================================== */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
}

.hamburger span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translateY(7px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translateY(-7px);
}

/* ========================================
   12. Hero
   ======================================== */
.hero {
  min-height: calc(100vh - 70px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-top: 70px;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-sub {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.page-hero {
  padding: 8rem 0 4rem;
  text-align: center;
}

/* ========================================
   13. Stats Bar
   ======================================== */
.stats-bar {
  padding: 3rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ========================================
   14. Story Section
   ======================================== */
.story {
  background: var(--surface);
  text-align: center;
}

.story .container {
  max-width: 800px;
}

.story p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
}

/* ========================================
   15. Pricing
   ======================================== */
.pricing-card {
  text-align: center;
}

.pricing-header {
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5rem;
}

.pricing-body {
  margin-bottom: 1.5rem;
}

.price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.price {
  font-weight: 700;
  color: var(--accent);
  font-size: 1.25rem;
}

.price-tag {
  color: var(--accent);
  font-weight: 700;
}

/* ========================================
   16. Timeline
   ======================================== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  max-width: 600px;
  margin: 0 auto;
}

.timeline-step {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f1a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  margin-bottom: 0.25rem;
}

/* ========================================
   17. Service Cards
   ======================================== */
.service-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.service-card svg {
  flex-shrink: 0;
}

.service-pricing {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 1rem 0;
}

.service-pricing span {
  padding: 0.5rem 1rem;
  background: var(--surface-raised);
  border-radius: 6px;
  font-size: 0.875rem;
}

/* ========================================
   18. Bundle
   ======================================== */
.bundle-items {
  margin: 1.5rem 0;
}

.bundle-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

/* ========================================
   19. CTA Banner
   ======================================== */
.cta-banner {
  background: var(--surface);
  text-align: center;
  padding: 5rem 0;
}

/* ========================================
   20. Footer
   ======================================== */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col h4 {
  color: var(--text);
  margin-bottom: 0.5rem;
}

.footer-col a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-col p {
  font-size: 0.875rem;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.footer-bottom a {
  color: var(--text-secondary);
}

/* ========================================
   21. Forms
   ======================================== */
.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
}

.required {
  color: var(--danger);
}

input,
textarea,
select {
  width: 100%;
  padding: 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.15);
}

textarea {
  resize: vertical;
  min-height: 150px;
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

.form-note {
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* ========================================
   22. Honeypot
   ======================================== */
.honeypot {
  position: absolute;
  left: -9999px;
}

/* ========================================
   23. Alerts
   ======================================== */
.alert {
  padding: 1rem 1.5rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.alert-success {
  background: rgba(0, 212, 170, 0.1);
  border: 1px solid var(--accent);
  color: var(--accent);
}

.alert-danger {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid var(--danger);
  color: var(--danger);
}

.alert-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: inherit;
  padding: 0;
  line-height: 1;
}

/* ========================================
   24. Character Counter
   ======================================== */
.char-counter {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
  text-align: right;
}

.char-counter.warning {
  color: #f59e0b;
}

.char-counter.danger {
  color: var(--danger);
}

/* ========================================
   25. Scroll Reveal
   ======================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   26. Scroll to Top
   ======================================== */
#scrollToTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #0a0f1a;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

#scrollToTop:hover {
  background: var(--accent-hover);
}

/* ========================================
   27. Download Card
   ======================================== */
.download-card {
  text-align: center;
  padding: 3rem;
}

/* ========================================
   28. Contact Info
   ======================================== */
.contact-info {
  padding: 2rem;
}

.contact-detail {
  margin-bottom: 2rem;
}

.contact-detail h4 {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========================================
   29. Grid Reverse
   ======================================== */
.grid-2-reverse {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  direction: rtl;
}

.grid-2-reverse > * {
  direction: ltr;
}

/* ========================================
   30. Feature List
   ======================================== */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.feature-list li strong {
  color: var(--text);
  display: block;
}

.feature-list li span {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* ========================================
   31. Responsive
   ======================================== */
@media (max-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

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

  .grid-2-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .page-hero {
    padding: 6rem 0 3rem;
  }

  .stats-grid {
    flex-direction: column;
    gap: 2rem;
  }

  .hamburger {
    display: flex;
  }

  .nav-links {
    position: fixed;
    right: 0;
    top: 70px;
    width: 250px;
    height: calc(100vh - 70px);
    background: var(--surface);
    flex-direction: column;
    padding: 2rem;
    border-left: 1px solid var(--border);
    transform: translateX(100%);
    transition: transform 0.3s;
  }

  .nav-links.active {
    transform: translateX(0);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  section,
  .section {
    padding: 3rem 0;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .container {
    padding: 0 1rem;
  }

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

  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
}
