/* AutoMahn Landing Page — Brand Design System */

/* ── CSS Custom Properties ── */
:root {
  /* Colors (dark theme default) */
  --bg: #0F1117;
  --surface: #1A1D27;
  --surface-light: #242836;
  --border: #2E3347;
  --text: #F0F0F5;
  --text-muted: #8B8FA3;
  --text-dim: #6B6F85;
  --primary: #E8A838;
  --primary-muted: rgba(232, 168, 56, 0.12);
  --primary-dark: #B87A1F;
  --error: #E85454;
  --success: #38C976;
  --success-muted: rgba(56, 201, 118, 0.1);

  /* Shadows (two-part: ambient + direct) */
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.5), 0 4px 8px rgba(0,0,0,0.2);
  --shadow-xl: 0 12px 40px rgba(0,0,0,0.6), 0 8px 16px rgba(0,0,0,0.2);

  /* Typography */
  --font-sans: 'DM Sans', -apple-system, system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;
}

/* Light theme */
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F5F6FA;
    --surface: #FFFFFF;
    --surface-light: #F0F1F5;
    --border: #E2E4EB;
    --text: #1A1D27;
    --text-muted: #6B7080;
    --text-dim: #9CA0B0;
    --primary: #D4922A;
    --primary-muted: rgba(212, 146, 42, 0.1);
    --primary-dark: #B87A1F;
    --shadow-xs: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.1), 0 2px 4px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px rgba(0,0,0,0.1), 0 4px 6px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px rgba(0,0,0,0.15), 0 10px 10px rgba(0,0,0,0.04);
  }
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; }

/* ── Utility ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-4xl) 0;
}

.section-title {
  font-size: 30px;
  font-weight: 700;
  margin-bottom: var(--space-md);
  line-height: 1.2;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-sans);
  cursor: pointer;
  border: none;
  min-height: 44px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
  text-decoration: none;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg);
}

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

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
  border-radius: var(--radius-lg);
}

/* ── Navigation ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  background: rgba(15, 17, 23, 0.9);
}

@media (prefers-color-scheme: light) {
  .nav { background: rgba(245, 246, 250, 0.9); }
}

.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo img { height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: var(--space-lg);
    gap: var(--space-md);
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle { display: flex; }
}

/* ── Hero ── */
.hero {
  padding: var(--space-4xl) 0 var(--space-3xl);
  text-align: center;
}

.hero h1 {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.5px;
}

.hero h1 span { color: var(--primary); }

.hero p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.6;
}

.hero-buttons {
  display: flex;
  gap: var(--space-md);
  justify-content: center;
  flex-wrap: wrap;
}

.hero-stripe {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  margin-top: var(--space-3xl);
}

.hero-stripe span {
  width: 48px;
  height: 4px;
  border-radius: 2px;
}

.hero-stripe .red { background: var(--error); }
.hero-stripe .gold { background: var(--primary); }
.hero-stripe .green { background: var(--success); }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

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

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

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: var(--space-md);
}

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── How It Works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  counter-reset: step;
}

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

.step {
  text-align: center;
  counter-increment: step;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: var(--bg);
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
}

.step h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
}

.step p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 280px;
  margin: 0 auto;
}

/* ── Pricing ── */
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  max-width: 560px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
}

.pricing-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--space-lg);
}

.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-lg);
}

.pricing-table th,
.pricing-table td {
  padding: var(--space-md);
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.pricing-table th {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.pricing-table .rate {
  color: var(--primary);
  font-weight: 700;
  font-size: 16px;
}

.pricing-note {
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: var(--space-lg);
}

/* ── FAQ ── */
.faq-list {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  padding: var(--space-lg) 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 44px;
}

.faq-question:hover { color: var(--primary); }

.faq-arrow {
  font-size: 20px;
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--text-dim);
}

.faq-item.open .faq-arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.open .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding-bottom: var(--space-lg);
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Contact ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 800px;
  margin: 0 auto;
}

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

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.contact-form label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: var(--space-xs);
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  min-height: 44px;
  transition: border-color 0.15s;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--primary);
}

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

.contact-info h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-lg);
}

.contact-info p {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  line-height: 1.6;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
  font-size: 14px;
  color: var(--text-muted);
}

.contact-info-item strong {
  color: var(--text);
  display: block;
  margin-bottom: var(--space-xs);
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-xl) 0;
}

.footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-logo img { height: 24px; }

.footer-text {
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
  list-style: none;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Focus ── */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

:focus:not(:focus-visible) {
  outline: none;
}

/* ── Responsive hero ── */
@media (max-width: 768px) {
  .hero h1 { font-size: 24px; }
  .hero p { font-size: 14px; }
  .section { padding: var(--space-2xl) 0; }
  .section-title { font-size: 24px; }
}
