/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; line-height: 1.6; overflow-x: hidden; transition: background-color 0.5s, color 0.5s; }
img { display: block; max-width: 100%; }
svg { max-width: 100%; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Theme Variables ──────────────────────────────── */
:root {
  --green-1: #FAFEFC;
  --green-2: #F2FCF7;
  --green-3: #E1F8EC;
  --green-4: #CEF3E0;
  --green-5: #B8ECD2;
  --green-6: #9DE2C0;
  --green-7: #75D3A8;
  --green-8: #20BF87;
  --green-9: #10B981;
  --green-10: #00AD76;
  --green-11: #008352;
  --green-12: #0C3D2A;
  --transition: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="dark"] {
  --bg-primary: #060d0a;
  --bg-secondary: #0c1a14;
  --bg-card: #0f2119;
  --bg-card-hover: #132a20;
  --bg-nav: rgba(6, 13, 10, 0.85);
  --text-primary: #f0fdf4;
  --text-secondary: #a3c9b6;
  --text-muted: #6b9a84;
  --border-color: rgba(16, 185, 129, 0.12);
  --border-hover: rgba(16, 185, 129, 0.3);
  --accent: #10B981;
  --accent-hover: #20BF87;
  --accent-glow: rgba(16, 185, 129, 0.15);
  --accent-glow-strong: rgba(16, 185, 129, 0.25);
  --hero-gradient: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16, 185, 129, 0.12) 0%, transparent 70%);
  --section-gradient: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  --scope1: #ef4444;
  --scope2: #f59e0b;
  --scope3: #3b82f6;
}

[data-theme="light"] {
  --bg-primary: #FAFEFC;
  --bg-secondary: #F2FCF7;
  --bg-card: #ffffff;
  --bg-card-hover: #F2FCF7;
  --bg-nav: rgba(250, 254, 252, 0.9);
  --text-primary: #0C3D2A;
  --text-secondary: #1a6b47;
  --text-muted: #4a8c6e;
  --border-color: rgba(12, 61, 42, 0.1);
  --border-hover: rgba(16, 185, 129, 0.4);
  --accent: #10B981;
  --accent-hover: #00AD76;
  --accent-glow: rgba(16, 185, 129, 0.08);
  --accent-glow-strong: rgba(16, 185, 129, 0.15);
  --hero-gradient: radial-gradient(ellipse 80% 60% at 50% -10%, rgba(16, 185, 129, 0.08) 0%, transparent 70%);
  --section-gradient: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
  --scope1: #dc2626;
  --scope2: #d97706;
  --scope3: #2563eb;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
}

/* ── Navigation ───────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 2rem;
  background: var(--bg-nav);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  transition: background var(--transition), border-color var(--transition);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-brand {
  display: flex; align-items: center; gap: 0.75rem;
  font-weight: 700; font-size: 1.25rem;
  color: var(--text-primary);
}
.nav-brand-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green-9), var(--green-11));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 1rem;
}
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: 0.9rem; font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.3s;
}
.nav-link:hover { color: var(--accent); }
.nav-actions { display: flex; align-items: center; gap: 1rem; }

.theme-toggle {
  width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.theme-toggle:hover {
  border-color: var(--border-hover);
  color: var(--accent);
  background: var(--accent-glow);
}
.theme-toggle svg { width: 20px; height: 20px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.7rem 1.5rem; border-radius: 12px;
  font-family: inherit; font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none;
  transition: all 0.3s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 24px rgba(16, 185, 129, 0.25);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.35);
  transform: translateY(-1px);
}
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-glow);
}
.btn-large {
  padding: 1rem 2.5rem; font-size: 1.05rem; border-radius: 14px;
}
.btn-hero {
  padding: 1.1rem 3rem; font-size: 1.1rem; border-radius: 16px;
  box-shadow: 0 8px 40px rgba(16, 185, 129, 0.3);
}
.btn-hero:hover {
  box-shadow: 0 12px 48px rgba(16, 185, 129, 0.45);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none; background: none; border: none;
  color: var(--text-primary); cursor: pointer;
  width: 44px; height: 44px; border-radius: 12px;
  align-items: center; justify-content: center;
}
.mobile-menu-btn svg { width: 24px; height: 24px; }

/* ── Hero Section ─────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 120px 2rem 80px;
  background: var(--section-gradient);
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: var(--hero-gradient);
  pointer-events: none;
}
.hero::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 600px at 70% 80%, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content {
  max-width: 820px; text-align: center; position: relative; z-index: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.5rem 1.25rem; border-radius: 100px;
  background: var(--accent-glow);
  border: 1px solid var(--border-color);
  color: var(--accent); font-size: 0.85rem; font-weight: 600;
  margin-bottom: 2rem;
  transition: all var(--transition);
}
.hero-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.2rem);
  font-weight: 800; line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent { color: var(--accent); }
.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 620px; margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex; align-items: center; justify-content: center;
  gap: 1rem; flex-wrap: wrap;
}
.hero-metrics {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 4rem; padding-top: 3rem;
  border-top: 1px solid var(--border-color);
}
.hero-metric { text-align: center; }
.hero-metric-value {
  font-size: 1.8rem; font-weight: 700; color: var(--accent);
}
.hero-metric-label {
  font-size: 0.85rem; color: var(--text-muted); margin-top: 0.25rem;
}

/* ── Section Base ─────────────────────────────────── */
section { padding: 100px 2rem; position: relative; }
.section-alt { background: var(--bg-secondary); }
.container { max-width: 1200px; margin: 0 auto; }
.section-header {
  text-align: center; max-width: 680px; margin: 0 auto 4rem;
}
.section-label {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.02em;
  margin-bottom: 1rem; line-height: 1.15;
}
.section-header p {
  font-size: 1.1rem; color: var(--text-secondary); line-height: 1.7;
}

