:root {
  --background: #080a09;
  --foreground: #edf4ef;
  --muted: #8d9c93;
  --line: rgba(237, 244, 239, 0.12);
  --panel: rgba(16, 22, 18, 0.74);
  --panel-strong: rgba(20, 29, 24, 0.86);
  --green: #6ee7a8;
  --amber: #f4b860;
  --red: #ff6464;
  --shadow: rgba(0, 0, 0, 0.38);
  --font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  margin: 0;
  min-height: 100vh;
}

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

::selection {
  background: rgba(110, 231, 168, 0.28);
  color: #ffffff;
}

.site-shell {
  isolation: isolate;
  min-height: 100vh;
  overflow: hidden;
  padding: 28px clamp(18px, 5vw, 72px);
  position: relative;
}

.site-shell::before {
  background:
    linear-gradient(rgba(110, 231, 168, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(110, 231, 168, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, rgba(237, 244, 239, 0.07), transparent 34%),
    linear-gradient(315deg, rgba(244, 184, 96, 0.08), transparent 38%);
  background-size: 46px 46px, 46px 46px, 100% 100%, 100% 100%;
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
  z-index: -2;
}

.site-shell::after {
  animation: scan 9s linear infinite;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(110, 231, 168, 0.08),
    transparent
  );
  content: "";
  height: 220px;
  inset-inline: 0;
  opacity: 0.45;
  pointer-events: none;
  position: absolute;
  top: -240px;
  z-index: -1;
}

.matrix-field {
  color: rgba(237, 244, 239, 0.11);
  font-family: var(--font-mono);
  font-size: 12px;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.matrix-field span {
  animation: drift 16s ease-in-out infinite;
  position: absolute;
}

.matrix-field span:nth-child(1) {
  left: 8%;
  top: 18%;
}

.matrix-field span:nth-child(2) {
  animation-delay: -4s;
  right: 12%;
  top: 20%;
}

.matrix-field span:nth-child(3) {
  animation-delay: -7s;
  left: 18%;
  bottom: 14%;
}

.matrix-field span:nth-child(4) {
  animation-delay: -10s;
  right: 21%;
  bottom: 24%;
}

.matrix-field span:nth-child(5) {
  animation-delay: -2s;
  left: 52%;
  top: 10%;
}

.matrix-field span:nth-child(6) {
  animation-delay: -12s;
  left: 71%;
  bottom: 8%;
}

.topbar {
  align-items: center;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  min-height: 44px;
  position: relative;
  z-index: 1;
}

.brand,
.nav-links,
.signal-row,
.terminal-prompt,
.footer {
  align-items: center;
  display: flex;
}

.brand {
  color: #dce8df;
  font-family: var(--font-mono);
  font-size: 13px;
  gap: 10px;
}

.brand-mark {
  background: var(--foreground);
  color: var(--background);
  display: grid;
  font-weight: 800;
  height: 26px;
  place-items: center;
  width: 26px;
}

.nav-links {
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  gap: 2px;
  padding: 4px;
}

.nav-links a {
  padding: 8px 10px;
  transition: background-color 160ms ease, color 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(237, 244, 239, 0.08);
  color: var(--foreground);
  outline: none;
}

.hero {
  align-items: center;
  display: grid;
  gap: clamp(36px, 6vw, 86px);
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  margin: 0 auto;
  max-width: 1160px;
  min-height: calc(100vh - 184px);
  padding: clamp(48px, 9vh, 110px) 0 34px;
}

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

.eyebrow,
.panel-kicker {
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  margin: 0;
  text-transform: uppercase;
}

.eyebrow {
  letter-spacing: 0.16em;
}

h1 {
  color: #f7fff9;
  font-size: 96px;
  font-weight: 760;
  line-height: 0.98;
  margin: 22px 0 24px;
  text-wrap: balance;
}

h1 span {
  color: rgba(237, 244, 239, 0.36);
  display: block;
  font-family: var(--font-mono);
  font-size: 38px;
  font-weight: 520;
  line-height: 1.12;
  margin-top: 16px;
}

.summary {
  color: #bbc9bf;
  font-size: 17px;
  line-height: 1.82;
  margin: 0;
  max-width: 640px;
}

.signal-row {
  border-left: 2px solid var(--green);
  color: #dce8df;
  font-family: var(--font-mono);
  font-size: 13px;
  gap: 10px;
  margin-top: 34px;
  padding-left: 14px;
}

.profile-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
}

.profile-facts div {
  border: 1px solid rgba(237, 244, 239, 0.13);
  display: grid;
  gap: 4px;
  min-width: 126px;
  padding: 11px 13px;
}

.profile-facts dt,
.profile-facts dd {
  margin: 0;
}

.profile-facts dt {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.profile-facts dd {
  color: #eef8f0;
  font-family: var(--font-mono);
  font-size: 13px;
}

.status-dot {
  animation: pulse 1.8s ease-in-out infinite;
  background: var(--green);
  box-shadow: 0 0 20px rgba(110, 231, 168, 0.68);
  display: inline-block;
  height: 8px;
  width: 8px;
}

.terminal {
  background: var(--panel-strong);
  border: 1px solid rgba(237, 244, 239, 0.16);
  box-shadow: 0 28px 80px var(--shadow);
  min-width: 0;
  overflow: hidden;
  position: relative;
}

.terminal::before {
  background: linear-gradient(
    90deg,
    transparent,
    rgba(110, 231, 168, 0.24),
    transparent
  );
  content: "";
  height: 1px;
  inset-inline: 0;
  position: absolute;
  top: 0;
}

.terminal-bar {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 8px;
  padding: 14px 16px;
}

.terminal-bar span {
  background: #59635d;
  height: 9px;
  width: 9px;
}

.terminal-bar span:first-child {
  background: var(--red);
}

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

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

.terminal-bar code {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-left: auto;
}

pre {
  color: #d8f7e5;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.72;
  margin: 0;
  overflow-x: auto;
  padding: 22px;
}

.terminal-prompt {
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--line);
  color: #aebdb3;
  font-family: var(--font-mono);
  font-size: 12px;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
}

.terminal-prompt strong {
  color: var(--amber);
  font-weight: 650;
}

.content-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1160px;
  padding: 0 0 58px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  min-height: 146px;
  padding: 22px;
  transition: border-color 180ms ease, transform 180ms ease;
}

