:root {
  --ink: #090b13;
  --muted: #090b13;
  --bg: #fff8df;
  --surface: #fff1bc;
  --soft: #fff9e8;
  --blue: #22a7f2;
  --green: #22b676;
  --yellow: #ffb91f;
  --red: #ef2854;
  --line: #10131d;
  --shadow: 8px 8px 0 rgba(9, 11, 19, 0.11);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background-color: var(--bg);
  font-family: "JetBrains Mono", "Courier New", monospace;
}

body::before,
body::after {
  position: fixed;
  z-index: -1;
  content: "";
  pointer-events: none;
}

body::before {
  top: 118px;
  right: 42px;
  width: 170px;
  height: 170px;
  border: 24px solid rgba(239, 40, 84, 0.16);
  border-radius: 50%;
  box-shadow:
    -78vw 44vh 0 -42px rgba(34, 167, 242, 0.24),
    -12vw 60vh 0 -54px rgba(34, 182, 118, 0.22),
    -68vw -10vh 0 -58px rgba(255, 185, 31, 0.35);
}

body::after {
  left: 28px;
  bottom: 54px;
  width: 14px;
  height: 14px;
  background: var(--blue);
  box-shadow:
    24px 0 0 var(--blue),
    48px 0 0 var(--blue),
    0 24px 0 var(--red),
    24px 24px 0 var(--yellow),
    48px 24px 0 var(--green),
    0 48px 0 var(--green),
    24px 48px 0 var(--red),
    48px 48px 0 var(--yellow);
}

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

img,
svg {
  display: block;
}

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

p,
li {
  color: var(--muted);
  line-height: 1.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1200px, calc(100% - 28px));
  margin: 16px auto 0;
  padding: 12px;
  border: 2px solid var(--line);
  background: rgba(255, 248, 223, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
  font-family: "Space Grotesk", "JetBrains Mono", sans-serif;
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 800;
}

.brand img {
  width: clamp(58px, 7vw, 86px);
  height: clamp(58px, 7vw, 86px);
  object-fit: contain;
  background: var(--bg);
  mix-blend-mode: multiply;
}

.nav-pills {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-pills::-webkit-scrollbar {
  display: none;
}

.nav-pills a,
.primary-action,
.secondary-action,
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 2px solid var(--line);
  background: var(--soft);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.nav-pills a {
  flex: 0 0 auto;
  padding: 10px 12px;
}

.nav-pills a:nth-child(1) { border-bottom: 6px solid var(--blue); }
.nav-pills a:nth-child(2) { border-bottom: 6px solid var(--red); }
.nav-pills a:nth-child(3) { border-bottom: 6px solid var(--yellow); }
.nav-pills a:nth-child(4) { border-bottom: 6px solid var(--green); }
.nav-pills a:nth-child(5) { border-bottom: 6px solid var(--blue); }

.nav-pills a:hover,
.primary-action:hover,
.secondary-action:hover,
.social-links a:hover {
  transform: translate(-3px, -3px);
  box-shadow: 5px 5px 0 rgba(9, 11, 19, 0.16);
}

.section-shell {
  width: min(1200px, calc(100% - 28px));
  margin: 0 auto;
  scroll-margin-top: 126px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 46px;
  min-height: calc(100vh - 105px);
  padding: 64px 0 78px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--red);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "JetBrains Mono", sans-serif;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 94px);
  line-height: 0.92;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(34px, 5vw, 66px);
  line-height: 0.98;
}

h3 {
  margin-bottom: 10px;
  font-size: 24px;
}

.hero-text {
  max-width: 720px;
  margin-bottom: 28px;
  font-size: clamp(17px, 2vw, 21px);
  font-weight: 700;
}

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

.primary-action,
.secondary-action {
  min-height: 50px;
  padding: 0 18px;
}

.primary-action {
  background: var(--green);
}

.secondary-action {
  background: var(--yellow);
}

