/* ========================================
   Mocha Proxy — Design System
   ======================================== */

/* Logo theme switching */
[data-theme="light"] .logo-dark { display: none; }
[data-theme="light"] .logo-light { display: inline-block; }
[data-theme="dark"] .logo-light { display: none; }
[data-theme="dark"] .logo-dark { display: inline-block; }

:root {
  /* Light theme — warm cream & espresso */
  --bg-primary: #FFFBF5;
  --bg-secondary: #FBF4EA;
  --bg-tertiary: #F5ECE0;
  --surface: #FFFFFF;
  --surface-hover: #FFF8F0;

  --text-primary: #1C1410;
  --text-secondary: #7A6B62;
  --text-tertiary: #A89888;

  --accent: #D4712A;
  --accent-hover: #C0621F;
  --accent-soft: #FCEEE2;
  --accent-glow: rgba(212, 113, 42, 0.12);

  --border: #EDE4D9;
  --border-light: #F5EDE3;

  --code-bg: #1C1410;
  --code-text: #F5ECE0;

  --shadow-sm: 0 1px 2px rgba(28, 20, 16, 0.04);
  --shadow-md: 0 4px 16px rgba(28, 20, 16, 0.06);
  --shadow-lg: 0 12px 40px rgba(28, 20, 16, 0.08);
  --shadow-accent: 0 4px 20px rgba(212, 113, 42, 0.2);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --font-display: 'Sora', -apple-system, sans-serif;
  --font-body: 'DM Sans', -apple-system, sans-serif;

  --nav-height: 64px;
  --container: 1120px;
}

[data-theme="dark"] {
  --bg-primary: #0E0C0A;
  --bg-secondary: #161310;
  --bg-tertiary: #1E1A16;
  --surface: #1A1714;
  --surface-hover: #221E1A;

  --text-primary: #F2E8DC;
  --text-secondary: #9A8C80;
  --text-tertiary: #685C52;

  --accent: #E8863A;
  --accent-hover: #F09448;
  --accent-soft: #2A1E14;
  --accent-glow: rgba(232, 134, 58, 0.1);

  --border: #2A2420;
  --border-light: #221E1A;

  --code-bg: #161310;
  --code-text: #F2E8DC;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-accent: 0 4px 20px rgba(232, 134, 58, 0.15);
}


/* ========================================
   Reset & Base
   ======================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  transition: background-color 0.4s ease, color 0.3s ease;
  overflow-x: hidden;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}

[data-theme="dark"] .grain {
  opacity: 0.04;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container-sm {
  max-width: 720px;
}

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

ul { list-style: none; }

img { max-width: 100%; display: block; }


/* ========================================
   Typography
   ======================================== */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.125rem; }


/* ========================================
   Buttons
   ======================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: var(--shadow-accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(212, 113, 42, 0.3);
}

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

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}

.btn-ghost {
  color: var(--text-secondary);
  padding: 10px 16px;
}

.btn-ghost:hover {
  color: var(--text-primary);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}


/* ========================================
   Navigation
   ======================================== */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  background: rgba(255, 251, 245, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-light);
  transition: background-color 0.4s ease, border-color 0.3s ease;
}

[data-theme="dark"] .nav {
  background: rgba(14, 12, 10, 0.8);
}

.nav.scrolled {
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
}

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

.nav-links a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
  font-weight: 450;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Theme toggle */
.theme-toggle {
  width: 52px;
  height: 28px;
  padding: 0;
  margin-right: 8px;
}

.toggle-track {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 100%;
  background: var(--bg-tertiary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  transition: all 0.3s ease;
  padding: 0 6px;
}

.toggle-track:hover {
  border-color: var(--accent);
}

.toggle-sun,
.toggle-moon {
  position: absolute;
  transition: opacity 0.3s;
  color: var(--text-tertiary);
}

.toggle-sun { left: 7px; }
.toggle-moon { right: 7px; }

[data-theme="light"] .toggle-sun { opacity: 1; color: var(--accent); }
[data-theme="light"] .toggle-moon { opacity: 0.3; }
[data-theme="dark"] .toggle-sun { opacity: 0.3; }
[data-theme="dark"] .toggle-moon { opacity: 1; color: var(--accent); }

.toggle-thumb {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%;
  left: 3px;
  transform: translateY(-50%);
  transition: left 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

[data-theme="dark"] .toggle-thumb {
  left: 27px;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}

.mobile-menu span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--text-primary);
  transition: all 0.3s;
  border-radius: 1px;
}

.mobile-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(4px, 5px);
}
.mobile-menu.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(4px, -5px);
}

.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px 24px;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
  opacity: 0;
  transform: translateY(-8px);
  transition: all 0.3s ease;
}

.mobile-nav.open {
  opacity: 1;
  transform: translateY(0);
}

.mobile-nav a {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  padding: 8px 0;
}

.mobile-nav-actions {
  display: flex;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}


/* ========================================
   Hero
   ======================================== */

.hero {
  position: relative;
  padding: calc(var(--nav-height) + 80px) 0 60px;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -100px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  animation: glow-float 8s ease-in-out infinite;
}

@keyframes glow-float {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-40px, 30px); }
}

