:root {
  --ink: #f4f1e7;
  --dark: #0b0f0d;
  --panel: #171d19;
  --panel-strong: #20281f;
  --muted: #a9b3a4;
  --line: #344035;
  --accent: #d8ff4f;
  --rust: #ff7a2f;
  --steel: #68756c;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(216, 255, 79, 0.11), transparent 34rem),
    linear-gradient(180deg, #0b0f0d 0%, #121713 45%, #0e1210 100%);
  min-height: 100vh;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, rgba(216, 255, 79, 0.08), transparent 28%),
    radial-gradient(circle at 80% 12%, rgba(255, 122, 47, 0.06), transparent 26%),
    linear-gradient(120deg, rgba(20, 38, 22, 0.12), transparent 42%, rgba(216, 255, 79, 0.04));
}

body main {
  transition: opacity 220ms ease, transform 220ms ease;
}

body.page-is-changing main,
body.navigating-away main {
  opacity: 0.42;
  transform: translateY(8px);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(11, 15, 13, 0.92);
  border-bottom: 1px solid rgba(216, 255, 79, 0.18);
  backdrop-filter: blur(14px);
}

.nav {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  position: relative;
  color: white;
  font-weight: 900;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-shadow: 0 0 20px rgba(216, 255, 79, 0.18);
}

.logo span {
  color: var(--accent);
}

.logo::before {
  content: "";
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border: 1px solid rgba(216, 255, 79, 0.36);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 255, 79, 0.14), transparent 45%),
    url("assets/overlandwatts-logo-badge.webp") center / 138% auto no-repeat,
    #0b0f0d;
  clip-path: polygon(12% 0, 88% 0, 100% 21%, 100% 78%, 88% 100%, 12% 100%, 0 78%, 0 21%);
  box-shadow:
    0 0 0 3px rgba(216, 255, 79, 0.05),
    0 0 26px rgba(216, 255, 79, 0.18),
    0 14px 34px rgba(0, 0, 0, 0.42);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.logo:hover::before {
  border-color: rgba(216, 255, 79, 0.72);
  transform: translateY(-2px) rotate(-1deg);
  box-shadow:
    0 0 0 4px rgba(216, 255, 79, 0.08),
    0 0 38px rgba(216, 255, 79, 0.3),
    0 18px 40px rgba(0, 0, 0, 0.5);
}

.nav-links {
  position: absolute;
  top: calc(100% + 12px);
  right: 24px;
  display: none;
  width: min(320px, calc(100vw - 32px));
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  border: 1px solid rgba(216, 255, 79, 0.22);
  border-radius: 18px;
  padding: 12px;
  background:
    radial-gradient(circle at top left, rgba(216, 255, 79, 0.12), transparent 48%),
    rgba(11, 15, 13, 0.98);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.46), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  transform-origin: top right;
  animation: menuDrop 160ms ease both;
}

.nav-links.open {
  display: flex;
}

.nav-links a {
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #d9dfd1;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.nav-links a:hover {
  background: rgba(216, 255, 79, 0.12);
  border-color: rgba(216, 255, 79, 0.26);
  color: white;
  transform: translateY(-1px);
}

.nav-links a.active {
  background: var(--accent);
  color: #101411;
}

.menu-toggle {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(216, 255, 79, 0.28);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(216, 255, 79, 0.1), transparent 48%),
    #171d19;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle:hover,
.menu-toggle.open {
  border-color: rgba(216, 255, 79, 0.68);
  transform: translateY(-1px);
  box-shadow: 0 0 26px rgba(216, 255, 79, 0.14), 0 18px 40px rgba(0, 0, 0, 0.38);
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  min-height: 88vh;
  padding: 84px 24px 48px;
  display: grid;
  align-items: center;
  color: white;
  background:
    linear-gradient(90deg, rgba(5, 8, 6, 0.22), rgba(5, 8, 6, 0.46), rgba(5, 8, 6, 0.9)),
    linear-gradient(180deg, rgba(216, 255, 79, 0.1), transparent 48%),
    url("assets/overland-hero.webp");
  background-size: cover;
  background-position: center;
}

.page-section:not(.active) {
  display: none;
}

