:root {
  color-scheme: dark;
  --bg: #090702;
  --bg-2: #171205;
  --ink: #f8f5ea;
  --muted: #c7b989;
  --gold: #ffd76a;
  --gold-2: #b47a22;
  --teal: #55f0d0;
  --vice-cyan: #49dfff;
  --vice-pink: #ff4fd8;
  --ember: #ff5f3f;
  --line: rgba(255, 215, 106, 0.34);
  --glass: rgba(20, 13, 3, 0.58);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(145deg, #090702 0%, #211302 42%, #071315 78%, #050605 100%);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0.14;
  mix-blend-mode: screen;
  background-image:
    repeating-radial-gradient(circle at 17% 31%, rgba(255, 237, 177, 0.16) 0 1px, transparent 1px 4px);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 5rem;
  background: rgba(9, 7, 2, 0.76);
  border-bottom: 1px solid rgba(255, 215, 106, 0.22);
  backdrop-filter: blur(18px);
}

.brand,
.site-nav,
.hero-actions,
.signal-panel,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.75rem;
  min-width: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 760;
}

.brand-mark {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  place-items: center;
  flex: 0 0 auto;
  color: #100d05;
  font-weight: 900;
  background:
    linear-gradient(135deg, #fff4b8, var(--gold) 46%, #8c5a16);
  border: 1px solid rgba(255, 247, 198, 0.56);
  border-radius: 8px;
  box-shadow:
    0 0 30px rgba(255, 215, 106, 0.38),
    inset 0 0 18px rgba(255, 255, 255, 0.2);
}

.site-nav {
  gap: 0.35rem;
  flex: 0 0 auto;
}

.site-nav a {
  padding: 0.65rem 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  border: 1px solid transparent;
  border-radius: 6px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(246, 200, 90, 0.08);
  border-color: rgba(246, 200, 90, 0.18);
}

.hero {
  position: relative;
  display: grid;
  min-height: 88svh;
  padding: 8.5rem 5rem 5rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 48%, rgba(255, 215, 106, 0.153), transparent 28%),
    radial-gradient(circle at 8% 42%, rgba(73, 223, 255, 0.102), transparent 24%),
    radial-gradient(circle at 10% 58%, rgba(255, 79, 216, 0.068), transparent 25%),
    linear-gradient(135deg, #090702 0%, #040506 52%, #07090d 100%);
  isolation: isolate;
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero::before {
  z-index: -1;
  opacity: 0.86;
  mix-blend-mode: screen;
  background:
    radial-gradient(circle at 5% 48%, rgba(255, 237, 167, 0.39), transparent 9%),
    radial-gradient(circle at 6% 48%, rgba(255, 215, 106, 0.204), transparent 22%),
    radial-gradient(circle at 9% 44%, rgba(73, 223, 255, 0.136), transparent 19%),
    radial-gradient(circle at 8% 54%, rgba(255, 79, 216, 0.111), transparent 18%);
}

.hero::after {
  z-index: -1;
  opacity: 0.74;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.55) 0 1.15px, transparent 2.1px),
    radial-gradient(circle at 68% 28%, rgba(255, 215, 106, 0.5) 0 1.15px, transparent 2px),
    radial-gradient(circle at 84% 62%, rgba(73, 223, 255, 0.42) 0 1.1px, transparent 2.1px),
    radial-gradient(circle at 38% 74%, rgba(255, 79, 216, 0.38) 0 1.1px, transparent 2.1px);
  background-size: 260px 260px, 310px 310px, 360px 360px, 420px 420px;
}

#signal-canvas,
.hero-shade {
  position: absolute;
  inset: 0;
}

#signal-canvas {
  z-index: -3;
  width: 100%;
  height: 100%;
}

.hero-shade {
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(7, 6, 4, 0.5), rgba(5, 6, 8, 0.2) 44%, rgba(5, 6, 8, 0.55)),
    linear-gradient(180deg, rgba(7, 8, 10, 0.06), rgba(4, 5, 8, 0.72));
}

.hero-content {
  width: min(780px, 100%);
  align-self: center;
}

