:root {
  --bg-main: #070914;
  --bg-deep: #0b101c;
  --bg-panel: rgba(12, 17, 30, 0.82);
  --bg-panel-strong: rgba(15, 22, 38, 0.94);
  --line-soft: rgba(143, 255, 214, 0.18);
  --line-warm: rgba(255, 181, 90, 0.22);
  --text-main: #f5f8ff;
  --text-soft: rgba(226, 235, 255, 0.8);
  --text-muted: rgba(226, 235, 255, 0.6);
  --accent-mint: #8fffd6;
  --accent-cyan: #7fdcff;
  --accent-lime: #d9ff85;
  --accent-violet: #a894ff;
  --accent-amber: #ffb55a;
  --shadow-soft: 0 26px 72px rgba(0, 0, 0, 0.34);
  --radius-section: 18px;
  --radius-card: 8px;
  --transition: 220ms ease;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--text-main);
  background:
    linear-gradient(rgba(143, 255, 214, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 255, 214, 0.025) 1px, transparent 1px),
    linear-gradient(180deg, #060812 0%, #0a0e19 44%, #07101a 100%);
  background-size: 56px 56px, 56px 56px, auto;
  font-family: "Manrope", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(110deg, transparent 0 18%, rgba(127, 220, 255, 0.08) 18% 18.2%, transparent 18.2% 42%),
    linear-gradient(250deg, transparent 0 62%, rgba(255, 181, 90, 0.06) 62% 62.16%, transparent 62.16% 100%);
  pointer-events: none;
}

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

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

.skip-link {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--accent-mint);
  color: #06101a;
  font-weight: 800;
  transform: translateY(-120%);
  transition: transform var(--transition);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 1rem), 1180px);
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  background: rgba(7, 9, 20, 0.78);
  backdrop-filter: blur(16px);
}

.topbar,
.topnav,
main,
.hero-copy,
.hero-stage,
.content-section {
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 0.8rem;
}

.brand-mark {
  display: block;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  overflow: hidden;
  border-radius: 12px;
  background: #070914;
  box-shadow: 0 14px 28px rgba(101, 128, 255, 0.22);
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
}

.brand-copy strong {
  color: var(--text-main);
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand-copy span {
  overflow: hidden;
  color: var(--text-soft);
  font-size: 0.83rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topnav {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.topnav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.35rem 0.55rem;
  border-radius: var(--radius-card);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
  transition:
    color var(--transition),
    background var(--transition),
    transform var(--transition);
}

.topnav a:hover,
.topnav a:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  transform: translateY(-1px);
}

main {
  padding-bottom: 2.5rem;
}

.hero,
.content-section {
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-section);
  box-shadow: var(--shadow-soft);
}

.hero-lab {
  display: grid;
  gap: 1.2rem;
  min-height: 0;
  padding: 1.1rem;
  background:
    linear-gradient(135deg, rgba(143, 255, 214, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(255, 181, 90, 0.08), transparent 34%),
    linear-gradient(180deg, rgba(10, 14, 25, 0.98), rgba(11, 16, 28, 0.96));
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 43rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent-mint);
  text-transform: uppercase;
  letter-spacing: 0;
  font-size: 0.75rem;
  font-weight: 800;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-main);
  line-height: 1.04;
  letter-spacing: 0;
}

h1,
h2,
h3,
p,
strong,
dd,
.button {
  overflow-wrap: anywhere;
}

h1,
h2,
.brand-copy strong {
  font-family: "Space Grotesk", sans-serif;
}

h1 {
  font-size: 4.45rem;
}

h2 {
  max-width: 18ch;
  font-size: 2.75rem;
}

h3 {
  font-size: 1.12rem;
}

p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.hero-tagline {
  margin-top: 0.35rem;
  color: var(--text-main);
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.28;
}

.hero-text {
  max-width: 41rem;
  margin-top: 1rem;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  transition:
    transform var(--transition),
    background var(--transition),
    border-color var(--transition),
    box-shadow var(--transition);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-mint), var(--accent-lime));
  color: #06101a;
  box-shadow: 0 14px 28px rgba(143, 255, 214, 0.16);
}

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

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(127, 220, 255, 0.35);
}

.hero-signals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.25rem 0 0;
}

