:root {
  --ink: #0b0f14;
  --ink-2: #121821;
  --paper: #eef2f6;
  --muted: #8b97a8;
  --line: rgba(238, 242, 246, 0.12);
  --signal: #d6ff3f;
  --signal-dim: rgba(214, 255, 63, 0.16);
  --warn: #ff8a3d;
  --ok: #3dffa8;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--paper);
  background: var(--ink);
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

img {
  max-width: 100%;
  display: block;
}

.site-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(214, 255, 63, 0.14), transparent 55%),
    radial-gradient(900px 600px at -10% 30%, rgba(255, 138, 61, 0.1), transparent 50%),
    linear-gradient(165deg, #0b0f14 0%, #101820 45%, #0a1018 100%);
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  pointer-events: none;
  mix-blend-mode: overlay;
}

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
}

.brand {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}

.brand span {
  color: var(--signal);
}

.nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--paper);
}

.hero {
  min-height: calc(100svh - 4.5rem);
  display: grid;
  align-content: end;
  padding: 2rem 0 4.5rem;
  position: relative;
  overflow: hidden;
}

.hero-scan {
  position: absolute;
  inset: 8% -5% auto auto;
  width: min(58vw, 640px);
  aspect-ratio: 4 / 5;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(18, 24, 33, 0.2), rgba(11, 15, 20, 0.85)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 500'%3E%3Crect fill='%23151c27' width='400' height='500'/%3E%3Crect x='48' y='70' width='304' height='220' rx='8' fill='%231c2633'/%3E%3Crect x='70' y='320' width='180' height='14' rx='4' fill='%23263342'/%3E%3Crect x='70' y='348' width='120' height='10' rx='4' fill='%23202b39'/%3E%3Crect x='70' y='390' width='90' height='28' rx='6' fill='%23d6ff3f' opacity='0.85'/%3E%3C/svg%3E")
      center / cover;
  transform: rotate(-6deg);
  animation: float-in 1.1s ease-out both;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45);
}

.hero-scan::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--signal), transparent);
  animation: scan 2.8s ease-in-out infinite;
  box-shadow: 0 0 24px rgba(214, 255, 63, 0.55);
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  animation: rise 0.9s ease-out both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.2rem);
  line-height: 0.92;
  letter-spacing: -0.05em;
}

.hero h1 em {
  font-style: normal;
  color: var(--signal);
}

.hero p {
  margin: 0 0 1.75rem;
  color: var(--muted);
  font-size: 1.15rem;
  max-width: 28rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 650;
  font-size: 0.98rem;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

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

.btn-primary {
  background: var(--signal);
  color: #10140a;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--paper);
}

.btn-ghost:hover {
  border-color: rgba(238, 242, 246, 0.35);
}

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

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  letter-spacing: -0.03em;
}

.section > .wrap > p.lead,
.prose > p.lead {
  margin: 0 0 2rem;
  color: var(--muted);
  max-width: 36rem;
}

.steps {
  display: grid;
  gap: 1.5rem;
  counter-reset: step;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }

  .hero-scan {
    inset: 10% 0 auto auto;
  }
}

.step {
  padding-top: 0.5rem;
}

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--signal);
  letter-spacing: 0.04em;
}

.step h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.flags {
  display: grid;
  gap: 1rem;
}

.flag {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 0.25rem 0;
}

.dot {
  width: 0.7rem;
  height: 0.7rem;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: var(--warn);
  box-shadow: 0 0 0 6px rgba(255, 138, 61, 0.12);
}

.dot.ok {
  background: var(--ok);
  box-shadow: 0 0 0 6px rgba(61, 255, 168, 0.12);
}

.flag strong {
  display: block;
  margin-bottom: 0.15rem;
}

.flag span {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer .wrap {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .footer .wrap {
    grid-template-columns: 1.4fr 1fr;
    align-items: end;
  }
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer strong {
  color: var(--paper);
}

.prose {
  padding: 3rem 0 5rem;
  max-width: 42rem;
}

.prose h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.prose .meta {
  color: var(--muted);
  margin-bottom: 2rem;
}

.prose h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.25rem;
}

.prose p,
.prose li {
  color: #c4ccd8;
}

.prose ul {
  padding-left: 1.2rem;
}

@keyframes scan {
  0%,
  100% {
    top: 12%;
    opacity: 0.2;
  }
  50% {
    top: 78%;
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: rotate(-6deg) translateY(28px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: rotate(-6deg) translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy,
  .hero-scan,
  .hero-scan::before {
    animation: none;
  }
}
