:root {
  color-scheme: dark;
  --bg: #06111d;
  --bg-deep: #02070d;
  --surface: rgba(8, 25, 42, 0.78);
  --surface-strong: rgba(11, 35, 58, 0.94);
  --text: #f5faff;
  --muted: #9ab0c8;
  --soft: #c9d8e8;
  --line: rgba(115, 200, 255, 0.18);
  --cyan: #30c8ff;
  --blue: #0c73ff;
  --navy: #072c68;
  --green: #52f2b8;
  --violet: #9d7cff;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.36);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(3, 13, 24, 0.82), rgba(2, 7, 13, 0.96)),
    repeating-linear-gradient(90deg, rgba(48, 200, 255, 0.055) 0 1px, transparent 1px 92px),
    repeating-linear-gradient(0deg, rgba(82, 242, 184, 0.04) 0 1px, transparent 1px 92px),
    var(--bg-deep);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

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

#signal-canvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  width: min(var(--max), calc(100% - 40px));
  min-height: 76px;
  margin: 0 auto;
  padding-top: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 164px;
  height: 48px;
  padding: 5px 12px 5px 8px;
  border: 1px solid rgba(114, 202, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.22);
}

.brand-mark img {
  width: 42px;
  height: 30px;
  object-fit: contain;
}

.brand-mark span {
  color: #06337d;
  font-size: 0.94rem;
  font-weight: 900;
  line-height: 1;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: rgba(4, 17, 30, 0.72);
  backdrop-filter: blur(18px);
}

.site-nav a,
.nav-action,
.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-nav a {
  padding: 0 14px;
  color: var(--soft);
}

.site-nav a:hover {
  background: rgba(48, 200, 255, 0.1);
  color: var(--text);
}

.nav-action {
  padding: 0 16px;
  border: 1px solid rgba(82, 242, 184, 0.3);
  background: rgba(82, 242, 184, 0.1);
  color: #dbfff3;
}

.hero {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 88vh;
  padding: 150px max(28px, calc((100vw - var(--max)) / 2)) 92px;
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 8, 14, 0.82) 0%, rgba(2, 8, 14, 0.48) 46%, rgba(2, 8, 14, 0.78) 100%),
    linear-gradient(180deg, rgba(6, 17, 29, 0.2), rgba(6, 17, 29, 0.92));
}

.hero-watermark {
  position: absolute;
  top: 13%;
  right: max(6px, calc((100vw - var(--max)) / 2 - 24px));
  z-index: -1;
  width: min(520px, 42vw);
  opacity: 0.48;
  mix-blend-mode: screen;
  filter: saturate(1.28) drop-shadow(0 40px 90px rgba(12, 115, 255, 0.3));
}

.hero-copy {
  width: min(760px, 100%);
  min-width: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 20px;
  max-width: 1040px;
  font-size: clamp(2.85rem, 5.8vw, 5rem);
  line-height: 1.02;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.98;
  font-weight: 860;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.2;
}

.hero-lede {
  width: min(620px, 100%);
  margin-bottom: 16px;
  color: var(--soft);
  font-size: clamp(1.08rem, 2vw, 1.38rem);
  line-height: 1.55;
}

.hero-note {
  width: min(700px, 100%);
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}

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

.button {
  min-width: 170px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.button.primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #00111e;
  box-shadow: 0 16px 42px rgba(48, 200, 255, 0.26);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.button:hover,
.nav-action:hover {
  transform: translateY(-1px);
}

.signal-readout {
  position: absolute;
  right: max(28px, calc((100vw - var(--max)) / 2));
  bottom: 76px;
  display: grid;
  gap: 4px;
  width: 218px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 18, 31, 0.76);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.signal-readout span,
.signal-readout em,
.metric-band span,
article p,
.launch-section p {
  color: var(--muted);
}

.signal-readout strong {
  font-size: 2rem;
  line-height: 1;
}

.signal-readout em {
  font-style: normal;
  font-size: 0.86rem;
}

.metric-band,
.skills-strip,
.section-shell,
.workflow-section,
.robot-section,
.launch-section,
.site-footer {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.metric-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: -34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.metric-band div {
  min-height: 112px;
  padding: 22px;
  background: rgba(6, 22, 38, 0.92);
}

.metric-band strong {
  display: block;
  margin-bottom: 12px;
  color: var(--cyan);
  font-size: 0.82rem;
}

.metric-band span {
  display: block;
  max-width: 250px;
  font-size: 1rem;
  line-height: 1.35;
}

.skills-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 24px;
}

.skills-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(48, 200, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(4, 17, 30, 0.68);
  color: #d8f7ff;
  font-size: 0.78rem;
  font-weight: 850;
}

.section-shell,
.workflow-section,
.robot-section,
.launch-section {
  padding: 112px 0 0;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.42fr 1fr;
  align-items: end;
  gap: 46px;
  margin-bottom: 34px;
}

.section-heading.compact {
  grid-template-columns: 1fr;
  max-width: 780px;
}

.section-intro {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--soft);
  font-size: 1.05rem;
  line-height: 1.65;
}

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

