:root {
  color-scheme: light;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef4f8;
  --ink: #0e2841;
  --muted: #4f6676;
  --line: #d7e1ea;
  --blue: #156082;
  --cyan: #0f9ed5;
  --orange: #e97132;
  --green: #196b24;
  --purple: #a02b93;
  --gold: #ceb888;
  --shadow: 0 24px 70px rgba(14, 40, 65, 0.12);
  --soft-shadow: 0 12px 30px rgba(14, 40, 65, 0.08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #020713;
  --surface: #041e42;
  --surface-2: rgba(14, 40, 65, 0.78);
  --ink: #f8fafc;
  --muted: #c8c9c7;
  --line: rgba(200, 201, 199, 0.18);
  --blue: #0f9ed5;
  --cyan: #43c7ef;
  --orange: #e97132;
  --green: #4ea72e;
  --purple: #d946ef;
  --gold: #ceb888;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.46);
  --soft-shadow: 0 18px 50px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 8%, color-mix(in srgb, var(--cyan) 22%, transparent), transparent 34rem),
    radial-gradient(circle at 88% 12%, color-mix(in srgb, var(--orange) 16%, transparent), transparent 30rem),
    linear-gradient(135deg, var(--bg), color-mix(in srgb, var(--bg) 88%, var(--blue)));
  color: var(--ink);
  font-family: var(--font);
}

button,
input {
  font: inherit;
}

button {
  color: inherit;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(22px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: block;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.nav-links a:hover {
  color: var(--blue);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pill-button,
.filter-chip,
.scenario-tab {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
  transition: 0.2s ease;
}

.pill-button {
  min-height: 36px;
  padding: 0 14px;
}

.home-link {
  width: 40px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.home-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button {
  width: 38px;
  padding: 0;
}

.pill-button.active,
.filter-chip.active,
.scenario-tab.active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  box-shadow: 0 12px 26px color-mix(in srgb, var(--blue) 24%, transparent);
}

.section-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 110px) 0;
}

.hero-section {
  min-height: calc(100vh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: clamp(34px, 5vw, 72px);
  padding-top: clamp(44px, 7vw, 88px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6.6vw, 82px);
  line-height: 0.96;
  letter-spacing: -0.065em;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(30px, 4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 22px;
  letter-spacing: -0.02em;
}

.hero-lede,
.section-heading p,
.scenario-detail p,
.layer-detail p,
.portfolio-card p,
.cockpit-card p {
  color: var(--muted);
  line-height: 1.7;
}

.hero-lede {
  max-width: 650px;
  font-size: clamp(17px, 2vw, 21px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 32px 0 26px;
}

.primary-cta,
.ghost-cta {
  min-height: 48px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}

.primary-cta {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 16px 36px color-mix(in srgb, var(--orange) 28%, transparent);
}

.ghost-cta {
  border: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 62%, transparent);
}

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

.proof-strip span {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.hero-cockpit,
.scenario-panel,
.architecture-workbench,
.simulator-grid {
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 78%, transparent));
  box-shadow: var(--shadow);
}

.hero-cockpit {
  padding: clamp(18px, 3vw, 30px);
  min-height: 620px;
  position: relative;
  overflow: hidden;
}

.hero-cockpit::before {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--cyan) 18%, transparent), transparent 60%);
  filter: blur(6px);
}

.cockpit-header {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.cockpit-header strong {
  color: var(--gold);
}

.orbit-map {
  position: relative;
  z-index: 1;
  height: 430px;
  margin-top: 16px;
  border-radius: 26px;
  background:
    linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px);
  background-size: 46px 46px;
}

.orbit-map::before,
.orbit-map::after {
  content: "";
  position: absolute;
  inset: 18%;
  border: 1px dashed color-mix(in srgb, var(--cyan) 42%, transparent);
  border-radius: 50%;
  animation: rotate 28s linear infinite;
}

.orbit-map::after {
  inset: 6%;
  animation-duration: 42s;
  animation-direction: reverse;
}

.orbit-core,
.orbit-node {
  position: absolute;
  z-index: 3;
}

.orbit-core {
  top: 50%;
  left: 50%;
  width: 160px;
  height: 160px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  color: #fff;
  box-shadow: 0 24px 55px color-mix(in srgb, var(--blue) 30%, transparent);
}

.orbit-core strong {
  font-size: 48px;
  line-height: 0.8;
}

.orbit-core span {
  margin-top: -34px;
  font-size: 11px;
  font-weight: 800;
}

.orbit-node {
  min-width: 132px;
  min-height: 52px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.orbit-node.active {
  color: #fff;
  transform: translateY(-4px);
}

.orbit-node.blue.active { background: var(--blue); }
.orbit-node.green.active { background: var(--green); }
.orbit-node.orange.active { background: var(--orange); }
.orbit-node.purple.active { background: var(--purple); }
.orbit-node.cyan.active { background: var(--cyan); color: #062033; }

.node-1 { top: 9%; left: 38%; }
.node-2 { top: 28%; right: 3%; }
.node-3 { right: 9%; bottom: 13%; }
.node-4 { left: 8%; bottom: 12%; }
.node-5 { top: 27%; left: 0; }

.cockpit-card {
  position: relative;
  z-index: 2;
  min-height: 116px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--surface) 86%, transparent);
}

.mini-label,
.card-kicker,
.milestone span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 34px;
  align-items: start;
}

.section-heading {
  max-width: 720px;
}

