:root {
  --bg: #ffffff;
  --ink: #111417;
  --muted: #5d6670;
  --soft: #f4f7f8;
  --line: #dfe7ea;
  --line-strong: #b8c7cd;
  --cyan: #00a9c7;
  --green: #0d8f67;
  --graphite: #20272d;
  --shadow: 0 24px 70px rgba(17, 20, 23, 0.11);
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(223, 231, 234, 0.42) 1px, transparent 1px),
    linear-gradient(90deg, rgba(223, 231, 234, 0.42) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px;
  color: var(--ink);
  font-family: var(--sans);
  letter-spacing: 0;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 28px;
  width: min(1180px, calc(100% - 40px));
  height: 76px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 180ms ease, height 180ms ease;
}

.site-header.is-scrolled {
  height: 64px;
  border-color: var(--line);
}

.brand,
.nav-links,
.header-cta {
  font-size: 0.88rem;
  font-weight: 700;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-self: start;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-family: var(--mono);
  font-weight: 600;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: #303941;
}

.nav-links a {
  padding: 12px 0;
}

.header-cta {
  justify-self: end;
  padding: 11px 16px;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: #fff;
}

.menu-button {
  display: none;
}

.section-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  align-items: center;
  gap: 70px;
  min-height: calc(100vh - 76px);
  padding: 68px 0 54px;
}

.hero-copy h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(4rem, 7.2vw, 7.9rem);
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: 0;
}

.hero-copy h1 span {
  display: block;
  color: #169fe3;
  font-family: var(--mono);
  font-weight: 600;
}

.hero-copy p {
  max-width: 610px;
  margin: 24px 0 0;
  color: #3c454d;
  font-size: clamp(1.08rem, 1.5vw, 1.34rem);
  line-height: 1.55;
}

.hero-list {
  display: grid;
  gap: 14px;
  max-width: 560px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  color: #354049;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.hero-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: baseline;
}

.hero-list span {
  color: #169fe3;
  font-weight: 600;
}

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

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

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

.button.primary {
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 28px rgba(17, 20, 23, 0.16);
}

.button.secondary {
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
}

.architecture-board {
  position: relative;
  min-height: 560px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    radial-gradient(circle at 30% 26%, rgba(0, 169, 199, 0.13), transparent 24%),
    linear-gradient(rgba(184, 199, 205, 0.28) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184, 199, 205, 0.28) 1px, transparent 1px),
    rgba(250, 252, 252, 0.96);
  background-size: auto, 28px 28px, 28px 28px, auto;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.architecture-board::before {
  content: "";
  position: absolute;
  inset: 28px;
  border: 1px solid rgba(17, 20, 23, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.board-topline {
  display: flex;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
  color: #52606a;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.trace {
  position: absolute;
  border: 1.5px solid rgba(0, 169, 199, 0.58);
  border-left: 0;
  border-bottom: 0;
  border-radius: 0 8px 0 0;
}

.trace-a {
  top: 154px;
  left: 140px;
  width: 260px;
  height: 145px;
}

.trace-b {
  right: 112px;
  bottom: 145px;
  width: 230px;
  height: 112px;
  border-color: rgba(13, 143, 103, 0.62);
  transform: rotate(180deg);
}

.node,
.log-window {
  position: absolute;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.91);
  box-shadow: 0 16px 38px rgba(32, 39, 45, 0.1);
}

.node {
  width: 142px;
  padding: 18px;
}

.node span,
.metric span,
.notes-grid span,
.project-index {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.72rem;
}

.node strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.api-node {
  top: 104px;
  left: 62px;
}

.queue-node {
  top: 228px;
  left: 242px;
  border-color: rgba(0, 169, 199, 0.55);
}

.worker-node {
  top: 154px;
  right: 74px;
}

.db-node {
  right: 54px;
  bottom: 42px;
  border-color: rgba(13, 143, 103, 0.55);
}

.log-window {
  left: 54px;
  bottom: 64px;
  width: 300px;
  padding: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.log-line {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 28px;
  color: #354049;
}

.log-line span {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--cyan);
}

.log-line.good span {
  background: var(--green);
}

.log-line.warn span {
  background: #d79416;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.signal-strip div {
  padding: 26px 30px;
  border-right: 1px solid var(--line);
}

.signal-strip div:last-child {
  border-right: 0;
}

.signal-strip span {
  display: block;
  margin-bottom: 14px;
  color: var(--cyan);
  font-family: var(--mono);
  font-size: 0.74rem;
  font-weight: 700;
}

.signal-strip strong {
  display: block;
  font-size: 1.02rem;
}

.signal-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.74fr) minmax(280px, 0.46fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 34px;
}

