:root {
  --bg: #05070a;
  --bg-soft: #0a0f15;
  --panel: #101821;
  --panel-strong: #152332;
  --line: rgba(142, 169, 194, 0.18);
  --line-strong: rgba(74, 163, 255, 0.46);
  --text: #eef6fb;
  --muted: #97a8b8;
  --quiet: #6d7f90;
  --accent: #4aa3ff;
  --blue: #8fc6ff;
  --coral: #ff6b6b;
  --amber: #f9b84d;
  --cyan: #39c7ff;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

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

html {
  scroll-padding-top: 96px;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(135deg, rgba(74, 163, 255, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(74, 163, 255, 0.07), transparent 45%),
    var(--bg);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body.nav-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  top: -2px;
  left: 0;
  right: 0;
  z-index: 30;
  height: 2px;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(74, 163, 255, 0.92), transparent);
  box-shadow: 0 0 18px rgba(74, 163, 255, 0.46);
  animation: scan 6s linear infinite;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(74, 163, 255, 0.1);
  color: var(--accent);
  font: 800 0.76rem "Space Mono", monospace;
  letter-spacing: 0.02em;
}

.brand-text {
  font: 800 1rem "Syne", sans-serif;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.9vw, 28px);
}

.site-nav a,
.footer-nav a {
  color: var(--muted);
  font: 700 0.64rem "Space Mono", monospace;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

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

.header-cta {
  justify-self: end;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
  transition: opacity 160ms ease, transform 160ms ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.section-pad {
  padding: clamp(72px, 10vw, 128px) clamp(18px, 5vw, 72px);
}

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(360px, 0.86fr);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
  padding-top: 118px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font: 700 0.72rem "Space Mono", monospace;
  letter-spacing: 0.18em;
  line-height: 1.45;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 24px;
  font: 800 clamp(3rem, 6vw, 6rem) / 0.96 "Syne", sans-serif;
  letter-spacing: 0;
}

h2 {
  max-width: 880px;
  margin-bottom: 18px;
  font: 800 clamp(2.15rem, 4.7vw, 4.8rem) / 0.98 "Syne", sans-serif;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font: 800 clamp(1.22rem, 2vw, 1.6rem) / 1.08 "Syne", sans-serif;
}

.hero-text,
.section-copy,
.card p,
.feature-card p,
.step-card p,
.system-copy p,
.metric span,
.footer-copy {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 700px;
  margin-bottom: 32px;
  font-size: clamp(1rem, 1.55vw, 1.22rem);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 13px 20px;
  font: 700 0.72rem "Space Mono", monospace;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: #02110e;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}

.btn-secondary:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

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

.agent-console,
.product-visual {
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(74, 163, 255, 0.12), transparent 36%),
    linear-gradient(315deg, rgba(255, 107, 107, 0.08), transparent 44%),
    rgba(16, 24, 33, 0.86);
  box-shadow: var(--shadow);
}

.agent-console {
  padding: 18px;
}

.console-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
  color: var(--quiet);
  font: 700 0.62rem "Space Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.pipeline-map {
  display: grid;
  gap: 12px;
}

.pipeline-step {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 78px;
  border: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.56);
  padding: 16px;
}

.pipeline-step strong {
  font: 800 1rem "Syne", sans-serif;
}

.pipeline-step span,
.pipeline-step em {
  color: var(--quiet);
  font: 700 0.62rem "Space Mono", monospace;
  font-style: normal;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pipeline-step.is-active {
  border-color: rgba(74, 163, 255, 0.4);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(74, 163, 255, 0.74);
}

.section-heading {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(260px, 0.4fr);
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(32px, 5vw, 56px);
  padding-left: 20px;
}

.section-heading::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 8px;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent), rgba(74, 163, 255, 0.08));
  box-shadow: 0 0 22px rgba(74, 163, 255, 0.36);
}

.section-heading .eyebrow,
.section-heading h2 {
  grid-column: 1;
}

.section-heading .section-copy {
  grid-column: 2;
  margin-bottom: 8px;
}

.metric-strip,
.project-grid,
.feature-grid,
.steps-grid {
  display: grid;
  gap: 18px;
}

.metric-strip {
  grid-template-columns: repeat(4, 1fr);
  border-block: 1px solid var(--line);
  background: rgba(10, 15, 21, 0.76);
}

