:root {
  --bg: #f5f7fb;
  --bg-top: #eef2f7;
  --ink: #1f2933;
  --muted: #5f6c7b;
  --panel: #ffffff;
  --panel-strong: #f9fbff;
  --border: #e5e9f2;
  --primary: #4cb5a2;
  --primary-2: #3f8f83;
  --accent: #4cb5a2;
  --gradient: linear-gradient(180deg, #f5f7fb 0%, #eef2f7 50%, #f5f7fb 100%);
  --glow: radial-gradient(circle at 20% 20%, rgba(76, 181, 162, 0.12), transparent 30%),
    radial-gradient(circle at 80% 0%, rgba(76, 181, 162, 0.08), transparent 35%),
    radial-gradient(circle at 50% 70%, rgba(63, 143, 131, 0.15), transparent 32%);
  --font: 'Inter', -apple-system, system-ui, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", sans-serif;
  --shadow-strong: 0 18px 50px rgba(25, 39, 52, 0.12);
  --shadow-soft: 0 12px 28px rgba(25, 39, 52, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  font-family: var(--font);
  background: var(--gradient), var(--glow);
  color: var(--ink);
  min-height: 100vh;
  margin: 0;
  line-height: 1.6;
  position: relative;
  display: flex;
  flex-direction: column;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: var(--glow);
  opacity: 0.5;
  pointer-events: none;
  filter: blur(80px);
}

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

.container {
  width: min(1200px, 94vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.bg-body {
  background: transparent;
}

.info-bar {
  width: 100%;
  background: linear-gradient(120deg, rgba(76, 181, 162, 0.16), rgba(63, 143, 131, 0.12));
  color: #0f1720;
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}

.error-bar {
  width: 100%;
  background: #f8d7da;
  color: #842029;
  padding: 0.85rem 0;
  border-bottom: 1px solid #f5c2c7;
  font-weight: 600;
  font-size: 0.95rem;
}

main {
  flex: 1 0 auto;
}

footer {
  flex-shrink: 0;
}

@media (min-width: 992px) {
  body[data-page='curtailment'] main {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  body[data-page='curtailment'] main > section {
    width: min(1100px, 96vw);
  }
  body[data-page='curtailment'] .hero .container,
  body[data-page='curtailment'] .section .container {
    width: 100%;
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--border);
}

.nav-glass {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  color: var(--ink);
  position: relative;
}

.nav-metrics {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.header-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.9rem;
}

.logo {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 2.4rem;
  background: linear-gradient(120deg, #4cb5a2, #3f8f83, #7edac8, #4cb5a2);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoWave 8s ease-in-out infinite;
}

@keyframes logoWave {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-links a {
  padding: 0.35rem 0.65rem;
  border-radius: 12px;
  color: var(--muted);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(76, 181, 162, 0.12);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  background: var(--ink);
  display: block;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(3.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  transform: translateY(-3.5px) rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.2rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  border: 1px solid transparent;
}

.primary-btn {
  background: linear-gradient(120deg, var(--primary), var(--primary-2));
  color: #fff;
  box-shadow: 0 8px 20px rgba(76, 181, 162, 0.3);
}

.primary-btn:hover {
  transform: translateY(-1px) scale(1.01);
  box-shadow: 0 12px 28px rgba(76, 181, 162, 0.32);
}

.ghost-btn {
  border-color: var(--border);
  color: var(--ink);
  background: #fff;
}

.ghost-btn:hover {
  border-color: rgba(76, 181, 162, 0.6);
  background: rgba(76, 181, 162, 0.08);
}

.pill,
.pill-soft {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  border: 1px solid var(--border);
  background: linear-gradient(120deg, rgba(76, 181, 162, 0.2), rgba(76, 181, 162, 0.08));
}

.pill-soft {
  background: rgba(76, 181, 162, 0.08);
  color: var(--muted);
}

.pill-contrast {
  border-color: rgba(76, 181, 162, 0.4);
  color: #0b0c19;
  background: linear-gradient(120deg, #7edac8, #4cb5a2);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 3.2rem;
}

.hero-compact {
  padding: 4.5rem 0 3rem;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 60% 20%, rgba(76, 181, 162, 0.2), transparent 30%),
    radial-gradient(circle at 30% 40%, rgba(63, 143, 131, 0.15), transparent 40%),
    linear-gradient(140deg, rgba(255, 255, 255, 0.6) 0%, rgba(245, 247, 251, 0.4) 100%);
  filter: blur(26px);
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  margin: 0.6rem 0;
  letter-spacing: -0.03em;
}

.hero-copy .lead {
  color: var(--muted);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #fff, #4cb5a2);
  box-shadow: 0 0 12px rgba(76, 181, 162, 0.7), 0 0 26px rgba(76, 181, 162, 0.28);
}

.live-meta {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.live-meta small {
  font-size: 0.85rem;
}

.live-meta .pill-soft {
  padding: 0.25rem 0.75rem;
  font-weight: 600;
}

.range-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.range-btn {
  border: 1px solid var(--border);
  background: #fff;
  color: #0f1720;
  border-radius: 10px;
  padding: 0.35rem 0.7rem;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.15s ease;
}

.range-btn.active {
  background: linear-gradient(120deg, #4cb5a2, #3f8f83);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(76, 181, 162, 0.24);
}

.range-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(76, 181, 162, 0.4);
}

.hero-preview {
  position: relative;
}

.hero-preview.compact {
  padding: 1rem 1.2rem;
}

.turbine-wrap {
  position: relative;
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: radial-gradient(circle at 40% 20%, rgba(76, 181, 162, 0.1), transparent 45%), #f9fbff;
  padding: 0.75rem;
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.turbine-svg {
  width: 100%;
  height: 140px;
}

.blade {
  transform-origin: 50% 50%;
  animation: spinBlade 5s linear infinite;
}

.blade.blade-2 {
  animation-delay: -1.2s;
}

.blade.blade-3 {
  animation-delay: -2.4s;
}

@keyframes spinBlade {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.preview-glow {
  position: absolute;
  inset: -12%;
  background: radial-gradient(circle at 50% 40%, rgba(76, 201, 240, 0.18), transparent 50%),
    radial-gradient(circle at 30% 60%, rgba(86, 11, 173, 0.28), transparent 55%);
  filter: blur(35px);
  z-index: 0;
}

.glass {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}

.glass::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.preview-card {
  padding: 1.8rem;
  z-index: 1;
}

.preview-header,
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.map-card .card-top {
  padding: 0.35rem 0.75rem 0;
  margin-bottom: 0.25rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.impact-chip {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #f7fafc;
  border: 1px solid var(--border);
}

.impact-value {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  color: #0f1720;
  letter-spacing: -0.02em;
}

.impact-value.gradient {
  background: linear-gradient(120deg, #4cb5a2, #3f8f83, #7edac8, #4cb5a2);
  background-size: 220% 220%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: logoWave 8s ease-in-out infinite;
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 900;
  display: block;
  width: 100%;
}

.preview-grid .stat-chip {
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.preview-grid .stat-chip span:first-child {
  color: var(--muted);
}

.preview-grid .stat-chip strong {
  font-weight: 700;
}

.preview-footer {
  margin-top: 1.2rem;
  color: var(--muted);
}

.section {
  padding: 3.8rem 0;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.section h2 {
  margin: 0;
  font-size: clamp(1.6rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.link-ghost {
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.link-ghost:hover {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.4);
}

.stat-chip {
  background: #f7fafc;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 0.9rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.stat-chip strong {
  font-weight: 700;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.card-grid.trio {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.card-grid.subtle article {
  background: var(--panel-strong);
}

.stat-card,
.feature-card {
  padding: 1.4rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.stat-card.tight {
  padding: 1.1rem 1.2rem;
}

.stat-card:hover,
.feature-card:hover,
.chart-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
  border-color: rgba(76, 181, 162, 0.4);
}

.card-label {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
}

.card-value {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0.35rem 0;
}

.dashboard {
  padding-top: 3rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.4rem;
}

.mix-highlight .dashboard-grid {
  align-items: start;
  grid-template-columns: 1fr;
}

.mix-detail .dashboard-grid {
  grid-template-columns: 1fr;
}

.chart-card {
  padding: 1.1rem 1.2rem;
}

.chart-card canvas {
  height: 220px !important;
  max-height: 220px;
}

.metric-block {
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid var(--border);
}

.metric-inline {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  flex-wrap: wrap;
}

.metric {
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.mix-chart {
  min-height: 220px;
  height: 220px;
  max-height: 220px;
}

.interconnectors-grid {
  display: block;
}

.map-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
}

.map-body {
  position: relative;
  flex: 1;
  min-height: 320px;
  background: linear-gradient(135deg, rgba(76, 181, 162, 0.08), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.8rem 0.9rem;
}

.map-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 300px;
  border-radius: 10px;
  overflow: hidden;
}

.map-visual::before {
  content: '';
  position: absolute;
  inset: 10%;
  background: radial-gradient(circle at 50% 50%, rgba(76, 181, 162, 0.18), transparent 60%);
  z-index: 0;
}

.flow-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.flow-row {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr 1fr;
  align-items: center;
  gap: 0.6rem;
  background: #fff;
  border: 1px solid #e5e9f2;
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  box-shadow: 0 8px 18px rgba(15, 23, 32, 0.1);
}

.flow-row.flow-head {
  background: transparent;
  border: 1px dashed #e5e9f2;
  box-shadow: none;
  font-weight: 700;
}

.flow-row p {
  margin: 0;
  font-size: 0.95rem;
  color: #0f1720;
  font-weight: 600;
}

.flow-row .flow-mw {
  font-weight: 700;
  color: #0f1720;
}

.flow-row .flow-share {
  font-size: 0.9rem;
  color: #5f6c7b;
}

.flow-spark {
  height: 24px;
}

.flow-bar-wrap {
  width: 100%;
  background: #eef2f7;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.flow-bar {
  height: 100%;
  background: linear-gradient(120deg, #4cb5a2, #3f8f83);
  border-radius: 999px;
}

.flow-bar.import {
  background: repeating-linear-gradient(
    90deg,
    #4cb5a2 0px,
    #4cb5a2 10px,
    rgba(76, 181, 162, 0.2) 10px,
    rgba(76, 181, 162, 0.2) 16px
  );
  animation: flowRight 1s linear infinite;
}

.flow-bar.export {
  background: repeating-linear-gradient(
    270deg,
    #f25f5c 0px,
    #f25f5c 10px,
    rgba(242, 95, 92, 0.2) 10px,
    rgba(242, 95, 92, 0.2) 16px
  );
  animation: flowLeft 1s linear infinite;
}

@keyframes flowRight {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 16px 0;
  }
}

@keyframes flowLeft {
  from {
    background-position: 0 0;
  }
  to {
    background-position: -16px 0;
  }
}

.map-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  color: #0f1720;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(15, 23, 32, 0.14);
  border: 1px solid #d1d5db;
  text-align: center;
  font-weight: 700;
  z-index: 2;
  min-width: 120px;
}

.map-center-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(120deg, #4cb5a2, #3f8f83);
  border-radius: 50%;
  margin: 0 auto 8px;
}


.feature-card {
  display: grid;
  gap: 0.4rem;
}

.feature-card .icon-dot {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #7edac8, #4cb5a2);
  box-shadow: 0 10px 25px rgba(76, 181, 162, 0.25);
}

.feature-card.soft .icon-dot {
  background: radial-gradient(circle at 30% 30%, #4cb5a2, #3f8f83);
}

.ingest .feature-card p,
.stack .feature-card p {
  color: var(--muted);
}

.map-node-block {
  position: absolute;
  transform: translate(-50%, -50%);
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  box-shadow: 0 12px 24px rgba(15, 23, 32, 0.12);
  min-width: 140px;
  text-align: center;
  z-index: 2;
}

.map-node-block p {
  margin: 0;
  font-size: 0.9rem;
  color: #374151;
}

.map-node-block strong {
  font-size: 1rem;
  color: #0f1720;
}

.map-node-block small {
  display: block;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.8rem 0;
  background: rgba(255, 255, 255, 0.85);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--ink);
}

.subtext {
  color: var(--muted);
}

.mix-table {
  display: grid;
  gap: 0.6rem;
}

.mix-row {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.6fr 0.6fr;
  align-items: center;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

.mix-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mix-spark {
  justify-content: flex-end;
}

.mix-spark canvas {
  width: 100px;
  height: 28px;
}

.mix-dot {
  width: 10px;
  height: 10px;
  background: linear-gradient(120deg, #4cc9f0, #560bad);
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(86, 11, 173, 0.4);
}

@media (max-width: 900px) {
  .nav-glass {
    flex-wrap: wrap;
    row-gap: 0.6rem;
  }

  .nav-metrics {
    width: 100%;
    justify-content: flex-start;
    gap: 0.5rem;
    order: 3;
    flex-wrap: wrap;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links.open {
    display: flex;
    position: absolute;
    top: calc(100% + 8px);
    right: 1rem;
    left: 1rem;
    padding: 0.8rem;
    flex-direction: column;
    gap: 0.6rem;
    background: rgba(10, 9, 20, 0.92);
    border: 1px solid var(--border);
    border-radius: 14px;
    box-shadow: var(--shadow-soft);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .mix-row {
    grid-template-columns: 1fr 1fr;
    row-gap: 0.5rem;
  }
}

@media (max-width: 640px) {
  .nav-glass {
    padding: 0.9rem 0.75rem;
  }

  .section-heading {
    flex-direction: column;
    align-items: flex-start;
  }

  .stat-card,
  .feature-card,
  .chart-card {
    padding: 1.1rem;
  }
}

.about-main {
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.section-block {
  margin-top: 2.5rem;
}