.page-section.active {
  animation: pageFade 340ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes pageFade {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-content,
.section {
  max-width: 1180px;
  margin: 0 auto;
}

.hero-content {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(420px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  grid-column: 2;
  max-width: 680px;
  justify-self: end;
}

.hero-brand-mark {
  width: clamp(150px, 16vw, 230px);
  margin: 0 0 20px auto;
  display: block;
  border-radius: 10px;
  filter:
    drop-shadow(0 0 18px rgba(216, 255, 79, 0.18))
    drop-shadow(0 26px 42px rgba(0, 0, 0, 0.5));
  mix-blend-mode: screen;
  opacity: 0.94;
  transform: rotate(-1deg);
  animation: badgeDrop 520ms ease-out both;
}

@keyframes badgeDrop {
  from {
    opacity: 0;
    transform: translateY(-12px) rotate(-3deg) scale(0.96);
  }

  to {
    opacity: 0.94;
    transform: translateY(0) rotate(-1deg) scale(1);
  }
}

.hero-panel {
  grid-column: 2;
  justify-self: end;
  width: min(100%, 430px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0 0 22px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

h4 {
  margin: 12px 0 0;
  font-size: 1.08rem;
}

.hero-text,
.section-heading p,
.compact-calculator p,
.gear-box p,
.checklist-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero-text {
  max-width: 690px;
  color: #e7ebdf;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.cta,
.secondary-cta,
button {
  border: none;
  border-radius: 999px;
  padding: 13px 20px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.cta,
button {
  background: var(--accent);
  color: #11160f;
  box-shadow: 0 0 0 1px rgba(216, 255, 79, 0.22), 0 14px 30px rgba(216, 255, 79, 0.16);
}

.cta:hover,
.secondary-cta:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(216, 255, 79, 0.38), 0 18px 44px rgba(216, 255, 79, 0.2);
}

.cta:active,
.secondary-cta:active,
button:active {
  transform: translateY(0) scale(0.98);
}

.secondary-cta {
  border: 1px solid rgba(216, 255, 79, 0.32);
  color: white;
  background: rgba(216, 255, 79, 0.08);
}

.hero-panel {
  padding: 28px;
  border: 1px solid rgba(216, 255, 79, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.1), transparent 42%),
    rgba(10, 13, 11, 0.78);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.hero-panel strong {
  display: block;
  margin: 12px 0;
  font-size: 1.7rem;
  line-height: 1.15;
}

.hero-panel p {
  color: #f4f0e8;
  line-height: 1.6;
}

.panel-label,
.category,
.build-tag {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(216, 255, 79, 0.12);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
}

.mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.mini-stats span {
  padding: 14px;
  border: 1px solid rgba(216, 255, 79, 0.14);
  border-radius: 8px;
  background: rgba(216, 255, 79, 0.1);
}

.mini-stats b {
  display: block;
  color: var(--accent);
}

.section {
  padding: 82px 24px 0;
  scroll-margin-top: 84px;
  content-visibility: auto;
  contain-intrinsic-size: 720px;
}

.section-heading {
  max-width: 780px;
  margin-bottom: 28px;
}

.path-grid,
.build-grid,
.article-grid {
  display: grid;
  gap: 18px;
}

.path-grid {
  grid-template-columns: repeat(4, 1fr);
}

.build-grid,
.article-grid {
  grid-template-columns: repeat(3, 1fr);
}

.path-card,
.build-card,
.article-grid article,
.card,
.compact-calculator,
.checklist-card,
.gear-box,
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--panel);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

.path-card:hover,
.build-card:hover,
.article-grid article:hover,
.lab-card:hover,
.gear-card:hover,
.parts-card:hover,
.diagram-card:hover,
.card:hover,
.compact-calculator:hover {
  transform: translateY(-4px);
  border-color: rgba(216, 255, 79, 0.38);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.44), 0 0 32px rgba(216, 255, 79, 0.08);
}

.path-card,
.build-card,
.article-grid article {
  padding: 24px;
}

.path-card span {
  display: block;
  margin-bottom: 24px;
  color: var(--rust);
  font-weight: 900;
  font-size: 1.4rem;
}

.path-card p,
.build-card li,
.article-grid p,
.faq-list p,
.form-note {
  color: var(--muted);
  line-height: 1.6;
}

.calculator-tabs,
.guide-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.tab-btn,
.guide-tab-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #171d19;
  color: #dce3d5;
}

.tab-btn:hover,
.guide-tab-btn:hover {
  border-color: rgba(216, 255, 79, 0.36);
  background: rgba(216, 255, 79, 0.1);
  color: white;
}

.tab-btn.active,
.guide-tab-btn.active {
  background: var(--accent);
  color: #101411;
}

.calculator-panel,
.guide-panel {
  display: none;
}

.calculator-panel.active,
.guide-panel.active {
  display: block;
  animation: panelIn 300ms ease-out;
}

@keyframes panelIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.calculator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.card,
.compact-calculator {
  padding: 26px;
}

form,
.compact-calculator {
  display: grid;
  gap: 18px;
}

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

label {
  display: grid;
  gap: 8px;
  color: #edf1e8;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #3d493e;
  border-radius: 8px;
  background: #0f1411;
  color: var(--ink);
  font-size: 1rem;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

input:focus,
select:focus {
  outline: 2px solid rgba(216, 255, 79, 0.5);
  outline-offset: 2px;
  border-color: rgba(216, 255, 79, 0.45);
  box-shadow: 0 0 24px rgba(216, 255, 79, 0.08);
}

.load-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.result-box,
.result-strip {
  position: relative;
  overflow: hidden;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #334034;
}

.result-box::before,
.result-strip::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  width: var(--fill, 0%);
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), rgba(216, 255, 79, 0.08));
  transition: width 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.result-box strong,
.result-strip strong {
  color: white;
  text-align: right;
  font-size: 1.35rem;
}

.result-updated {
  animation: resultPop 360ms ease-out;
}

@keyframes resultPop {
  0% {
    opacity: 0.55;
    transform: translateY(8px) scale(0.98);
  }

  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.highlight strong {
  color: var(--accent);
  font-size: 1.7rem;
}

.recommendation {
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(216, 255, 79, 0.16);
  border-radius: 8px;
  background: rgba(216, 255, 79, 0.12);
  color: #edf8cf;
  line-height: 1.55;
}

.two-line-result strong {
  max-width: 70%;
}

.build-card ul {
  margin: 18px 0 0;
  padding-left: 20px;
}

.build-card li + li {
  margin-top: 10px;
}

.build-card.featured {
  border-color: rgba(216, 255, 79, 0.35);
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.18), transparent 44%),
    #1b2419;
  color: white;
}

.build-card.featured li {
  color: #edf3de;
}

.article-grid article {
  display: grid;
  align-content: start;
}

.article-grid a {
  width: fit-content;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 900;
  transition: color 180ms ease, transform 180ms ease;
}

.article-grid a:hover,
.article-link:hover,
.gear-links a:hover {
  transform: translateX(2px);
  color: white;
}

.lab-grid,
.gear-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.gear-grid {
  grid-template-columns: repeat(3, 1fr);
}

.lab-card,
.parts-card,
.diagram-card,
.gear-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.05), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.lab-card,
.parts-card,
.gear-card {
  padding: 22px;
}

.warning-card {
  border-color: rgba(255, 122, 47, 0.45);
  background:
    linear-gradient(145deg, rgba(255, 122, 47, 0.14), transparent 48%),
    var(--panel);
}

.lab-card p,
.gear-card p,
.parts-card li,
.diagram-card p {
  color: var(--muted);
  line-height: 1.6;
}

.parts-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.parts-list,
.build-steps {
  margin: 16px 0 0;
  padding-left: 20px;
}

.parts-list li + li,
.build-steps li + li {
  margin-top: 10px;
}

.diagram-card {
  margin-top: 18px;
  padding: 26px;
}

.flow-diagram {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.flow-diagram span {
  position: relative;
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(216, 255, 79, 0.24);
  border-radius: 8px;
  background: rgba(216, 255, 79, 0.08);
  color: white;
  text-align: center;
  font-weight: 900;
}

.flow-diagram span:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -11px;
  color: var(--accent);
  font-weight: 900;
}

.checklist-card,
.gear-box {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  padding: 30px;
}

.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.checklist label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 1px solid #303a31;
  border-radius: 8px;
  background: #101411;
  font-weight: 800;
}

.checklist input {
  width: auto;
  min-height: auto;
  margin-top: 3px;
  accent-color: var(--accent);
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  padding: 18px 20px;
}

.faq-list summary {
  font-weight: 900;
  cursor: pointer;
}

.gear-box {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 122, 47, 0.14), transparent 42%),
    linear-gradient(145deg, rgba(216, 255, 79, 0.12), transparent 50%),
    #111712;
}

.gear-box p {
  color: #edf3de;
}

.gear-links {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  align-content: center;
}