.kicker,
.eyebrow,
.signal-label,
.card-index {
  margin: 0;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.52rem 0.75rem;
  background: rgba(246, 200, 90, 0.08);
  border: 1px solid rgba(255, 215, 106, 0.34);
  border-radius: 999px;
  box-shadow:
    0 0 42px rgba(255, 215, 106, 0.13),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.status-light {
  position: relative;
  width: 0.58rem;
  height: 0.58rem;
  background: var(--vice-cyan);
  border-radius: 2px;
  box-shadow:
    0 0 18px rgba(73, 223, 255, 0.82),
    0 0 34px rgba(255, 79, 216, 0.18);
}

.status-light::after {
  content: "";
  position: absolute;
  inset: -0.35rem;
  border: 1px solid rgba(73, 223, 255, 0.5);
  border-radius: 4px;
  animation: ping 2s ease-out infinite;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 11ch;
  margin: 1.25rem 0 0;
  font-size: 6rem;
  line-height: 0.92;
  letter-spacing: 0;
  text-wrap: balance;
}

.hero-copy {
  max-width: 42rem;
  margin: 1.45rem 0 0;
  color: rgba(248, 245, 234, 0.78);
  font-size: 1.22rem;
  line-height: 1.65;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  border-radius: 8px;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

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

.button-primary {
  color: #111006;
  background: linear-gradient(135deg, #fff6c7, var(--gold) 48%, #a97825);
  border: 1px solid rgba(255, 245, 181, 0.7);
  box-shadow:
    0 18px 48px rgba(255, 215, 106, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.button-primary:hover,
.button-primary:focus-visible {
  box-shadow:
    0 22px 58px rgba(255, 215, 106, 0.42),
    0 0 28px rgba(255, 215, 106, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

.button-ghost {
  color: var(--ink);
  background: rgba(255, 215, 106, 0.07);
  border: 1px solid rgba(255, 215, 106, 0.26);
}

.button-ghost:hover,
.button-ghost:focus-visible {
  background:
    linear-gradient(135deg, rgba(73, 223, 255, 0.1), rgba(255, 79, 216, 0.08));
  border-color: rgba(73, 223, 255, 0.42);
  box-shadow: 0 0 28px rgba(255, 79, 216, 0.13);
}

.signal-panel {
  width: min(600px, 100%);
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 0.85rem 1rem;
  color: rgba(248, 245, 234, 0.76);
  background:
    linear-gradient(135deg, rgba(40, 25, 2, 0.72), rgba(8, 8, 6, 0.58));
  border: 1px solid rgba(255, 215, 106, 0.28);
  border-radius: 8px;
  box-shadow:
    var(--shadow),
    0 0 42px rgba(255, 215, 106, 0.12);
}

.signal-label {
  color: var(--vice-cyan);
  flex: 0 0 auto;
}

#signal-line {
  min-width: 0;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.88rem;
  line-height: 1.45;
}

.lab-preview {
  padding: 5.5rem 5rem 6rem;
  background:
    linear-gradient(180deg, var(--bg-2), #100d05 48%, #071315 84%, #070806);
  border-top: 1px solid rgba(255, 215, 106, 0.2);
}

.section-heading {
  display: grid;
  gap: 0.65rem;
  width: min(1080px, 100%);
  margin: 0 auto 1.4rem;
}

.section-heading h2 {
  max-width: 12ch;
  margin: 0;
  font-size: 3.1rem;
  line-height: 1;
  letter-spacing: 0;
}

.lab-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1080px, 100%);
  margin: 0 auto;
}

.lab-card {
  min-height: 14.5rem;
  padding: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 215, 106, 0.09), rgba(73, 223, 255, 0.035), rgba(248, 245, 234, 0.025));
  border: 1px solid rgba(255, 215, 106, 0.16);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.22);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.lab-card:hover {
  transform: translateY(-4px);
  background:
    linear-gradient(180deg, rgba(255, 215, 106, 0.14), rgba(73, 223, 255, 0.055), rgba(255, 79, 216, 0.035));
  border-color: rgba(255, 215, 106, 0.34);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.22),
    0 0 30px rgba(73, 223, 255, 0.08);
}

.lab-card h3 {
  margin: 2.6rem 0 0;
  font-size: 1.35rem;
  line-height: 1.15;
  letter-spacing: 0;
}

.lab-card p {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.site-footer {
  justify-content: space-between;
  gap: 1rem;
  padding: 1.6rem 5rem;
  color: rgba(248, 245, 234, 0.64);
  background: #050604;
  border-top: 1px solid rgba(255, 215, 106, 0.14);
}

.site-footer p {
  margin: 0;
  font-weight: 760;
}

.site-footer a {
  color: var(--gold);
}

@keyframes ping {
  from {
    opacity: 0.75;
    transform: scale(0.72);
  }

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

@media (max-width: 900px) {
  .site-header,
  .hero,
  .lab-preview,
  .site-footer {
    padding-left: 1.4rem;
    padding-right: 1.4rem;
  }

  .site-header {
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
  }

  .hero {
    min-height: 88svh;
    padding-top: 7.6rem;
    padding-bottom: 3.5rem;
  }

  h1 {
    font-size: 4rem;
  }

  .hero-copy {
    font-size: 1.05rem;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .lab-grid {
    grid-template-columns: 1fr;
  }

  .lab-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .brand span:last-child {
    display: none;
  }

  .site-nav a {
    padding: 0.58rem 0.68rem;
  }

  .hero {
    padding-top: 7rem;
  }

  h1 {
    font-size: 3.15rem;
  }

  .hero-actions,
  .signal-panel,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .signal-panel {
    gap: 0.45rem;
  }
}

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