:root {
  --bg: #07080b;
  --surface: rgba(255, 255, 255, 0.07);
  --surface-strong: rgba(255, 255, 255, 0.12);
  --surface-solid: #111318;
  --ink: #f7f8fb;
  --muted: #aeb6c2;
  --line: rgba(255, 255, 255, 0.14);
  --line-strong: rgba(255, 255, 255, 0.28);
  --lime: #b8ff5f;
  --cyan: #70e7ff;
  --coral: #ff7a59;
  --yellow: #ffd166;
  --violet: #b19cff;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--bg);
  background-size: 42px 42px, 42px 42px, auto;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 20;
  width: min(var(--max), calc(100vw - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 10px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(8, 10, 14, 0.72);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(22px);
  transform: translateX(-50%);
}

.brand,
.site-nav a,
.button,
.project-link,
.footer-links a {
  text-decoration: none;
}

.brand {
  font-size: 0.95rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-nav a {
  padding: 8px 10px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.1);
}

main,
.site-footer {
  width: min(var(--max), calc(100vw - 32px));
  margin: 0 auto;
}

.hero {
  position: relative;
  display: grid;
  align-content: end;
  min-height: 760px;
  padding: 150px 0 34px;
  overflow: clip;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, #07080b 0%, rgba(7, 8, 11, 0.92) 34%, rgba(7, 8, 11, 0.34) 100%);
  z-index: 1;
}

.hero-wall {
  position: absolute;
  inset: 86px -80px 0 34%;
  display: grid;
  grid-template-columns: repeat(3, minmax(190px, 1fr));
  gap: 14px;
  transform: rotate(-5deg);
  opacity: 0.82;
}

.wall-tile {
  position: relative;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--tile-color);
  box-shadow: var(--shadow);
  animation: floatTile 7s ease-in-out infinite;
}

.wall-tile:nth-child(2n) {
  transform: translateY(38px);
  animation-delay: -2s;
}

.wall-tile:nth-child(3n) {
  transform: translateY(-24px);
  animation-delay: -4s;
}

.wall-tile img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 180px;
  display: block;
  object-fit: cover;
}

.wall-fallback {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  min-height: 180px;
  align-content: end;
  padding: 18px;
  color: rgba(255, 255, 255, 0.9);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.44)),
    var(--tile-color);
}

.wall-fallback span {
  font-size: 1.1rem;
  font-weight: 850;
}

.hero-inner,
.hero-metrics {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--lime);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1;
}

h1 {
  max-width: 740px;
  font-size: 6.8rem;
  font-weight: 860;
}

h2 {
  max-width: 760px;
  font-size: 3.35rem;
  font-weight: 820;
}

h3 {
  font-size: 1.15rem;
  font-weight: 830;
}

.hero-copy,
.section-header p,
.product-copy,
.project-meta,
.operator-card p,
.stack-card li,
.site-footer p {
  color: var(--muted);
  line-height: 1.62;
}

.hero-copy {
  max-width: 660px;
  margin: 18px 0 0;
  font-size: 1.2rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

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

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

.button.primary {
  color: #050608;
  background: var(--lime);
}

.button.secondary,
.project-link {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 64px;
}

.hero-metrics article {
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  backdrop-filter: blur(18px);
}

.hero-metrics strong {
  display: block;
  margin-bottom: 12px;
  color: var(--ink);
  font-size: 2.2rem;
  line-height: 1;
}

.hero-metrics span {
  color: var(--muted);
  line-height: 1.42;
}

.section {
  padding: 70px 0;
  border-top: 1px solid var(--line);
}

.hero + .section {
  border-top: 0;
}

.section-header {
  display: block;
  max-width: 780px;
  margin-bottom: 28px;
}

.section-header p:not(.eyebrow) {
  max-width: 680px;
  margin: 18px 0 0;
  font-size: 1.02rem;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateZ(0);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.product-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 255, 255, 0.34);
  background: var(--surface-strong);
}

.product-media {
  position: relative;
  aspect-ratio: 16 / 9;
  height: auto;
  min-height: 0;
  overflow: hidden;
  background: var(--media-color);
}

.product-media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: var(--image-fit, cover);
  object-position: var(--image-position, center center);
  transform: scale(var(--image-scale, 1));
  transform-origin: center;
  display: block;
}

