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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a1a1a;
  line-height: 1.7;
  background: #fafafa;
}

a { color: #38bdf8; text-decoration: none; }
a:hover { text-decoration: underline; }

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

/* ── Hero ── */
.hero {
  background: linear-gradient(160deg, #0a1a0a 0%, #0a2a1a 40%, #1a4a2a 100%);
  color: #fff;
  text-align: center;
  padding: 80px 24px 56px;
}
.hero h1 {
  font-size: 3em;
  font-weight: 300;
  margin-bottom: 12px;
  line-height: 1.15;
}
.hero h1 span { color: #4ade80; font-weight: 600; }
.hero .tagline {
  font-size: 1.2em;
  font-weight: 300;
  color: rgba(255,255,255,0.8);
  max-width: 660px;
  margin: 0 auto 24px;
}
.hero .hero-stat {
  font-family: Georgia, serif;
  font-size: 1.6em;
  color: #4ade80;
  margin-bottom: 8px;
}
.hero .hero-stat-desc {
  font-size: 0.95em;
  color: rgba(255,255,255,0.6);
}

/* ── Sections ── */
section { padding: 56px 0; border-bottom: 1px solid #e0e0e0; }
section:last-of-type { border-bottom: none; }
section h2 {
  font-size: 1.8em;
  font-weight: 400;
  color: #0a2a1a;
  line-height: 1.25;
  margin-bottom: 16px;
}
section h2 span { color: #16a34a; }
section p.lead {
  font-size: 1.05em;
  color: #4a4a4a;
  max-width: 720px;
  margin-bottom: 24px;
}

/* ── Three layers ── */
.layers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 32px 0;
}
.layer {
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
}
.layer-fiber { background: #0a2a1a; color: #ccc; }
.layer-wifi { background: #16a34a; color: #fff; }
.layer-bt { background: #e8f5e9; color: #1a1a1a; }
.layer .layer-icon { font-size: 2.4em; margin-bottom: 10px; }
.layer h3 { font-size: 1.1em; font-weight: 700; margin-bottom: 4px; }
.layer .layer-internet { font-size: 0.8em; opacity: 0.7; margin-bottom: 10px; }
.layer p { font-size: 0.9em; line-height: 1.5; }
.layer-fiber h3 { color: #4ade80; }

/* ── Image blocks ── */
.img-block {
  margin: 32px 0;
  text-align: center;
}
.img-block img {
  max-width: 100%;
  border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.img-block .caption {
  font-size: 0.85em;
  color: #6a6a7a;
  margin-top: 10px;
  font-style: italic;
}

/* ── Quote ── */
.quote-block {
  background: #e8f5e9;
  border-left: 4px solid #16a34a;
  padding: 24px 32px;
  margin: 32px 0;
  border-radius: 0 8px 8px 0;
}
.quote-block p {
  font-style: italic;
  font-family: Georgia, serif;
  font-size: 1.1em;
  color: #1a1a1a;
  margin-bottom: 8px;
}
.quote-block .attr { font-style: normal; font-size: 0.9em; color: #6a6a7a; }

/* ── Parallel cards ── */
.parallel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}
.card {
  border-radius: 10px;
  padding: 28px;
}
.card-light { background: #e8f5e9; }
.card-dark { background: #0a2a1a; color: #ccc; }
.card-dark h3 { color: #4ade80; }
.card h3 { font-size: 1.15em; font-weight: 600; margin-bottom: 10px; }
.card p { font-size: 0.95em; line-height: 1.6; }

/* ── Stats row ── */
.stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin: 32px 0;
  padding: 24px 0;
}
.stat { text-align: center; }
.stat .number { font-size: 2em; font-weight: 700; color: #0a2a1a; }
.stat .label { font-size: 0.85em; color: #6a6a7a; margin-top: 4px; }

/* ── Comparison table ── */
.comp-table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.comp-table th {
  text-align: left;
  padding: 10px 14px;
  font-size: 0.8em;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #16a34a;
  border-bottom: 2px solid #16a34a;
}
.comp-table td {
  padding: 10px 14px;
  font-size: 0.95em;
  border-bottom: 1px solid #eee;
}
.comp-table td:nth-child(2) { font-family: Georgia, serif; font-weight: 700; text-align: right; }
.comp-table tr:last-child td { border-bottom: none; }
.comp-table tr.highlight td { background: #f0fdf4; font-weight: 600; }

/* ── Net energy bar ── */
.ne-bars { margin: 24px 0; }
.ne-bar {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
  gap: 12px;
}
.ne-bar .ne-label { width: 120px; font-size: 0.9em; font-weight: 500; text-align: right; flex-shrink: 0; }
.ne-bar .ne-track { flex: 1; height: 28px; background: #eee; border-radius: 4px; overflow: hidden; position: relative; }
.ne-bar .ne-fill { height: 100%; border-radius: 4px; display: flex; align-items: center; padding-left: 8px; font-size: 0.75em; font-weight: 700; color: #fff; }
.ne-fill.green { background: #16a34a; }
.ne-fill.yellow { background: #ca8a04; }
.ne-fill.red { background: #dc2626; }
.ne-fill.blue { background: #2563eb; }

/* ── Patent cards ── */
.patent-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.patent-card {
  background: #fff;
  border: 2px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  transition: border-color 0.15s;
}
.patent-card:hover { border-color: #16a34a; }
.patent-card .patent-num { font-family: Georgia, serif; font-size: 0.8em; color: #16a34a; font-weight: 600; margin-bottom: 4px; }
.patent-card h4 { font-size: 1em; font-weight: 600; color: #0a2a1a; margin-bottom: 8px; }
.patent-card p { font-size: 0.85em; color: #4a4a4a; line-height: 1.5; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(160deg, #0a1a0a 0%, #0a2a1a 40%, #1a4a2a 100%);
  color: #fff;
  text-align: center;
  border-bottom: none;
}
.cta-section h2 { color: #fff; }
.cta-section p.lead { color: rgba(255,255,255,0.8); margin: 0 auto 32px; }
.cta-links { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-primary {
  background: #fff; color: #0a2a1a; padding: 14px 32px; border-radius: 6px;
  font-weight: 600; text-decoration: none; box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: transform 0.15s;
}
.btn-primary:hover { transform: translateY(-2px); text-decoration: none; }
.btn-secondary {
  background: transparent; color: #fff; padding: 14px 32px; border-radius: 6px;
  font-weight: 500; border: 2px solid rgba(255,255,255,0.4);
  text-decoration: none; transition: opacity 0.15s;
}
.btn-secondary:hover { opacity: 0.85; text-decoration: none; }

/* ── Footer ── */
footer {
  background: #0a1a0a; color: #6a7a6a; text-align: center; padding: 40px 24px;
}
footer .footer-tagline { color: #fff; font-size: 1.1em; margin-bottom: 16px; }
footer .footer-links a { color: #4ade80; margin: 0 12px; font-size: 0.95em; }
footer .copyright { font-size: 0.85em; margin-top: 16px; }

/* ── Scene hero ── */
.scene-hero {
  background: #cfe9f7;
  color: #0a2a1a;
  text-align: center;
  padding: 64px 0 0;
}
.scene-hero .eyebrow {
  font-size: 0.8em; font-weight: 700; letter-spacing: 3px;
  text-transform: uppercase; color: #15803d; margin-bottom: 12px;
}
.scene-hero h1 {
  font-size: 3.2em; font-weight: 700; line-height: 1.1;
  letter-spacing: -1px; margin-bottom: 18px;
}
.scene-hero .tagline {
  font-size: 1.2em; color: #24433a; max-width: 700px; margin: 0 auto 32px;
}
.scene-hero svg { display: block; width: 100%; height: auto; }

/* ── Layer rows ── */
.layer-rows { display: flex; flex-direction: column; gap: 20px; margin: 32px 0; }
.layer-row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 24px; align-items: center;
  background: #fff; border-radius: 12px; padding: 24px;
  border-left: 8px solid var(--band);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.layer-row .tag {
  display: inline-block; font-size: 0.72em; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--band-ink); background: var(--band);
  padding: 3px 10px; border-radius: 4px; margin-bottom: 8px;
}
.layer-row h3 { font-size: 1.35em; line-height: 1.3; color: #0a2a1a; margin-bottom: 4px; }
.layer-row .analog { font-size: 0.85em; color: #6a6a7a; margin-bottom: 10px; }
.layer-row p { font-size: 0.95em; line-height: 1.6; }
.layer-row img { width: 100%; height: auto; max-height: 380px; object-fit: cover; border-radius: 8px; display: block; }
.corner-stores { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.corner-stores img { height: 300px !important; max-height: none !important; object-fit: cover; }
.corner-stores a:last-child img { object-position: center 78%; }
.band-high { --band: #14532d; --band-ink: #fff; }
.band-mid  { --band: #16a34a; --band-ink: #fff; }
.band-last { --band: #14532d; --band-ink: #fff; }

/* ── Full-width figures ── */
.figure { margin: 28px 0; }
.figure a { display: block; }
.figure img {
  width: 100%; height: auto; display: block; border-radius: 8px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.1);
}
.figure figcaption { font-size: 0.85em; color: #6a6a7a; margin-top: 10px; font-style: italic; }
.wide { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.big-line {
  font-family: Georgia, serif; font-size: 1.9em; line-height: 1.25;
  color: #0a2a1a; margin: 8px 0 20px;
}
.big-line em { color: #16a34a; font-style: normal; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 24px 0; }
.book-pages { max-width: 780px; margin: 24px auto 0; }
.book-pages .pair { grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 0; }
.dark-section { background: #111c16; color: #d8e0da; }
.dark-section h2 { color: #fff; }
.dark-section h2 span { color: #f87171; }
.dark-section p.lead { color: #b8c4bc; }
.dark-section .big-line { color: #fff; }
.dark-section .figure figcaption { color: #8a9a90; }

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero h1 { font-size: 2.2em; }
  .scene-hero { padding-top: 44px; }
  .scene-hero h1 { font-size: 2.2em; }
  .scene-hero .tagline { font-size: 1.05em; padding: 0 16px; }
  .layer-row { grid-template-columns: 1fr; padding: 18px; }
  .pair { grid-template-columns: 1fr; }
  .corner-stores img { height: 220px !important; }
  .big-line { font-size: 1.45em; }
  .container, .wide { padding: 0 16px; }
  .layers { grid-template-columns: 1fr; }
  .parallel { grid-template-columns: 1fr; }
  .cta-links { flex-direction: column; align-items: center; }
  .stats { gap: 28px; }
  .ne-bar .ne-label { width: 80px; font-size: 0.8em; }
}

/* ── Top nav (all pages) ── */
.topnav { background: #0a2a1a; }
.topnav .inner {
  max-width: 1120px; margin: 0 auto; padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
}
.topnav .brand { color: #fff; font-weight: 700; letter-spacing: 0.5px; }
.topnav .brand span { color: #4ade80; }
.topnav .links { display: flex; gap: 20px; flex-wrap: wrap; }
.topnav .links a { color: #cfe9d8; font-size: 0.95em; }
.topnav .links a[aria-current="page"] { color: #4ade80; font-weight: 600; }

/* ── Sub-page hero ── */
.page-hero {
  background: linear-gradient(160deg, #0a1a0a 0%, #0a2a1a 40%, #1a4a2a 100%);
  color: #fff; padding: 56px 0 48px;
}
.page-hero .eyebrow {
  font-size: 0.8em; font-weight: 700; letter-spacing: 3px; text-transform: uppercase;
  color: #4ade80; margin-bottom: 10px;
}
.page-hero h1 { font-size: 2.8em; font-weight: 700; line-height: 1.1; margin-bottom: 16px; }
.page-hero p { font-size: 1.15em; color: rgba(255,255,255,0.82); max-width: 720px; }

/* ── Image galleries ── */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; margin: 28px 0; }
.gallery figure { margin: 0; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.06); }
.gallery img { width: 100%; height: auto; display: block; }
.gallery figcaption { padding: 12px 14px 14px; font-size: 0.88em; color: #3a4a40; line-height: 1.5; }
.gallery figcaption strong { color: #0a2a1a; }
.credit { display: block; font-size: 0.85em; color: #7a8a80; margin-top: 4px; font-style: italic; }

/* ── Horizontal bar chart ── */
.hbars { margin: 24px 0; }
.hbar { display: grid; grid-template-columns: 150px 1fr 70px; gap: 12px; align-items: center; margin-bottom: 8px; }
.hbar .lbl { font-size: 0.92em; text-align: right; }
.hbar .track { height: 22px; background: #edf1ee; border-radius: 4px; overflow: hidden; }
.hbar .fill { height: 100%; background: #9aa9a0; border-radius: 4px; }
.hbar.hl .fill { background: #16a34a; }
.hbar.hl .lbl, .hbar.hl .val { font-weight: 700; color: #0a2a1a; }
.hbar .val { font-family: Georgia, serif; font-size: 0.95em; }
.source { font-size: 0.82em; color: #6a6a7a; margin-top: 8px; }

@media (max-width: 700px) {
  .page-hero h1 { font-size: 2em; }
  .gallery { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 96px 1fr 56px; gap: 8px; }
  .hbar .lbl { font-size: 0.8em; }
}

/* ── Policy split explanation (dark section) ── */
.policy-split { max-width: 832px; margin: 36px auto 8px; color: #d8e0da; }
.policy-split h3 { color: #fff; font-size: 1.4em; margin-bottom: 12px; }
.policy-split ul { margin: 6px 0 16px 22px; }
.policy-split li { margin-bottom: 6px; }
.policy-split strong { color: #fff; }
.policy-conclusion { font-family: Georgia, serif; font-size: 1.25em; color: #4ade80; margin-top: 8px; }