.hero-content {
  max-width: 680px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-glow);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  animation: fadeUp 0.6s ease both;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  margin-bottom: 20px;
  animation: fadeUp 0.6s ease 0.1s both;
}

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

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

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

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 72px;
  animation: fadeUp 0.6s ease 0.4s both;
}

.metric {
  background: var(--surface);
  padding: 28px 24px;
  text-align: center;
  transition: background 0.3s;
}

.metric:hover {
  background: var(--surface-hover);
}

.metric-value {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


/* ========================================
   Sections
   ======================================== */

.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-secondary);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header > p {
  color: var(--text-secondary);
  font-size: 1.0625rem;
}


/* ========================================
   Features
   ======================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.feature-card {
  padding: 36px 32px;
  background: var(--surface);
  transition: background 0.3s;
}

.feature-card:hover {
  background: var(--surface-hover);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.feature-card p {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}


/* ========================================
   Steps
   ======================================== */

.steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 48px;
}

.step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  flex: 1;
  max-width: 280px;
}

.step-num {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 0.9375rem;
  margin-bottom: 4px;
}

.step-content p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.step-line {
  width: 48px;
  height: 1px;
  background: var(--border);
  flex-shrink: 0;
  margin-top: 20px;
}


/* ========================================
   Code block
   ======================================== */

.code-block {
  max-width: 600px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}

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

.code-dots {
  display: flex;
  gap: 7px;
}

.code-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
}

.code-dots .code-dot:nth-child(1) { background: #ff5f57; }
.code-dots .code-dot:nth-child(2) { background: #febc2e; }
.code-dots .code-dot:nth-child(3) { background: #28c840; }

.code-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  margin-left: auto;
}

.code-block pre {
  padding: 24px;
  background: var(--code-bg);
  overflow-x: auto;
}

.code-block code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: var(--code-text);
}

.code-prompt { color: var(--accent); font-weight: 600; }
.code-output { color: #28c840; }
.code-comment { color: rgba(255,255,255,0.3); }


/* ========================================
   Pricing
   ======================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.price-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  transition: all 0.3s ease;
  position: relative;
}

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

.price-card.popular {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
}

.price-card.popular:hover {
  box-shadow: 0 8px 32px rgba(212, 113, 42, 0.25);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.price-header {
  margin-bottom: 24px;
}

.price-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  margin-bottom: 2px;
}

.price-desc {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
}

.price-amount {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.price-amount .currency {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 500;
  vertical-align: super;
  color: var(--text-secondary);
}

.price-amount .amount {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-amount .period {
  font-size: 0.9375rem;
  color: var(--text-tertiary);
  margin-left: 2px;
}

.price-features {
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.price-features svg {
  flex-shrink: 0;
}


/* ========================================
   FAQ
   ======================================== */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  background: var(--surface);
  transition: background 0.2s;
}

.faq-item:hover {
  background: var(--surface-hover);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.9375rem;
  list-style: none;
  user-select: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-chevron {
  flex-shrink: 0;
  color: var(--text-tertiary);
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  color: var(--accent);
}

.faq-answer {
  padding: 0 24px 20px;
  animation: faqReveal 0.3s ease;
}

.faq-answer p {
  font-size: 0.875rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

@keyframes faqReveal {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}


/* ========================================
   Footer
   ======================================== */

.footer {
  padding: 64px 0 32px;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 260px;
}

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

.footer-brand > p {
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 64px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  padding: 4px 0;
  transition: color 0.2s;
}

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

.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
}


/* ========================================
   Modal
   ======================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 12, 10, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 400px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(12px) scale(0.98);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--text-tertiary);
  transition: all 0.2s;
}

.modal-close:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.modal-header {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.modal-tabs {
  display: flex;
  background: var(--bg-tertiary);
  border-radius: var(--radius-full);
  padding: 3px;
  margin-bottom: 28px;
}

.modal-tab {
  flex: 1;
  padding: 10px 0;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-tertiary);
  border-radius: var(--radius-full);
  transition: all 0.2s;
}

.modal-tab.active {
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-form.hidden {
  display: none;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.form-group input {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  padding: 12px 16px;
  background: var(--bg-primary);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: all 0.2s;
}

.form-group input::placeholder {
  color: var(--text-tertiary);
}

.form-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-link {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-tertiary);
  transition: color 0.2s;
}

.form-link:hover {
  color: var(--accent);
}

.form-terms {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  line-height: 1.5;
}

.form-terms a {
  color: var(--accent);
}

.form-terms a:hover {
  text-decoration: underline;
}


/* ========================================
   Responsive
   ======================================== */

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

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .steps {
    flex-direction: column;
    gap: 16px;
    align-items: stretch;
  }

  .step {
    max-width: 100%;
  }

  .step-line {
    width: 1px;
    height: 24px;
    margin: 0 0 0 20px;
  }

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

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    gap: 40px;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .nav-links,
  .nav-actions {
    display: none;
  }

  .mobile-menu {
    display: flex;
  }

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

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

  .hero {
    padding: calc(var(--nav-height) + 48px) 0 40px;
  }

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

  .hero-sub {
    font-size: 1rem;
  }

  .modal {
    padding: 32px 24px;
  }

  .section {
    padding: 64px 0;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 48px;
  }

  .footer-links {
    gap: 32px;
  }
}
