:root {
  --ink: #080b12;
  --muted: #536074;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --line: #dbe2ef;
  --blue: #244bd4;
  --blue-dark: #0a2e86;
  --red: #df182f;
  --teal: #0ebaa2;
  --green: #138f65;
  --warning: #b7791f;
  --shadow: 0 24px 60px rgba(8, 18, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

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

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

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

h1 {
  width: min(100%, 9.8em);
  margin-bottom: 1.1rem;
  color: #ffffff;
  font-size: clamp(2.8rem, 5.5vw, 5.4rem);
  line-height: 0.95;
  letter-spacing: 0;
  overflow-wrap: normal;
}

h2 {
  margin-bottom: 0.8rem;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 0.5rem;
  color: #112252;
  font-size: 1.35rem;
  line-height: 1.15;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

label {
  display: block;
  margin-bottom: 0.4rem;
  color: #1c2b46;
  font-size: 0.82rem;
  font-weight: 850;
}

input,
select {
  width: 100%;
  height: 3rem;
  padding: 0 0.9rem;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #c8d3e4;
  border-radius: 7px;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(36, 75, 212, 0.14);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.65rem 0.9rem;
  color: #ffffff;
  background: var(--blue);
  border-radius: 6px;
  transform: translateY(-150%);
}

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

.labs-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(20, 30, 55, 0.08);
}

.promo-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.35rem;
  padding: 0.5rem 1rem;
  color: #ffffff;
  background: #000000;
  text-align: center;
}

.promo-bar p {
  min-width: 0;
  margin: 0;
  color: var(--teal);
  font-size: 0.94rem;
  font-weight: 760;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.promo-bar a {
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  color: #ffffff;
  border: 1px solid #ffffff;
  font-size: 0.84rem;
  font-weight: 850;
}

.utility-bar {
  position: absolute;
  top: 0;
  right: max(1rem, calc((100vw - 1320px) / 2));
  display: block;
  color: #ffffff;
  background: transparent;
}

.utility-bar nav {
  display: flex;
  justify-content: flex-end;
  gap: 1.3rem;
  width: auto;
  margin: 0;
  padding: 1rem 0 0;
  font-size: 0.86rem;
  font-weight: 800;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 4.25rem;
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
}

.brand img {
  width: 186px;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.6rem);
  color: #111827;
  font-size: 0.95rem;
  font-weight: 720;
}

.site-nav a {
  padding: 1.45rem 0;
}

.site-nav a:hover,
.labs-subnav a:hover,
.labs-footer a:hover {
  color: var(--red);
}

.menu-button {
  display: none;
  min-height: 2.45rem;
  padding: 0 0.85rem;
  color: #ffffff;
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  font-weight: 850;
}

.labs-subnav {
  position: sticky;
  top: 7.6rem;
  z-index: 30;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.2rem);
  padding: 0.7rem 1rem;
  color: #25344f;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
  font-size: 0.88rem;
  font-weight: 850;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(370px, 0.72fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: center;
  padding: clamp(3rem, 5.5vw, 4.9rem) max(1rem, calc((100vw - 1320px) / 2)) 2.6rem;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.98) 0%, rgba(5, 7, 13, 0.94) 46%, rgba(16, 22, 31, 0.86) 100%),
    linear-gradient(140deg, rgba(223, 24, 47, 0.38), transparent 24rem),
    linear-gradient(40deg, rgba(36, 75, 212, 0.35), transparent 28rem);
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.33;
  background:
    linear-gradient(90deg, transparent 0 64px, rgba(20, 174, 160, 0.22) 65px 66px, transparent 67px),
    linear-gradient(0deg, transparent 0 64px, rgba(36, 75, 212, 0.18) 65px 66px, transparent 67px);
  background-size: 132px 132px;
  mask-image: linear-gradient(90deg, transparent, #000000 32%, #000000);
}

.hero::after {
  position: absolute;
  right: -8rem;
  bottom: -12rem;
  width: 34rem;
  height: 34rem;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
}

.hero-copy,
.hero-visual {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.eyebrow,
.section-label,
.status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 1.8rem;
  padding: 0.25rem 0.62rem;
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow {
  margin-bottom: 1rem;
  color: #ffffff;
  background: var(--red);
}

.hero-copy p {
  max-width: 45rem;
  color: #ffffff;
  font-size: clamp(1.08rem, 1.7vw, 1.35rem);
}

.hero-actions,
.state-toggle,
.social-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.35rem;
  border-radius: 4px;
  font-weight: 900;
  text-align: center;
}

.primary-button {
  color: #ffffff;
  background: var(--blue);
  border: 1px solid var(--blue);
}

.primary-button:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.secondary-button {
  color: #ffffff;
  background: transparent;
  border: 1px solid currentColor;
}

