/* ── AutoIA V2 Dark Theme ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: #121212;
  color: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Nav ── */
nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 48px;
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(18, 18, 18, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nav-logo span {
  color: #EB1414;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
}

.lang-toggle {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: transparent;
  color: #fafafa;
}

.lang-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

.theme-toggle {
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color 0.2s;
  background: transparent;
  color: #fafafa;
}

.theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* ── Mobile menu ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}

.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: #fafafa;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

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

.nav-hamburger.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ── Hero ── */
.hero-wrapper {
  position: relative;
  background: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?auto=format&fit=crop&w=1920&q=80') center center / cover no-repeat;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(18, 18, 18, 0.82);
}

.hero {
  position: relative;
  padding: 40px 48px 80px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-content h1 .accent {
  color: #EB1414;
}

.hero-content p {
  font-size: 1.15rem;
  opacity: 0.6;
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.cta-btn {
  display: inline-block;
  background: #EB1414;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  padding: 16px 36px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.cta-btn:hover {
  background: #d41111;
  transform: translateY(-1px);
}

.hero-chat {
  display: flex;
  flex-direction: column;
}

.quick-actions-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

/* ── Stats bar ── */
.stats {
  background: #1a1a1a;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0;
}

.stat {
  padding: 40px 32px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.stat:last-child {
  border-right: none;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.stat-value .red {
  color: #EB1414;
}

.stat-label {
  font-size: 0.85rem;
  opacity: 0.5;
  font-weight: 400;
}

/* ── How it works ── */
.how {
  padding: 80px 48px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #EB1414;
  margin-bottom: 12px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 56px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step-card {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 40px 32px;
  transition: border-color 0.3s;
}

.step-card:hover {
  border-color: rgba(235, 20, 20, 0.3);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #262626;
  border-radius: 14px;
  font-size: 1.2rem;
  font-weight: 700;
  color: #EB1414;
  margin-bottom: 24px;
}

.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.step-card p {
  font-size: 0.95rem;
  opacity: 0.5;
  line-height: 1.6;
}

.popular-label {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 4px;
}

.quick-btn {
  padding: 10px 20px;
  background: #262626;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #fafafa;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.quick-btn:hover {
  background: #333;
  border-color: rgba(235, 20, 20, 0.4);
}

.chat-mockup {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: #EB1414;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
}

.chat-name {
  font-weight: 600;
  font-size: 0.95rem;
}

.chat-status {
  font-size: 0.8rem;
  opacity: 0.8;
}

.bubble {
  max-width: 85%;
  padding: 14px 18px;
  border-radius: 16px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bubble-ai {
  background: #262626;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.bubble-user {
  background: #EB1414;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-input-mock {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: #262626;
  border-radius: 14px;
  margin-top: 8px;
}

.chat-input-mock span {
  opacity: 0.3;
  font-size: 0.9rem;
  flex: 1;
}

.send-btn-mock {
  width: 36px;
  height: 36px;
  background: #EB1414;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.send-btn-mock svg {
  width: 18px;
  height: 18px;
}

/* ── Footer ── */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 64px 48px 32px;
  margin-top: 40px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

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

.footer-brand .nav-logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.4;
  max-width: 300px;
  line-height: 1.6;
}

.footer-col h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.4;
  margin-bottom: 20px;
}

.footer-col a {
  display: block;
  font-size: 0.9rem;
  opacity: 0.6;
  margin-bottom: 12px;
  transition: opacity 0.2s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom span {
  font-size: 0.8rem;
  opacity: 0.3;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  nav {
    padding: 16px 24px;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(18, 18, 18, 0.98);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 24px 24px 48px;
    gap: 48px;
    text-align: center;
  }

  .hero-content h1 {
    font-size: 2.4rem;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-chat {
    order: -1;
  }

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

  .stat {
    border-right: none;
  }

  .stat:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.05);
  }

  .stat:nth-child(1), .stat:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .how {
    padding: 64px 24px;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

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

  footer {
    padding: 48px 24px 24px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}

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

  .stats-inner {
    grid-template-columns: 1fr;
  }

  .stat {
    border-right: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .stat:last-child {
    border-bottom: none;
  }

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