/* ============================================
   RESET & BASE
   ============================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  color: #1B1B1B;
  background: #FAF9F5;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  line-height: 1.1;
}

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

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

ul {
  list-style: none;
}

::selection {
  background: #2D6A4F;
  color: #FFFFFF;
}

::-moz-selection {
  background: #2D6A4F;
  color: #FFFFFF;
}

/* ============================================
   VARIABLES
   ============================================ */
:root {
  --accent: #2D6A4F;
  --accent-dark: #1B4332;
  --dark: #1B1B1B;
  --off-white: #FAF9F5;
  --gray-100: #F2F0EA;
  --gray-200: #E5E2DA;
  --gray-400: #8A8A85;
  --gray-600: #5C5C5C;
  --white: #FFFFFF;
  --max-width: 1200px;
  --section-pad-y: 120px;
  --section-pad-x: 24px;
}

/* ============================================
   UTILITY
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding-left: var(--section-pad-x);
  padding-right: var(--section-pad-x);
}

/* ============================================
   ANIMATIONS
   ============================================ */
.fade-in-section {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* stagger children */
.fade-in-section .stagger {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-in-section.is-visible .stagger:nth-child(1) { transition-delay: 0.05s; opacity: 1; transform: translateY(0); }
.fade-in-section.is-visible .stagger:nth-child(2) { transition-delay: 0.12s; opacity: 1; transform: translateY(0); }
.fade-in-section.is-visible .stagger:nth-child(3) { transition-delay: 0.19s; opacity: 1; transform: translateY(0); }
.fade-in-section.is-visible .stagger:nth-child(4) { transition-delay: 0.26s; opacity: 1; transform: translateY(0); }

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(250, 249, 245, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--gray-200);
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-wordmark {
  font-family: 'IBM Plex Mono', monospace;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

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

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}

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

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  background: var(--accent);
  color: var(--white) !important;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.nav-cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  gap: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.hamburger.active span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}
.hamburger.active span:nth-child(2) {
  opacity: 0;
}
.hamburger.active span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile nav overlay */
.mobile-nav {
  display: none;
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(250, 249, 245, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
}

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

.mobile-nav a {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.8rem;
  color: var(--dark);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--accent);
}

.mobile-nav .nav-cta {
  font-size: 1.1rem;
  padding: 16px 40px;
  border-radius: 10px;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: var(--accent);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.btn-primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 106, 79, 0.25);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  background: transparent;
  color: var(--dark);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.05rem;
  border-radius: 10px;
  border: 2px solid var(--gray-200);
  cursor: pointer;
  transition: border-color 0.2s, transform 0.15s, background 0.2s;
}

.btn-ghost:hover {
  border-color: var(--dark);
  transform: translateY(-2px);
  background: rgba(27, 27, 27, 0.03);
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 160px;
  padding-bottom: 80px;
  background: var(--off-white);
  overflow: hidden;
}

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

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  letter-spacing: -0.035em;
  color: var(--dark);
  margin-bottom: 28px;
  line-height: 1.05;
}

.hero p {
  font-size: clamp(1.1rem, 1.8vw, 1.3rem);
  color: var(--gray-600);
  max-width: 620px;
  line-height: 1.7;
  margin-bottom: 44px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 0;
}

/* Credibility strip */
.credibility-strip {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--gray-200);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.cred-item {
  text-align: left;
}

.cred-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--dark);
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.cred-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   PROBLEM SECTION
   ============================================ */
.problem {
  background: var(--dark);
  color: var(--white);
  padding: var(--section-pad-y) 0;
}

.problem h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  max-width: 600px;
}

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

.pain-item {
  padding: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s, border-color 0.3s;
}

.pain-item:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.14);
}

.pain-number {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 14px;
}

.pain-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  line-height: 1.35;
  color: rgba(255,255,255,0.9);
}

/* ============================================
   SERVICES
   ============================================ */
.services {
  background: var(--off-white);
  padding: var(--section-pad-y) 0;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 16px;
}