.command-deck,
.arch-card,
.mini-card,
.issue-panel,
.query-card,
.closure-timeline article,
.footer-card,
.developer-footer {
  border: 2px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.command-deck {
  padding: 14px;
}

.terminal-top {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 10px 14px;
  border-bottom: 2px solid var(--line);
}

.terminal-top span {
  width: 12px;
  height: 12px;
  border: 2px solid var(--line);
  border-radius: 50%;
}

.terminal-top span:nth-child(1) { background: var(--red); }
.terminal-top span:nth-child(2) { background: var(--yellow); }
.terminal-top span:nth-child(3) { background: var(--green); }

.terminal-top code {
  margin-left: auto;
  font-size: 11px;
  font-weight: 800;
}

.terminal-line {
  margin-top: 14px;
  padding: 16px;
  border: 2px solid var(--line);
  background: var(--soft);
}

.terminal-line small {
  display: block;
  margin-bottom: 8px;
  font-weight: 900;
}

.terminal-line p {
  margin-bottom: 0;
  font-weight: 700;
}

.incoming {
  border-left: 10px solid var(--blue);
}

.anchor-line {
  border-left: 10px solid var(--red);
}

.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.status-grid span {
  padding: 12px;
  border: 2px solid var(--line);
  background: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.blue { border-bottom: 7px solid var(--blue) !important; }
.red { border-bottom: 7px solid var(--red) !important; }
.yellow { border-bottom: 7px solid var(--yellow) !important; }
.green { border-bottom: 7px solid var(--green) !important; }

.architecture-section,
.feature-section,
.ask-section {
  padding: 78px 0;
}

.section-heading {
  max-width: 790px;
  margin-bottom: 28px;
}

.section-heading p:not(.eyebrow),
.feature-copy p:not(.eyebrow) {
  max-width: 720px;
  font-size: 17px;
  font-weight: 700;
}

.architecture-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.arch-card {
  min-height: 230px;
  padding: 18px;
}

.arch-card span,
.query-card span,
.badge,
.closure-timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 30px;
  margin-bottom: 18px;
  border: 2px solid var(--line);
  background: var(--soft);
  font-weight: 900;
}

.arch-card p,
.mini-card p,
.issue-panel p,
.query-card p {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 700;
}

.blue-card { border-top: 10px solid var(--blue); }
.red-card { border-top: 10px solid var(--red); }
.green-card { border-top: 10px solid var(--green); }
.yellow-card { border-top: 10px solid var(--yellow); }

.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr);
  align-items: start;
  gap: 38px;
}

.feature-section.alt {
  grid-template-columns: minmax(420px, 1.08fr) minmax(0, 0.92fr);
}

.feature-section.alt .feature-copy {
  order: 2;
}

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

.mini-card {
  min-height: 228px;
  padding: 22px;
}

.mini-card b,
.query-card b,
.issue-panel b {
  display: block;
  margin-bottom: 10px;
  font-family: "Space Grotesk", "JetBrains Mono", sans-serif;
  font-size: 22px;
}

.issue-board {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
}

.issue-panel {
  padding: 22px;
}

.issue-panel:first-child {
  grid-row: span 2;
  border-top: 10px solid var(--green);
}

.issue-panel ul {
  margin: 20px 0 0;
  padding-left: 20px;
  font-weight: 800;
}

.badge.green {
  border-bottom: 7px solid var(--green);
}

.ask-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.query-card {
  min-height: 238px;
  padding: 22px;
}

.query-card span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--red);
  font-size: 22px;
}

.closure-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.closure-timeline article {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 148px;
  padding: 18px;
  overflow-wrap: anywhere;
}

.closure-timeline article:nth-child(1) { border-top: 10px solid var(--blue); }
.closure-timeline article:nth-child(2) { border-top: 10px solid var(--yellow); }
.closure-timeline article:nth-child(3) { border-top: 10px solid var(--green); }
.closure-timeline article:nth-child(4) { border-top: 10px solid var(--red); }

.closure-timeline b {
  display: block;
  font-family: "Space Grotesk", "JetBrains Mono", sans-serif;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.05;
}

.developer-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  width: min(1200px, calc(100% - 28px));
  margin: 54px auto 70px;
  padding: 16px;
  background: var(--soft);
}

.footer-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--bg);
  border-left: 10px solid var(--red);
}

.footer-card img {
  width: 82px;
  height: 82px;
  object-fit: contain;
  background: var(--bg);
  mix-blend-mode: multiply;
}

.footer-card h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 2px solid var(--line);
  background: var(--soft);
  font-size: 12px;
  font-weight: 900;
}

.footer-meta span:first-child {
  border-bottom: 6px solid var(--green);
}

.footer-meta span:last-child {
  border-bottom: 6px solid var(--yellow);
}

.social-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(138px, 1fr));
  gap: 10px;
}

.social-links a {
  gap: 8px;
  padding: 0 12px;
}