.metric {
  min-height: 126px;
  padding: 26px clamp(18px, 4vw, 42px);
  border-right: 1px solid var(--line);
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font: 800 2.4rem "Syne", sans-serif;
}

.metric span {
  font: 700 0.68rem "Space Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

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

.card,
.feature-card,
.step-card,
.system-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(16, 24, 33, 0.82);
  padding: 26px;
}

.card {
  display: flex;
  min-height: 350px;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(74, 163, 255, 0.38);
  background: rgba(20, 34, 49, 0.88);
}

.card-icon {
  position: relative;
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 24px;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--accent);
}

.card-icon::before,
.card-icon::after {
  content: "";
  position: absolute;
}

.icon-skills::before {
  width: 34px;
  height: 34px;
  border: 2px solid currentColor;
  transform: rotate(45deg);
}

.icon-skills::after {
  width: 10px;
  height: 10px;
  background: var(--amber);
  box-shadow: 18px 0 0 var(--blue), 0 18px 0 var(--cyan), 18px 18px 0 var(--coral);
}

.icon-prompts {
  color: var(--blue);
}

.icon-prompts::before {
  width: 42px;
  height: 28px;
  border: 2px solid currentColor;
}

.icon-prompts::after {
  bottom: 16px;
  left: 24px;
  width: 18px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
}

.icon-memory {
  color: var(--coral);
}

.icon-memory::before {
  width: 42px;
  height: 42px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.icon-memory::after {
  width: 28px;
  height: 1px;
  background: currentColor;
  box-shadow: 0 -10px 0 var(--amber), 0 10px 0 var(--cyan);
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 28px;
  margin-bottom: 16px;
  border: 1px solid rgba(74, 163, 255, 0.4);
  padding: 6px 10px;
  color: var(--accent);
  font: 700 0.62rem "Space Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--quiet);
  font: 700 0.62rem "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.system-section {
  background: rgba(255, 255, 255, 0.015);
}

.system-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 1fr);
  gap: 18px;
}

.system-copy {
  border: 1px solid var(--line);
  background: rgba(16, 24, 33, 0.82);
  padding: clamp(24px, 5vw, 48px);
}

.system-panel {
  min-height: 390px;
}

.matrix {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 8px;
}

.matrix span {
  aspect-ratio: 1;
  border: 1px solid rgba(149, 165, 181, 0.18);
  background: rgba(255, 255, 255, 0.04);
  animation: glowCell 2.8s ease-in-out infinite alternate;
}

.matrix span:nth-child(3n) {
  background: rgba(74, 163, 255, 0.16);
}

.matrix span:nth-child(4n) {
  background: rgba(74, 163, 255, 0.14);
  animation-delay: 0.2s;
}

.matrix span:nth-child(5n) {
  background: rgba(249, 184, 77, 0.14);
  animation-delay: 0.4s;
}

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

.feature-card,
.step-card {
  min-height: 240px;
}

.feature-card > span,
.step-card > span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent);
  font: 800 1.8rem "Syne", sans-serif;
}

.proof-card {
  border-color: rgba(143, 198, 255, 0.24);
  background:
    linear-gradient(135deg, rgba(74, 163, 255, 0.1), transparent 42%),
    rgba(16, 24, 33, 0.82);
}

.skill-registry {
  background: rgba(255, 255, 255, 0.012);
}

.skill-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.skill-filter {
  min-height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  cursor: pointer;
  padding: 10px 14px;
  font: 700 0.62rem "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.skill-filter:hover,
.skill-filter.is-active {
  border-color: var(--line-strong);
  background: rgba(74, 163, 255, 0.1);
  color: var(--accent);
}

.skill-filter:hover {
  transform: translateY(-1px);
}

.skill-filter span {
  color: var(--quiet);
}

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

.skill-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(74, 163, 255, 0.1), transparent 38%),
    rgba(16, 24, 33, 0.84);
  padding: 24px;
}

.skill-card[hidden] {
  display: none;
}

.skill-card-head {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  margin-bottom: 18px;
}

.skill-glyph {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: rgba(74, 163, 255, 0.1);
  color: var(--accent);
  font: 800 0.72rem "Space Mono", monospace;
  letter-spacing: 0.08em;
}

.skill-kicker,
.skill-package,
.skill-version,
.skill-tags span,
.skill-detail strong {
  font-family: "Space Mono", monospace;
}

.skill-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.45;
  text-transform: uppercase;
}

.skill-card h3 {
  margin-bottom: 6px;
}