.capability-grid article {
  min-height: 258px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(14, 46, 74, 0.9), rgba(8, 23, 38, 0.88));
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.18);
}

.icon-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 54px;
  height: 34px;
  margin-bottom: 48px;
  border: 1px solid rgba(48, 200, 255, 0.26);
  border-radius: var(--radius);
  color: #c9f5ff;
  background: rgba(48, 200, 255, 0.09);
  font-size: 0.8rem;
  font-weight: 900;
}

.capability-grid p,
.launch-section p {
  line-height: 1.65;
}

.about-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.about-copy,
.about-facts {
  background:
    radial-gradient(circle at top left, rgba(48, 200, 255, 0.12), transparent 34%),
    rgba(6, 22, 38, 0.92);
}

.about-copy {
  padding: clamp(28px, 5vw, 54px);
}

.about-copy p {
  max-width: 780px;
  color: var(--soft);
  font-size: clamp(1.05rem, 1.8vw, 1.26rem);
  line-height: 1.72;
}

.about-copy p:last-child {
  margin-bottom: 0;
}

.about-facts {
  display: grid;
  gap: 1px;
  background-color: rgba(4, 15, 26, 0.96);
}

.about-facts div {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 118px;
  padding: 22px;
  background: rgba(11, 34, 56, 0.76);
}

.about-facts span,
.project-kicker {
  color: var(--green);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.about-facts strong {
  color: var(--text);
  font-size: 1.1rem;
}

.workflow-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 280px;
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.rail,
.console,
.insight-stack {
  background: rgba(6, 20, 34, 0.93);
}

.rail {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 24px;
}

.rail span {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  color: var(--muted);
  font-weight: 800;
}

.rail .active {
  color: #05111d;
  background: var(--green);
}

.console {
  min-height: 330px;
  padding: 26px;
}

.console-head {
  display: flex;
  gap: 8px;
  margin-bottom: 40px;
}

.console-head span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
}

pre {
  margin: 0;
  white-space: pre-wrap;
  color: #e8faff;
  font: 700 clamp(0.98rem, 1.7vw, 1.28rem)/1.8 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.insight-stack {
  display: grid;
  gap: 1px;
}

.insight-stack div {
  display: grid;
  align-content: center;
  gap: 8px;
  min-height: 110px;
  padding: 20px;
  background: rgba(10, 30, 50, 0.84);
}

.insight-stack span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.insight-stack strong {
  color: var(--text);
  font-size: 1.04rem;
}

.project-grid {
  display: grid;
  gap: 22px;
}

.project-card {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--line);
  box-shadow: var(--shadow);
}

.video-shell {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, rgba(48, 200, 255, 0.14), rgba(7, 44, 104, 0.2)),
    rgba(3, 12, 22, 0.94);
}

.video-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.34);
}

.video-shell video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #02070d;
}

.project-copy {
  display: grid;
  align-content: center;
  padding: clamp(24px, 4vw, 42px);
  background:
    radial-gradient(circle at top right, rgba(82, 242, 184, 0.1), transparent 38%),
    var(--surface-strong);
}

.project-copy h3 {
  margin-bottom: 14px;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  line-height: 1.02;
  text-wrap: balance;
}

.project-copy p:not(.project-kicker) {
  color: var(--soft);
  line-height: 1.65;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.tech-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(48, 200, 255, 0.2);
  border-radius: var(--radius);
  background: rgba(48, 200, 255, 0.08);
  color: #d8f7ff;
  font-size: 0.78rem;
  font-weight: 800;
}

