/* =========================================
   CANOPY — CSS Design System
   ========================================= */

:root {
  --bg-deep: #111f16;
  --bg-card: #152419;
  --bg-section: #f7f6f2;
  --green-dark: #3d7a52;
  --green-light: #5fa876;
  --green-dim: rgba(61, 122, 82, 0.12);
  --green-glow: rgba(95, 168, 118, 0.08);
  --text-dark: #0d1a0f;
  --text-mid: #4a5a4a;
  --text-light: #8a9e8c;
  --text-white: #e8ede9;
  --text-muted: #7a9a7e;
  --border: rgba(61, 122, 82, 0.15);
  --border-light: rgba(61, 122, 82, 0.08);
}

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

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg-deep);
  color: var(--text-white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- NAV ---- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 40px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(17, 31, 22, 0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
}
.nav-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-white);
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.5px;
}
.nav-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
  padding: 5px 12px;
  border: 1px solid var(--border);
  border-radius: 40px;
}

/* ---- HERO ---- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  position: relative;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61, 122, 82, 0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(61, 122, 82, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(61, 122, 82, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-shapes {
  position: absolute;
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  width: 40%;
  max-width: 440px;
  opacity: 0.6;
}
.shape-ring {
  position: absolute;
  right: 0;
  width: 400px;
  height: 400px;
  animation: rotate-ring 60s linear infinite;
}
@keyframes rotate-ring {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.shape-lines {
  position: absolute;
  right: 80px;
  top: 50%;
  transform: translateY(-50%);
  width: 200px;
  height: 300px;
}
.hero-chart {
  position: absolute;
  right: 60px;
  bottom: 12%;
  background: rgba(21, 36, 25, 0.8);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  backdrop-filter: blur(12px);
  min-width: 140px;
}
.chart-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 60px;
  margin-bottom: 10px;
}
.chart-bar {
  flex: 1;
  background: linear-gradient(to top, var(--green-dark), var(--green-light));
  border-radius: 3px 3px 0 0;
  opacity: 0.7;
  animation: bar-grow 2s ease-out forwards;
}
@keyframes bar-grow {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}
.chart-score {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 28px;
  color: var(--green-light);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 80px 80px 80px;
  max-width: 640px;
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-light);
  margin-bottom: 28px;
}
.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-light);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}
.hero-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -2px;
  color: var(--text-white);
  margin-bottom: 24px;
}
.headline-accent {
  color: var(--green-light);
  position: relative;
  display: inline-block;
}
.headline-accent::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--green-light);
  opacity: 0.3;
}
.hero-sub {
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 480px;
  margin-bottom: 48px;
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 28px 32px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.stat {
  display: flex;
  flex-direction: column;
}
.stat-value {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 26px;
  color: var(--green-light);
  letter-spacing: -1px;
}
.stat-unit {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 2px;
}
.stat-label {
  font-size: 11px;
  color: var(--text-light);
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
}
.trust-aum {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--text-white);
}

/* ---- SECTION SHARED ---- */
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--green-dark);
  padding: 5px 14px;
  border: 1px solid var(--green-dark);
  border-radius: 40px;
  margin-bottom: 20px;
}
.section-title {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.5px;
  color: var(--text-dark);
  margin-bottom: 12px;
}
.section-sub {
  font-size: 17px;
  color: var(--text-mid);
}

/* ---- FEATURES ---- */
.features {
  background: var(--bg-section);
  padding: 100px 40px;
}
.features-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.features .section-title { color: var(--text-dark); }
.features .section-tag { border-color: var(--green-dark); color: var(--green-dark); }
.feature-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
  align-items: start;
}
.feature-card {
  background: #ffffff;
  border: 1px solid #e4ece6;
  border-radius: 20px;
  padding: 36px 32px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(17, 31, 22, 0.08);
}
.feature-primary {
  background: var(--bg-deep);
  border-color: var(--border);
  transform: translateY(-8px);
}
.feature-primary .feature-title { color: var(--text-white); }
.feature-primary .feature-desc { color: var(--text-muted); }
.feature-primary .feature-list li { color: var(--text-muted); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--green-dim);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.feature-primary .feature-icon { background: rgba(61, 122, 82, 0.2); }
.feature-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 14px;
  letter-spacing: -0.5px;
}
.feature-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.feature-list {
  list-style: none;
  margin-bottom: 24px;
}
.feature-list li {
  font-size: 13px;
  color: var(--text-mid);
  padding: 5px 0;
  padding-left: 18px;
  position: relative;
  border-bottom: 1px solid #f0f4f0;
}
.feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-size: 11px;
}
.feature-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--green-dark);
  padding: 4px 10px;
  border: 1px solid var(--green-dark);
  border-radius: 40px;
  opacity: 0.7;
}

