:root {
  --bg: #000000;
  --text: #f4f4f4;
  --muted: #b8b8b8;
  --line: rgba(255, 255, 255, 0.2);
  --line-soft: rgba(255, 255, 255, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--text);
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: #000;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

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

.container {
  width: min(1040px, calc(100% - 2rem));
  margin-inline: auto;
}

.spotlight,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.spotlight {
  z-index: -3;
  background:
    radial-gradient(
      circle at 50% 42%,
      rgba(255, 255, 255, 0.85) 0%,
      rgba(180, 180, 180, 0.36) 14%,
      rgba(70, 70, 70, 0.24) 28%,
      rgba(15, 15, 15, 0.92) 58%,
      rgba(0, 0, 0, 1) 100%
    ),
    #000;
  animation: spotlightPulse 9s ease-in-out infinite;
}

.grain {
  z-index: -2;
  opacity: 0.14;
  background-image: radial-gradient(rgba(255, 255, 255, 0.34) 0.5px, transparent 0.5px);
  background-size: 2px 2px;
  mix-blend-mode: soft-light;
}

.topbar {
  margin-top: 0.9rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0.7rem;
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: "Satisfy", cursive;
  font-size: 1.45rem;
}

.brand img {
  width: 30px;
  height: 30px;
}

.nav-links {
  display: flex;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.94rem;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  padding-top: 4.4rem;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 1.3rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  color: #d3d3d3;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
}

h1,
h2 {
  margin: 0;
  font-weight: 400;
}

h1 {
  margin-top: 0.35rem;
  font-family: "Satisfy", cursive;
  font-size: clamp(3rem, 8vw, 5.8rem);
  line-height: 0.9;
  letter-spacing: 0.01em;
  text-shadow:
    0 8px 32px rgba(0, 0, 0, 0.72),
    0 0 12px rgba(255, 255, 255, 0.18);
}

h2 {
  font-family: "Satisfy", cursive;
  font-size: clamp(2rem, 5vw, 3rem);
}

.lead {
  margin-top: 0.7rem;
  margin-bottom: 0;
  color: #e2e2e2;
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 0 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, background-color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: #fff;
  color: #000;
  border-color: #fff;
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.35);
}

.meta {
  margin-top: 0.8rem;
  color: var(--muted);
}

.meta code,
.endpoint code {
  color: #fff;
}

.hero-stage {
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1 / 1;
  min-height: 360px;
  justify-self: center;
}

#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.lens {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}

.lens::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(46%, 220px);
  aspect-ratio: 1 / 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.24) 26%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0) 74%
  );
  filter: blur(16px);
  opacity: 0.82;
  z-index: 0;
  animation: glowPulse 4s ease-in-out infinite;
}

#heroIcon {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(60%, 400px);
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.9));
  z-index: 1;
  animation: iconFloat 4.2s ease-in-out infinite;
}

.section {
  padding-top: 2.7rem;
  scroll-margin-top: 6rem;
}

.sub {
  margin: 0.4rem 0 0;
  color: var(--muted);
}

.feature-list {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.feature-list li {
  padding: 0.78rem 0;
  border-bottom: 1px solid var(--line-soft);
  color: #ececec;
}

#download .btn {
  margin-top: 0.9rem;
}

.endpoint {
  margin-top: 0.8rem;
  color: var(--muted);
}

.link-row {
  margin-top: 0.85rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.link-row a {
  border-bottom: 1px solid var(--line);
  color: #f0f0f0;
}

.link-row a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.footer {
  padding: 2.4rem 0 1.8rem;
  text-align: center;
  color: var(--muted);
}

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

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

@keyframes iconFloat {
  0%,
  100% {
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) translateY(-7px) scale(1.03);
  }
}

@keyframes glowPulse {
  0%,
  100% {
    opacity: 0.66;
    transform: translate(-50%, -50%) scale(0.95);
  }
  50% {
    opacity: 0.96;
    transform: translate(-50%, -50%) scale(1.08);
  }
}

@keyframes spotlightPulse {
  0%,
  100% {
    filter: brightness(0.92);
  }
  50% {
    filter: brightness(1);
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-top: 3.8rem;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .lead {
    max-width: 36ch;
    margin-inline: auto;
  }

  .meta {
    text-align: center;
  }

  .section h2 {
    text-align: center;
  }

  .section {
    text-align: center;
  }

  .feature-list {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
  }

  .feature-list li {
    text-align: center;
  }

  #download .btn {
    margin-left: auto;
    margin-right: auto;
  }

  .sub,
  .endpoint {
    text-align: center;
  }

  .link-row {
    justify-content: center;
    align-items: center;
  }

  .hero-stage {
    width: min(100%, 500px);
    min-height: 0;
  }

  .lens::before {
    top: 50%;
    left: 50%;
    width: min(52%, 250px);
  }

  #heroIcon {
    top: 50%;
    left: 50%;
    width: min(56%, 320px);
  }
}

@media (max-width: 767px) {
  .nav-links {
    display: none;
  }

  .topbar {
    border-radius: 14px;
    padding: 0.65rem 0.8rem;
    top: 0.5rem;
  }

  .hero {
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
  }

  .lead {
    font-size: 0.96rem;
  }

  .hero-stage {
    width: min(100%, 440px);
    min-height: 0;
  }

  .lens::before {
    width: min(58%, 230px);
  }

  #heroIcon {
    width: min(64%, 290px);
  }

  .btn {
    height: 40px;
  }

  .link-row {
    gap: 0.75rem;
  }

  .footer {
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .container {
    width: min(1040px, calc(100% - 1rem));
  }

  .brand {
    font-size: 1.25rem;
  }

  .brand img {
    width: 26px;
    height: 26px;
  }

  .hero-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-actions .btn {
    width: auto;
    min-width: 10.5rem;
  }

  .hero-stage {
    width: min(100%, 390px);
    min-height: 0;
  }

  .lens::before {
    width: min(66%, 205px);
  }

  #heroIcon {
    width: min(72%, 250px);
  }

  .section {
    padding-top: 2.2rem;
    scroll-margin-top: 5.2rem;
  }

  .link-row {
    flex-direction: column;
    gap: 0.55rem;
    align-items: center;
  }
}

@media (max-width: 360px) {
  h1 {
    font-size: clamp(2.1rem, 12vw, 2.7rem);
  }
}