.gear-links a {
  padding: 16px;
  border: 1px solid rgba(216, 255, 79, 0.16);
  border-radius: 8px;
  background: rgba(216, 255, 79, 0.08);
  color: white;
  font-weight: 900;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.gear-links a:hover {
  border-color: rgba(216, 255, 79, 0.34);
  box-shadow: 0 0 26px rgba(216, 255, 79, 0.08);
}

footer {
  margin-top: 82px;
  padding: 32px 20px;
  background: #080b09;
  color: #cdd5c6;
  text-align: center;
}

.article-page {
  padding: 92px 24px 72px;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

.article-shell {
  max-width: 900px;
  margin: 0 auto;
  padding: 34px;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 0 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.05), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
  animation: articleShellIn 380ms ease-out;
}

.article-shell .breadcrumbs,
.article-shell h1,
.article-lead {
  animation: articleHeroIn 420ms ease-out both;
}

.article-shell h1 {
  animation-delay: 60ms;
}

.article-lead {
  animation-delay: 110ms;
}

@keyframes articleShellIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes articleHeroIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.article-shell > :not(.article-toc) {
  grid-column: 2;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--accent);
  text-decoration: none;
}

.article-toc {
  position: sticky;
  top: 96px;
  grid-column: 1;
  grid-row: 1 / span 30;
  align-self: start;
  padding: 16px;
  border: 1px solid rgba(216, 255, 79, 0.16);
  border-radius: 8px;
  background: rgba(15, 20, 17, 0.72);
  backdrop-filter: blur(12px);
  animation: tocIn 440ms ease-out 150ms both;
}

@keyframes tocIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.article-toc strong {
  display: block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-toc a {
  display: block;
  padding: 8px 0;
  border-top: 1px solid rgba(216, 255, 79, 0.1);
  color: #d9dfd1;
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.article-toc a:hover {
  color: white;
  transform: translateX(3px);
}

.article-shell h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
}

.article-shell section {
  margin-top: 34px;
  scroll-margin-top: 100px;
}

.article-lead {
  color: #edf3de;
  font-size: 1.18rem;
}

.article-shell pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid rgba(216, 255, 79, 0.18);
  border-radius: 8px;
  background: #0f1411;
}

.article-shell code {
  color: var(--accent);
}

.article-link {
  color: var(--accent);
  font-weight: 900;
}

.power-box-page {
  padding: 80px 24px 72px;
  overflow: hidden;
}

.power-box-hero,
.power-box-workbench,
.component-carousel,
.system-mode-panel,
.power-box-disclaimer {
  max-width: 1320px;
  margin: 0 auto;
}

.power-box-hero {
  min-height: 36vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: end;
  animation: articleHeroIn 520ms ease-out both;
}

.power-box-hero h1 {
  max-width: 900px;
}

.power-box-subtitle {
  max-width: 760px;
  color: #edf3de;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
}

.inspection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.mode-button,
.component-card {
  cursor: pointer;
  color: #f7f9ef;
  border: 1px solid rgba(216, 255, 79, 0.2);
  background: rgba(18, 24, 20, 0.82);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.mode-button {
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 900;
}

.mode-button:hover,
.component-card:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 255, 79, 0.5);
  box-shadow: 0 0 28px rgba(216, 255, 79, 0.12);
}

.mode-button.active,
.component-card.active {
  background: var(--accent);
  color: #101411;
  border-color: var(--accent);
  box-shadow: 0 0 34px rgba(216, 255, 79, 0.16);
}

.power-box-workbench {
  margin-top: 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.power-box-stage,
.component-panel,
.system-mode-panel,
.power-box-disclaimer {
  border: 1px solid rgba(216, 255, 79, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.06), transparent 44%),
    rgba(13, 18, 15, 0.86);
  box-shadow: var(--shadow);
}

.power-box-stage {
  position: relative;
  min-height: 520px;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  isolation: isolate;
  perspective: 1500px;
  animation: articleShellIn 540ms ease-out 90ms both;
  touch-action: none;
  cursor: grab;
}

.power-box-stage.is-dragging {
  cursor: grabbing;
}

.power-box-stage::before,
.power-box-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: opacity 520ms ease, background 520ms ease;
}

.power-box-stage::before {
  z-index: 0;
  background:
    radial-gradient(circle at var(--zoom-x, 50%) var(--zoom-y, 50%), rgba(216, 255, 79, 0.18), transparent 17rem),
    linear-gradient(135deg, rgba(255, 122, 47, 0.08), transparent 44%);
  opacity: 0.75;
}

.power-box-stage::after {
  z-index: 7;
  background:
    radial-gradient(circle at var(--zoom-x, 50%) var(--zoom-y, 50%),
      rgba(255, 255, 255, 0.08) 0,
      rgba(216, 255, 79, 0.11) 7rem,
      rgba(0, 0, 0, 0.04) 13rem,
      rgba(0, 0, 0, 0.44) 30rem);
  opacity: 0;
}

.power-box-stage.is-inspecting::after {
  opacity: 1;
}

.drag-hint {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 10;
  padding: 8px 11px;
  border: 1px solid rgba(216, 255, 79, 0.18);
  border-radius: 999px;
  background: rgba(8, 12, 9, 0.66);
  color: #edf3de;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
}

.box-viewport {
  position: absolute;
  inset: 52px 34px 82px;
  display: grid;
  place-items: center;
  perspective: 1700px;
  transform-style: preserve-3d;
}

.box-scene {
  position: relative;
  width: min(100%, 1040px);
  aspect-ratio: 3 / 2;
  transform-style: preserve-3d;
  transform:
    translateZ(0)
    scale(var(--scene-scale, 1))
    rotateX(var(--rotate-x, 7deg))
    rotateY(var(--rotate-y, -12deg));
  transition: transform 720ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.power-box-stage.is-dragging .box-scene {
  transition: none;
}

.case-shadow {
  position: absolute;
  inset: 13% 8% -7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.72), transparent 68%);
  filter: blur(20px);
  transform: translateZ(-145px) rotateX(74deg);
}

.case-shell,
.power-box-image-frame {
  position: relative;
  transform-style: preserve-3d;
}

.case-shell {
  position: absolute;
  inset: 0;
}

