/* ========================================
   Energy Storage | Clean Technology
   Professional Informational Webpage
   ======================================== */

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

:root {
  --color-bg: #0c1222;
  --color-bg-alt: #0f1a2e;
  --color-bg-card: #131d33;
  --color-bg-card-hover: #172240;
  --color-border: #1e3a5f;
  --color-border-light: #1a2f4d;
  --color-text: #e2e8f0;
  --color-text-muted: #94a3b8;
  --color-text-dim: #64748b;
  --color-primary: #0ea5e9;
  --color-primary-light: #38bdf8;
  --color-primary-dark: #0284c7;
  --color-cyan: #06b6d4;
  --color-green: #10b981;
  --color-amber: #f59e0b;
  --color-rose: #f43f5e;
  --color-violet: #8b5cf6;
  --color-orange: #f97316;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  --container-max: 1200px;
  --section-pad: 120px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.7;
  font-size: 16px;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-primary-light);
}

::selection {
  background: rgba(14, 165, 233, 0.25);
  color: #fff;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all var(--transition);
  background: transparent;
}

.nav--scrolled {
  background: rgba(12, 18, 34, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
  padding: 10px 0;
}

.nav__container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.3px;
}

.nav__logo:hover {
  color: var(--color-text);
}

.nav__logo-icon {
  width: 32px;
  height: 32px;
  color: var(--color-primary);
}

.nav__logo-dot {
  color: var(--color-primary);
}

.nav__links {
  display: flex;
  list-style: none;
  gap: 36px;
}

.nav__links a {
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.2px;
  transition: color var(--transition);
  position: relative;
}

.nav__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--color-primary);
  transition: width var(--transition);
}

.nav__links a:hover {
  color: var(--color-text);
}

.nav__links a:hover::after {
  width: 100%;
}

.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav__toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text-muted);
  border-radius: 1px;
  transition: all var(--transition);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 120px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 60px;
  align-items: center;
}

.hero__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero__title {
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -3px;
  color: #fff;
  margin-bottom: 24px;
}

.hero__title-accent {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-cyan) 50%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--color-text-muted);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__actions {
  display: flex;
  gap: 16px;
  margin-bottom: 56px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
}

.btn--primary {
  background: var(--color-primary);
  color: #fff;
  box-shadow: 0 0 30px rgba(14, 165, 233, 0.2);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 0 40px rgba(14, 165, 233, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}

.btn--outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  border-top: 1px solid var(--color-border);
  padding-top: 32px;
}

.hero__stat-value {
  font-size: 36px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}

.hero__stat-unit {
  font-size: 20px;
  font-weight: 600;
  color: var(--color-primary);
}

.hero__stat-label {
  display: block;
  font-size: 13px;
  color: var(--color-text-dim);
  margin-top: 4px;
  line-height: 1.4;
}

.hero__graphic {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__battery {
  width: 280px;
  height: auto;
  filter: drop-shadow(0 0 60px rgba(14, 165, 233, 0.15));
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text-dim);
  animation: scrollBounce 2s infinite;
  z-index: 1;
}

/* --- Particles animation --- */
.hero__particle {
  animation: particleFloat 6s ease-in-out infinite;
}
.hero__particle--delay1 { animation-delay: 1s; }
.hero__particle--delay2 { animation-delay: 2s; }
.hero__particle--delay3 { animation-delay: 3s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.3; }
  50% { transform: translateY(-20px) scale(1.5); opacity: 0.6; }
}

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* Battery charge animation */
.hero__battery-segments rect {
  animation: chargeSegment 3s ease-in-out infinite;
}
.hero__battery-segments rect:nth-child(1) { animation-delay: 0s; }
.hero__battery-segments rect:nth-child(2) { animation-delay: 0.5s; }
.hero__battery-segments rect:nth-child(3) { animation-delay: 1s; }
.hero__battery-segments rect:nth-child(4) { animation-delay: 1.5s; }

@keyframes chargeSegment {
  0%, 100% { opacity: 0.15; }
  50% { opacity: 0.85; }
}

.hero__battery-bolt {
  animation: boltPulse 2s ease-in-out infinite;
}

@keyframes boltPulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --- Flow path animation --- */
.flow-path {
  animation: flowDash 3s linear infinite;
  stroke-dasharray: 12 6;
}
.flow-path--delay { animation-delay: 0.5s; }
.flow-path--delay2 { animation-delay: 1s; }
.flow-path--delay3 { animation-delay: 1.5s; }

@keyframes flowDash {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -36; }
}

/* --- Sections --- */
.section {
  padding: var(--section-pad) 0;
  position: relative;
}

.section--overview {
  background: var(--color-bg);
}

.section--technologies {
  background: var(--color-bg-alt);
}

.section--market {
  background: var(--color-bg);
}

.section--environment {
  background: var(--color-bg-alt);
}

.section--future {
  background: var(--color-bg);
}

.section__header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 72px;
}

.section__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 16px;
}

.section__title {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 18px;
}

.section__desc {
  font-size: 17px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Overview Cards --- */
.overview__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 96px;
}