.panel:hover {
  border-color: rgba(110, 231, 168, 0.42);
  transform: translateY(-3px);
}

.panel p:last-child {
  color: #d0ddd5;
  font-size: 15px;
  line-height: 1.72;
  margin: 18px 0 0;
}

.span-two {
  grid-column: span 3;
  min-height: auto;
}

.stack-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.stack-list span {
  border: 1px solid rgba(237, 244, 239, 0.14);
  color: #dbe9df;
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 9px 11px;
}

.footer {
  border-top: 1px solid var(--line);
  color: rgba(237, 244, 239, 0.48);
  font-family: var(--font-mono);
  font-size: 12px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1160px;
  padding-top: 22px;
}

@keyframes scan {
  to {
    transform: translateY(calc(100vh + 260px));
  }
}

@keyframes drift {
  50% {
    opacity: 0.55;
    transform: translate3d(18px, -22px, 0);
  }
}

@keyframes pulse {
  50% {
    opacity: 0.45;
    transform: scale(1.4);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .terminal {
    order: -1;
  }

  h1 {
    font-size: 70px;
  }

  h1 span {
    font-size: 30px;
  }

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

  .span-two {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 20px 16px;
  }

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

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
  }

  .nav-links a {
    flex: 1;
    text-align: center;
  }

  h1 {
    font-size: 46px;
  }

  h1 span {
    font-size: 22px;
  }

  pre {
    font-size: 12px;
    padding: 18px;
  }
}

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