.social-links a:nth-child(1) { border-bottom: 6px solid var(--blue); }
.social-links a:nth-child(2) { border-bottom: 6px solid var(--green); }
.social-links a:nth-child(3) { border-bottom: 6px solid var(--red); }
.social-links a:nth-child(4) { border-bottom: 6px solid var(--yellow); }

.social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.cursor-bird {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 40;
  width: 76px;
  height: 58px;
  pointer-events: none;
  transform-origin: center;
  will-change: transform;
}

.bird {
  position: relative;
  width: 100%;
  height: 100%;
  animation: bird-bob 1500ms ease-in-out infinite;
}

.bird-body {
  position: absolute;
  left: 16px;
  top: 18px;
  width: 39px;
  height: 27px;
  border: 2px solid var(--line);
  border-radius: 58% 48% 54% 46%;
  background: var(--yellow);
  box-shadow: 4px 4px 0 rgba(9, 11, 19, 0.12);
}

.bird-body::after {
  position: absolute;
  left: 8px;
  bottom: 3px;
  width: 18px;
  height: 10px;
  content: "";
  border-radius: 50%;
  background: #fff2a9;
}

.bird-head {
  position: absolute;
  top: 9px;
  right: 12px;
  width: 25px;
  height: 24px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--yellow);
  box-shadow: 3px 3px 0 rgba(9, 11, 19, 0.1);
}

.bird-wing {
  position: absolute;
  left: 25px;
  top: 22px;
  z-index: 2;
  width: 25px;
  height: 20px;
  border: 2px solid var(--line);
  border-radius: 70% 20% 70% 30%;
  background: #ffd85a;
  transform: rotate(18deg);
  transform-origin: 8px 3px;
  animation: wing-rest 1400ms ease-in-out infinite;
}

.is-flying .bird-wing {
  animation: wing-flutter 420ms ease-in-out infinite alternate;
}

.bird-tail {
  position: absolute;
  left: 7px;
  top: 25px;
  width: 18px;
  height: 11px;
  border: 2px solid var(--line);
  background: #ffd85a;
  transform-origin: right center;
}

.tail-one {
  border-radius: 14px 2px 2px 14px;
  transform: rotate(-20deg);
}

.tail-two {
  top: 32px;
  border-radius: 14px 2px 2px 14px;
  transform: rotate(18deg);
}

.bird-eye {
  position: absolute;
  z-index: 3;
  top: 17px;
  right: 20px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3a2414;
  box-shadow: 0 0 0 2px rgba(255, 249, 232, 0.9);
}

.bird-beak {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 0;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 14px solid var(--red);
  filter: drop-shadow(1px 1px 0 var(--line));
}

.bird-leg {
  position: absolute;
  top: 43px;
  width: 2px;
  height: 8px;
  background: #5a371c;
}

.leg-left {
  left: 34px;
}

.leg-right {
  left: 43px;
}

.bird-leg::after {
  position: absolute;
  bottom: 0;
  left: -2px;
  width: 7px;
  height: 2px;
  content: "";
  background: #5a371c;
}

@keyframes wing-flutter {
  from {
    transform: rotate(34deg) translateY(0);
  }

  to {
    transform: rotate(-38deg) translateY(-8px);
  }
}

@keyframes wing-rest {
  0%,
  100% {
    transform: rotate(14deg);
  }

  50% {
    transform: rotate(24deg);
  }
}

@keyframes bird-bob {
  0%,
  100% {
    translate: 0 0;
  }

  50% {
    translate: 0 -4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bird,
  .bird-wing {
    animation: none;
  }
}

@media (max-width: 1060px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .hero,
  .feature-section,
  .feature-section.alt,
  .developer-footer {
    grid-template-columns: 1fr;
  }

  .feature-section.alt .feature-copy {
    order: 0;
  }

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

  .feature-cards,
  .closure-timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  .section-shell,
  .developer-footer {
    width: min(100% - 20px, 1200px);
  }

  .hero {
    min-height: auto;
    padding: 42px 0 52px;
  }

  .architecture-section,
  .feature-section,
  .ask-section {
    padding: 48px 0;
  }

  .architecture-grid,
  .feature-cards,
  .issue-board,
  .ask-grid,
  .closure-timeline,
  .social-links,
  .status-grid {
    grid-template-columns: 1fr;
  }

  .footer-card {
    align-items: flex-start;
    flex-direction: column;
  }
}
