:root {
  color-scheme: dark;
  --bg: #08111f;
  --bg-elevated: rgba(11, 23, 40, 0.78);
  --panel: rgba(14, 29, 49, 0.68);
  --panel-strong: rgba(18, 35, 58, 0.92);
  --line: rgba(148, 163, 184, 0.2);
  --text: #eef5ff;
  --muted: #9fb1c7;
  --soft: #c8d3e1;
  --cyan: #4fd1c5;
  --blue: #78a6ff;
  --rose: #f9738d;
  --gold: #f8c967;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(79, 209, 197, 0.07), transparent 34%),
    linear-gradient(215deg, rgba(249, 115, 141, 0.08), transparent 30%),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}

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

#field {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.9;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 82px;
  padding: 18px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(79, 209, 197, 0.42);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(79, 209, 197, 0.24), rgba(120, 166, 255, 0.14));
  color: #f8fdff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
  font-weight: 700;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy span:first-child {
  font-weight: 800;
}

.brand-copy span:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 17, 31, 0.64);
}

.nav-links a {
  min-width: 72px;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--soft);
  font-size: 0.88rem;
  font-weight: 700;
  text-align: center;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 52px;
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 40px 0 74px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

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

h1 {
  max-width: 900px;
  margin-bottom: 24px;
  font-size: clamp(2.6rem, 6.4vw, 5.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.05rem;
  line-height: 1.25;
}

p {
  color: var(--muted);
  line-height: 1.75;
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 32px;
  color: var(--soft);
  font-size: clamp(1.02rem, 2vw, 1.25rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.button.primary {
  border-color: rgba(79, 209, 197, 0.56);
  background: linear-gradient(135deg, var(--cyan), #72e0a8);
  color: #06111d;
  box-shadow: 0 18px 44px rgba(79, 209, 197, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.signal-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 209, 197, 0.14), transparent 45%),
    linear-gradient(225deg, rgba(249, 115, 141, 0.13), transparent 42%),
    var(--panel-strong);
  box-shadow: var(--shadow);
}

.signal-panel::after {
  position: absolute;
  inset: auto -20% -30% 20%;
  height: 220px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(248, 201, 103, 0.16), transparent);
  transform: rotate(-10deg);
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding: 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.terminal-bar span {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--rose);
}

.terminal-bar span:nth-child(2) {
  background: var(--gold);
}

.terminal-bar span:nth-child(3) {
  background: var(--cyan);
}

.code-block {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 14px;
  padding: 28px;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.84rem, 1.5vw, 1rem);
}

.line {
  color: var(--soft);
}

.line strong {
  color: #ffffff;
}

.line.indent {
  padding-left: 18px;
}

.line.muted {
  color: var(--cyan);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  margin-bottom: 108px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.metrics div {
  min-height: 128px;
  padding: 24px;
  background: rgba(10, 22, 38, 0.78);
}

.metric-value {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.2rem, 2.4vw, 1.9rem);
  font-weight: 800;
}

.metric-label {
  color: var(--muted);
  line-height: 1.5;
}

.section-grid,
.split-section,
.timeline-section,
.contact-section {
  padding: 88px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading.compact {
  max-width: 620px;
}

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

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

.card {
  min-height: 300px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  backdrop-filter: blur(18px);
}

.card-icon {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 26px;
  border: 1px solid rgba(79, 209, 197, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(420px, 1.22fr);
  gap: 44px;
  align-items: start;
}

.stack-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.stack-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 330px;
  padding: 24px;
  background: rgba(10, 22, 38, 0.82);
}

.stack-column h3 {
  color: var(--gold);
}

.stack-column span {
  display: block;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--soft);
  font-size: 0.94rem;
}

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

.timeline-item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 26px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(10, 22, 38, 0.72);
}

.timeline-date {
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-weight: 800;
}

.timeline-item p,
.card p,
.contact-section p,
.split-section p {
  margin-bottom: 0;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
  margin-bottom: 60px;
  padding: 36px;
  border: 1px solid rgba(79, 209, 197, 0.26);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(79, 209, 197, 0.14), transparent 38%),
    rgba(10, 22, 38, 0.82);
}

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

  .nav-links {
    width: 100%;
    overflow-x: auto;
    justify-content: space-between;
  }

  .hero,
  .split-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 44px;
  }

  .cards.three,
  .metrics,
  .stack-board {
    grid-template-columns: 1fr;
  }

  .card,
  .stack-column {
    min-height: auto;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .button {
    flex: 1 1 150px;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 24px, 1160px);
  }

  .brand-copy span:first-child {
    font-size: 0.92rem;
  }

  .nav-links a {
    min-width: 0;
    padding-inline: 11px;
    font-size: 0.8rem;
  }

  h1 {
    font-size: 2.48rem;
  }

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

  .signal-panel,
  .contact-section,
  .card,
  .timeline-item {
    padding: 20px;
  }

  .code-block {
    padding: 22px 0 2px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button:hover,
  .button:focus-visible {
    transform: none;
  }

  #field {
    display: none;
  }
}
