:root {
  --bg: #050509;
  --ink: #f8fbff;
  --muted: #a8b3c7;
  --line: rgba(255, 255, 255, 0.13);
  --panel: rgba(15, 18, 30, 0.72);
  --panel-strong: rgba(20, 25, 42, 0.92);
  --cyan: #24f5ff;
  --mint: #39ffb6;
  --rose: #ff3df2;
  --amber: #ffe45c;
  --violet: #8a5cff;
  --shadow: 0 24px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 61, 242, 0.18), transparent 30%),
    radial-gradient(circle at 86% 18%, rgba(36, 245, 255, 0.18), transparent 32%),
    radial-gradient(circle at 50% 100%, rgba(57, 255, 182, 0.12), transparent 34%),
    linear-gradient(180deg, #07070d 0%, #0a0d17 42%, #050509 100%);
  font-family: "Sora", system-ui, sans-serif;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

#mesh {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -3;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.13;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.45'/%3E%3C/svg%3E");
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  color: #061014;
  background: linear-gradient(135deg, var(--mint), var(--cyan) 50%, var(--amber));
  box-shadow: 0 0 32px rgba(36, 245, 255, 0.38);
}

nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

nav a {
  padding: 9px 11px;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 700;
}

nav a:hover {
  color: var(--ink);
  background: rgba(255,255,255,0.08);
}

main,
footer {
  width: min(1180px, calc(100% - 28px));
  margin-inline: auto;
}

.hero {
  min-height: 760px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: center;
  padding: 92px 0 70px;
}

.eyebrow,
.kicker {
  margin: 0 0 14px;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Space Grotesk", "Sora", system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(3.4rem, 8vw, 7.2rem);
  line-height: 0.91;
}

h1::first-line {
  color: var(--ink);
}

.lead {
  max-width: 760px;
  margin: 28px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 13px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  color: #051015;
  background: linear-gradient(135deg, var(--mint), var(--cyan));
  box-shadow: 0 16px 42px rgba(36, 245, 255, 0.20);
}

.button.ghost {
  background: rgba(255,255,255,0.06);
}

.hero-card {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.02)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 22px;
  filter: saturate(1.12) contrast(1.05);
}

.hero-card div {
  margin-top: 18px;
}

.hero-card strong,
.hero-card span {
  display: block;
}

.hero-card strong {
  font-size: 1.25rem;
}

.hero-card span {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.65;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--line);
  overflow: hidden;
}

.stats article {
  padding: 24px;
  background: rgba(8, 11, 20, 0.82);
}

.stats strong,
.stats span {
  display: block;
}

.stats strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.7rem, 3vw, 3rem);
}

.stats span {
  margin-top: 9px;
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: 96px 0 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 0.98;
}

.section-head p:last-child {
  color: var(--muted);
  line-height: 1.7;
  margin: 18px 0 0;
}

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

.shot-card,
.asset,
.repo,
.cloud-matrix div {
  position: relative;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.025)),
    var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.shot-card::before,
.asset::before,
.repo::before,
.cloud-matrix div::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(36,245,255,0.08), transparent);
  transform: translateX(-100%);
  transition: transform 700ms ease;
  pointer-events: none;
}

.shot-card:hover::before,
.asset:hover::before,
.repo:hover::before,
.cloud-matrix div:hover::before {
  transform: translateX(100%);
}

.shot-card.wide {
  grid-column: span 2;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
  transition: transform 450ms ease, filter 450ms ease;
}

.shot-card:hover img {
  transform: scale(1.025);
  filter: saturate(1.15) contrast(1.04);
}

.shot-body {
  padding: 22px;
}

.shot-body h3,
.asset h3,
.repo h3 {
  margin-top: 15px;
  font-size: 1.45rem;
}

.shot-body p,
.asset p,
.repo p,
.cloud-matrix p {
  color: var(--muted);
  line-height: 1.68;
}

.shot-body a,
.asset a,
.repo a {
  display: inline-flex;
  margin-top: 8px;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 900;
}

.pill,
.asset-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  color: #041014;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.public { background: var(--mint); }
.private { background: var(--rose); color: white; }
.web { background: var(--cyan); }
.web3 { background: var(--amber); }
.edge { background: var(--violet); color: white; }
.ai { background: var(--rose); color: white; }

.split {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 32px;
  align-items: start;
}

.sticky {
  position: sticky;
  top: 110px;
}

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

.asset,
.repo {
  padding: 22px;
}

.asset h3,
.repo h3 {
  margin-top: 14px;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.stack span {
  padding: 7px 9px;
  border: 1px solid rgba(255,255,255,0.11);
  border-radius: 10px;
  color: #d8e7ee;
  background: rgba(255,255,255,0.065);
  font-size: 0.78rem;
  font-weight: 800;
}

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

.cloud-section {
  padding-bottom: 96px;
}

.cloud-matrix {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.cloud-matrix div {
  padding: 22px;
}

.cloud-matrix strong,
.cloud-matrix span {
  display: block;
}

.cloud-matrix strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.45rem;
}

.cloud-matrix span {
  margin-top: 6px;
  color: var(--mint);
  font-weight: 900;
}

footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding: 26px 0 44px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

footer a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
}

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

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

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

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

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

  .stats,
  .repo-grid,
  .cloud-matrix {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sticky {
    position: static;
  }
}

@media (max-width: 700px) {
  main,
  footer,
  .topbar {
    width: min(100% - 22px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .stats,
  .showcase-grid,
  .asset-list,
  .repo-grid,
  .cloud-matrix {
    grid-template-columns: 1fr;
  }

  .shot-card.wide {
    grid-column: auto;
  }

  .section {
    padding-top: 70px;
  }
}

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