/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #0a0f0d;
  --bg2:        #0e1410;
  --bg3:        #111811;
  --surface:    #161e17;
  --surface2:   #1c261e;
  --border:     rgba(52, 211, 153, 0.12);
  --border2:    rgba(52, 211, 153, 0.22);
  --green:      #34d399;
  --green-dim:  #1a6645;
  --green-glow: rgba(52, 211, 153, 0.15);
  --teal:       #2dd4bf;
  --amber:      #f59e0b;
  --red:        #f87171;
  --text:       #e8f0eb;
  --text-muted: #7a9b84;
  --text-dim:   #4a6b54;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-body:    'Syne', system-ui, sans-serif;
  --radius:     12px;
  --radius-lg:  20px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

/* ===========================
   TYPOGRAPHY
=========================== */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
}

em { font-style: italic; color: var(--green); }

strong { color: var(--text); font-weight: 600; }

p { color: #a8c5b0; font-size: 0.97rem; }

a { text-decoration: none; color: inherit; }

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 100px 0;
  position: relative;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 56px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: var(--green);
  margin-top: 16px;
  border-radius: 2px;
}

/* ===========================
   REVEAL ANIMATIONS
=========================== */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===========================
   NAV
=========================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), backdrop-filter var(--transition);
  border-bottom: 1px solid transparent;
}

.nav.scrolled {
  background: rgba(10, 15, 13, 0.92);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  font-size: 1.5rem;
  color: var(--green);
  animation: spin-slow 8s linear infinite;
}

@keyframes spin-slow { to { transform: rotate(360deg); } }

.nav-links {
  list-style: none;
  display: flex;
  gap: 36px;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  transition: color var(--transition);
}

.nav-links a:hover { color: var(--green); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}

.nav-mobile a {
  padding: 14px 24px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  transition: color var(--transition), background var(--transition);
}

.nav-mobile a:hover { color: var(--green); background: var(--surface2); }

.nav-mobile.open { display: flex; }

/* ===========================
   HERO
=========================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse at 30% 50%, rgba(26, 102, 69, 0.18) 0%, transparent 70%),
              radial-gradient(ellipse at 80% 20%, rgba(45, 212, 191, 0.06) 0%, transparent 60%),
              var(--bg);
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 860px;
  padding: 120px 24px 80px;
}

.hero-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--green);
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.25);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 32px;
  animation: pulse-badge 3s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.0); }
  50%       { box-shadow: 0 0 0 8px rgba(52,211,153,0.0); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  color: var(--text);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.stat-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  min-width: 140px;
  transition: border-color var(--transition), transform var(--transition);
}

.stat-pill:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.stat-num {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--green);
}

.stat-label {
  display: block;
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-top: 4px;
}

.hero-cta {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.4);
  padding: 14px 36px;
  border-radius: 100px;
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.hero-cta:hover {
  background: var(--green);
  color: var(--bg);
  transform: translateY(-2px);
}

.hero-scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--green), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50%       { opacity: 0.4; transform: scaleY(0.6); }
}

/* ===========================
   WHAT IS
=========================== */
.what { background: var(--bg2); }

.what-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.what-text p {
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.what-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 100px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: default;
  transition: border-color var(--transition), color var(--transition);
}

.source-tag:hover { border-color: var(--green); color: var(--green); }

/* Energy Wheel */
.what-visual { display: flex; justify-content: center; align-items: center; }

.energy-wheel {
  position: relative;
  width: 300px;
  height: 300px;
}

.wheel-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: var(--surface2);
  border: 2px solid var(--border2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--green);
  z-index: 2;
  animation: pulse-center 3s ease-in-out infinite;
}

@keyframes pulse-center {
  0%, 100% { box-shadow: 0 0 0 0 var(--green-glow); }
  50%       { box-shadow: 0 0 0 16px rgba(52,211,153,0); }
}

.wheel-orbit {
  position: absolute;
  inset: 0;
  animation: rotate-orbit 20s linear infinite;
}

@keyframes rotate-orbit { to { transform: rotate(360deg); } }

.wheel-node {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52px;
  height: 52px;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 50%;
  transform-origin: 0 0;
  transform: rotate(var(--angle)) translateX(110px) translateY(-26px) rotate(calc(-1 * var(--angle)));
  animation: counter-rotate 20s linear infinite;
  transition: border-color var(--transition);
}

.wheel-node:hover { border-color: var(--green); }

@keyframes counter-rotate { to { transform: rotate(calc(var(--angle) + 360deg)) translateX(110px) translateY(-26px) rotate(calc(-1 * (var(--angle) + 360deg))); } }

/* ===========================
   WHY
=========================== */
.why { background: var(--bg); }

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.why-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color var(--transition), transform var(--transition);
}

.why-card:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.why-icon { font-size: 2.4rem; margin-bottom: 16px; }

.why-card h3 {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 12px;
}

.why-card p {
  font-size: 0.9rem;
  margin-bottom: 20px;
  line-height: 1.7;
}

.why-bar {
  height: 4px;
  background: var(--surface2);
  border-radius: 4px;
  margin-bottom: 8px;
  overflow: hidden;
}