.skill-package {
  margin: 0;
  color: var(--quiet);
  font-size: 0.7rem;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.skill-version {
  border: 1px solid rgba(57, 199, 255, 0.28);
  background: rgba(57, 199, 255, 0.08);
  color: var(--cyan);
  padding: 5px 8px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.skill-summary {
  color: var(--muted);
  line-height: 1.7;
}

.skill-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0;
}

.skill-tags span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--muted);
  padding: 6px 8px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skill-detail {
  display: grid;
  gap: 12px;
  margin: 6px 0 20px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.skill-detail[hidden] {
  display: none;
}

.skill-detail div {
  border-left: 2px solid rgba(74, 163, 255, 0.38);
  padding-left: 12px;
}

.skill-detail strong {
  display: block;
  margin-bottom: 4px;
  color: var(--text);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.skill-detail p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.skill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.skill-actions .btn {
  min-height: 42px;
  padding: 10px 14px;
  font-size: 0.62rem;
}

.product-hero {
  min-height: calc(100vh - 78px);
}

.product-visual {
  padding: 22px;
}

.product-screen {
  min-height: 520px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(74, 163, 255, 0.14), transparent 36%),
    rgba(5, 7, 10, 0.62);
  padding: 20px;
}

.screen-top {
  display: flex;
  justify-content: space-between;
  color: var(--quiet);
  font: 700 0.62rem "Space Mono", monospace;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.screen-title {
  margin: 32px 0 18px;
  font: 800 2.1rem "Syne", sans-serif;
}

.screen-list {
  display: grid;
  gap: 10px;
}

.screen-list div {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  padding: 14px;
}

.screen-list strong {
  display: block;
  margin-bottom: 6px;
  font: 800 0.96rem "Syne", sans-serif;
}

.screen-list span {
  color: var(--muted);
  font-size: 0.9rem;
}

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

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  border: 1px solid var(--line);
  background: rgba(16, 24, 33, 0.86);
  padding: clamp(24px, 5vw, 48px);
  box-shadow: var(--shadow);
}

.cta-panel .btn-row {
  margin-top: 24px;
}

.cta-code {
  display: grid;
  min-width: 190px;
  min-height: 190px;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--accent);
  font: 700 0.7rem "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 28px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 10, 0.74);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

.footer-copy {
  margin: 0;
  font: 700 0.64rem "Space Mono", monospace;
  letter-spacing: 0.08em;
  text-align: right;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

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

@keyframes scan {
  from {
    transform: translateY(-2px);
  }
  to {
    transform: translateY(100vh);
  }
}

@keyframes glowCell {
  from {
    opacity: 0.48;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .hero,
  .system-grid,
  .cta-panel {
    grid-template-columns: 1fr;
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .section-heading .eyebrow,
  .section-heading h2,
  .section-heading .section-copy {
    grid-column: 1;
  }

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

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

  .nav-toggle {
    display: block;
    justify-self: end;
  }

  .site-nav,
  .header-cta {
    display: none;
  }

  .site-nav {
    position: fixed;
    top: 79px;
    left: 18px;
    right: 18px;
    z-index: 24;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border: 1px solid var(--line);
    background: rgba(5, 7, 10, 0.96);
    max-height: calc(100vh - 104px);
    overflow-y: auto;
    padding: 10px;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    padding: 16px;
    border-bottom: 1px solid rgba(149, 165, 181, 0.12);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .metric-strip,
  .project-grid,
  .feature-grid,
  .skill-grid,
  .steps-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .metric:last-child {
    border-bottom: 0;
  }

  .footer-nav {
    justify-content: flex-start;
  }

  .footer-copy {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .section-pad {
    padding: 64px 18px;
  }

  .hero {
    padding-top: 108px;
  }

  h1 {
    font-size: clamp(2.25rem, 13vw, 3.45rem);
  }

  .btn-row .btn {
    width: 100%;
  }

  .pipeline-step {
    grid-template-columns: 1fr;
  }

  .matrix {
    grid-template-columns: repeat(4, 1fr);
  }

  .product-screen {
    min-height: 440px;
  }

  .skill-filter {
    flex: 1 1 calc(50% - 10px);
  }

  .skill-card {
    min-height: 0;
    padding: 20px;
  }

  .skill-card-head {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .skill-glyph {
    width: 48px;
    height: 48px;
  }

  .skill-version {
    grid-column: 2;
    justify-self: start;
  }
}

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