.overview__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px 28px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.overview__card.visible {
  opacity: 1;
  transform: translateY(0);
}

.overview__card:hover {
  border-color: rgba(14, 165, 233, 0.3);
  background: var(--color-bg-card-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.overview__card-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 20px;
}

.overview__card-icon svg {
  width: 100%;
  height: 100%;
}

.overview__card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.overview__card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- Principles / How it works --- */
.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.principles__visual {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 24px;
}

.principles__content h3 {
  font-size: 28px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.principles__content > p {
  color: var(--color-text-muted);
  margin-bottom: 36px;
  font-size: 15px;
}

.principles__list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.principles__item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.principles__number {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  border-radius: 8px;
  padding: 6px 12px;
  flex-shrink: 0;
}

.principles__item strong {
  display: block;
  color: #fff;
  font-size: 16px;
  margin-bottom: 4px;
}

.principles__item p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Technology Classification Chart --- */
.tech-classification {
  margin-bottom: 72px;
}

.tech-classification__chart {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px;
  overflow: hidden;
}

.tech-classification__chart svg {
  width: 100%;
  height: auto;
}

/* --- Technology Cards --- */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.tech-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 36px;
  transition: all var(--transition);
  opacity: 0;
  transform: translateY(30px);
}

.tech-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.tech-card:hover {
  border-color: rgba(14, 165, 233, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.tech-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.tech-card__icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tech-card__icon svg {
  width: 48px;
  height: 48px;
}

.tech-card__icon--lithium { color: var(--color-primary); background: rgba(14, 165, 233, 0.08); }
.tech-card__icon--flow { color: var(--color-green); background: rgba(16, 185, 129, 0.08); }
.tech-card__icon--hydro { color: var(--color-cyan); background: rgba(6, 182, 212, 0.08); }
.tech-card__icon--caes { color: var(--color-orange); background: rgba(249, 115, 22, 0.08); }
.tech-card__icon--hydrogen { color: var(--color-rose); background: rgba(244, 63, 94, 0.08); }
.tech-card__icon--thermal { color: var(--color-amber); background: rgba(245, 158, 11, 0.08); }
.tech-card__icon--gravity { color: var(--color-violet); background: rgba(139, 92, 246, 0.08); }
.tech-card__icon--sodium { color: var(--color-primary-light); background: rgba(56, 189, 248, 0.08); }

.tech-card__header h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
}

.tech-card__maturity {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 3px 10px;
  border-radius: 100px;
  margin-top: 4px;
}

.tech-card__maturity--mature {
  background: rgba(14, 165, 233, 0.12);
  color: var(--color-primary-light);
}

.tech-card__maturity--growing {
  background: rgba(16, 185, 129, 0.12);
  color: var(--color-green);
}

.tech-card__maturity--emerging {
  background: rgba(245, 158, 11, 0.12);
  color: var(--color-amber);
}

.tech-card > p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
  margin-bottom: 24px;
}

.tech-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 24px;
}

.tech-card__spec {
  background: rgba(14, 165, 233, 0.04);
  border: 1px solid var(--color-border-light);
  border-radius: 8px;
  padding: 12px 14px;
}

.tech-card__spec-label {
  display: block;
  font-size: 11px;
  color: var(--color-text-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.tech-card__spec-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
}

.tech-card__bar {
  position: relative;
}

.tech-card__bar-fill {
  height: 4px;
  background: var(--color-primary);
  border-radius: 2px;
  margin-bottom: 8px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card__bar span {
  font-size: 12px;
  color: var(--color-text-dim);
}

/* --- Market Section --- */
.market__dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-bottom: 72px;
}

.market__chart-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
}

.market__chart-card--wide {
  grid-column: 1 / -1;
}

.market__chart-card h3 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 28px;
}

/* Bar chart */
.market__bar-chart {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.market__bar-row {
  display: grid;
  grid-template-columns: 40px 1fr 70px;
  gap: 12px;
  align-items: center;
}

.market__bar-label {
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--color-text-dim);
}

.market__bar-track {
  height: 24px;
  background: rgba(14, 165, 233, 0.06);
  border-radius: 4px;
  overflow: hidden;
}

.market__bar-fill {
  height: 100%;
  background: var(--bar-color, var(--color-primary));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0.8;
}

.market__bar-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-mono);
  text-align: right;
}

/* Cost chart */
.market__cost-chart svg {
  width: 100%;
  height: auto;
}

/* Regional breakdown */
.market__regions {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.market__region-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.market__region-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
}

.market__region-pct {
  font-size: 18px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--color-primary-light);
}

.market__region-bar {
  height: 8px;
  background: rgba(14, 165, 233, 0.06);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.market__region-fill {
  height: 100%;
  background: var(--region-color, var(--color-primary));
  border-radius: 4px;
  width: 0;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.market__region-detail {
  font-size: 13px;
  color: var(--color-text-dim);
  line-height: 1.5;
}

/* --- Metrics --- */
.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.metric {
  text-align: center;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 40px 24px;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
}

.metric.visible {
  opacity: 1;
  transform: translateY(0);
}

.metric__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
}

.metric__icon svg {
  width: 100%;
  height: 100%;
}

.metric__value {
  font-size: 48px;
  font-weight: 900;
  color: #fff;
  letter-spacing: -2px;
  font-variant-numeric: tabular-nums;
}

.metric__unit {
  font-size: 24px;
  font-weight: 600;
  color: var(--color-primary);
}

.metric__label {
  display: block;
  font-size: 13px;
  color: var(--color-text-dim);
  margin-top: 8px;
}

/* --- Environment Section --- */
.env__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 80px;
}

