:root {
  color-scheme: dark;
  --bg: #070b10;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.1);
  --line: rgba(255, 255, 255, 0.14);
  --text: #f4f8fb;
  --muted: #9aa8b7;
  --soft: #cad5de;
  --accent: #21d4a7;
  --accent-2: #7bf7d8;
  --radius: 18px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background:
    radial-gradient(circle at 12% 12%, rgba(33, 212, 167, 0.18), transparent 28%),
    radial-gradient(circle at 82% 10%, rgba(91, 168, 255, 0.13), transparent 30%),
    linear-gradient(140deg, #06080d, #0d1520 52%, #07110e);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

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

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.22;
  background-image: radial-gradient(rgba(255, 255, 255, 0.2) 0.5px, transparent 0.5px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(1180px, calc(100% - 32px));
  height: 72px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  backdrop-filter: blur(18px);
}

.brand,
nav,
.header-link {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 850;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(33, 212, 167, 0.48);
  border-radius: 12px;
  color: var(--accent-2);
  background: rgba(33, 212, 167, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

nav {
  justify-content: center;
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 9, 13, 0.72);
}

nav a,
.header-link {
  color: var(--soft);
  font-size: 13px;
  font-weight: 700;
}

nav a {
  padding: 9px 13px;
  border-radius: 999px;
}

nav a:hover,
.header-link:hover {
  color: var(--accent-2);
}

.header-link {
  justify-self: end;
  height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
}

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

.hero {
  min-height: calc(100dvh - 72px);
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.72fr);
  align-items: center;
  gap: 40px;
  padding: 42px 0 72px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

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

h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(48px, 8.3vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4.6vw, 58px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.hero-subtitle,
.section-heading p,
.stack-card p,
.article-card p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-subtitle {
  max-width: 520px;
  margin-bottom: 28px;
  font-size: 18px;
}

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

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.primary {
  color: #03110d;
  background: var(--accent);
  box-shadow: 0 18px 50px rgba(33, 212, 167, 0.22);
}

.secondary {
  border: 1px solid var(--line);
  color: var(--soft);
  background: rgba(255, 255, 255, 0.055);
}

.secondary:hover {
  border-color: rgba(33, 212, 167, 0.58);
}

.hero-visual {
  position: relative;
  min-height: 520px;
}

.terminal-card,
.profile-orbit,
.stack-card,
.article-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.terminal-card {
  position: absolute;
  inset: 30px 0 auto auto;
  width: min(100%, 430px);
  overflow: hidden;
}

.terminal-top {
  display: flex;
  justify-content: space-between;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.pulse {
  color: var(--accent-2);
}

.terminal-body {
  padding: 28px 24px 32px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 2;
}

.terminal-body p {
  margin: 0;
  color: #e8f8f3;
}

.terminal-body span {
  color: var(--accent-2);
}

.profile-orbit {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 188px;
  height: 188px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(33, 212, 167, 0.22), rgba(255, 255, 255, 0.04)),
    var(--panel);
}

.profile-orbit::before {
  content: "";
  position: absolute;
  inset: -18px;
  border: 1px solid rgba(33, 212, 167, 0.22);
  border-radius: 50%;
}

.profile-orbit img {
  width: 128px;
  height: 128px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.68);
}

.section-heading {
  max-width: 720px;
  padding-top: 82px;
  margin-bottom: 26px;
}

.stack-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
}

.stack-card {
  min-height: 190px;
  padding: 24px;
  overflow: hidden;
}

.stack-card.wide {
  min-height: 260px;
}

.stack-card.tall {
  min-height: 260px;
  background:
    radial-gradient(circle at 75% 10%, rgba(33, 212, 167, 0.18), transparent 34%),
    var(--panel);
}

.stack-card span,
.article-type {
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  font-weight: 800;
}

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

.article-card {
  min-height: 224px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.article-card:hover {
  transform: translateY(-4px);
  border-color: rgba(33, 212, 167, 0.5);
  background: var(--panel-strong);
}

.article-card.featured {
  grid-column: span 2;
  background:
    radial-gradient(circle at 16% 0%, rgba(33, 212, 167, 0.18), transparent 40%),
    var(--panel);
}

.article-card h3 {
  margin-top: 12px;
}

.article-card small {
  margin-top: auto;
  color: #6f8193;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.metrics-section {
  padding: 38px 0 18px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.metrics div {
  padding: 18px clamp(12px, 3vw, 24px);
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

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

.metrics strong {
  display: block;
  color: var(--accent-2);
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1;
}

.metrics span {
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 36px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  color: #728293;
  font-size: 13px;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .profile-orbit::before {
    animation: breathe 5s ease-in-out infinite;
  }

  .terminal-card {
    animation: float-card 7s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%, 100% {
    transform: scale(1);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-10px);
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-visual {
    min-height: 430px;
  }

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

@media (max-width: 760px) {
  .site-header {
    width: min(100% - 24px, 1180px);
    height: auto;
    min-height: 68px;
    grid-template-columns: 1fr auto;
    padding: 10px 0;
  }

  nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
  }

  .header-link {
    height: 34px;
    padding: 0 12px;
  }

  .section-shell,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

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

  h1 {
    font-size: clamp(43px, 14vw, 64px);
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-visual {
    min-height: 380px;
  }

  .terminal-card {
    width: 100%;
    inset: 0 0 auto;
  }

  .profile-orbit {
    width: 150px;
    height: 150px;
    bottom: 0;
  }

  .profile-orbit img {
    width: 104px;
    height: 104px;
  }

  .stack-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .article-card.featured {
    grid-column: auto;
  }

  .metrics-section {
    padding: 28px 0 12px;
  }

  .metrics div {
    padding: 15px 10px;
  }

  .metrics strong {
    font-size: clamp(28px, 7.5vw, 36px);
  }
}
