:root {
  --ink: #e9edf0;
  --muted: #a8b3ba;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(15, 24, 30, 0.78);
  --panel-solid: #111a20;
  --green: #66d7b9;
  --amber: #d7a84c;
  --blue: #7da6ff;
  --page: #091014;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 78% 18%, rgba(102, 215, 185, 0.16), transparent 32rem),
    radial-gradient(circle at 18% 76%, rgba(215, 168, 76, 0.12), transparent 30rem),
    linear-gradient(145deg, #081014 0%, #0e171b 46%, #071013 100%);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 16, 20, 0.78);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(102, 215, 185, 0.8);
  background:
    linear-gradient(135deg, rgba(102, 215, 185, 0.9), rgba(125, 166, 255, 0.12)),
    #102028;
  box-shadow: 0 0 30px rgba(102, 215, 185, 0.22);
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 34px);
  color: var(--muted);
  font-size: 14px;
}

.nav a:hover {
  color: var(--ink);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 5vw, 88px);
  min-height: calc(100vh - 72px);
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px) clamp(44px, 6vw, 72px);
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

.hero-copy {
  align-self: center;
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(44px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.lede {
  max-width: 640px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
}

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

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
}

.primary-action {
  color: #06120f;
  background: var(--green);
  border-color: transparent;
}

.secondary-action {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.code-scene {
  position: relative;
  align-self: center;
  min-height: 560px;
}

.mesh {
  position: absolute;
  border: 1px solid rgba(102, 215, 185, 0.24);
  transform: rotate(-12deg) skewX(-10deg);
}

.mesh-one {
  inset: 40px 36px 92px 72px;
  background:
    linear-gradient(rgba(102, 215, 185, 0.18) 1px, transparent 1px),
    linear-gradient(90deg, rgba(102, 215, 185, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: 0.48;
}

.mesh-two {
  inset: 106px 108px 172px 20px;
  border-color: rgba(215, 168, 76, 0.28);
  background:
    radial-gradient(circle at 24px 24px, rgba(215, 168, 76, 0.7) 0 2px, transparent 3px),
    transparent;
  background-size: 48px 48px;
  opacity: 0.42;
}

.editor-window {
  position: absolute;
  right: 24px;
  top: 58px;
  width: min(520px, 90%);
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(8, 15, 19, 0.88);
  box-shadow: 0 36px 110px rgba(0, 0, 0, 0.36);
}

.window-bar {
  display: flex;
  align-items: center;
  min-height: 46px;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.window-bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.window-bar span:first-child {
  background: #ec715f;
}

.window-bar span:nth-child(2) {
  background: #e4b658;
}

.window-bar span:nth-child(3) {
  background: #69cf91;
}

.window-bar em {
  margin-left: 8px;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.code-lines {
  padding: 24px;
  color: #cad4d9;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(12px, 1.6vw, 15px);
}

.code-lines p {
  margin: 0 0 12px;
  white-space: nowrap;
}

.code-lines b {
  color: var(--amber);
  font-weight: 700;
}

.indent {
  padding-left: 28px;
  color: var(--green);
}

.signal-card,
.terminal-panel {
  position: absolute;
  border: 1px solid var(--line);
  background: rgba(14, 25, 31, 0.84);
  backdrop-filter: blur(14px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28);
}

.signal-card {
  display: grid;
  gap: 4px;
  min-width: 148px;
  padding: 16px;
}

.signal-card span {
  color: var(--muted);
  font-size: 12px;
}

.signal-card strong {
  font-size: 24px;
}

.card-a {
  left: 20px;
  top: 92px;
}

.card-b {
  right: 54px;
  bottom: 92px;
}

.terminal-panel {
  left: 58px;
  bottom: 42px;
  width: min(360px, 72%);
  padding: 18px 20px;
  color: var(--green);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

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

.terminal-panel p:last-child {
  margin-bottom: 0;
  color: var(--muted);
}

.section-band,
.runtime-section,
.notes-section {
  padding: clamp(64px, 9vw, 110px) clamp(20px, 5vw, 72px);
}

.section-band {
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.section-heading {
  max-width: 780px;
  margin-bottom: 38px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.feature-grid article {
  min-height: 260px;
  padding: 28px;
  background: rgba(10, 18, 22, 0.96);
}

.feature-index {
  display: inline-block;
  margin-bottom: 42px;
  color: var(--amber);
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.feature-grid p,
.runtime-copy p,
.note-list span,
.site-footer {
  color: var(--muted);
}

.runtime-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: clamp(32px, 6vw, 90px);
  align-items: center;
}

.runtime-copy {
  max-width: 620px;
}

.status-table {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.status-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--line);
}

.status-row:last-child {
  border-bottom: 0;
}

.status-row span {
  color: var(--muted);
}

.status-row strong {
  color: var(--green);
}

.notes-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1fr);
  gap: clamp(28px, 6vw, 80px);
  background: #070e12;
}

.note-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.note-list a {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 22px;
  padding: 22px 24px;
  background: #0c151a;
}

.note-list a:hover strong {
  color: var(--green);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 13px;
}

@media (max-width: 980px) {
  .hero,
  .runtime-section,
  .notes-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .code-scene {
    min-height: 520px;
  }

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

@media (max-width: 640px) {
  .site-header {
    min-height: 64px;
  }

  .nav {
    display: none;
  }

  .hero-actions {
    display: grid;
  }

  .code-scene {
    min-height: 440px;
  }

  .editor-window {
    right: 0;
    top: 52px;
    width: 100%;
  }

  .card-a {
    left: 0;
    top: 4px;
  }

  .card-b {
    right: 0;
    bottom: 52px;
  }

  .terminal-panel {
    left: 0;
    bottom: 0;
    width: 92%;
  }

  .note-list a {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .site-footer {
    display: grid;
  }
}
