:root {
  color-scheme: dark;
  --bg: #0e1517;
  --panel: #172024;
  --panel-2: #1d2a2d;
  --ink: #f4efe3;
  --muted: #b9c0b7;
  --line: rgba(244, 239, 227, 0.14);
  --ember: #f0a35b;
  --moss: #8eb67f;
  --cyan: #77cad2;
  --gold: #d6bd72;
  --blue: #6f91c9;
  --shadow: rgba(0, 0, 0, 0.28);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 12%, rgba(240, 163, 91, 0.12), transparent 28rem),
    radial-gradient(circle at 86% 28%, rgba(119, 202, 210, 0.12), transparent 26rem),
    linear-gradient(rgba(244, 239, 227, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 227, 0.025) 1px, transparent 1px),
    linear-gradient(145deg, #0e1517, #111b1e 46%, #182323);
  background-size: auto, auto, 58px 58px, 58px 58px, auto;
}

a {
  color: inherit;
}

.page-shell {
  width: min(1440px, calc(100% - 48px));
  margin: 0 auto;
  padding-bottom: 36px;
}

.site-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 44px;
}

.brand {
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  text-decoration: none;
}

.brand-mark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: 0;
}

.brand-by {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
}

.language-switcher {
  display: flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid rgba(244, 239, 227, 0.18);
  border-radius: 999px;
  background: rgba(14, 21, 23, 0.78);
}

.language-switcher button {
  min-width: 48px;
  border: 0;
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.language-switcher button.active {
  color: var(--bg);
  background: var(--ink);
}

.hero {
  display: grid;
  grid-template-columns: minmax(420px, 0.82fr) minmax(620px, 1.18fr);
  gap: 32px;
  align-items: stretch;
  min-height: 700px;
  padding: 8px 0 34px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
  padding-right: 10px;
}

.eyebrow,
.dossier-kicker,
.mini-label,
.decision-row span {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 680px;
  margin-top: 22px;
  font-size: clamp(2.35rem, 3.1vw, 3.75rem);
  line-height: 1.05;
  font-weight: 600;
}

h2 {
  font-size: clamp(2rem, 3.1vw, 3.4rem);
  line-height: 1.02;
  font-weight: 540;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.62;
}

.lead {
  max-width: 690px;
  margin: 22px 0 0;
  color: rgba(244, 239, 227, 0.82);
  font-size: clamp(1.06rem, 1.35vw, 1.28rem);
}

.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.status-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 10px;
  color: var(--muted);
  background: rgba(244, 239, 227, 0.04);
  font-size: 0.85rem;
}

.dossier-preview {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(23, 32, 36, 0.82);
  box-shadow: 0 22px 70px var(--shadow);
  backdrop-filter: blur(14px);
}

.concept-note {
  max-width: 900px;
  margin: 0;
  color: rgba(244, 239, 227, 0.72);
  font-size: 0.96rem;
  line-height: 1.55;
}

.dossier-head,
.profile-card,
.decision-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.dossier-head {
  padding: 2px 2px 10px;
  border-bottom: 1px solid var(--line);
}

.dossier-head h2 {
  margin-top: 5px;
  font-size: clamp(1.85rem, 2.5vw, 2.65rem);
}

.dossier-badge {
  flex: none;
  border: 1px solid rgba(119, 202, 210, 0.36);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--cyan);
  background: rgba(119, 202, 210, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.example-grid {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
}

.case-stack,
.resonance-map,
.decision-row article,
.flow-grid article,
.modules-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 239, 227, 0.035);
}

