:root {
  --bg: #050608;
  --bg-soft: #0f131a;
  --panel: #121720;
  --panel-2: #0b1017;
  --text: #f5f7fb;
  --muted: #8f99ae;
  --line: #222c3d;
  --accent: #d7e3ff;
  --signal: #5ad1ff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Sora", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 10%, rgb(90 209 255 / 14%), transparent 28%),
    radial-gradient(circle at 90% 22%, rgb(215 227 255 / 8%), transparent 26%),
    linear-gradient(180deg, #020304 0%, #080b10 44%, #040507 100%);
  line-height: 1.55;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
  background: rgb(4 6 8 / 78%);
}

.nav {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  letter-spacing: 0.18em;
  font-family: "Space Mono", monospace;
  font-size: 0.98rem;
}

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

nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  color: var(--muted);
}

.hero {
  padding: 5.3rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2.2rem;
  align-items: center;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.05;
  max-width: 16ch;
}

h2 {
  margin: 0 0 0.9rem;
  font-size: clamp(1.5rem, 2.8vw, 2.3rem);
}

h3 {
  margin: 0 0 0.55rem;
}

.lead,
.intro {
  color: var(--muted);
  max-width: 66ch;
}

.cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.6rem;
  align-items: center;
}

.store-badge {
  display: inline-flex;
  transition: opacity 0.2s;
}

.store-badge:hover {
  opacity: 0.8;
}

.button {
  display: inline-flex;
  padding: 0.62rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--text);
  color: #0a0d11;
  background: var(--text);
  font-weight: 600;
}

.button.ghost {
  color: var(--text);
  background: transparent;
  border-color: rgb(255 255 255 / 28%);
}

.note,
.small {
  color: var(--muted);
  font-size: 0.92rem;
}

code {
  font-family: "Space Mono", monospace;
  color: #c4dcff;
}

/* Card icons */
.card-icon {
  margin-bottom: 0.7rem;
  color: var(--signal);
}

/* Algorithm badges */
.algo-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 1.2rem;
}

.algo-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgb(90 209 255 / 25%);
  color: #9ddfff;
  font-family: "Space Mono", monospace;
  font-size: 0.73rem;
  letter-spacing: 0.02em;
  background: rgb(90 209 255 / 5%);
}

/* Operational cards accent */
.ops-cards .card {
  border-color: rgb(215 227 255 / 18%);
  background: linear-gradient(180deg, rgb(215 227 255 / 3%), rgb(255 255 255 / 0%));
}

/* Pricing note */
.pricing-note {
  color: var(--muted);
  font-size: 0.88rem;
  margin-top: 1rem;
  font-style: italic;
}

/* Symbol stage */
.symbol-stage {
  position: relative;
  min-height: 470px;
  border: 1px solid rgb(255 255 255 / 10%);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgb(255 255 255 / 3%), rgb(255 255 255 / 0%)),
    radial-gradient(circle at 50% 35%, rgb(255 255 255 / 6%), transparent 60%),
    var(--panel-2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.halo {
  position: absolute;
  width: 78%;
  aspect-ratio: 1;
  border: 1px solid rgb(255 255 255 / 14%);
  transform: rotate(45deg);
}

.halo-a {
  animation: spin 20s linear infinite;
}

.halo-b {
  width: 64%;
  border-color: rgb(90 209 255 / 30%);
  animation: spin 14s linear infinite reverse;
}

.sigil-wrap {
  width: 230px;
  height: 230px;
  border-radius: 50%;
  border: 1px solid rgb(255 255 255 / 16%);
  background: rgb(255 255 255 / 2%);
  display: grid;
  place-items: center;
  z-index: 2;
  backdrop-filter: blur(2px);
}

.sigil {
  width: 178px;
  height: 178px;
}

.symbol-word {
  position: absolute;
  left: 50%;
  bottom: 1.8rem;
  transform: translateX(-50%);
  z-index: 2;
  margin: 0;
  letter-spacing: 0.34em;
  font-size: 1.2rem;
  font-family: "Space Mono", monospace;
}

.section {
  padding: 3.6rem 0;
}

.section-surface {
  background: linear-gradient(180deg, rgb(255 255 255 / 2%), rgb(255 255 255 / 0%));
  border-top: 1px solid rgb(255 255 255 / 8%);
  border-bottom: 1px solid rgb(255 255 255 / 8%);
}

.cards {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
}

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

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

.card,
.payments,
.legal-page {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 2%), rgb(255 255 255 / 0%));
}

.card,
.payments {
  padding: 1.2rem;
}

.card p,
.payments p {
  color: var(--muted);
}

.card.price.featured {
  border-color: rgb(90 209 255 / 40%);
  box-shadow: inset 0 0 0 1px rgb(90 209 255 / 18%);
}

.crypto-flow {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.flow-step {
  position: relative;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgb(255 255 255 / 2%), rgb(255 255 255 / 0%));
  padding: 1rem;
}

.flow-step:not(:last-child)::after {
  content: "\2192";
  position: absolute;
  right: -0.72rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 1.4rem;
  height: 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgb(90 209 255 / 28%);
  background: #0a111b;
  color: #9ddfff;
  font-size: 0.65rem;
}

.flow-kicker {
  margin: 0 0 0.45rem;
  color: #9ddfff;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-family: "Space Mono", monospace;
}

.flow-step p {
  margin: 0;
  color: var(--muted);
}

.price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: "Space Mono", monospace;
}

.payments {
  margin-top: 1.1rem;
}

/* Footer */
footer {
  padding: 2.2rem 0 2.8rem;
  border-top: 1px solid rgb(255 255 255 / 10%);
}

.foot {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.2rem;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text);
}

/* Legal pages */
.legal-page {
  min-height: 100vh;
  padding: 3rem;
  margin: 2rem 0;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.legal-page h2 {
  margin-top: 1.6rem;
  font-size: 1.22rem;
}

.legal-page p,
.legal-page li {
  color: #c8d0e0;
}

/* Scroll-driven fade-in */
@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.flow-step,
.card {
  animation: fade-in-up 0.3s ease-out both;
}

.flow-step:nth-child(1), .card:nth-child(1) { animation-delay: 0s; }
.flow-step:nth-child(2), .card:nth-child(2) { animation-delay: 0.06s; }
.flow-step:nth-child(3), .card:nth-child(3) { animation-delay: 0.12s; }
.flow-step:nth-child(4), .card:nth-child(4) { animation-delay: 0.18s; }
.card:nth-child(5) { animation-delay: 0.24s; }
.card:nth-child(6) { animation-delay: 0.30s; }

@keyframes spin {
  from {
    transform: rotate(45deg);
  }
  to {
    transform: rotate(405deg);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .crypto-flow,
  .cards.three,
  .cards.two {
    grid-template-columns: 1fr;
  }

  .flow-step::after {
    display: none;
  }

  .symbol-stage {
    min-height: 420px;
  }
}

@media (max-width: 720px) {
  nav a:not(.button) {
    display: none;
  }

  .symbol-stage {
    min-height: 360px;
  }

  .sigil-wrap {
    width: 190px;
    height: 190px;
  }

  .sigil {
    width: 126px;
    height: 126px;
  }

  .price-row {
    flex-direction: column;
    gap: 0.2rem;
  }
}
