/* ===== TOKENS ===== */
:root {
  --color-bg: #FAFAF8;
  --color-surface: #FFFFFF;
  --color-text: #1A1A1A;
  --color-text-muted: #6B6B6B;
  --color-accent: #2B5C3F;
  --color-accent-light: #E8F0EB;
  --color-accent-hover: #1E4430;
  --color-border: #E5E5E0;
  --color-warm: #F5F0E8;

  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;
  --font-serif: 'DM Serif Display', Georgia, serif;

  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6rem;
  --space-section: clamp(4rem, 3rem + 5vw, 8rem);

  --text-sm: 0.875rem;
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.5vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --text-2xl: clamp(1.5rem, 1.2rem + 1.5vw, 2rem);
  --text-hero: clamp(2.25rem, 1.5rem + 3.75vw, 4rem);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 100px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.1);
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background: var(--color-bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ===== LAYOUT ===== */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* ===== NAV ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-brand {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--color-accent);
  letter-spacing: -0.02em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}
.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--color-text); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.btn-sm {
  font-size: var(--text-sm);
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
}
.btn-sm:hover { background: var(--color-accent-hover); }
.btn-lg {
  font-size: var(--text-base);
  padding: 0.875rem 2rem;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  color: #fff;
}
.btn-lg:hover {
  background: var(--color-accent-hover);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-outline {
  background: transparent;
  color: var(--color-accent);
  border: 2px solid var(--color-accent);
}
.btn-outline:hover {
  background: var(--color-accent);
  color: #fff;
}
.btn-full { width: 100%; }

/* ===== HERO ===== */
.hero {
  padding: calc(64px + var(--space-2xl)) 0 var(--space-2xl);
  text-align: center;
  background: linear-gradient(180deg, var(--color-warm) 0%, var(--color-bg) 100%);
}
.hero-badge {
  display: inline-block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-accent);
  background: var(--color-accent-light);
  padding: 0.375rem 1rem;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-md);
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: var(--text-hero);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}
.hero-accent { color: var(--color-accent); }
.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 640px;
  margin: 0 auto var(--space-lg);
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-xl);
}
.hero-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  flex-wrap: wrap;
}
.proof-item { text-align: center; }
.proof-number {
  display: block;
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  color: var(--color-accent);
}
.proof-label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.proof-divider {
  width: 1px;
  height: 40px;
  background: var(--color-border);
}

/* ===== SECTION TITLES ===== */
.section-title {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  text-align: center;
  margin-bottom: var(--space-xs);
}
.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
}

/* ===== PROBLEM ===== */
.problem {
  padding: var(--space-section) 0;
}
.problem-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
}
.problem-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}
.problem-icon {
  font-size: 2rem;
  margin-bottom: var(--space-sm);
}
.problem-card h3 {
  font-size: var(--text-lg);
  margin-bottom: var(--space-xs);
}
.problem-card p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===== HOW IT WORKS ===== */
.how-it-works {
  padding: var(--space-section) 0;
  background: var(--color-warm);
}
.steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}
.step {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}
.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-content h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
}
.step-content p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===== FEATURES ===== */
.features {
  padding: var(--space-section) 0;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-md);
}
.feature {
  padding: var(--space-lg);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  transition: box-shadow 0.2s, transform 0.2s;
}
.feature:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feature-icon {
  font-size: 1.75rem;
  margin-bottom: var(--space-sm);
}
.feature h3 {
  font-size: var(--text-lg);
  margin-bottom: 0.25rem;
}
.feature p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ===== DEMO ===== */
.demo {
  padding: var(--space-section) 0;
  background: var(--color-accent);
  color: #fff;
}
.demo .section-title { color: #fff; }
.demo .section-sub { color: rgba(255,255,255,0.75); }
.demo-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  align-items: start;
}
.demo-form-container {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  min-height: 400px;
}
.demo-explainer h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}
.demo-explainer ol {
  list-style: decimal;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.demo-explainer li {
  font-size: var(--text-sm);
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.demo-explainer li strong {
  color: #fff;
}
.demo-note {
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  font-style: italic;
}

/* ===== PRICING ===== */
.pricing {
  padding: var(--space-section) 0;
  background: var(--color-warm);
}
.pricing-card-wrapper {
  display: flex;
  justify-content: center;
}
.pricing-card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 440px;
  width: 100%;
  overflow: hidden;
}
.pricing-header {
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-md) var(--space-lg);
  text-align: center;
}
.pricing-header h3 {
  font-size: var(--text-lg);
  font-weight: 600;
}
.pricing-body {
  padding: var(--space-lg);
  text-align: center;
}
.pricing-row {
  margin-bottom: var(--space-xs);
}
.pricing-amount {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
}
.pricing-dollar {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-top: 0.5rem;
  color: var(--color-accent);
}
.pricing-value {
  font-family: var(--font-serif);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--color-accent);
}
.pricing-period {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  align-self: flex-end;
  margin-bottom: 0.25rem;
}
.pricing-term {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}
.pricing-plus {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin: var(--space-xs) 0;
}
.pricing-features {
  text-align: left;
  margin: var(--space-lg) 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.pricing-features li {
  font-size: var(--text-sm);
  padding-left: 1.5rem;
  position: relative;
  color: var(--color-text-muted);
}
.pricing-features li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* ===== CONTACT ===== */
.contact {
  padding: var(--space-section) 0;
  text-align: center;
}
.contact-options {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}
.contact-alt {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

/* ===== FOOTER ===== */
.footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.6);
  padding: var(--space-lg) 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.footer-brand {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #fff;
}
.footer-links {
  display: flex;
  gap: var(--space-md);
}
.footer-links a {
  font-size: var(--text-sm);
  transition: color 0.2s;
}
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: var(--text-sm); }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .nav-links a:not(.btn) { display: none; }

  .hero { padding-top: calc(64px + var(--space-xl)); }

  .proof-divider { display: none; }
  .hero-proof { gap: var(--space-md); }

  .demo-wrapper {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .btn-lg { width: 100%; }
  .hero-proof { flex-direction: column; gap: var(--space-sm); }
}