.services h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  color: var(--dark);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.service-card {
  background: var(--white);
  border-radius: 14px;
  padding: 44px;
  border-left: 5px solid var(--accent);
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.07);
}

.service-card h3 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--dark);
}

.service-card p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 10px;
  font-size: 0.95rem;
}

.service-card .service-details {
  color: var(--gray-400);
  font-size: 0.88rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.service-hook {
  font-weight: 500;
  color: var(--dark);
  font-size: 0.95rem;
  font-style: italic;
}

/* ============================================
   ABOUT
   ============================================ */
.about {
  background: var(--gray-100);
  padding: var(--section-pad-y) 0;
}

.about h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  color: var(--dark);
}

.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 80px;
  align-items: start;
}

.about-narrative p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 24px;
}

.about-narrative p:last-child {
  margin-bottom: 0;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}

.stat-item {
  text-align: left;
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 2.6rem;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-desc {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 300;
  font-size: 0.75rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

/* ============================================
   HOW IT WORKS
   ============================================ */
.how-it-works {
  background: var(--off-white);
  padding: var(--section-pad-y) 0;
}

.how-it-works h2 {
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  letter-spacing: -0.03em;
  margin-bottom: 64px;
  color: var(--dark);
}

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

.step {
  position: relative;
}

.step-number {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 4.5rem;
  color: var(--accent);
  opacity: 0.15;
  line-height: 1;
  margin-bottom: -10px;
  letter-spacing: -0.04em;
}

.step h3 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  color: var(--dark);
}

.step p {
  color: var(--gray-600);
  font-size: 1rem;
  line-height: 1.7;
}

/* connector line between steps */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 85px;
  right: -20px;
  width: 40px;
  height: 2px;
  background: var(--gray-200);
}

/* ============================================
   CTA
   ============================================ */
.cta-section {
  background: var(--accent);
  padding: var(--section-pad-y) 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 40px;
}

.btn-white {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 48px;
  background: var(--white);
  color: var(--accent);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-bottom: 40px;
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

.cta-links {
  display: flex;
  justify-content: center;
  gap: 32px;
}

.cta-links a {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color 0.2s, border-color 0.2s;
}

.cta-links a:hover {
  color: var(--white);
  border-color: var(--white);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.5);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-left .footer-name {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 4px;
}

.footer-left .footer-location {
  font-size: 0.85rem;
}

.footer-right {
  display: flex;
  gap: 24px;
}

.footer-right a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}

.footer-right a:hover {
  color: rgba(255,255,255,0.9);
}

/* ============================================
   RESPONSIVE -- TABLET
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --section-pad-y: 96px;
  }

  .credibility-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
  }

  .services-grid {
    gap: 24px;
  }

  .service-card {
    padding: 36px;
  }

  .about-grid {
    gap: 48px;
  }

  .step:not(:last-child)::after {
    display: none;
  }
}

/* ============================================
   RESPONSIVE -- MOBILE
   ============================================ */
@media (max-width: 768px) {
  :root {
    --section-pad-y: 72px;
    --section-pad-x: 20px;
  }

  /* Nav */
  .nav-links {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .nav-inner {
    height: 64px;
  }

  /* Hero */
  .hero {
    padding-top: 120px;
    padding-bottom: 56px;
  }

  .hero h1 {
    font-size: clamp(2.2rem, 9vw, 3rem);
  }

  .hero p {
    font-size: 1.05rem;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons a {
    text-align: center;
  }

  .credibility-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
  }

  /* Problem */
  .pain-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .pain-item {
    padding: 28px;
  }

  /* Services */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .service-card {
    padding: 32px;
  }

  /* About */
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }

  .stat-value {
    font-size: 2.2rem;
  }

  /* Steps */
  .steps {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .step:not(:last-child)::after {
    display: none;
  }

  /* CTA */
  .btn-white {
    padding: 18px 36px;
    font-size: 1rem;
  }

  .cta-links {
    flex-direction: column;
    gap: 16px;
    align-items: center;
  }

  /* Footer */
  .footer-inner {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .credibility-strip {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }

  .cred-value {
    font-size: 1.15rem;
  }

  .about-stats {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}