.scenario-panel {
  padding: 18px;
}

.scenario-tabs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}

.scenario-tab {
  min-height: 58px;
  justify-content: flex-start;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 18px;
}

.scenario-tab span {
  font-size: 20px;
}

.scenario-detail {
  padding: 24px;
  min-height: 320px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 90% 10%, color-mix(in srgb, var(--orange) 18%, transparent), transparent 18rem),
    color-mix(in srgb, var(--surface-2) 84%, transparent);
}

.scenario-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--orange);
  color: #fff;
  font-size: 26px;
}

.scenario-detail h3 {
  margin: 22px 0 12px;
}

.scenario-detail li,
.detail-drawer li {
  margin: 10px 0;
  color: var(--muted);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 26px 0;
}

.filter-chips,
.roadmap-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip {
  min-height: 40px;
  padding: 0 16px;
}

.search-box {
  min-width: min(360px, 100%);
  height: 44px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
}

.search-box input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
}

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

.portfolio-card {
  min-height: 260px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--surface) 92%, transparent), color-mix(in srgb, var(--surface-2) 78%, transparent));
  box-shadow: var(--soft-shadow);
  cursor: pointer;
  text-align: left;
  transition: 0.24s ease;
}

.portfolio-card:hover {
  transform: translateY(-6px);
  border-color: color-mix(in srgb, var(--blue) 55%, var(--line));
  box-shadow: var(--shadow);
}

.portfolio-card h3 {
  min-height: 54px;
  margin: 14px 0 12px;
}

.portfolio-card p {
  min-height: 88px;
  font-size: 14px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-row span {
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.tag-row.large span {
  padding: 8px 12px;
  font-size: 12px;
}

.portfolio-card.office .card-kicker,
.milestone.office span { color: var(--orange); }
.portfolio-card.factory .card-kicker,
.milestone.factory span { color: var(--green); }
.portfolio-card.engineering .card-kicker,
.milestone.engineering span { color: var(--purple); }

.roadmap-section,
.architecture-section {
  width: min(1240px, calc(100% - 36px));
}

.roadmap-board {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.year-column {
  min-height: 430px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.year-column h3 {
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 30px;
}

.milestone {
  margin-bottom: 12px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--blue);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface-2) 78%, transparent);
}

.milestone.office { border-left-color: var(--orange); }
.milestone.factory { border-left-color: var(--green); }
.milestone.engineering { border-left-color: var(--purple); }

.milestone strong {
  display: block;
  margin: 8px 0;
}

.milestone p,
.empty-state {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.architecture-workbench {
  padding: 20px;
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 20px;
}

.layer-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.layer-button {
  min-height: 82px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
  cursor: pointer;
  text-align: left;
  transition: 0.2s ease;
}

.layer-button span,
.layer-button small {
  display: block;
}

.layer-button span {
  font-weight: 950;
}

.layer-button small {
  margin-top: 6px;
  color: var(--muted);
}

.layer-button.active {
  transform: translateX(8px);
  background: var(--blue);
  color: #fff;
}

.layer-button.active small {
  color: rgba(255, 255, 255, 0.78);
}

.layer-detail {
  min-height: 440px;
  padding: 28px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 80% 18%, color-mix(in srgb, var(--cyan) 20%, transparent), transparent 20rem),
    color-mix(in srgb, var(--surface) 82%, transparent);
}

.simulator-grid {
  padding: 22px;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: 18px;
}

.slider-card,
.impact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: color-mix(in srgb, var(--surface-2) 82%, transparent);
}

.slider-card label {
  margin: 16px 0 12px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--muted);
  font-weight: 850;
}

.slider-card label:first-child {
  margin-top: 0;
}

.slider-card label strong {
  color: var(--ink);
}

.slider-card input[type="range"] {
  width: 100%;
  accent-color: var(--orange);
}

.impact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 22%, var(--surface)), color-mix(in srgb, var(--purple) 20%, var(--surface)));
}

.impact-number {
  color: var(--gold);
  font-size: clamp(48px, 8vw, 86px);
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 0.92;
}

.impact-card > span {
  margin: 10px 0 22px;
  color: var(--muted);
  font-weight: 900;
}

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

.impact-metrics p {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--muted);
}

.impact-metrics strong {
  display: block;
  color: var(--ink);
}

.impact-card small {
  margin-top: 18px;
  color: var(--muted);
}

.detail-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(430px, 100vw);
  height: 100vh;
  padding: 34px;
  background: color-mix(in srgb, var(--surface) 96%, transparent);
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(105%);
  transition: 0.25s ease;
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-close {
  width: 42px;
  height: 42px;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  font-size: 24px;
}

.detail-drawer h2 {
  font-size: 34px;
}

.detail-drawer h3 {
  margin-top: 28px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: 0.55s ease;
}

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

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

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero-section,
  .split-section,
  .architecture-workbench,
  .simulator-grid {
    grid-template-columns: 1fr;
  }

  .hero-cockpit {
    min-height: auto;
  }

  .portfolio-grid,
  .roadmap-board {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 640px) {
  .site-nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-section {
    min-height: auto;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .scenario-tabs,
  .proof-strip,
  .impact-metrics {
    grid-template-columns: 1fr;
  }

  .orbit-map {
    height: 520px;
  }

  .orbit-node {
    position: static;
    width: 100%;
    margin-bottom: 8px;
  }

  .orbit-core {
    width: 128px;
    height: 128px;
  }
}