/* ---- HOW ---- */
.how {
  background: #ffffff;
  padding: 100px 40px;
  border-top: 1px solid #e4ece6;
}
.how-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.step-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 40px;
}
.step {
  position: relative;
}
.step-num {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 52px;
  color: #e4ece6;
  letter-spacing: -2px;
  margin-bottom: 20px;
  line-height: 1;
}
.step-connector {
  position: absolute;
  top: 36px;
  right: -20px;
  width: 40px;
  height: 1px;
  background: linear-gradient(to right, #e4ece6, var(--green-dark));
}
.step:last-child .step-connector { display: none; }
.step-title {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 22px;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}
.step-desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-mid);
  margin-bottom: 20px;
}
.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.step-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--green-dark);
  background: #f0f7f2;
  padding: 4px 10px;
  border-radius: 40px;
}

/* ---- CLOSING ---- */
.closing {
  background: var(--bg-deep);
  padding: 100px 40px;
  border-top: 1px solid var(--border);
}
.closing-inner {
  max-width: 1120px;
  margin: 0 auto;
}
.closing-content {
  max-width: 680px;
  margin-bottom: 80px;
}
.closing-headline {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -2px;
  color: var(--text-white);
  margin-bottom: 28px;
  line-height: 1.1;
}
.closing-body {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
}
.closing-vision {
  display: flex;
  align-items: center;
  gap: 48px;
  padding: 40px 48px;
  background: var(--green-dim);
  border: 1px solid var(--border);
  border-radius: 20px;
}
.vision-stat { flex: 1; }
.vision-number {
  font-family: 'Syne', sans-serif;
  font-weight: 800;
  font-size: 56px;
  color: var(--text-white);
  letter-spacing: -3px;
  margin-bottom: 8px;
  line-height: 1;
}
.vision-arrow {
  font-size: 32px;
  color: var(--green-light);
  flex-shrink: 0;
}
.vision-label {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ---- FOOTER ---- */
.footer {
  background: #0a140e;
  padding: 48px 40px;
  border-top: 1px solid var(--border-light);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-name {
  font-family: 'Syne', sans-serif;
  font-weight: 700;
  font-size: 18px;
  color: var(--text-white);
}
.footer-tagline {
  font-size: 14px;
  color: var(--text-muted);
}
.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--text-light);
}
.footer-dot { color: var(--green-dark); }

/* ---- RESPONSIVE ---- */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .hero-content {
    padding: 100px 32px 60px;
    max-width: 100%;
  }
  .hero-shapes { display: none; }
  .hero-stats {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .stat-divider { display: none; }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .feature-primary { transform: none; }
  .step-row {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .step-connector { display: none; }
  .closing-vision {
    flex-direction: column;
    gap: 24px;
  }
  .vision-number { font-size: 40px; }
  .features, .how, .closing { padding: 72px 24px; }
  .hero-headline { font-size: 40px; }
}
@media (max-width: 480px) {
  .nav { padding: 0 20px; }
  .footer-meta { flex-direction: column; gap: 4px; }
  .footer-dot { display: none; }
}

/* ---- ANIMATIONS ---- */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
section {
  animation: fade-up 0.6s ease-out both;
}
.how .step:nth-child(2) { animation-delay: 0.1s; }
.how .step:nth-child(3) { animation-delay: 0.2s; }
.feature-card:nth-child(2) { animation-delay: 0.1s; }
.feature-card:nth-child(3) { animation-delay: 0.2s; }