.case-side {
  position: absolute;
  display: block;
  border: 1px solid rgba(216, 255, 79, 0.12);
  background:
    linear-gradient(135deg, rgba(216, 255, 79, 0.08), transparent 34%),
    linear-gradient(180deg, #1a211c, #070a08);
  box-shadow: inset 0 0 42px rgba(0, 0, 0, 0.48);
  backface-visibility: hidden;
}

.case-side-left,
.case-side-right {
  top: 0;
  width: 108px;
  height: 100%;
}

.case-side-left {
  left: 0;
  transform-origin: left center;
  transform: rotateY(90deg) translateX(-54px);
}

.case-side-right {
  right: 0;
  transform-origin: right center;
  transform: rotateY(-90deg) translateX(54px);
}

.case-side-top,
.case-side-bottom {
  left: 0;
  width: 100%;
  height: 108px;
}

.case-side-top {
  top: 0;
  transform-origin: center top;
  transform: rotateX(-90deg) translateY(-54px);
}

.case-side-bottom {
  bottom: 0;
  transform-origin: center bottom;
  transform: rotateX(90deg) translateY(54px);
}

.case-side-back {
  inset: 0;
  transform: translateZ(-108px);
  background:
    radial-gradient(circle at 25% 28%, rgba(216, 255, 79, 0.09), transparent 22rem),
    linear-gradient(135deg, #151b17, #070a08);
}

.power-box-image-frame {
  width: 100%;
  height: 100%;
  aspect-ratio: 3 / 2;
  min-height: inherit;
  overflow: visible;
  transform: translateZ(58px);
  border-radius: 10px;
  box-shadow:
    0 36px 80px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(216, 255, 79, 0.18);
}

.power-box-image {
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  transform-origin: var(--zoom-x, 50%) var(--zoom-y, 50%);
  border-radius: inherit;
  transition: transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 520ms ease, box-shadow 520ms ease;
  will-change: transform;
}

.power-box-stage.is-inspecting .power-box-image {
  transform: scale(var(--zoom-scale, 1.7));
  filter: brightness(1.16) saturate(1.12) contrast(1.06);
}

.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 8;
  width: 72px;
  height: 72px;
  padding: 0;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: transparent;
  font-weight: 950;
  transform: translate(-50%, -50%) translateZ(var(--z, 60px));
  cursor: pointer;
  box-shadow: none;
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, opacity 520ms ease, box-shadow 220ms ease;
}

.hotspot::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid transparent;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

@keyframes hotspotPulse {
  from {
    opacity: 0.8;
    transform: scale(0.82);
  }

  to {
    opacity: 0;
    transform: scale(1.42);
  }
}

.hotspot:hover,
.hotspot:focus-visible {
  background: rgba(216, 255, 79, 0.05);
  border-color: rgba(216, 255, 79, 0.16);
  transform: translate(-50%, -50%) translateZ(calc(var(--z, 60px) + 18px)) scale(1.04);
  box-shadow: 0 0 42px rgba(216, 255, 79, 0.18);
}

.hotspot:hover::after,
.hotspot:focus-visible::after {
  opacity: 1;
  border-color: rgba(216, 255, 79, 0.72);
  box-shadow: 0 0 30px rgba(216, 255, 79, 0.22);
}

.power-box-stage.is-inspecting .hotspot:not(.active) {
  opacity: 0.2;
}

.component-depth-marker {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 6;
  padding: 8px 10px;
  border: 1px solid rgba(216, 255, 79, 0.28);
  border-radius: 999px;
  background: rgba(7, 10, 8, 0.74);
  color: #f7f9ef;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translate(-50%, -50%) translateZ(var(--z, 90px)) translateY(-18px) scale(0.88);
  transition: opacity 260ms ease, transform 260ms ease, box-shadow 260ms ease;
  box-shadow: 0 0 24px rgba(216, 255, 79, 0.12);
}

.power-box-stage.is-inspecting .component-depth-marker.active,
.component-depth-marker:hover {
  opacity: 1;
  transform: translate(-50%, -50%) translateZ(var(--z, 90px)) translateY(-30px) scale(1);
  box-shadow: 0 0 34px rgba(216, 255, 79, 0.24);
}

.view-controls {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.component-panel {
  min-height: 520px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  animation: articleShellIn 540ms ease-out 160ms both;
}

.component-panel h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.component-panel p:not(.eyebrow) {
  color: #edf3de;
  font-size: 1.03rem;
  line-height: 1.72;
}

.component-panel.is-changing {
  animation: panelRefresh 560ms ease both;
}

@keyframes panelRefresh {
  0% {
    opacity: 0.55;
    transform: translateX(12px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

.component-meta {
  margin: 16px 0 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.component-meta span {
  padding: 8px 10px;
  border: 1px solid rgba(216, 255, 79, 0.16);
  border-radius: 999px;
  background: rgba(216, 255, 79, 0.08);
  color: #edf3de;
  font-size: 0.82rem;
  font-weight: 900;
}

.component-carousel {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(10, minmax(128px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.component-card {
  min-height: 82px;
  padding: 12px;
  border-radius: 8px;
  text-align: left;
  font-weight: 900;
  text-transform: uppercase;
}

.component-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--rust);
  font-size: 0.78rem;
}

.component-card.active span {
  color: #26320d;
}

.system-mode-panel {
  margin-top: 24px;
  padding: 28px;
  animation: articleShellIn 420ms ease-out both;
}

.power-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.power-flow span,
.exploded-stack span {
  position: relative;
  min-height: 76px;
  padding: 16px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 255, 79, 0.18);
  border-radius: 8px;
  background: rgba(216, 255, 79, 0.08);
  color: white;
  font-weight: 900;
  text-align: center;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.power-flow span:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -11px;
  color: var(--accent);
  font-weight: 950;
}

.exploded-stack {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.exploded-stack span {
  transform: translateY(calc(var(--layer, 0) * -8px));
}

.exploded-stack span:nth-child(1) { --layer: 0; }
.exploded-stack span:nth-child(2) { --layer: 1; }
.exploded-stack span:nth-child(3) { --layer: 2; }
.exploded-stack span:nth-child(4) { --layer: 3; }
.exploded-stack span:nth-child(5) { --layer: 4; }

.power-box-disclaimer {
  margin-top: 24px;
  padding: 20px 24px;
}

.power-box-disclaimer p {
  margin: 0;
  color: #edf3de;
}

.power-box-page.is-inspecting .component-carousel,
.power-box-page.is-inspecting .system-mode-panel,
.power-box-page.is-inspecting .power-box-disclaimer {
  opacity: 0.62;
  transition: opacity 520ms ease;
}

.model-page {
  background:
    radial-gradient(circle at 72% 12%, rgba(216, 255, 79, 0.11), transparent 24rem),
    radial-gradient(circle at 10% 22%, rgba(255, 122, 47, 0.1), transparent 22rem);
}

.model-hero {
  min-height: 28vh;
}

.model-workbench {
  max-width: 1320px;
  margin: 30px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 18px;
  align-items: stretch;
}

.three-power-stage {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 79, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.08), transparent 40%),
    linear-gradient(180deg, rgba(255, 122, 47, 0.08), transparent 44%),
    #070b08;
  box-shadow: var(--shadow), inset 0 0 80px rgba(216, 255, 79, 0.04);
}

.three-power-stage canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  display: block;
  cursor: grab;
}

.three-power-stage canvas:active {
  cursor: grabbing;
}

.model-loading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  text-align: center;
  background: rgba(7, 11, 8, 0.84);
}

.model-loading strong {
  display: block;
  max-width: 460px;
  color: white;
  font-size: 1.35rem;
  text-transform: uppercase;
}

.model-loading span {
  display: block;
  max-width: 480px;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.5;
}

.model-loading.model-load-fallback {
  z-index: 6;
  padding: 24px;
  background:
    radial-gradient(circle at center, rgba(216, 255, 79, 0.12), transparent 18rem),
    rgba(7, 11, 8, 0.9);
}

.model-gesture-hint {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 4;
  padding: 9px 12px;
  border: 1px solid rgba(216, 255, 79, 0.2);
  border-radius: 999px;
  background: rgba(7, 11, 8, 0.68);
  color: #edf3de;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 26px rgba(216, 255, 79, 0.08);
}

.model-hotspots {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.model-hotspot {
  position: absolute;
  max-width: 168px;
  padding: 8px 10px;
  border: 1px solid rgba(216, 255, 79, 0.32);
  border-radius: 999px;
  background: rgba(7, 11, 8, 0.76);
  color: #f7f9ef;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: auto;
  cursor: pointer;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(216, 255, 79, 0.12);
  transition: opacity 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.model-hotspot:hover,
.model-hotspot.active {
  border-color: var(--accent);
  background: var(--accent);
  color: #101411;
  box-shadow: 0 0 32px rgba(216, 255, 79, 0.25);
}

.model-info-card {
  min-height: 680px;
}

.model-component-rail {
  grid-template-columns: repeat(10, minmax(150px, 1fr));
}

.model-build-note {
  background:
    linear-gradient(135deg, rgba(216, 255, 79, 0.08), transparent 42%),
    rgba(13, 18, 15, 0.88);
}

.diy-power-page {
  padding: 80px 24px 72px;
  background:
    radial-gradient(circle at 78% 10%, rgba(216, 255, 79, 0.13), transparent 24rem),
    radial-gradient(circle at 10% 18%, rgba(255, 122, 47, 0.1), transparent 22rem);
}

.diy-power-hero,
.diy-power-visual,
.diy-build-guide {
  max-width: 1240px;
  margin: 0 auto;
}

.diy-power-hero {
  min-height: 28vh;
  display: grid;
  align-items: end;
  animation: articleHeroIn 520ms ease-out both;
}

.diy-power-hero h1 {
  max-width: 820px;
}

.diy-power-visual {
  margin-top: 28px;
  padding: 10px;
  border: 1px solid rgba(216, 255, 79, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 255, 79, 0.08), transparent 38%),
    #080c09;
  box-shadow: var(--shadow), 0 0 48px rgba(216, 255, 79, 0.08);
}

.diy-power-visual img {
  width: 100%;
  display: block;
  border-radius: 6px;
}

.diy-build-guide {
  margin-top: 28px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.diy-build-guide section,
.build-warning {
  padding: 28px;
  border: 1px solid rgba(216, 255, 79, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.05), transparent 44%),
    rgba(17, 23, 19, 0.9);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.diy-build-guide section {
  scroll-margin-top: 100px;
}

.diy-build-guide h2 {
  color: white;
}

.diy-build-guide p,
.diy-build-guide li,
.build-warning p {
  color: #edf3de;
  line-height: 1.72;
}

.diy-build-guide ul,
.diy-build-guide ol {
  margin: 16px 0 0;
  padding-left: 22px;
}

.build-warning {
  border-color: rgba(255, 122, 47, 0.32);
  background:
    linear-gradient(135deg, rgba(255, 122, 47, 0.12), transparent 42%),
    rgba(17, 23, 19, 0.95);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease var(--stagger, 0ms), transform 420ms ease var(--stagger, 0ms);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.rig-builder-page .reveal,
.ai-page .reveal {
  opacity: 1;
  transform: none;
}

.overland-ai-shell {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  font-family: inherit;
}

.command-palette-shell {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: start center;
  padding: 88px 18px 18px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.command-palette-shell.open {
  pointer-events: auto;
  opacity: 1;
}

.command-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 4, 3, 0.62);
  backdrop-filter: blur(12px);
}

.command-panel {
  position: relative;
  width: min(760px, 100%);
  overflow: hidden;
  border: 1px solid rgba(216, 255, 79, 0.24);
  border-radius: 22px;
  background:
    radial-gradient(circle at 16% 0%, rgba(216, 255, 79, 0.14), transparent 34%),
    linear-gradient(180deg, rgba(17, 24, 18, 0.96), rgba(5, 8, 6, 0.98));
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.58), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(14px) scale(0.98);
  transition: transform 220ms ease;
}

.command-palette-shell.open .command-panel {
  transform: translateY(0) scale(1);
}

.command-search {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid rgba(247, 244, 232, 0.08);
}

.command-search span,
.command-search kbd {
  color: rgba(247, 244, 232, 0.62);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.command-search input {
  min-width: 0;
  border: 0;
  color: #fff;
  background: transparent;
  font: inherit;
  font-size: 1.05rem;
  outline: none;
}

.command-results {
  display: grid;
  max-height: 430px;
  overflow: auto;
  padding: 10px;
}

.command-results button {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 13px 14px;
  color: #f7f4e8;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.command-results button:hover,
.command-results button.active {
  border-color: rgba(216, 255, 79, 0.26);
  background: rgba(216, 255, 79, 0.08);
}

.command-results strong,
.command-results small {
  display: block;
}

.command-results small,
.command-results em {
  color: rgba(247, 244, 232, 0.54);
  font-style: normal;
  font-size: 0.78rem;
}

.command-hint {
  margin: 0;
  padding: 0 16px 16px;
  color: rgba(247, 244, 232, 0.54);
  font-size: 0.84rem;
}

.ai-launch-button {
  display: grid;
  gap: 2px;
  border: 1px solid rgba(216, 255, 79, 0.62);
  border-radius: 999px;
  padding: 13px 18px;
  color: #f7f4e8;
  background:
    radial-gradient(circle at 24% 20%, rgba(216, 255, 79, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(17, 23, 18, 0.96), rgba(6, 10, 7, 0.96));
  box-shadow: 0 0 28px rgba(216, 255, 79, 0.2), 0 18px 44px rgba(0, 0, 0, 0.48);
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ai-launch-button span {
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-launch-button small {
  color: rgba(247, 244, 232, 0.68);
  font-size: 0.7rem;
}

.ai-launch-button:hover {
  border-color: rgba(216, 255, 79, 0.96);
  box-shadow: 0 0 34px rgba(216, 255, 79, 0.3), 0 22px 52px rgba(0, 0, 0, 0.55);
  transform: translateY(-3px);
}

.ai-launch-button:active {
  transform: translateY(-1px) scale(0.98);
}

.ai-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  display: flex;
  width: min(680px, calc(100vw - 32px));
  height: min(780px, calc(100vh - 112px));
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 79, 0.24);
  border-radius: 22px;
  background:
    linear-gradient(180deg, rgba(18, 24, 19, 0.95), rgba(5, 8, 6, 0.98)),
    radial-gradient(circle at 20% 0%, rgba(216, 255, 79, 0.14), transparent 38%);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  opacity: 0;
  pointer-events: none;
  transform: translateY(18px) scale(0.96);
  transition: opacity 240ms ease, transform 240ms ease;
  backdrop-filter: blur(18px);
}

.overland-ai-shell.open .ai-panel {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.ai-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 26px 18px;
  border-bottom: 1px solid rgba(247, 244, 232, 0.08);
}

.ai-panel-header h2 {
  margin: 2px 0 0;
  max-width: 520px;
  color: #f7f4e8;
  font-size: 1.35rem;
  line-height: 1.2;
}

.ai-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(247, 244, 232, 0.16);
  border-radius: 50%;
  color: #f7f4e8;
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
}

.ai-messages {
  display: grid;
  gap: 12px;
  flex: 1;
  align-content: start;
  overflow-y: auto;
  padding: 22px 26px;
  min-height: 280px;
}

.ai-message {
  max-width: 92%;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 18px;
  padding: 14px 15px;
  color: rgba(247, 244, 232, 0.82);
  background: rgba(255, 255, 255, 0.055);
  line-height: 1.55;
  animation: aiPop 220ms ease both;
}

.ai-message strong {
  display: block;
  margin-bottom: 6px;
  color: #f7f4e8;
}

.ai-message p {
  margin: 0 0 8px;
}

.ai-message.user {
  justify-self: end;
  border-color: rgba(216, 255, 79, 0.32);
  color: #071006;
  background: linear-gradient(135deg, #d8ff4f, #8fbf18);
}

.ai-message.assistant {
  justify-self: start;
}

.ai-recommendation {
  color: #dfffa2;
}

.ai-suggestions,
.ai-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 26px 12px;
}

.ai-suggestions button,
.ai-actions button,
.ai-actions a,
.ai-inline-links a {
  border: 1px solid rgba(216, 255, 79, 0.22);
  border-radius: 999px;
  padding: 8px 11px;
  color: #f7f4e8;
  background: rgba(216, 255, 79, 0.08);
  font-size: 0.78rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.ai-suggestions button:hover,
.ai-actions button:hover,
.ai-actions a:hover,
.ai-inline-links a:hover {
  border-color: rgba(216, 255, 79, 0.72);
  background: rgba(216, 255, 79, 0.14);
  transform: translateY(-2px);
}

.ai-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding: 18px 26px 24px;
  border-top: 1px solid rgba(247, 244, 232, 0.08);
}

.ai-input-row input {
  min-width: 0;
  border: 1px solid rgba(247, 244, 232, 0.14);
  border-radius: 999px;
  padding: 12px 14px;
  color: #f7f4e8;
  background: rgba(255, 255, 255, 0.07);
  outline: none;
}

.ai-input-row input:focus {
  border-color: rgba(216, 255, 79, 0.7);
  box-shadow: 0 0 0 3px rgba(216, 255, 79, 0.12);
}

.ai-input-row button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  color: #081006;
  background: linear-gradient(135deg, #d8ff4f, #8fbf18);
  font-weight: 900;
  cursor: pointer;
}

.ai-inline-links,
.ai-flow-diagram {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.ai-flow-diagram span {
  border: 1px solid rgba(216, 255, 79, 0.26);
  border-radius: 12px;
  padding: 8px 10px;
  color: #dfffa2;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.76rem;
}

.ai-flow-diagram span:not(:last-child)::after {
  content: ">";
  margin-left: 8px;
  color: #d8ff4f;
}

.ai-page {
  min-height: 100vh;
  padding: 112px 24px 80px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 255, 79, 0.12), transparent 30%),
    linear-gradient(180deg, #050806, #0c120d 52%, #050806);
}

.ai-page-hero,
.ai-quick-start,
.ai-capability-grid,
.ai-workflow-panel {
  max-width: 1180px;
  margin: 0 auto 28px;
}

.ai-page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 28px;
  align-items: stretch;
}

.ai-page-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 5.4vw, 5.9rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.ai-feature-card,
.ai-quick-start,
.ai-capability-grid article,
.ai-workflow-panel {
  border: 1px solid rgba(216, 255, 79, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.06), transparent 42%),
    rgba(12, 18, 13, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.ai-feature-card {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 28px;
}

.ai-feature-card strong {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.2;
}

.ai-feature-card p {
  color: rgba(247, 244, 232, 0.74);
}

.ai-quick-start,
.ai-workflow-panel {
  padding: 30px;
}

.ai-prompt-grid,
.ai-capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.ai-prompt-grid button {
  min-height: 118px;
  border: 1px solid rgba(216, 255, 79, 0.18);
  border-radius: 16px;
  padding: 18px;
  color: #f7f4e8;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.09), transparent 52%),
    rgba(255, 255, 255, 0.045);
  font-weight: 900;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ai-prompt-grid button:hover {
  border-color: rgba(216, 255, 79, 0.58);
  box-shadow: 0 0 28px rgba(216, 255, 79, 0.12), 0 20px 50px rgba(0, 0, 0, 0.26);
  transform: translateY(-3px);
}

.ai-capability-grid article {
  padding: 24px;
}

.ai-capability-grid article span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #071006;
  background: #d8ff4f;
  font-weight: 900;
}

.ai-capability-grid h2,
.ai-workflow-panel h2 {
  color: #fff;
}

.ai-capability-grid p,
.ai-workflow-panel li span {
  color: rgba(247, 244, 232, 0.74);
}

.ai-workflow-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
}

.ai-workflow-panel ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ai-workflow-panel li {
  display: grid;
  gap: 5px;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.ai-workflow-panel strong {
  color: #d8ff4f;
}

.rig-builder-page {
  min-height: 100vh;
  padding: 112px 24px 80px;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 255, 79, 0.12), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(255, 122, 47, 0.08), transparent 28%),
    linear-gradient(180deg, #050806, #0c120d 48%, #050806);
  content-visibility: auto;
  contain-intrinsic-size: 1100px;
}

.rig-builder-hero,
.popular-builds {
  max-width: 1440px;
  margin: 0 auto 28px;
}

.rig-builder-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}

.rig-builder-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.5rem, 5vw, 5.7rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.rig-score-card,
.rig-wizard,
.rig-visual-panel,
.build-summary,
.popular-builds {
  border: 1px solid rgba(216, 255, 79, 0.16);
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(216, 255, 79, 0.06), transparent 42%),
    rgba(12, 18, 13, 0.86);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
}

.rig-score-card {
  display: grid;
  align-content: end;
  padding: 26px;
}

.rig-score-card strong {
  color: #d8ff4f;
  font-size: 2rem;
  text-transform: uppercase;
}

.rig-builder-app {
  display: grid;
  max-width: 1440px;
  margin: 0 auto 34px;
  grid-template-columns: minmax(300px, 0.9fr) minmax(420px, 1.45fr) minmax(310px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.rig-wizard,
.rig-visual-panel,
.build-summary {
  min-height: 680px;
  padding: 20px;
}

.wizard-heading {
  margin-bottom: 18px;
}

.wizard-heading h2,
.diagram-header h2,
.build-summary h2,
.popular-builds h2 {
  margin: 0;
  color: #fff;
}

.wizard-step {
  margin-bottom: 16px;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 14px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.wizard-step > span {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #071006;
  background: #d8ff4f;
  font-weight: 900;
}

.wizard-step h3 {
  margin: 10px 0 14px;
  color: #fff;
}

.wizard-step label,
.rig-load-card label {
  display: grid;
  gap: 6px;
  color: rgba(247, 244, 232, 0.72);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wizard-step select,
.wizard-step input[type="number"],
.rig-load-card input[type="number"] {
  width: 100%;
  border: 1px solid rgba(247, 244, 232, 0.14);
  border-radius: 10px;
  padding: 10px 11px;
  color: #f7f4e8;
  background: rgba(0, 0, 0, 0.28);
}

.dual-fields,
.load-inputs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.choice-grid,
.charge-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.choice-grid button,
.build-preset-grid button,
.mode-pill {
  border: 1px solid rgba(216, 255, 79, 0.18);
  border-radius: 999px;
  padding: 9px 12px;
  color: #f7f4e8;
  background: rgba(216, 255, 79, 0.06);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.choice-grid button:hover,
.choice-grid button.active,
.build-preset-grid button:hover,
.mode-pill:hover,
.mode-pill.active {
  border-color: rgba(216, 255, 79, 0.7);
  background: rgba(216, 255, 79, 0.14);
  box-shadow: 0 0 22px rgba(216, 255, 79, 0.12);
  transform: translateY(-2px);
}

.charge-toggles label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 999px;
  padding: 8px 10px;
  background: rgba(255, 255, 255, 0.045);
}

.rig-load-list {
  display: grid;
  gap: 10px;
  max-height: 460px;
  overflow: auto;
  padding-right: 4px;
}

.rig-load-card {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: rgba(0, 0, 0, 0.2);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.rig-load-card.active {
  border-color: rgba(216, 255, 79, 0.34);
  background: rgba(216, 255, 79, 0.07);
}

.rig-load-card:hover {
  transform: translateY(-2px);
}

.load-toggle {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.load-toggle strong {
  color: #fff;
  font-size: 0.9rem;
  letter-spacing: 0;
  text-transform: none;
}

.load-inputs {
  grid-template-columns: repeat(3, 1fr);
}

.rig-load-card > span {
  color: #d8ff4f;
  font-weight: 800;
}

.add-custom-load {
  margin-top: 12px;
  width: 100%;
}

.diagram-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.diagram-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.rig-view {
  display: none;
}

.rig-view.active {
  display: block;
}

.system-diagram {
  display: grid;
  min-height: 440px;
  align-content: center;
  justify-items: center;
  perspective: 1200px;
}

.diagram-node {
  position: relative;
  width: min(420px, 90%);
  border: 1px solid rgba(216, 255, 79, 0.22);
  border-radius: 16px;
  padding: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(216, 255, 79, 0.1), transparent 52%),
    rgba(3, 8, 4, 0.84);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
  text-align: center;
  transform: rotateX(6deg);
}

.diagram-node strong {
  display: block;
  margin-top: 5px;
  color: #d8ff4f;
}

.diagram-wire {
  width: 4px;
  height: 36px;
  margin: 4px 0;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(216, 255, 79, 0.05), #d8ff4f, rgba(216, 255, 79, 0.05));
  background-size: 100% 200%;
  animation: wireFlow 1.2s linear infinite;
  box-shadow: 0 0 18px rgba(216, 255, 79, 0.48);
}

.system-components {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.system-components span {
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(247, 244, 232, 0.78);
  background: rgba(255, 255, 255, 0.045);
}

.battery-sim {
  display: grid;
  gap: 24px;
  place-items: center;
  min-height: 520px;
}

.battery-shell {
  position: relative;
  width: min(520px, 90%);
  height: 180px;
  border: 4px solid rgba(247, 244, 232, 0.84);
  border-radius: 24px;
  padding: 12px;
}

.battery-shell::after {
  content: "";
  position: absolute;
  right: -28px;
  top: 52px;
  width: 20px;
  height: 70px;
  border-radius: 0 10px 10px 0;
  background: rgba(247, 244, 232, 0.84);
}

.battery-fill {
  height: 100%;
  border-radius: 14px;
  background: linear-gradient(90deg, #ff7a2f, #d8ff4f);
  box-shadow: 0 0 34px rgba(216, 255, 79, 0.34);
  transition: width 420ms ease;
}

.battery-timeline {
  display: grid;
  width: min(620px, 100%);
  gap: 10px;
}

.battery-timeline div,
.compare-grid article,
.cost-row,
.summary-metrics div,
.smart-warning {
  border: 1px solid rgba(247, 244, 232, 0.1);
  border-radius: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.battery-timeline div,
.cost-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.battery-timeline strong,
.cost-row strong {
  color: #d8ff4f;
}

.compare-grid {
  display: grid;
  min-height: 520px;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  align-content: center;
}

.compare-grid h3 {
  color: #fff;
}

.compare-grid p {
  color: rgba(247, 244, 232, 0.76);
}

.pseudo-3d-system {
  display: grid;
  min-height: 520px;
  place-items: center;
  text-align: center;
}

.pseudo-box {
  display: grid;
  width: min(520px, 86%);
  min-height: 280px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  padding: 28px;
  border: 1px solid rgba(216, 255, 79, 0.24);
  border-radius: 28px;
  background: linear-gradient(145deg, #131a15, #050806);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.42);
  transform: rotateX(58deg) rotateZ(-28deg);
  transform-style: preserve-3d;
}

.pseudo-box span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(216, 255, 79, 0.2);
  border-radius: 14px;
  color: #d8ff4f;
  background: rgba(216, 255, 79, 0.08);
  transform: translateZ(20px);
}

.build-score {
  text-align: center;
}

.score-ring {
  --score: 82%;
  display: flex;
  width: 168px;
  height: 168px;
  align-items: center;
  justify-content: center;
  margin: 12px auto;
  border-radius: 50%;
  background:
    radial-gradient(circle, #081006 58%, transparent 60%),
    conic-gradient(#d8ff4f var(--score), rgba(255, 255, 255, 0.1) 0);
  box-shadow: 0 0 32px rgba(216, 255, 79, 0.16);
}

.score-ring strong {
  color: #fff;
  font-size: 3rem;
}

.score-ring span {
  color: rgba(247, 244, 232, 0.66);
}

.summary-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.summary-metrics span {
  display: block;
  color: rgba(247, 244, 232, 0.58);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.summary-metrics strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-size: 1.05rem;
}

.warning-stack {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.smart-warning {
  border-color: rgba(255, 122, 47, 0.32);
  background: rgba(255, 122, 47, 0.08);
}

.smart-warning.ok {
  border-color: rgba(216, 255, 79, 0.24);
  background: rgba(216, 255, 79, 0.08);
}

.smart-warning strong {
  display: block;
  color: #ffb26d;
  text-transform: uppercase;
}

.smart-warning.ok strong {
  color: #d8ff4f;
}

.smart-warning span {
  color: rgba(247, 244, 232, 0.76);
}

.cost-estimator h3 {
  color: #fff;
}

.summary-actions {
  display: grid;
  gap: 10px;
}

.summary-actions .cta,
.summary-actions .secondary-cta {
  width: 100%;
}

.popular-builds {
  padding: 28px;
}

.build-preset-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@keyframes wireFlow {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 0 200%;
  }
}

@keyframes ambientShift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.82;
  }
  to {
    transform: translate3d(0, -16px, 0) scale(1.04);
    opacity: 1;
  }
}

@keyframes menuDrop {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes aiPop {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .ai-message {
    animation: none !important;
  }

  .diagram-wire {
    animation: none !important;
  }

  body::before {
    animation: none !important;
  }
}

@media (max-width: 980px) {
  .hero-content,
  .calculator-grid,
  .checklist-card,
  .gear-box,
  .power-box-hero,
  .power-box-workbench,
  .model-workbench {
    grid-template-columns: 1fr;
  }

  .hero-copy,
  .hero-panel {
    grid-column: auto;
    justify-self: start;
  }

  .article-shell {
    grid-template-columns: 1fr;
  }

  .article-shell > :not(.article-toc),
  .article-toc {
    grid-column: 1;
  }

  .article-toc {
    position: static;
    margin-bottom: 22px;
  }

  .path-grid,
  .build-grid,
  .article-grid,
  .form-grid,
  .lab-grid,
  .gear-grid,
  .flow-diagram {
    grid-template-columns: repeat(2, 1fr);
  }

  .parts-layout {
    grid-template-columns: 1fr;
  }

  .component-panel {
    min-height: auto;
  }

  .model-info-card {
    min-height: auto;
  }

  .box-viewport {
    inset: 62px 22px 92px;
  }

  .box-scene {
    width: min(100%, 900px);
  }

  .power-flow,
  .exploded-stack {
    grid-template-columns: repeat(2, 1fr);
  }

  .rig-builder-hero,
  .rig-builder-app,
  .ai-page-hero,
  .ai-workflow-panel {
    grid-template-columns: 1fr;
  }

  .rig-wizard,
  .rig-visual-panel,
  .build-summary {
    min-height: auto;
  }

  .build-preset-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ai-prompt-grid,
  .ai-capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 720px) {
  .nav {
    align-items: center;
    padding: 14px 18px;
  }

  .nav-links {
    right: 18px;
  }

  .hero {
    min-height: auto;
    padding: 92px 18px 72px;
    background:
      linear-gradient(180deg, rgba(5, 8, 6, 0.58), rgba(5, 8, 6, 0.82)),
      linear-gradient(180deg, rgba(216, 255, 79, 0.1), transparent 48%),
      url("assets/overland-hero.webp");
    background-size: cover;
    background-position: center;
  }

  .hero-actions,
  .mini-stats,
  .path-grid,
  .build-grid,
  .article-grid,
  .form-grid,
  .lab-grid,
  .gear-grid,
  .parts-layout,
  .flow-diagram,
  .load-row,
  .checklist,
  .gear-links,
  .power-flow,
  .exploded-stack {
    grid-template-columns: 1fr;
  }

  .flow-diagram span:not(:last-child)::after,
  .power-flow span:not(:last-child)::after {
    content: "v";
    right: auto;
    bottom: -18px;
  }

  .power-box-page {
    padding: 56px 14px 58px;
  }

  .three-power-stage {
    min-height: 520px;
  }

  .model-hotspot {
    max-width: 120px;
    padding: 7px 9px;
    font-size: 0.65rem;
  }

  .model-gesture-hint {
    left: 12px;
    right: 12px;
    text-align: center;
  }

  .power-box-stage,
  .box-viewport {
    min-height: 360px;
  }

  .box-viewport {
    inset: 64px 12px 116px;
  }

  .box-scene {
    width: 112%;
  }

  .drag-hint {
    left: 12px;
    right: 12px;
    text-align: center;
  }

  .view-controls {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .view-controls .mode-button {
    flex: 1 1 42%;
  }

  .hotspot {
    width: 64px;
    height: 64px;
  }

  .section {
    padding: 62px 18px 0;
  }

  .result-box,
  .result-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .result-box strong,
  .result-strip strong,
  .two-line-result strong {
    max-width: none;
    text-align: left;
  }

  .overland-ai-shell {
    right: 12px;
    bottom: 12px;
  }

  .ai-panel {
    position: fixed;
    inset: auto 0 0;
    width: 100vw;
    height: 88vh;
    max-height: 88vh;
    border-radius: 22px 22px 0 0;
  }

  .ai-suggestions,
  .ai-actions {
    grid-template-columns: 1fr;
  }

  .ai-input-row {
    grid-template-columns: 1fr;
  }

  .ai-input-row button {
    min-height: 44px;
  }

  .rig-builder-page {
    padding: 92px 14px 56px;
  }

  .ai-page {
    padding: 92px 14px 56px;
  }

  .rig-builder-hero h1,
  .ai-page-hero h1 {
    font-size: 2.55rem;
  }

  .diagram-header,
  .battery-timeline div,
  .cost-row {
    flex-direction: column;
  }

  .dual-fields,
  .load-inputs,
  .summary-metrics,
  .compare-grid,
  .build-preset-grid,
  .ai-prompt-grid,
  .ai-capability-grid {
    grid-template-columns: 1fr;
  }

  .system-diagram {
    min-height: 520px;
  }

  .diagram-node {
    width: 100%;
  }

  .pseudo-box {
    transform: rotateX(48deg) rotateZ(-22deg) scale(0.82);
  }
}