.image-placeholder {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: grid;
  align-content: end;
  padding: 24px;
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.18), rgba(0, 0, 0, 0.58)),
    var(--media-color);
}

.placeholder-label {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-title {
  display: block;
  max-width: 280px;
  font-size: 2rem;
  font-weight: 850;
  line-height: 0.98;
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
}

.product-body h3 {
  font-size: 1.08rem;
}

.product-topline,
.repo-topline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tag,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tag {
  color: #050608;
  background: var(--lime);
}

.status {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.08);
}

.product-copy {
  margin: 10px 0 14px;
  font-size: 0.98rem;
}

.project-meta {
  margin: 0 0 9px;
  font-size: 0.94rem;
}

.stack-line {
  color: var(--ink);
  font-weight: 830;
}

.bullet-list {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.5;
}

.bullet-list li {
  margin-bottom: 8px;
}

.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-link.muted {
  color: var(--muted);
}

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

.operator-card,
.stack-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.075);
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease, background 220ms ease;
}

.operator-card {
  grid-column: span 4;
  min-height: 245px;
  padding: 22px;
  border-top: 4px solid var(--operator-color, var(--lime));
}

.operator-card:nth-child(1),
.operator-card:nth-child(4) {
  grid-column: span 6;
}

.operator-card:hover,
.stack-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.11);
}

.operator-card strong {
  display: block;
  margin: 14px 0;
  color: var(--operator-color, var(--lime));
  font-size: 2.45rem;
  font-weight: 850;
  line-height: 1;
}

.operator-card p {
  margin: 0;
}

.operator-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.operator-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
}

.operator-logo img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
}

.stack-card {
  grid-column: span 4;
  padding: 20px;
}

.stack-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.stack-card li {
  margin-bottom: 8px;
}

.site-footer {
  padding: 34px 0 54px;
}

.site-footer p {
  margin: 0;
  font-size: 0.95rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
}

.footer-links a {
  color: var(--ink);
  font-weight: 800;
}

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

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes floatTile {
  0%,
  100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@media (max-width: 980px) {
  .site-header {
    top: 10px;
    width: calc(100vw - 20px);
  }

  .brand {
    display: none;
  }

  .site-nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero {
    min-height: 720px;
    padding-top: 132px;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(7, 8, 11, 0.9) 0%, rgba(7, 8, 11, 0.64) 45%, #07080b 100%);
  }

  .hero-wall {
    inset: 92px -80px auto -24px;
    height: 360px;
    grid-template-columns: repeat(3, minmax(170px, 1fr));
  }

  h1 {
    font-size: 4.6rem;
  }

  h2 {
    font-size: 2.75rem;
  }

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

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

  .product-card,
  .operator-card,
  .operator-card:nth-child(1),
  .operator-card:nth-child(4),
  .stack-card {
    grid-column: auto;
  }

  .operator-card strong {
    font-size: 2rem;
  }
}

@media (max-width: 760px) {
  .operator-grid,
  .stack-grid,
  .product-grid,
  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .operator-card {
    min-height: 0;
  }
}

@media (max-width: 640px) {
  main,
  .site-footer {
    width: calc(100vw - 24px);
  }

  .site-nav a {
    padding: 8px 7px;
    font-size: 0.8rem;
  }

  .hero {
    min-height: 690px;
    padding: 118px 0 28px;
  }

  .hero-wall {
    inset: 88px -160px auto -34px;
    height: 300px;
    gap: 10px;
  }

  .wall-tile,
  .wall-tile img,
  .wall-fallback {
    min-height: 146px;
  }

  h1 {
    font-size: 3.45rem;
  }

  h2 {
    font-size: 2.12rem;
  }

  .hero-copy {
    font-size: 1.02rem;
  }

  .hero-metrics article {
    min-height: 104px;
  }

  .section {
    padding: 50px 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

  .section-header p:not(.eyebrow) {
    margin-top: 12px;
    font-size: 0.98rem;
  }

  .product-card,
  .operator-card,
  .operator-card:nth-child(1),
  .operator-card:nth-child(4),
  .stack-card {
    grid-column: auto;
  }

  .product-card {
    min-height: auto;
    border-radius: var(--radius);
  }

  .product-media,
  .product-media img {
    aspect-ratio: auto;
    height: 200px;
  }

  .placeholder-title {
    font-size: 2.1rem;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