.case-stack {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.case-card {
  width: 100%;
  appearance: none;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(14, 21, 23, 0.46);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.case-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

.case-top span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.case-top b {
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}

.case-card h3 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.case-card p {
  margin: 8px 0 12px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.case-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.case-tags span {
  border: 1px solid rgba(244, 239, 227, 0.14);
  border-radius: 999px;
  padding: 5px 7px;
  color: rgba(244, 239, 227, 0.76);
  background: rgba(244, 239, 227, 0.035);
  font-size: 0.72rem;
}

.case-solar { border-color: rgba(214, 189, 114, 0.32); }
.case-sme { border-color: rgba(119, 202, 210, 0.28); }
.case-campus { border-color: rgba(142, 182, 127, 0.3); }

.case-solar .case-top b { color: var(--gold); }
.case-sme .case-top b { color: var(--cyan); }
.case-campus .case-top b { color: var(--moss); }

.case-solar .case-tags span { border-color: rgba(214, 189, 114, 0.24); }
.case-sme .case-tags span { border-color: rgba(119, 202, 210, 0.24); }
.case-campus .case-tags span { border-color: rgba(142, 182, 127, 0.24); }

.case-card:hover,
.case-card.active {
  transform: translateY(-1px);
  background: rgba(244, 239, 227, 0.055);
}

.case-card.active {
  border-color: rgba(244, 239, 227, 0.46);
  box-shadow: 0 0 0 1px rgba(244, 239, 227, 0.12) inset;
}

.resonance-map {
  position: relative;
  min-height: 480px;
  overflow: hidden;
  background:
    linear-gradient(rgba(244, 239, 227, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 239, 227, 0.035) 1px, transparent 1px),
    rgba(14, 21, 23, 0.34);
  background-size: 42px 42px, 42px 42px, auto;
}

.ring {
  position: absolute;
  left: 50%;
  top: 50%;
  border: 1px solid rgba(244, 239, 227, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ring-a {
  width: 78%;
  aspect-ratio: 1;
}

.ring-b {
  width: 48%;
  aspect-ratio: 1;
  border-color: rgba(119, 202, 210, 0.22);
}

.map-core {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  width: 132px;
  height: 132px;
  padding: 16px;
  border: 1px solid rgba(214, 189, 114, 0.5);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  background: radial-gradient(circle, rgba(240, 163, 91, 0.28), rgba(23, 32, 36, 0.34));
}

.map-core b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  color: var(--ink);
}

.map-core small {
  color: #f5d997;
  font-size: 0.7rem;
  line-height: 1.25;
}

.map-node {
  position: absolute;
  min-width: 92px;
  padding: 9px 10px;
  border: 1px solid rgba(244, 239, 227, 0.22);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(14, 21, 23, 0.78);
  box-shadow: 0 0 0 8px rgba(119, 202, 210, 0.05);
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
  opacity: 0.42;
  transform: scale(0.96);
  transition: opacity 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.map-node.active {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 0 0 8px rgba(119, 202, 210, 0.08), 0 14px 28px rgba(0, 0, 0, 0.24);
}

.map-node.primary.active {
  box-shadow: 0 0 0 10px rgba(214, 189, 114, 0.08), 0 18px 34px rgba(0, 0, 0, 0.28);
}

.n-solar { left: 48%; top: 12%; border-color: rgba(214, 189, 114, 0.58); color: var(--gold); }
.n-sme { right: 7%; top: 35%; border-color: rgba(119, 202, 210, 0.58); color: var(--cyan); }
.n-campus { left: 10%; bottom: 28%; border-color: rgba(142, 182, 127, 0.58); color: var(--moss); }
.n-tech { left: 15%; top: 24%; border-color: rgba(119, 202, 210, 0.38); color: var(--cyan); }
.n-funding { right: 12%; bottom: 18%; border-color: rgba(214, 189, 114, 0.42); color: var(--gold); }
.n-partner { left: 38%; bottom: 10%; border-color: rgba(142, 182, 127, 0.42); color: var(--moss); }
.n-market { right: 8%; top: 62%; border-color: rgba(240, 163, 91, 0.42); color: var(--ember); }
.n-risk { left: 18%; top: 60%; border-color: rgba(111, 145, 201, 0.42); color: var(--blue); }

.decision-row {
  align-items: stretch;
}

.decision-row article {
  flex: 1;
  padding: 14px;
}

.decision-row span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.68rem;
}

.decision-row strong {
  font-size: 0.98rem;
  line-height: 1.35;
}

.how-section,
.modules-section {
  padding: 54px 0 18px;
}

.section-intro {
  max-width: 920px;
  margin-bottom: 20px;
}

.section-intro h2 {
  margin-top: 10px;
  font-size: clamp(2rem, 3.2vw, 3.15rem);
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.flow-grid article,
.modules-grid article {
  padding: 18px;
}

.flow-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--cyan);
  font-weight: 800;
}

.flow-grid h3,
.modules-grid h3 {
  color: rgba(244, 239, 227, 0.95);
  font-size: 1.02rem;
  line-height: 1.25;
}

.flow-grid p,
.modules-grid p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.modules-grid article {
  min-height: 178px;
  background: rgba(14, 21, 23, 0.42);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 42px;
  padding: 24px 0 8px;
  border-top: 1px solid var(--line);
  color: rgba(244, 239, 227, 0.62);
  font-size: 0.9rem;
}

@media (max-width: 1120px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .hero-copy {
    padding-right: 0;
  }
}

@media (max-width: 820px) {
  .page-shell {
    width: min(100% - 24px, 720px);
  }

  .site-header {
    flex-direction: column;
    padding-bottom: 34px;
  }

  h1 {
    font-size: clamp(2rem, 8.4vw, 2.8rem);
  }

  .example-grid,
  .flow-grid,
  .modules-grid {
    grid-template-columns: 1fr;
  }

  .dossier-head,
  .profile-card,
  .decision-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .decision-row article {
    width: 100%;
  }

  .resonance-map {
    min-height: 340px;
  }

  .modules-grid article {
    min-height: auto;
  }
}
