@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600&display=swap");

:root {
  --bg: #08080d;
  --bg-alt: #0f0f18;
  --ink: #f2f0ff;
  --muted: #b7b2d6;
  --primary: #6a4cff;
  --primary-dark: #2b174f;
  --accent: #a58bff;
  --glass: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.08);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Space Grotesk", sans-serif;
  background: radial-gradient(circle at top, #161423 0%, #09090f 55%, #050509 100%);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

main {
  padding: 0 8vw 6rem;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 8vw;
  backdrop-filter: blur(24px);
  background: transparent;
  border-bottom: 1px solid var(--line);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 1;
}

.nav__brand img {
  width: 55px;
  height: 55px;
  display: block;
  object-fit: contain;
}

.nav__links {
  display: flex;
  gap: 2rem;
  font-weight: 500;
  color: var(--muted);
}

.nav__links a:hover {
  color: var(--ink);
}

.nav__actions {
  display: flex;
  gap: 0.75rem;
}

.btn {
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.btn.solid {
  background: linear-gradient(135deg, var(--primary), #4d2fe1);
  color: #fff;
  box-shadow: 0 12px 30px rgba(106, 76, 255, 0.35);
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn.ghost {
  background: transparent;
  color: var(--muted);
}

.hero {
  position: relative;
  display: block;
  gap: 3rem;
  margin: 0 -8vw;
  padding: 6rem 8vw 6rem;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: -20% -10% -30%;
  background:
    radial-gradient(40% 45% at 20% 20%, rgba(130, 104, 255, 0.9), rgba(130, 104, 255, 0) 60%),
    radial-gradient(45% 55% at 70% 15%, rgba(86, 52, 255, 0.75), rgba(86, 52, 255, 0) 60%),
    radial-gradient(55% 70% at 20% 70%, rgba(45, 20, 96, 0.9), rgba(45, 20, 96, 0) 68%),
    radial-gradient(50% 60% at 80% 70%, rgba(104, 76, 255, 0.7), rgba(104, 76, 255, 0) 65%);
  background-size: 140% 140%;
  background-position: 0% 0%;
  filter: blur(10px) saturate(120%);
  opacity: 0.95;
  animation: meshMove 16s ease-in-out infinite;
  z-index: 0;
}

.hero__bg::before,
.hero__bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    conic-gradient(from 110deg at 45% 45%, rgba(142, 118, 255, 0.35), rgba(14, 10, 26, 0), rgba(101, 70, 255, 0.4), rgba(14, 10, 26, 0)),
    radial-gradient(45% 60% at 55% 55%, rgba(16, 12, 30, 0.2), rgba(8, 8, 13, 0.9)),
    url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E\");
  background-size: 120% 120%, cover, 180px 180px;
  mix-blend-mode: screen;
  opacity: 0.8;
  animation: meshDrift 22s ease-in-out infinite;
}

.hero__bg::after {
  background:
    radial-gradient(40% 45% at 60% 40%, rgba(165, 139, 255, 0.35), rgba(14, 10, 26, 0) 60%),
    radial-gradient(50% 60% at 30% 80%, rgba(75, 44, 196, 0.45), rgba(14, 10, 26, 0) 65%);
  mix-blend-mode: plus-lighter;
  opacity: 0.6;
  animation: meshGlow 20s ease-in-out infinite;
}

.hero__content h1 {
  font-family: "Fraunces", serif;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1.05;
  margin: 1rem 0 1.5rem;
}

.hero__content h1 span {
  background: linear-gradient(90deg, #bda7ff, var(--primary));
  -webkit-background-clip: text;
  color: transparent;
}

.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  color: var(--accent);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  margin: 2rem 0;
  justify-content: center;
}


.hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
  text-align: left;
}

.hero__stats h3 {
  font-size: 1.5rem;
}

.hero__stats p {
  color: var(--muted);
}

.hero__visual {
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
}

.hero__visual img {
  width: min(430px, 90%);
  filter: drop-shadow(0 30px 60px rgba(75, 52, 165, 0.45));
  animation: float 7s ease-in-out infinite;
}

.hero__card {
  position: absolute;
  bottom: -1.5rem;
  right: 5%;
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 1.2rem 1.6rem;
  border-radius: 1rem;
  width: min(240px, 80%);
  backdrop-filter: blur(18px);
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 980px;
  margin: 0 auto;
}

.section {
  padding: 5rem 0;
  display: grid;
  gap: 3rem;
}

.section__header {
  max-width: 100%;
}

.section__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0;
}

.section__header p {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--glass);
  border: 1px solid var(--line);
  padding: 1.8rem;
  border-radius: 1.25rem;
  min-height: 180px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(165, 139, 255, 0.35);
}