.secondary-button:hover {
  color: var(--ink);
  background: #ffffff;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 41rem;
  margin: 2rem 0 0;
}

.hero-stats div {
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.hero-stats dt {
  color: #ffffff;
  font-size: 1.45rem;
  font-weight: 950;
}

.hero-stats dd {
  margin: 0.1rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
}

.hero-visual {
  min-height: 28rem;
}

.hero-visual img {
  position: absolute;
  top: 5rem;
  right: 0;
  width: min(72vw, 27rem);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
}

.lab-card,
.terminal-card {
  position: absolute;
  z-index: 2;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.lab-card {
  top: 0.8rem;
  left: 0;
  width: min(19rem, 68vw);
  padding: 1.1rem;
  border-top: 5px solid var(--red);
}

.lab-card span {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lab-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--blue);
  font-size: 1.55rem;
}

.lab-card p {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.terminal-card {
  right: 2rem;
  bottom: 0;
  width: min(25rem, 78vw);
  padding: 1rem;
  color: #e7f1ff;
  background: #060b12;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.terminal-top {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 0.9rem;
}

.terminal-top span {
  width: 0.62rem;
  height: 0.62rem;
  background: #e34b5b;
  border-radius: 50%;
}

.terminal-top span:nth-child(2) {
  background: #e6bd4d;
}

.terminal-top span:nth-child(3) {
  background: #36c88f;
}

.terminal-card code {
  display: block;
  padding: 0.3rem 0;
  color: #cddaf0;
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 0.83rem;
}

.terminal-card code::before {
  color: var(--teal);
  content: "> ";
}

.terminal-card .success {
  color: #8df5c0;
}

.section,
.feedback-band {
  width: min(1200px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.intro-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.section-label {
  margin-bottom: 0.85rem;
  color: var(--red);
  background: rgba(223, 24, 47, 0.09);
}

.intro-section p {
  margin-bottom: 0;
  font-size: 1.1rem;
}

.impact-section {
  border-top: 1px solid var(--line);
}

.section-heading {
  max-width: 50rem;
  margin-bottom: 2rem;
}

.with-controls {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: none;
}

.impact-grid,
.process-grid,
.prototype-grid,
.footer-inner {
  display: grid;
  gap: 1.2rem;
}

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

.impact-grid article,
.process-grid article,
.prototype-card,
.empty-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 35px rgba(17, 34, 82, 0.08);
}

.impact-grid article {
  padding: 1.35rem;
}

.impact-grid span {
  display: inline-flex;
  margin-bottom: 1.4rem;
  color: var(--red);
  font-weight: 950;
}

.impact-grid p,
.process-grid p,
.prototype-card p,
.empty-card p {
  margin-bottom: 0;
}

.prototypes-section {
  width: 100%;
  padding-inline: max(1rem, calc((100vw - 1200px) / 2));
  background:
    linear-gradient(180deg, #f6f8fc, #ffffff 56%),
    linear-gradient(130deg, rgba(223, 24, 47, 0.08), transparent 28rem);
}

.state-toggle {
  padding: 0.25rem;
  background: #edf2fb;
  border: 1px solid #d7e0ee;
  border-radius: 8px;
}

.state-toggle button {
  min-height: 2.35rem;
  padding: 0 0.9rem;
  color: #34425c;
  background: transparent;
  border: 0;
  border-radius: 6px;
  font-weight: 850;
}

.state-toggle button.active {
  color: #ffffff;
  background: var(--blue);
}

.prototype-panel {
  display: none;
}

.prototype-panel.active {
  display: block;
}

.prototype-card.featured {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 0.72fr);
  overflow: hidden;
}

.prototype-media {
  min-height: 30rem;
  background: #121723;
}

.prototype-media img,
.prototype-card.small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prototype-copy {
  padding: clamp(1.5rem, 4vw, 3rem);
}

.status {
  margin-bottom: 0.9rem;
  border-radius: 4px;
}

.status.open {
  color: #ffffff;
  background: var(--green);
}

.status.waitlist {
  color: #63410b;
  background: #fff3d1;
}

.status.paused {
  color: #6b1020;
  background: #ffe3e8;
}

.prototype-copy h3 {
  font-size: clamp(2.1rem, 4vw, 3.6rem);
}

.prototype-copy ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.15rem 0 1.55rem;
  padding: 0;
  list-style: none;
}

.prototype-copy li {
  color: #1d2b44;
  font-weight: 750;
}

.prototype-copy li::before {
  margin-right: 0.55rem;
  color: var(--red);
  content: "->";
}

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

.prototype-card.small {
  overflow: hidden;
  padding-bottom: 1.35rem;
}

.prototype-card.small img,
.concept-visual {
  height: 12rem;
  margin-bottom: 1.25rem;
}

.prototype-card.small > :not(img):not(.concept-visual) {
  margin-inline: 1.25rem;
}

.prototype-card.small a {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--blue);
  font-weight: 900;
}

.concept-visual {
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(135deg, rgba(223, 24, 47, 0.9), rgba(8, 11, 18, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 1px, transparent 1px 40px);
  font-size: 3rem;
  font-weight: 950;
}

.concept-visual.blue {
  background:
    linear-gradient(135deg, rgba(36, 75, 212, 0.95), rgba(8, 11, 18, 0.96)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 40px);
}

.empty-card {
  display: grid;
  justify-items: start;
  max-width: 48rem;
  padding: clamp(1.4rem, 4vw, 2.5rem);
  background:
    linear-gradient(135deg, #ffffff, #f7f9fd),
    linear-gradient(90deg, rgba(223, 24, 47, 0.1), transparent);
}

.empty-card .secondary-button {
  margin-top: 1.3rem;
  color: var(--blue);
  border-color: #b8c6e5;
}

.empty-card .secondary-button:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue);
}

.process-section {
  border-bottom: 1px solid var(--line);
}

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

.process-grid article {
  padding: 1.25rem;
}

.process-grid strong {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--blue);
  font-size: 1.2rem;
}