.why-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green), var(--teal));
  border-radius: 4px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.why-bar-label {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* ===========================
   PROS & CONS
=========================== */
.proscons { background: var(--bg2); }

.proscons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.pros-col, .cons-col {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.proscons-header {
  padding: 20px 28px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pros-header {
  background: rgba(52, 211, 153, 0.08);
  color: var(--green);
  border-bottom: 1px solid rgba(52, 211, 153, 0.15);
}

.cons-header {
  background: rgba(248, 113, 113, 0.08);
  color: var(--red);
  border-bottom: 1px solid rgba(248, 113, 113, 0.15);
}

.proscons-list {
  list-style: none;
  padding: 16px 0;
}

.proscons-list li {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 28px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

.proscons-list li:last-child { border-bottom: none; }
.proscons-list li:hover { background: var(--surface2); }

.list-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.proscons-list strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 4px;
}

.proscons-list p {
  font-size: 0.82rem;
  line-height: 1.5;
}

/* ===========================
   TYPES
=========================== */
.types { background: var(--bg); }

.types-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.type-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.type-card:hover {
  border-color: var(--border2);
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(0,0,0,0.3);
}

.type-card:hover::before { opacity: 1; }

.type-icon { font-size: 2.8rem; margin-bottom: 16px; display: block; }

.type-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--badge-color, var(--green));
  background: rgba(from var(--badge-color, #34d399) r g b / 0.12);
  border: 1px solid rgba(from var(--badge-color, #34d399) r g b / 0.25);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}

/* Fallback for browsers without color() */
.type-badge {
  border-color: color-mix(in srgb, var(--badge-color, var(--green)) 30%, transparent);
  background: color-mix(in srgb, var(--badge-color, var(--green)) 12%, transparent);
}

.type-desc {
  font-size: 0.87rem;
  line-height: 1.7;
  margin-bottom: 20px;
}

.type-meta { display: flex; flex-direction: column; gap: 10px; }

.type-pro, .type-con {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
}

.meta-icon {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
  flex-shrink: 0;
  margin-top: 1px;
}

.meta-icon.con { color: var(--red); }

/* ===========================
   COMPARE
=========================== */
.compare { background: var(--bg2); }

.compare-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 36px;
}

.toggle-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 10px 24px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}

.toggle-btn.active {
  background: var(--green);
  color: var(--bg);
  border-color: var(--green);
}

.toggle-btn:hover:not(.active) {
  border-color: var(--border2);
  color: var(--text);
}

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.compare-table th {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  padding: 18px 24px;
  text-align: left;
  background: var(--surface2);
  color: var(--text);
  border-bottom: 1px solid var(--border);
}

.compare-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border);
  color: #a8c5b0;
  vertical-align: top;
  line-height: 1.5;
}

.compare-table tr:last-child td { border-bottom: none; }

.compare-table tr:hover td { background: var(--surface); }

.green-col { color: var(--green) !important; }
.red-col   { color: var(--red)   !important; }

.compare-chart-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#compareChart { max-height: 360px; }

/* ===========================
   FUTURE
=========================== */
.future { background: var(--bg); }

.future-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* Timeline */
.future-timeline { position: relative; }

.future-timeline::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 20px;
  bottom: 20px;
  width: 1px;
  background: linear-gradient(to bottom, var(--green), var(--teal), transparent);
}

.timeline-item {
  display: flex;
  gap: 24px;
  margin-bottom: 36px;
  align-items: flex-start;
}

.tl-dot {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--surface2);
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  position: relative;
  z-index: 1;
  transition: border-color var(--transition), background var(--transition);
}

.timeline-item:hover .tl-dot {
  border-color: var(--green);
  background: var(--green-dim);
}

.tl-content { padding-top: 8px; }

.tl-content h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}

.tl-content p { font-size: 0.85rem; }

/* Innovations */
.future-innovations h3 {
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 28px;
}

.innovation-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
  transition: border-color var(--transition), transform var(--transition);
}

.innovation-card:hover {
  border-color: var(--border2);
  transform: translateX(6px);
}

.inn-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface2);
  border-radius: 10px;
}

.innovation-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.innovation-card p { font-size: 0.82rem; }

/* ===========================
   CTA
=========================== */
.cta {
  background: var(--bg2);
  padding: 120px 0;
}

.cta-inner {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: 24px;
  padding: 72px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(52, 211, 153, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(2rem, 4vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
  position: relative;
}

.cta-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 56px;
  line-height: 1.7;
  position: relative;
}

.cta-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}

.cta-action {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  transition: border-color var(--transition), transform var(--transition);
}

.cta-action:hover {
  border-color: var(--border2);
  transform: translateY(-4px);
}

.cta-action-icon { font-size: 2rem; margin-bottom: 12px; }

.cta-action h4 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 10px;
}

.cta-action p { font-size: 0.82rem; line-height: 1.6; }

/* ===========================
   FOOTER
=========================== */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.footer-note {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.7;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ===========================
   RESPONSIVE
=========================== */
@media (max-width: 900px) {
  .what-grid { grid-template-columns: 1fr; gap: 48px; }
  .why-grid  { grid-template-columns: 1fr; }
  .types-grid { grid-template-columns: repeat(2, 1fr); }
  .future-grid { grid-template-columns: 1fr; }
  .cta-actions { grid-template-columns: repeat(2, 1fr); }
  .proscons-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .types-grid { grid-template-columns: 1fr; }
  .cta-actions { grid-template-columns: 1fr; }
  .cta-inner { padding: 48px 24px; }
  .hero-stats { flex-direction: column; align-items: center; }
  .what-visual { display: none; }
}