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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'DM Sans', sans-serif;
  background: #FDFCFA;
  color: #2D2A26;
  overflow-x: hidden;
}

/* Grain overlay for depth */
body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 9998;
  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;
  background-size: 200px 200px;
}

/* Hero */
.hero-bg {
  background: #0B1222;
  position: relative;
  overflow: hidden;
}

.hero-bg::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 80%;
  height: 120%;
  background: radial-gradient(ellipse, rgba(6, 95, 70, 0.15) 0%, transparent 65%);
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  bottom: -30%; left: -10%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse, rgba(120, 90, 50, 0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Fade in animation */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  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.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Section alternating bg */
.section-warm {
  background: #F6F3EE;
}

/* Card */
.card-elevated {
  background: #FFFFFF;
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 6px 24px rgba(0,0,0,0.03);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* Accent border on left */
.accent-left {
  border-left: 3px solid #047857;
}

/* Step number circle */
.step-num {
  width: 48px;
  height: 48px;
  border: 2px solid #047857;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Instrument Serif', serif;
  font-size: 1.25rem;
  color: #047857;
  flex-shrink: 0;
}

/* Divider line between steps */
.step-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, #d6d3cd, transparent);
  margin: 0 auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #FDFCFA;
}

::-webkit-scrollbar-thumb {
  background: #c5c0b8;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #9e998f;
}

/* Progress bar */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: #047857;
  z-index: 9999;
  transition: width 0.1s ease;
}

/* Button hover glow */
.btn-primary {
  background: #047857;
  color: #fff;
  transition: all 0.3s ease;
  position: relative;
}

.btn-primary:hover {
  background: #065f46;
  box-shadow: 0 4px 20px rgba(4, 120, 87, 0.3);
}

.btn-outline {
  border: 1.5px solid #d6d3cd;
  color: #2D2A26;
  transition: all 0.3s ease;
}

.btn-outline:hover {
  border-color: #047857;
  color: #047857;
  background: rgba(4, 120, 87, 0.03);
}

/* Form inputs */
.input-field {
  background: #FDFCFA;
  border: 1.5px solid #e5e0d8;
  transition: all 0.3s ease;
}

.input-field:focus {
  border-color: #047857;
  box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.08);
  outline: none;
}

/* Captcha */
.captcha-wrap {
  overflow: hidden;
  max-width: 100%;
}

.captcha-wrap iframe,
.captcha-wrap > div {
  max-width: 100% !important;
}

/* Nav */
.nav-glass {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* Subtle horizontal rule */
.rule {
  height: 1px;
  background: linear-gradient(to right, transparent, #d6d3cd, transparent);
}

/* Icon circle */
.icon-circle {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Responsive typography scale */
@media (min-width: 768px) {
  .hero-headline {
    font-size: 3.75rem;
    line-height: 1.1;
  }
}

@media (min-width: 1024px) {
  .hero-headline {
    font-size: 4.5rem;
    line-height: 1.05;
  }
}