.feedback-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.48fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin-block: clamp(4rem, 7vw, 6.5rem);
  padding: clamp(1.5rem, 4vw, 3rem);
  color: #ffffff;
  background:
    linear-gradient(135deg, #05070d, #141a27 58%, #182a62),
    linear-gradient(115deg, rgba(223, 24, 47, 0.35), transparent 30rem);
  border-radius: 8px;
  overflow: hidden;
}

.feedback-band h2,
.feedback-band p {
  color: #ffffff;
}

.feedback-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  background: #ffffff;
  border-radius: 8px;
}

.feedback-form .primary-button {
  width: 100%;
}

.labs-footer {
  background: #ffffff;
}

.footer-inner {
  grid-template-columns: minmax(220px, 1.05fr) repeat(3, minmax(160px, 0.9fr));
  width: min(1320px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 3rem 0 3.5rem;
}

.footer-brand img {
  width: 186px;
  margin-bottom: 1.2rem;
}

.footer-brand p {
  max-width: 19rem;
}

.social-row a {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  color: var(--blue);
  font-weight: 950;
}

.labs-footer h2 {
  margin: 0 0 1rem;
  font-size: 0.95rem;
  text-transform: uppercase;
}

.labs-footer nav {
  display: grid;
  align-content: start;
  gap: 0.78rem;
}

.labs-footer nav a {
  color: var(--blue);
  line-height: 1.35;
}

.legal-bar {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  padding: 1.55rem 1rem 2rem;
  color: #ffffff;
  background: #284ac5;
  text-align: center;
}

.legal-bar p {
  margin: 0;
  color: #ffffff;
}

.legal-bar nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 0.8rem;
}

.legal-bar a {
  color: #ffffff;
  text-decoration: underline;
}

@media (min-width: 980px) {
  .promo-bar {
    min-height: 3.35rem;
  }

  .labs-subnav {
    top: 7.6rem;
  }
}

@media (max-width: 1040px) {
  .hero,
  .intro-section,
  .prototype-card.featured,
  .feedback-band {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 30rem;
  }

  .impact-grid,
  .process-grid,
  .prototype-grid,
  .footer-inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

@media (max-width: 760px) {
  h1 {
    width: 100%;
    font-size: 2.38rem;
    line-height: 1.02;
  }

  .promo-bar {
    padding-right: 1rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }

  .utility-bar {
    display: none;
  }

  .promo-bar a {
    text-align: center;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: fixed;
    top: 7.7rem;
    right: 1rem;
    left: 1rem;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.6rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 0.9rem;
    border-radius: 6px;
  }

  .site-nav a:hover {
    background: var(--soft);
  }

  .labs-subnav {
    top: 9.9rem;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    padding-top: 3.2rem;
    grid-template-columns: minmax(0, calc(100vw - 2rem));
  }

  .hero-copy {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
  }

  .hero-copy p {
    width: min(100%, 21rem);
    max-width: 100%;
  }

  .hero-actions,
  .hero-stats,
  .with-controls,
  .state-toggle {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-stats,
  .impact-grid,
  .process-grid,
  .prototype-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .hero-visual {
    display: none;
  }

  .hero-visual img {
    top: 4.5rem;
    width: 19rem;
  }

  .terminal-card {
    right: 0;
    width: min(100%, 24rem);
  }

  .prototype-media {
    min-height: 18rem;
  }
}