.hero-signals div {
  min-height: 5.4rem;
  padding: 0.82rem;
  border: 1px solid rgba(143, 255, 214, 0.14);
  border-radius: var(--radius-card);
  background: rgba(255, 255, 255, 0.045);
}

.hero-signals dt {
  margin: 0 0 0.35rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.hero-signals dd {
  margin: 0;
  color: var(--text-main);
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.25;
}

.hero-stage {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border: 1px solid rgba(143, 255, 214, 0.12);
  border-radius: var(--radius-section);
  background: #070914;
}

.lab-visual {
  width: 100%;
  height: 100%;
  min-height: 24rem;
  object-fit: cover;
  opacity: 0.95;
}

.stage-scan {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0 26px, rgba(143, 255, 214, 0.04) 27px, transparent 28px),
    linear-gradient(90deg, rgba(7, 9, 20, 0.22), transparent 30%, transparent 70%, rgba(7, 9, 20, 0.34));
  mix-blend-mode: screen;
  pointer-events: none;
}

.lab-card {
  position: absolute;
  width: min(13.5rem, calc(100% - 1.2rem));
  padding: 0.82rem 0.9rem;
  border: 1px solid rgba(143, 255, 214, 0.16);
  border-radius: var(--radius-card);
  background: rgba(6, 10, 18, 0.78);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.26);
}

.lab-card span,
.lab-card strong {
  display: block;
}

