:root {
  color-scheme: dark;
  --bg: #080d18;
  --panel: #101827;
  --panel-2: #142035;
  --text: #edf4ff;
  --muted: #a7b5cc;
  --line: #24334d;
  --blue: #64c7ff;
  --green: #70e0b2;
  --orange: #ffb86b;
  --pink: #e989b5;
  --violet: #9d7cff;
  --glass: rgba(12, 18, 32, 0.78);
  --shadow: 0 20px 56px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% -8%, rgba(92, 200, 255, 0.16), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(157, 124, 255, 0.12), transparent 30rem),
    linear-gradient(140deg, #060b14 0%, #09111f 50%, #100d1b 100%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    radial-gradient(circle at 50% 20%, rgba(92, 200, 255, 0.08), transparent 52%);
  background-size: 72px 72px, 72px 72px, auto;
  mask-image: linear-gradient(to bottom, black 0 70%, transparent 100%);
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 14px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 18px;
  padding: 13px 18px;
  border: 1px solid rgba(92, 200, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(11, 18, 34, 0.9), rgba(13, 18, 35, 0.78));
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(14px);
}

.brand {
  color: var(--text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--green), var(--blue));
  box-shadow: 0 0 14px rgba(96, 230, 168, 0.42);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.95rem;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.nav-links .github-link {
  margin-left: 2px;
  border: 1px solid rgba(92, 200, 255, 0.18);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--text);
  background: rgba(18, 26, 45, 0.58);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nav-links .github-link:hover {
  border-color: rgba(100, 199, 255, 0.34);
  background: rgba(20, 32, 53, 0.88);
  text-decoration: none;
}

.github-mark {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex: 0 0 auto;
}

a:focus-visible,
.button:focus-visible {
  outline: 2px solid rgba(100, 199, 255, 0.72);
  outline-offset: 3px;
}

.hero {
  padding: 78px 0 48px;
}

.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 500px);
  gap: 52px;
  align-items: center;
}

.hero-studio {
  padding-top: 104px;
  padding-bottom: 72px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.026em;
}

h1 {
  max-width: 860px;
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(2.6rem, 6.8vw, 5.4rem);
  text-shadow: 0 18px 44px rgba(92, 200, 255, 0.08);
}

.hero-split h1 {
  max-width: 720px;
  font-size: clamp(3rem, 5.2vw, 5rem);
  line-height: 1;
  letter-spacing: -0.032em;
  background: linear-gradient(100deg, #ffffff 0%, #e8f2ff 44%, #8edcff 78%, #e6a1c2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.2vw, 3rem);
}

h3 {
  font-size: 1.25rem;
  letter-spacing: -0.018em;
}

p {
  color: var(--muted);
  margin: 12px 0 0;
}

.lead {
  max-width: 760px;
  margin-top: 20px;
  font-size: clamp(1.04rem, 1.6vw, 1.24rem);
}

.kicker-row,
.hero-actions,
.proof-grid,
.console-topline,
.trace-legend,
.scale-ladder,
.loop-runway,
.feature-bento,
.evidence-wall,
.page-hero {
  position: relative;
  z-index: 1;
}

.kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.release-pill,
.button {
  border: 1px solid rgba(92, 200, 255, 0.2);
  border-radius: 999px;
  background: rgba(10, 16, 30, 0.68);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.release-pill {
  padding: 6px 11px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 18px;
  color: var(--text);
  font-weight: 780;
}

.button-primary {
  border-color: rgba(96, 230, 168, 0.36);
  background: linear-gradient(135deg, rgba(112, 224, 178, 0.92), rgba(100, 199, 255, 0.88));
  color: #06101c;
  box-shadow: 0 14px 34px rgba(92, 200, 255, 0.18);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(18, 26, 45, 0.58);
  color: var(--text);
  font-size: 0.86rem;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.proof-grid span {
  border: 1px solid rgba(92, 200, 255, 0.15);
  border-radius: 16px;
  padding: 14px;
  color: var(--muted);
  background: rgba(8, 13, 25, 0.46);
}

.proof-grid strong {
  display: block;
  margin-bottom: 3px;
  color: var(--text);
}

.hero-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(92, 200, 255, 0.26);
  border-radius: 28px;
  padding: 22px;
  background:
    radial-gradient(circle at 16% 0%, rgba(92, 200, 255, 0.16), transparent 34%),
    radial-gradient(circle at 100% 0%, rgba(233, 137, 181, 0.12), transparent 32%),
    linear-gradient(180deg, rgba(18, 31, 55, 0.92), rgba(8, 12, 24, 0.98));
  box-shadow: 0 28px 82px rgba(0, 0, 0, 0.44), 0 0 0 1px rgba(92, 200, 255, 0.04);
}

.control-console {
  isolation: isolate;
}

.control-console::after {
  content: "";
  position: absolute;
  inset: 10px;
  z-index: 0;
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 22px;
  pointer-events: none;
}

.hero-panel::before,
.card::before,
.figure::before,
.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 32%);
  opacity: 0.18;
}