.env__card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  transition: all var(--transition);
}

.env__card.visible {
  opacity: 1;
  transform: translateY(0);
}

.env__card:hover {
  border-color: rgba(14, 165, 233, 0.2);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.env__card-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.env__card--positive .env__card-indicator {
  background: linear-gradient(90deg, var(--color-green), var(--color-cyan));
}

.env__card--challenge .env__card-indicator {
  background: linear-gradient(90deg, var(--color-amber), var(--color-orange));
}

.env__card h3 {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.env__card p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* Lifecycle graphic */
.lifecycle {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 48px;
  text-align: center;
}

.lifecycle h3 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 32px;
}

.lifecycle__visual svg {
  width: 100%;
  max-width: 800px;
  height: auto;
  margin: 0 auto;
}

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto 96px;
}

.timeline__line {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
  transform: translateX(-50%);
}

.timeline__item {
  display: flex;
  margin-bottom: 48px;
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.timeline__item.visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline__item--left {
  justify-content: flex-start;
  padding-right: calc(50% + 40px);
}

.timeline__item--right {
  justify-content: flex-end;
  padding-left: calc(50% + 40px);
}

.timeline__marker {
  position: absolute;
  left: 50%;
  width: 16px;
  height: 16px;
  background: var(--color-bg);
  border: 3px solid var(--color-primary);
  border-radius: 50%;
  transform: translateX(-50%);
  z-index: 1;
}

.timeline__content {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 28px;
}

.timeline__year {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--color-primary);
  background: rgba(14, 165, 233, 0.08);
  border: 1px solid rgba(14, 165, 233, 0.2);
  padding: 3px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.timeline__content h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.timeline__content p {
  font-size: 14px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- Trends --- */
.trends {
  text-align: center;
}

.trends h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 48px;
}

.trends__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.trend {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: left;
  opacity: 0;
  transform: translateY(20px);
  transition: all var(--transition);
}

.trend.visible {
  opacity: 1;
  transform: translateY(0);
}

.trend:hover {
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.trend__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 18px;
}

.trend__icon svg {
  width: 100%;
  height: 100%;
}

.trend h4 {
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}

.trend p {
  font-size: 13px;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* --- Footer --- */
.footer {
  background: var(--color-bg-alt);
  border-top: 1px solid var(--color-border);
  padding: 64px 0 40px;
}

.footer__content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.footer__brand {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.footer__logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  margin-top: 2px;
}

.footer__name {
  font-size: 16px;
  font-weight: 700;
  color: var(--color-text);
  display: block;
  margin-bottom: 6px;
}

.footer__tagline {
  font-size: 13px;
  color: var(--color-text-dim);
  max-width: 360px;
  line-height: 1.5;
}

.footer__links {
  display: flex;
  gap: 28px;
}

.footer__links a {
  font-size: 14px;
  color: var(--color-text-muted);
  font-weight: 500;
}

.footer__links a:hover {
  color: var(--color-primary);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer__bottom p {
  font-size: 12px;
  color: var(--color-text-dim);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 1024px) {
  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .hero__graphic {
    display: none;
  }
  .overview__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .principles {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .market__dashboard {
    grid-template-columns: 1fr;
  }
  .env__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .trends__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .nav__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background: rgba(12, 18, 34, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    transition: right var(--transition);
    border-left: 1px solid var(--color-border);
  }

  .nav__links--open {
    right: 0;
  }

  .nav__toggle {
    display: flex;
    z-index: 1001;
  }

  .nav__toggle--open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }
  .nav__toggle--open span:nth-child(2) {
    opacity: 0;
  }
  .nav__toggle--open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
  }

  .hero__stats {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero__stat {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
  }

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

  .tech-card__specs {
    grid-template-columns: 1fr;
  }

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

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

  .timeline__item--left,
  .timeline__item--right {
    padding-left: 40px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline__line {
    left: 8px;
  }

  .timeline__marker {
    left: 8px;
  }

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

  .footer__content {
    flex-direction: column;
    gap: 32px;
  }

  .footer__links {
    flex-wrap: wrap;
    gap: 16px;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .lifecycle {
    padding: 24px;
    overflow-x: auto;
  }

  .lifecycle__visual svg {
    min-width: 600px;
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 64px;
  }

  .hero__title {
    letter-spacing: -2px;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn {
    width: 100%;
    max-width: 280px;
  }

  .tech-classification__chart {
    padding: 16px;
    overflow-x: auto;
  }

  .tech-classification__chart svg {
    min-width: 500px;
  }
}

/* --- Animate on scroll base --- */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}