.lab-card span {
  margin-bottom: 0.25rem;
  color: var(--accent-mint);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.lab-card strong {
  color: var(--text-main);
  font-size: 0.94rem;
  line-height: 1.25;
}

.card-one {
  inset: 1rem auto auto 1rem;
}

.card-two {
  inset: auto auto 1rem 1rem;
}

.card-three {
  inset: 48% 1rem auto auto;
}

.content-section {
  padding: 1.2rem;
  background:
    linear-gradient(135deg, rgba(127, 220, 255, 0.045), transparent 40%),
    linear-gradient(180deg, rgba(13, 18, 31, 0.96), rgba(9, 13, 24, 0.96));
}

.section-heading {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.two-column,
.card-grid,
.protocol-grid,
.split-section,
.status-board {
  display: grid;
  gap: 0.85rem;
}

.protocol-card,
.lab-card-panel,
.principles-list article,
.status-board article {
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(143, 255, 214, 0.12);
  border-radius: var(--radius-card);
  background:
    linear-gradient(180deg, rgba(18, 25, 42, 0.9), rgba(10, 14, 25, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.protocol-card span,
.lab-card-panel span {
  display: inline-flex;
  margin-bottom: 0.75rem;
  color: var(--accent-mint);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.protocol-card p,
.lab-card-panel p,
.principles-list p,
.status-board p {
  margin-top: 0.62rem;
}

.protocol-card:nth-child(2),
.lab-card-panel:nth-child(2) {
  border-color: rgba(127, 220, 255, 0.16);
}

.protocol-card:nth-child(3),
.lab-card-panel:nth-child(3) {
  border-color: rgba(255, 181, 90, 0.18);
}

.protocol-card:nth-child(4) {
  border-color: rgba(217, 255, 133, 0.2);
}

.principles-list {
  display: grid;
  gap: 0.85rem;
}

.principles-list strong,
.status-board strong {
  display: block;
  color: var(--text-main);
  line-height: 1.3;
}

.status-board article {
  display: grid;
  align-content: start;
  gap: 0.18rem;
}

.experiment-feature {
  display: grid;
  gap: 1rem;
  min-width: 0;
  padding: 1rem;
  border: 1px solid rgba(143, 255, 214, 0.14);
  border-radius: var(--radius-card);
  background:
    linear-gradient(135deg, rgba(143, 255, 214, 0.07), transparent 36%),
    linear-gradient(180deg, rgba(18, 25, 42, 0.9), rgba(10, 14, 25, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.experiment-icons {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.experiment-icons img {
  width: 4.8rem;
  height: 4.8rem;
  border-radius: 16px;
  object-fit: contain;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.2);
}

.experiment-feature h3 {
  margin-top: 0.25rem;
  font-size: 1.35rem;
}

.experiment-feature p {
  margin-top: 0.65rem;
}

.experiment-actions {
  margin-top: 1rem;
}

.status-badge {
  display: inline-flex;
  justify-self: start;
  align-items: center;
  min-height: 1.8rem;
  margin-bottom: 0.55rem;
  padding: 0.28rem 0.58rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-card);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 800;
}

.status-active {
  background: rgba(143, 255, 214, 0.12);
  color: var(--accent-mint);
}

.status-paused {
  background: rgba(255, 181, 90, 0.12);
  color: var(--accent-amber);
}

.status-migrate {
  background: rgba(127, 220, 255, 0.12);
  color: var(--accent-cyan);
}

.status-archived {
  background: rgba(168, 148, 255, 0.12);
  color: var(--accent-violet);
}

.closing-actions {
  margin-top: 1.15rem;
}

.site-footer {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0 0 1.6rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 1;
  transform: none;
  transition:
    opacity 680ms ease,
    transform 680ms ease;
}

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

.interactive-panel {
  transform-style: preserve-3d;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.interactive-panel:hover,
.interactive-panel:focus-within {
  border-color: rgba(143, 255, 214, 0.26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 16px 32px rgba(0, 0, 0, 0.16);
}

.ecosystem-band {
  border-color: rgba(143, 255, 214, 0.14);
  border-radius: var(--radius-section);
  background:
    linear-gradient(135deg, rgba(143, 255, 214, 0.06), transparent 34%),
    linear-gradient(315deg, rgba(255, 181, 90, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(9, 14, 25, 0.98), rgba(11, 17, 30, 0.95));
}

.ecosystem-band::before,
.ecosystem-band::after {
  display: none;
}

.ecosystem-kicker {
  color: var(--accent-amber);
  letter-spacing: 0;
}

.ecosystem-intro h2 {
  max-width: 19ch;
  font-size: 2.65rem;
  letter-spacing: 0;
}

.ecosystem-card {
  border-radius: var(--radius-card);
}

@media (min-width: 760px) {
  .site-shell {
    width: min(calc(100% - 2rem), 1180px);
  }

  .hero-lab {
    grid-template-columns: minmax(0, 0.95fr) minmax(21rem, 1.05fr);
    align-items: stretch;
    min-height: 35rem;
    padding: 1.35rem;
  }

  .hero-copy {
    align-self: center;
  }

  .content-section {
    padding: 1.45rem;
  }

  .two-column,
  .split-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .protocol-grid,
  .status-board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .experiment-feature {
    grid-template-columns: 11rem minmax(0, 1fr);
    align-items: center;
  }

  .experiment-icons {
    justify-content: center;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    gap: 1rem;
  }
}

@media (max-width: 900px) {
  h1 {
    font-size: 4rem;
  }

  h2,
  .ecosystem-intro h2 {
    font-size: 2.35rem;
  }

  .hero-signals,
  .status-board,
  .protocol-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 759px) {
  .topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-lab {
    min-height: 0;
  }

  h1 {
    font-size: 3.2rem;
  }

  h2,
  .ecosystem-intro h2 {
    font-size: 2rem;
  }

  .hero-stage,
  .lab-visual {
    min-height: 21rem;
  }

  .card-three {
    inset: auto 1rem 6.8rem auto;
  }
}

@media (max-width: 540px) {
  .brand-copy span {
    white-space: normal;
  }

  .topnav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem;
  }

  .topnav a {
    justify-content: center;
    min-width: 0;
    padding-right: 0.4rem;
    padding-left: 0.4rem;
  }

  .protocol-grid,
  .status-board {
    grid-template-columns: 1fr;
  }

  .hero-signals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .hero-signals div {
    min-height: 4.65rem;
    padding: 0.6rem;
  }

  .hero-signals dt {
    font-size: 0.62rem;
  }

  .hero-signals dd {
    font-size: 0.78rem;
  }

  .button {
    width: 100%;
  }

  .hero-stage {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0;
    border: 0;
    border-radius: inherit;
    opacity: 0.22;
    pointer-events: none;
  }

  .lab-visual {
    width: 100%;
    height: 100%;
    min-height: 0;
  }

  .lab-card {
    display: none;
  }

  .hero-copy {
    z-index: 1;
  }

  .lab-visual,
  .stage-scan {
    position: absolute;
    inset: 0;
  }

  h1 {
    font-size: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .reveal.is-visible,
  .interactive-panel,
  .button,
  .topnav a {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