.panel-topline,
.hero-links,
.hero-metrics,
.trace-stage,
.scale-ladder {
  position: relative;
  z-index: 1;
}

.panel-topline,
.hero-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.panel-topline {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.console-topline {
  justify-content: start;
}

.console-topline .status-dot {
  margin-left: auto;
}

.console-dots {
  display: inline-flex;
  gap: 5px;
}

.console-dots i {
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--blue);
  box-shadow: 0 0 12px rgba(92, 200, 255, 0.42);
}

.console-dots i:nth-child(2) {
  background: var(--green);
}

.console-dots i:nth-child(3) {
  background: var(--pink);
}

.status-dot {
  border: 1px solid rgba(96, 230, 168, 0.35);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--green);
  background: rgba(96, 230, 168, 0.1);
  letter-spacing: 0;
  line-height: 1;
  text-transform: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-metrics div {
  border: 1px solid rgba(92, 200, 255, 0.18);
  border-radius: 16px;
  padding: 15px 14px;
  background: linear-gradient(180deg, rgba(13, 23, 43, 0.78), rgba(7, 12, 24, 0.66));
}

.hero-metrics strong,
.hero-metrics span {
  display: block;
}

.hero-metrics strong {
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
}

.hero-metrics span {
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
}

.trace-stage {
  margin-top: 24px;
}

.hero-chart {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  margin-top: 0;
  border: 1px solid rgba(92, 200, 255, 0.16);
  border-radius: 18px;
  background:
    radial-gradient(circle at 62% 30%, rgba(92, 200, 255, 0.08), transparent 26%),
    rgba(7, 12, 24, 0.58);
}

.hero-chart path,
.hero-chart rect {
  vector-effect: non-scaling-stroke;
}

.hero-chart text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  font-weight: 800;
}

.trace-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.line-blue,
.line-pink {
  width: 20px;
  height: 4px;
  border-radius: 999px;
}

.line-blue {
  background: var(--blue);
}

.line-pink {
  background: var(--pink);
}

.scale-ladder {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
}

.scale-ladder span {
  border: 1px solid rgba(96, 230, 168, 0.16);
  border-radius: 999px;
  padding: 7px 9px;
  color: var(--green);
  background: rgba(96, 230, 168, 0.08);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
}

.grid {
  display: grid;
  gap: 18px;
}

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

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

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

.loop-runway {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: -4px;
  border: 1px solid rgba(92, 200, 255, 0.18);
  border-radius: 22px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(12, 20, 38, 0.64), rgba(9, 13, 26, 0.42));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 18px 52px rgba(0, 0, 0, 0.24);
}

.runway-item {
  position: relative;
  min-height: 96px;
  border: 1px solid rgba(92, 200, 255, 0.13);
  border-radius: 16px;
  padding: 16px;
  background: rgba(7, 12, 24, 0.48);
}

.runway-item span,
.runway-item strong,
.runway-item small {
  display: block;
}

.runway-item span {
  color: var(--green);
  font: 850 0.74rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.runway-item strong {
  margin-top: 10px;
  color: var(--text);
}

.runway-item small {
  margin-top: 4px;
  color: var(--muted);
}

.runway-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -13px;
  z-index: 2;
  width: 16px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green));
  box-shadow: 0 0 12px rgba(92, 200, 255, 0.36);
}

.card,
.figure,
.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(92, 200, 255, 0.18);
  border-radius: 20px;
  background:
    radial-gradient(circle at 18% 0%, rgba(92, 200, 255, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(22, 34, 56, 0.94), rgba(13, 20, 36, 0.96));
  box-shadow: var(--shadow);
  min-width: 0;
}

.card {
  padding: 22px;
}

.card > *,
.figure > *,
.panel > * {
  position: relative;
  z-index: 1;
}

.card-tag {
  align-self: flex-start;
  display: inline-grid;
  place-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
  min-height: 26px;
  margin-bottom: 16px;
  border: 1px solid rgba(96, 230, 168, 0.34);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--green);
  background: rgba(96, 230, 168, 0.09);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

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

.feature-bento {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  grid-column: span 5;
  min-height: 238px;
  padding: 26px;
}

.feature-wide {
  grid-column: span 7;
}

.feature-card h3 {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.feature-card p:last-child {
  margin-top: auto;
}

.feature-release {
  background:
    radial-gradient(circle at 82% 12%, rgba(96, 230, 168, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(22, 34, 56, 0.94), rgba(13, 21, 38, 0.96));
}

.mini-map {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}

.mini-map span {
  position: relative;
  border: 1px solid rgba(92, 200, 255, 0.16);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--text);
  background: rgba(7, 12, 24, 0.52);
  font-size: 0.8rem;
  font-weight: 800;
  line-height: 1;
}

.mini-map span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -9px;
  width: 8px;
  height: 2px;
  background: var(--blue);
}

.section {
  padding: 48px 0;
}

.section-head {
  margin-bottom: 24px;
}

.section-head h2 {
  max-width: 720px;
  margin-top: 10px;
}