.card p {
  color: var(--muted);
  margin-top: 0.6rem;
}

.card img {
  margin-top: 1rem;
  width: 80%;
  border-radius: 0.8rem;
  display: block;
}

.card.code pre {
  margin-top: 1rem;
  background: #0c0b16;
  padding: 1rem;
  border-radius: 0.8rem;
  font-size: 0.85rem;
  color: #cabfff;
  overflow-x: auto;
}

.card.code img {
  margin-top: 1rem;
  width: 80%;
  border-radius: 0.8rem;
  display: block;
}

.section.alt {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
  background: linear-gradient(135deg, rgba(39, 24, 80, 0.8), rgba(10, 10, 16, 0.2));
  border: 1px solid var(--line);
  border-radius: 2rem;
  padding: 4rem;
}

.section__media img {
  width: min(414px, 85%);
  margin: 0 auto;
  filter: drop-shadow(0 20px 40px rgba(159, 132, 255, 0.35));
}

.section__content h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 1rem 0;
}

.section__content p {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.checklist {
  list-style: none;
  display: grid;
  gap: 0.8rem;
  margin-bottom: 2rem;
}

.checklist li::before {
  content: "▹";
  color: var(--accent);
  margin-right: 0.6rem;
}

.cta {
  margin-top: 3rem;
  padding: 3rem;
  border-radius: 2rem;
  background: linear-gradient(120deg, rgba(106, 76, 255, 0.3), rgba(12, 10, 30, 0.9));
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.cta--quote {
  margin-top: 2.5rem;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
}

.cta__actions-inline {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  margin-left: auto;
}

.cta__quote {
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: var(--ink);
  max-width: none;
  width: 100%;
}

.cta--quote img {
  width: 140px;
  height: auto;
  opacity: 0.9;
}

.cta h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.cta p {
  color: var(--muted);
  margin-top: 0.5rem;
}

.cta__actions {
  display: flex;
  gap: 1rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 8vw 3rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  color: var(--muted);
}

.footer img {
  width: 32px;
  height: 32px;
  margin-bottom: 0.8rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__social img {
  width: 26px;
  height: 26px;
  display: block;
  opacity: 0.85;
}

.footer__social img:hover {
  opacity: 1;
}

.network {
  margin-top: 5rem;
  background: linear-gradient(180deg, rgba(15, 12, 32, 0.95), rgba(10, 10, 18, 0.6));
  border-radius: 2.5rem;
  border: 1px solid rgba(138, 115, 255, 0.18);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(32, 18, 76, 0.4);
}

.network__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  padding: 2.5rem 3rem;
  border-bottom: 1px solid rgba(138, 115, 255, 0.18);
  background: rgba(18, 14, 32, 0.75);
  text-align: center;
}

.network__stats h3 {
  font-size: 2.6rem;
  margin-bottom: 0.4rem;
}

.network__stats p {
  color: var(--muted);
}

.network__viz {
  position: relative;
  min-height: 462px;
  background: radial-gradient(circle at center, rgba(120, 86, 255, 0.35), rgba(12, 12, 22, 0.05) 70%);
}

.network__viz canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.network__overlay {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  display: flex;
  gap: 0.6rem;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(138, 115, 255, 0.3);
  background: rgba(18, 14, 32, 0.65);
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: rgba(168, 142, 255, 0.8);
}

.bg-orb {
  position: fixed;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.55;
  z-index: -1;
}

.orb-1 {
  background: #5d39ff;
  top: -160px;
  left: -120px;
}

.orb-2 {
  background: #1f0f3d;
  bottom: -200px;
  right: -120px;
}

.orb-3 {
  background: #4b2ca4;
  top: 40%;
  left: 55%;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes meshMove {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 0%;
  }
  50% {
    transform: translate3d(-4%, -3%, 0) scale(1.06);
    background-position: 100% 40%;
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    background-position: 0% 0%;
  }
}

@keyframes meshDrift {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.1);
  }
  50% {
    transform: translate3d(3%, -2%, 0) scale(1.2);
  }
}

@keyframes meshGlow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1.05);
  }
  50% {
    transform: translate3d(-2%, 4%, 0) scale(1.15);
  }
}

@media (max-width: 920px) {
  .nav__links {
    display: none;
  }

  .hero__actions,
  .cta__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .section.alt {
    padding: 3rem 2rem;
  }

  .network__stats {
    padding: 2rem;
  }
}
