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

:root {
  --bg: #0c1117;
  --bg-card: #141b23;
  --bg-card-hover: #1a232d;
  --bg-section-alt: #0f161d;
  --green: #4ade80;
  --green-dim: #22c55e;
  --green-dark: #166534;
  --green-glow: rgba(74, 222, 128, 0.15);
  --text: #e2e8f0;
  --text-dim: #94a3b8;
  --text-muted: #64748b;
  --border: #1e293b;
  --radius: 12px;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

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

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 16px 0;
  transition: background 0.3s, backdrop-filter 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(12, 17, 23, 0.85);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { height: 44px; width: 44px; object-fit: contain; }
.nav-brand-name {
  font-size: 1.6rem; font-weight: 800; letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--green-dim), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 14px; color: var(--text-dim);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--green); }

.mobile-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.mobile-toggle span {
  display: block; width: 24px; height: 2px; background: var(--text);
  margin: 5px 0; transition: 0.3s;
}
.mobile-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 28px; border-radius: 8px; font-size: 15px; font-weight: 600;
  transition: all 0.2s; cursor: pointer; border: none;
}
.btn-sm { padding: 8px 20px; font-size: 13px; }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-primary {
  background: linear-gradient(135deg, var(--green-dim), var(--green));
  color: #0c1117;
}
.btn-primary:hover {
  box-shadow: 0 0 30px var(--green-glow);
  transform: translateY(-1px);
}
.btn-outline {
  border: 1px solid var(--border); color: var(--text-dim);
  background: transparent;
}
.btn-outline:hover { border-color: var(--green); color: var(--green); }

/* ===== Badge ===== */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 500;
  background: var(--green-glow); color: var(--green);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding: 120px 0 80px;
}
.hero-glow {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}
.hero-content { text-align: center; position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800; line-height: 1.1; margin: 24px 0;
  letter-spacing: -0.02em;
}
.text-green { color: var(--green); }
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-dim); max-width: 640px; margin: 0 auto 40px;
}
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero-stats {
  display: flex; align-items: center; justify-content: center;
  gap: 40px; margin-top: 64px; flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-value { display: block; font-size: 1.5rem; font-weight: 700; color: var(--green); }
.hero-stat-label { font-size: 13px; color: var(--text-muted); }
.hero-stat-divider { width: 1px; height: 40px; background: var(--border); }

/* ===== Sections ===== */
.section { padding: 100px 0; }
.section-dark { background: var(--bg-section-alt); }
.section-header { text-align: center; margin-bottom: 64px; }
.section-header h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  margin: 16px 0; letter-spacing: -0.02em;
}
.section-sub {
  font-size: 1.1rem; color: var(--text-dim);
  max-width: 640px; margin: 0 auto;
}

/* ===== Cards ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
  transition: all 0.3s;
}
.card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(74, 222, 128, 0.2);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--green-glow); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 10px; }
.card p { font-size: 0.95rem; color: var(--text-dim); line-height: 1.6; }

/* ===== Grids ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-bottom: 64px; }
.step {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  position: relative; overflow: hidden; transition: all 0.3s;
}
.step:hover {
  border-color: rgba(74, 222, 128, 0.3);
  transform: translateY(-4px);
}
.step-number {
  font-size: 4rem; font-weight: 900; color: var(--green);
  opacity: 0.15; position: absolute; top: -10px; right: 16px;
  line-height: 1;
}
.step h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.step p { font-size: 0.95rem; color: var(--text-dim); }

/* ===== Metrics ===== */
.metrics-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.metric {
  text-align: center; padding: 32px;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius);
}
.metric-value {
  font-size: 2.5rem; font-weight: 800; color: var(--green);
  display: block; margin-bottom: 8px;
}
.metric-label { font-size: 0.9rem; color: var(--text-dim); }

/* ===== Timeline ===== */
.timeline { max-width: 720px; margin: 0 auto; position: relative; }
.timeline::before {
  content: ''; position: absolute; left: 28px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(to bottom, var(--green), var(--border));
}
.timeline-item {
  display: flex; gap: 32px; margin-bottom: 48px;
  position: relative;
}
.timeline-marker {
  width: 56px; height: 56px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg); border: 2px solid var(--green);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.2rem; color: var(--green);
  z-index: 1;
}
.timeline-content { padding-top: 8px; }
.timeline-period {
  font-size: 13px; font-weight: 600; color: var(--green);
  text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px;
}
.timeline-content h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; }
.timeline-content p { color: var(--text-dim); font-size: 0.95rem; }
.timeline-footnote {
  text-align: center; margin-top: 48px; font-size: 1rem;
  color: var(--text-muted); max-width: 700px; margin-left: auto; margin-right: auto;
  font-style: italic;
}

/* ===== Market Cards ===== */
.market-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px 32px;
  text-align: center; transition: all 0.3s;
}
.market-card:hover { transform: translateY(-4px); }
.market-card-featured {
  border-color: var(--green); position: relative;
  box-shadow: 0 0 40px var(--green-glow);
}
.market-horizon {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--green); margin-bottom: 12px;
}
.market-card h3 { font-size: 1.2rem; margin-bottom: 16px; }
.market-stat {
  font-size: 3rem; font-weight: 800; color: var(--green);
  line-height: 1; margin-bottom: 4px;
}
.market-detail { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 20px; }
.market-tam {
  font-size: 1rem; font-weight: 700; color: var(--text);
  margin-bottom: 4px;
}
.market-price { font-size: 0.85rem; color: var(--text-muted); }

/* ===== CTA ===== */
.section-cta {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, var(--bg-section-alt), var(--bg));
  padding: 120px 0;
}
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 500px;
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta-content {
  text-align: center; position: relative; z-index: 1;
  max-width: 640px; margin: 0 auto;
}
.cta-content h2 {
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  margin-bottom: 20px;
}
.cta-content p { color: var(--text-dim); font-size: 1.1rem; margin-bottom: 16px; }
.cta-bold { color: var(--text); font-weight: 600; margin-bottom: 32px !important; }

/* ===== Footer ===== */
.footer {
  padding: 40px 0; border-top: 1px solid var(--border);
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-logo { height: 32px; width: 32px; object-fit: contain; }
.footer-brand-name {
  font-size: 1.2rem; font-weight: 800;
  background: linear-gradient(135deg, var(--green-dim), var(--green));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand p { font-size: 13px; color: var(--text-muted); }
.footer-copy { font-size: 13px; color: var(--text-muted); }

/* ===== Animations ===== */
.fade-in {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(12,17,23,0.95); padding: 24px;
    gap: 16px; backdrop-filter: blur(16px); border-bottom: 1px solid var(--border);
  }
  .nav-links.open { display: flex; }
  .nav .btn-sm { display: none; }
  .mobile-toggle { display: block; }

  .grid-3, .grid-4, .steps, .metrics-row { grid-template-columns: 1fr; }

  .hero-stats { flex-direction: column; gap: 20px; }
  .hero-stat-divider { width: 40px; height: 1px; }

  .timeline::before { left: 20px; }
  .timeline-marker { width: 40px; height: 40px; font-size: 1rem; }

  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