.section-head-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.section-head-row p {
  max-width: 380px;
}

.proof-section .section-head-row {
  align-items: start;
}

.proof-section .section-head-row h2 {
  max-width: 680px;
}

.figure {
  margin: 0;
  overflow: hidden;
}

.showcase-card img,
.gallery-card img {
  background: #070c18;
}

.figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
}

.figure-caption {
  border-top: 1px solid var(--line);
  padding: 16px 18px 18px;
  color: var(--muted);
  font-size: 0.92rem;
}

.evidence-wall {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 18px;
  align-items: start;
}

.evidence-stack {
  display: grid;
  gap: 18px;
}

.proof-card {
  min-height: 190px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.gallery-head {
  grid-column: 1 / -1;
}

.gallery-card {
  grid-column: span 6;
}

.gallery-primary {
  grid-column: span 7;
}

.gallery-primary + .gallery-card {
  grid-column: span 5;
}

.release-card {
  grid-column: span 6;
  min-height: 100%;
}

.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 36px;
  align-items: end;
}

.page-hero-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(92, 200, 255, 0.18);
  border-radius: 20px;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 0%, rgba(96, 230, 168, 0.1), transparent 34%),
    linear-gradient(180deg, rgba(22, 34, 56, 0.94), rgba(13, 21, 38, 0.96));
  box-shadow: var(--shadow);
}

.page-hero-card strong {
  display: block;
  color: var(--text);
  font-size: 2rem;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.panel {
  padding: 26px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 13px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

td {
  color: var(--muted);
}

code,
pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

pre {
  overflow: auto;
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: #070b15;
  color: #d8e7ff;
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 16px;
}

.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(92, 200, 255, 0.12);
  border-radius: 16px;
  padding: 16px;
  background: rgba(7, 12, 24, 0.28);
}

.step > div {
  min-width: 0;
}

.step-num {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(92, 200, 255, 0.16);
  color: var(--blue);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 60px;
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.92rem;
}

@media (max-width: 840px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    border-radius: 22px;
  }

  .nav-links {
    width: 100%;
  }

  h1 {
    font-size: clamp(2.1rem, 8.5vw, 3.65rem);
  }

  .hero-split,
  .page-hero,
  .evidence-wall {
    grid-template-columns: 1fr;
  }

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

  .page-hero {
    gap: 26px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 6.5vw, 3.3rem);
    line-height: 1.07;
  }

  .section-head h2 {
    font-size: clamp(1.75rem, 5.2vw, 2.55rem);
    line-height: 1.1;
  }

  .timeline pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }

  .proof-grid,
  .loop-runway {
    grid-template-columns: 1fr;
  }

  .runway-item:not(:last-child)::after {
    top: auto;
    right: auto;
    bottom: -14px;
    left: 28px;
    width: 2px;
    height: 16px;
  }

  .feature-bento,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .feature-wide,
  .gallery-card,
  .gallery-primary,
  .gallery-primary + .gallery-card,
  .release-card {
    grid-column: auto;
  }

  .section-head-row {
    align-items: start;
    flex-direction: column;
    gap: 12px;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 42px;
  }
}

@media (max-width: 480px) {
  .shell {
    width: min(calc(100% - 24px), 1120px);
  }

  h1 {
    font-size: 1.88rem;
    letter-spacing: -0.016em;
  }

  .hero-split h1 {
    font-size: 2.12rem;
    letter-spacing: -0.02em;
  }

  .nav-links {
    display: grid;
    gap: 8px 14px;
    grid-template-columns: repeat(2, max-content);
  }

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

  .chips {
    gap: 8px;
  }

  .chip {
    padding: 7px 10px;
    font-size: 0.82rem;
  }

  .hero {
    padding-bottom: 34px;
  }

  .control-console {
    padding: 18px;
    border-radius: 22px;
  }

  .console-topline {
    align-items: start;
    flex-wrap: wrap;
  }

  .console-topline .status-dot {
    margin-left: 0;
  }

  .hero-metrics,
  .scale-ladder {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-metrics div:last-child {
    grid-column: 1 / -1;
  }

  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .proof-grid {
    gap: 8px;
  }

  .feature-card {
    min-height: 0;
    padding: 22px;
  }

  .feature-card h3,
  .page-hero-card strong {
    font-size: 1.45rem;
  }

  .card,
  .panel {
    padding: 18px;
  }

  pre {
    padding: 14px;
    font-size: 0.72rem;
  }
}

@media (max-width: 640px) {
  .table-wrap {
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  table {
    min-width: 0;
  }

  thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  tr {
    border: 1px solid rgba(92, 200, 255, 0.15);
    border-radius: 18px;
    padding: 12px 14px;
    background: rgba(7, 12, 24, 0.32);
  }

  tr + tr {
    margin-top: 12px;
  }

  td {
    display: block;
    border-bottom: 0;
    padding: 8px 0;
  }

  p code,
  td code {
    overflow-wrap: anywhere;
  }

  td code {
    font-size: 0.82rem;
  }

  td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    color: var(--text);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}
