:root {
  color-scheme: dark;
  --ink: #f8fbff;
  --muted: #b8c4d9;
  --soft: #8090aa;
  --line: rgba(255, 255, 255, 0.14);
  --panel: rgba(11, 18, 32, 0.78);
  --panel-strong: rgba(13, 24, 44, 0.94);
  --accent: #37e0b0;
  --accent-2: #ffcf5a;
  --accent-3: #71a7ff;
  --danger: #ff6b7a;
  --bg: #070b14;
  --radius: 8px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 18%, rgba(55, 224, 176, 0.11), transparent 26rem),
    radial-gradient(circle at 82% 6%, rgba(113, 167, 255, 0.12), transparent 30rem),
    linear-gradient(135deg, #070b14 0%, #11131a 46%, #071615 100%);
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -3;
  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: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

#systemCanvas {
  position: fixed;
  inset: 0;
  z-index: -2;
  width: 100vw;
  height: 100vh;
  opacity: 0.54;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 20, 0.74);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(55, 224, 176, 0.52);
  border-radius: var(--radius);
  background: rgba(55, 224, 176, 0.13);
  color: var(--accent);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.88rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 600;
}

.nav-links a,
.nav-cta,
.button {
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background 180ms ease,
    color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink);
}

.nav-cta {
  min-width: max-content;
  padding: 9px 14px;
  border: 1px solid rgba(55, 224, 176, 0.45);
  border-radius: var(--radius);
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 800;
}

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

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: clamp(64px, 8vw, 118px) 0 72px;
}

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

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

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-size: clamp(3.8rem, 8vw, 7.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2rem, 4vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  line-height: 1.25;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.22rem);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 70px);
  align-items: start;
}

.about-copy {
  display: grid;
  gap: 18px;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-copy p {
  margin-bottom: 0;
}

.about-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
}

.about-links a {
  min-width: 0;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 800;
}

.button.primary {
  border-color: rgba(55, 224, 176, 0.6);
  background: var(--accent);
  color: #04110d;
}

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

.button-icon {
  display: grid;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.14);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.9rem;
}

.runtime-panel,
.project-card,
.stack-group,
.service-grid article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.runtime-panel {
  position: relative;
  overflow: hidden;
}

.runtime-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background:
    linear-gradient(90deg, rgba(55, 224, 176, 0.1), transparent 32%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 34px);
}

.panel-topline {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.82rem;
}

.panel-topline span:nth-child(2) {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(55, 224, 176, 0.9);
}

pre {
  position: relative;
  margin: 0;
  padding: clamp(18px, 3vw, 28px);
  overflow-x: auto;
  color: #d9e7ff;
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  line-height: 1.8;
}

.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1180px, calc(100% - 32px));
  margin: -38px auto 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(7, 11, 20, 0.84);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.metrics-band div {
  min-width: 0;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.metrics-band div:last-child {
  border-right: 0;
}

.metric-value {
  display: block;
  color: var(--accent-2);
  font-family: "JetBrains Mono", monospace;
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
}

.metric-label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.content-section {
  padding: clamp(82px, 10vw, 132px) 0;
}

.section-heading {
  margin-bottom: clamp(28px, 5vw, 48px);
}

.section-heading h2 + p {
  max-width: 720px;
  color: var(--muted);
}

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

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

.project-card,
.service-grid article {
  min-width: 0;
  padding: 24px;
}

.project-card-large {
  min-height: 100%;
  padding: clamp(22px, 3vw, 30px);
}

.project-card-large h3 {
  font-size: clamp(1.25rem, 2vw, 1.6rem);
}

.project-kicker,
.service-number {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--accent-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
}

.project-card p,
.service-grid p,
.contact-layout p {
  color: var(--muted);
}

.project-card ul {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  color: var(--soft);
  list-style: none;
}

.project-card li {
  position: relative;
  padding-left: 18px;
}

.project-card li::before {
  position: absolute;
  top: 0.72em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  transform: translateY(-50%);
}

.stack-section {
  padding: clamp(72px, 9vw, 120px) 0;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
}

.stack-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 56px);
  align-items: start;
}

.stack-groups {
  display: grid;
  gap: 14px;
}

.stack-group {
  padding: 20px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-grid article {
  box-shadow: none;
}

.proof-layout .section-heading {
  max-width: 840px;
}

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

.proof-grid article {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.proof-grid h3 {
  color: var(--accent-2);
}

.proof-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.contact-section {
  padding: clamp(72px, 9vw, 110px) 0;
  background: linear-gradient(90deg, rgba(55, 224, 176, 0.13), rgba(113, 167, 255, 0.08));
  border-top: 1px solid var(--line);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
}

.contact-layout h2 {
  max-width: 720px;
  margin-bottom: 16px;
}

.contact-actions {
  justify-content: flex-end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  color: var(--soft);
  font-size: 0.9rem;
}

@media (max-width: 920px) {
  .site-header {
    align-items: stretch;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: space-between;
  }

  .hero,
  .stack-layout,
  .about-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

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

  .project-grid,
  .service-grid,
  .proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .metrics-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
  }

  .metrics-band div:nth-child(2) {
    border-right: 0;
  }

  .metrics-band div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .contact-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header,
  .section-shell,
  .metrics-band,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    margin-top: 12px;
  }

  .brand {
    font-size: 0.95rem;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
    font-size: 0.88rem;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.2rem);
  }

  h2 {
    font-size: clamp(1.8rem, 11vw, 2.7rem);
  }

  .hero {
    padding-top: 52px;
  }

  .hero-actions,
  .contact-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .project-grid,
  .service-grid,
  .proof-grid,
  .metrics-band {
    grid-template-columns: 1fr;
  }

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

  .metrics-band div:last-child {
    border-bottom: 0;
  }

  .site-footer {
    flex-direction: column;
  }
}

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