.section-heading h2,
.proof-copy h2,
.site-footer h2 {
  margin: 0;
  font-size: clamp(2.4rem, 4.4vw, 4.8rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p,
.proof-copy p,
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.65;
}

.systems-section,
.proof-section {
  padding: 76px 0;
}

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

.systems-grid article {
  min-height: 274px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.system-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--green);
}

.system-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.systems-grid h3,
.project-row h3 {
  margin: 0;
  font-size: 1.16rem;
}

.systems-grid p,
.project-row p {
  margin: 13px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.work-section,
.notes-section {
  background: var(--graphite);
  color: #fff;
}

.work-shell,
.notes-shell {
  padding: 88px 0;
}

.work-section .section-heading p,
.notes-section .section-heading p {
  color: #b8c5cc;
}

.project-list {
  border-top: 1px solid rgba(255, 255, 255, 0.17);
}

.project-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(230px, auto);
  gap: 28px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.17);
}

.project-row p {
  color: #c6d0d5;
}

.project-row ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-row li {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  color: #e8eef0;
  font-family: var(--mono);
  font-size: 0.72rem;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 0.72fr);
  gap: 64px;
  align-items: center;
}

.proof-copy p {
  margin-top: 24px;
}

.proof-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric,
.terminal-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.metric {
  min-height: 118px;
  padding: 20px;
}

.metric strong {
  display: block;
  margin-top: 20px;
  font-family: var(--mono);
  font-size: 1.45rem;
}

.terminal-panel {
  grid-column: 1 / -1;
  padding: 18px 20px;
  background: #151b20;
  color: #dfe9ed;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.terminal-panel p {
  margin: 10px 0;
}

.terminal-panel span {
  color: var(--cyan);
  margin-right: 9px;
}

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.notes-grid a {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  transition: border-color 180ms ease, transform 180ms ease;
}

.notes-grid a:hover {
  transform: translateY(-3px);
  border-color: rgba(0, 169, 199, 0.65);
}

.notes-grid span {
  color: #9fb0b8;
}

.notes-grid strong {
  max-width: 330px;
  font-size: 1.28rem;
  line-height: 1.25;
}

.site-footer {
  padding: 84px 0;
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) auto;
  gap: 48px;
  align-items: end;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.site-footer p {
  max-width: 560px;
  margin-top: 22px;
}

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

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

  .menu-button {
    display: grid;
    place-items: center;
    gap: 5px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
  }

  .menu-button span {
    width: 18px;
    height: 2px;
    background: var(--ink);
  }

  body.nav-open .nav-links {
    position: fixed;
    top: 64px;
    left: 20px;
    right: 20px;
    display: grid;
    gap: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.nav-open .nav-links a {
    padding: 16px;
  }

  .hero,
  .proof-section,
  .section-heading,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 38px;
    min-height: auto;
    padding-top: 52px;
  }

  .architecture-board {
    min-height: 480px;
  }

  .signal-strip,
  .systems-grid,
  .notes-grid {
    grid-template-columns: 1fr;
  }

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

  .signal-strip div:last-child {
    border-bottom: 0;
  }

  .project-row {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .project-row ul {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .section-shell,
  .signal-strip,
  .footer-inner {
    width: min(100% - 28px, 1180px);
  }

  .hero-copy h1 {
    font-size: clamp(3.5rem, 18vw, 5.1rem);
  }

  .hero-copy p {
    font-size: 1rem;
  }

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

  .button {
    width: 100%;
  }

  .architecture-board {
    min-height: 430px;
  }

  .node {
    width: 126px;
    padding: 14px;
  }

  .api-node {
    top: 86px;
    left: 18px;
  }

  .queue-node {
    top: 190px;
    left: 132px;
  }

  .worker-node {
    top: 110px;
    right: 18px;
  }

  .db-node {
    right: 18px;
    bottom: 28px;
  }

  .log-window {
    left: 18px;
    bottom: 128px;
    width: calc(100% - 36px);
  }

  .trace-a,
  .trace-b {
    display: none;
  }

  .systems-section,
  .proof-section {
    padding: 58px 0;
  }

  .work-shell,
  .notes-shell {
    padding: 68px 0;
  }

  .proof-board {
    grid-template-columns: 1fr;
  }

  .terminal-panel {
    grid-column: auto;
    overflow-wrap: anywhere;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