.project-tabs {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.tab-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(48, 200, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(4, 17, 30, 0.58);
}

.tab-list button {
  min-height: 38px;
  border: 1px solid transparent;
  border-radius: calc(var(--radius) - 2px);
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
}

.tab-list button:hover,
.tab-list button[aria-selected="true"] {
  border-color: rgba(82, 242, 184, 0.26);
  background: rgba(82, 242, 184, 0.1);
  color: #e8fff7;
}

.tab-panel {
  display: none;
  min-height: 158px;
  padding: 16px;
  border: 1px solid rgba(48, 200, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(5, 18, 31, 0.58);
}

.tab-panel.is-active {
  display: block;
}

.tab-panel p {
  margin-bottom: 12px;
}

.tab-panel ul,
.tab-panel ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--soft);
  line-height: 1.45;
}

.tab-panel strong {
  color: var(--text);
}

.tab-panel .tech-stack {
  margin-top: 0;
}

.robot-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: start;
}

.robot-copy {
  display: grid;
  align-content: start;
  gap: 18px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top left, rgba(48, 200, 255, 0.14), transparent 34%),
    rgba(6, 22, 38, 0.9);
  box-shadow: var(--shadow);
}

.robot-copy p {
  margin: 0;
  color: var(--soft);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.72;
}

.robot-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.robot-stack span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  border: 1px solid rgba(82, 242, 184, 0.22);
  border-radius: var(--radius);
  background: rgba(82, 242, 184, 0.08);
  color: #dffff5;
  font-size: 0.78rem;
  font-weight: 850;
}

.robot-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.robot-gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(3, 12, 22, 0.94);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22);
}

.robot-gallery figure:first-child {
  grid-column: 1 / -1;
}

.robot-gallery img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #02070d;
}

.robot-gallery figcaption {
  padding: 12px 14px;
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.launch-section {
  display: grid;
  justify-items: start;
  max-width: 760px;
  margin-bottom: 94px;
}

.launch-section p {
  margin: 22px 0 28px;
  font-size: 1.1rem;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer span:first-child {
  color: var(--text);
  font-weight: 900;
}

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 4px;
}

section[id] {
  scroll-margin-top: 96px;
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-nav {
    display: none;
  }

  .hero {
    min-height: 86vh;
    padding-top: 130px;
  }

  .hero-watermark {
    top: 18%;
    width: 86vw;
    opacity: 0.12;
  }

  .signal-readout {
    position: static;
    width: min(100%, 360px);
    margin-top: 34px;
  }

  .metric-band,
  .skills-strip,
  .capability-grid,
  .about-panel,
  .section-heading,
  .workflow-panel,
  .robot-layout,
  .project-card {
    grid-template-columns: 1fr;
  }

  .section-shell,
  .workflow-section,
  .robot-section,
  .launch-section {
    padding-top: 76px;
  }

  .metric-band {
    margin-top: -22px;
  }

  .video-shell,
  .video-shell video {
    min-height: 280px;
  }
}

@media (max-width: 560px) {
  .site-header,
  .metric-band,
  .skills-strip,
  .section-shell,
  .workflow-section,
  .robot-section,
  .launch-section,
  .site-footer {
    width: min(100% - 28px, var(--max));
  }

  .brand-mark {
    width: 146px;
  }

  .brand-mark img {
    width: 36px;
    height: 26px;
  }

  .brand-mark span {
    font-size: 0.84rem;
  }

  .nav-action {
    padding-inline: 12px;
    font-size: 0.78rem;
  }

  .hero {
    padding-inline: 14px;
  }

  h1 {
    font-size: clamp(2.25rem, 10vw, 3.25rem);
    line-height: 1;
  }

  .hero-actions,
  .contact-actions,
  .button {
    width: 100%;
  }

  .hero-copy,
  .hero-lede,
  .hero-actions {
    max-width: 100%;
  }

  .about-copy,
  .project-copy,
  .robot-copy {
    padding: 22px;
  }

  .tab-list {
    grid-template-columns: 1fr;
  }

  .about-facts div {
    min-height: 96px;
  }

  .video-shell,
  .video-shell video {
    min-height: 220px;
  }

  .robot-gallery {
    grid-template-columns: 1fr;
  }
}

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