/* ── Features Grid ────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.feature-card {
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  transition: all 0.4s;
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}
.feature-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.25rem;
  background: var(--accent-glow);
  color: var(--accent);
  transition: all 0.4s;
}
.feature-card:hover .feature-icon {
  background: var(--accent);
  color: #fff;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 {
  font-size: 1.15rem; font-weight: 700;
  margin-bottom: 0.6rem;
}
.feature-card p {
  font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65;
}

/* ── Scopes Section ───────────────────────────────── */
.scopes-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.scope-card {
  padding: 2rem; border-radius: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  transition: all 0.4s; position: relative; overflow: hidden;
}
.scope-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; transition: height 0.4s;
}
.scope-card:hover::before { height: 4px; }
.scope-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}
.scope-1::before { background: var(--scope1); }
.scope-2::before { background: var(--scope2); }
.scope-3::before { background: var(--scope3); }
.scope-number {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px;
  font-weight: 800; font-size: 0.9rem; margin-bottom: 1rem;
}
.scope-1 .scope-number { background: rgba(239,68,68,0.12); color: var(--scope1); }
.scope-2 .scope-number { background: rgba(245,158,11,0.12); color: var(--scope2); }
.scope-3 .scope-number { background: rgba(59,130,246,0.12); color: var(--scope3); }
.scope-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; }
.scope-card .scope-subtitle {
  font-size: 0.85rem; font-weight: 600; margin-bottom: 0.75rem;
}
.scope-1 .scope-subtitle { color: var(--scope1); }
.scope-2 .scope-subtitle { color: var(--scope2); }
.scope-3 .scope-subtitle { color: var(--scope3); }
.scope-card p { font-size: 0.92rem; color: var(--text-secondary); line-height: 1.65; }

/* ── How It Works ─────────────────────────────────── */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 36px; left: 12.5%; right: 12.5%;
  height: 2px;
  background: linear-gradient(90deg, var(--border-color) 0%, var(--accent) 50%, var(--border-color) 100%);
  z-index: 0;
}
.step {
  text-align: center; position: relative; z-index: 1;
  padding: 0 0.5rem;
}
.step-number {
  width: 72px; height: 72px; border-radius: 20px; margin: 0 auto 1.25rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 800;
  background: var(--bg-card);
  border: 2px solid var(--border-color);
  color: var(--accent);
  transition: all 0.4s;
}
.step:hover .step-number {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  transform: scale(1.08);
}
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.5rem; }
.step p { font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }

/* ── CTA Section ──────────────────────────────────── */
.cta-section {
  padding: 100px 2rem;
}
.cta-box {
  max-width: 900px; margin: 0 auto;
  padding: 4rem 3rem; border-radius: 28px;
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--bg-card) 0%, var(--accent-glow) 100%);
  border: 1px solid var(--border-color);
}
.cta-box::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle 400px at 50% 0%, var(--accent-glow-strong) 0%, transparent 70%);
  pointer-events: none;
}
.cta-box h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800; margin-bottom: 1rem;
  position: relative; letter-spacing: -0.02em;
}
.cta-box p {
  font-size: 1.1rem; color: var(--text-secondary);
  max-width: 520px; margin: 0 auto 2rem; position: relative;
  line-height: 1.7;
}
.cta-box .btn { position: relative; }

/* ── Footer ───────────────────────────────────────── */
.footer {
  padding: 2.5rem 2rem;
  border-top: 1px solid var(--border-color);
  background: var(--bg-primary);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.95rem; color: var(--text-muted);
}
.footer-brand-icon {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, var(--green-9), var(--green-11));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 800; font-size: 0.7rem;
}
.footer-copy { font-size: 0.85rem; color: var(--text-muted); }

/* ── Scroll Animations ────────────────────────────── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }
.reveal-delay-5 { transition-delay: 0.4s; }
.reveal-delay-6 { transition-delay: 0.45s; }

/* ── Mobile Menu ──────────────────────────────────── */
.mobile-nav {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary); z-index: 99;
  padding: 2rem;
  flex-direction: column; gap: 0.5rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }
.mobile-nav a {
  display: block; padding: 1rem;
  font-size: 1.1rem; font-weight: 600;
  color: var(--text-primary); border-radius: 12px;
  transition: background 0.3s;
}
.mobile-nav a:hover { background: var(--accent-glow); color: var(--accent); }

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps::before { display: none; }
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }
  .hero { padding: 100px 1.5rem 60px; }
  .hero-metrics { gap: 1.5rem; flex-wrap: wrap; }
  .features-grid { grid-template-columns: 1fr; }
  .scopes-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 1.25rem; }
  section { padding: 70px 1.5rem; }
  .cta-box { padding: 3rem 1.5rem; }
  .footer-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .nav-actions .btn-primary { display: none; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn { width: 100%; }
  .hero-metrics { flex-direction: column; gap: 1rem; }
}
