:root {
  --blog-bg: #080712;
  --blog-ink: #fbfaff;
  --blog-muted: #c6bfd9;
  --blog-soft: #9189aa;
  --blog-line: rgba(255, 255, 255, 0.13);
  --blog-surface: rgba(18, 15, 34, 0.76);
  --blog-surface-strong: rgba(27, 22, 50, 0.9);
  --blog-brand: #8c52ff;
  --blog-brand-2: #5e17eb;
  --blog-electric: #00d9ff;
  --blog-lime: #d8ff4f;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  background:
    linear-gradient(115deg, rgba(140, 82, 255, 0.18), transparent 30%),
    linear-gradient(245deg, rgba(0, 217, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #0a0715 0%, #070610 48%, #05040a 100%) !important;
  color: var(--blog-ink) !important;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 78px 78px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.78), transparent 84%);
}

header {
  position: sticky !important;
  top: 12px !important;
  z-index: 50 !important;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  border-bottom: 0 !important;
  background: transparent !important;
  backdrop-filter: none !important;
}

header .nav,
.nav {
  min-height: 66px;
  max-width: 1180px !important;
  margin: 0 auto !important;
  padding: 0 12px 0 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px !important;
  background:
    linear-gradient(115deg, rgba(140, 82, 255, 0.22), rgba(0, 217, 255, 0.08) 48%, rgba(7, 5, 16, 0.8)),
    rgba(7, 5, 16, 0.78) !important;
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(24px);
}

.brand {
  display: inline-flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: max-content;
  color: #fff !important;
  font-family: "Space Grotesk", Manrope, sans-serif !important;
  font-size: 25px !important;
  font-weight: 800 !important;
  letter-spacing: 0 !important;
  opacity: 1 !important;
}

.brand img {
  width: 36px !important;
  height: 36px !important;
  object-fit: contain;
}

.brand span {
  transform: translateY(-1px);
  background: linear-gradient(90deg, #fff 0%, #bba4ff 48%, var(--blog-brand) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: auto !important;
  padding: 5px !important;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.045);
}

.nav a {
  opacity: 1 !important;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px !important;
  padding: 10px 12px !important;
  color: rgba(255, 255, 255, 0.78) !important;
  font-size: 14px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.btn,
.nav-links .btn {
  min-height: 44px;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  font-weight: 850 !important;
  letter-spacing: 0 !important;
}

.btn-primary {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, var(--blog-brand) 0%, var(--blog-brand-2) 55%, #29105f 100%) !important;
  color: #fff !important;
  box-shadow: 0 16px 42px rgba(94, 23, 235, 0.36) !important;
}

.btn-secondary,
.nav-links .btn-secondary {
  color: #071017 !important;
  background: linear-gradient(135deg, var(--blog-lime), #80f7ff) !important;
  box-shadow: 0 14px 36px rgba(216, 255, 79, 0.16) !important;
}

.hero {
  position: relative;
  overflow: hidden;
  margin-top: -78px;
  padding: 168px 0 76px !important;
  border-bottom: 1px solid var(--blog-line);
  background:
    linear-gradient(100deg, rgba(140, 82, 255, 0.22), transparent 34%),
    linear-gradient(260deg, rgba(0, 217, 255, 0.12), transparent 30%),
    transparent !important;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 130px;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, rgba(5, 4, 10, 0.82));
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr) !important;
  gap: 44px !important;
  align-items: center !important;
}

.hero-inner > div:first-child {
  max-width: 760px;
}

h1,
h2,
h3,
.card h2 {
  font-family: "Space Grotesk", Manrope, sans-serif !important;
  color: #fff !important;
  letter-spacing: 0 !important;
}

h1 {
  max-width: 800px;
  margin: 0 0 18px !important;
  font-size: 58px !important;
  line-height: 1.04 !important;
  font-weight: 700 !important;
  text-wrap: balance;
}

.eyebrow {
  color: #c7b7ff !important;
  text-transform: uppercase;
  letter-spacing: 0 !important;
  font-size: 12px !important;
  font-weight: 900 !important;
}

.lede {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.72) !important;
  font-size: 18px !important;
}

.meta {
  color: var(--blog-soft) !important;
}

.badge,
.tag {
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.13) !important;
  background: rgba(255, 255, 255, 0.065) !important;
  color: rgba(255, 255, 255, 0.74) !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

.hero-card,
.card,
.faq,
.callout {
  --rx: 0deg;
  --ry: 0deg;
  --spot-x: 50%;
  --spot-y: 50%;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--blog-line) !important;
  border-radius: 8px !important;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(15, 12, 28, 0.72) !important;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22) !important;
}

.hero-card {
  display: grid;
  gap: 10px;
  padding: 14px !important;
}

.stat {
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.055) !important;
}

.stat strong {
  color: #fff !important;
  font-family: "Space Grotesk", Manrope, sans-serif;
  font-size: 26px !important;
}

.stat span {
  color: var(--blog-muted) !important;
}

main {
  width: min(900px, calc(100% - 32px));
  max-width: 900px !important;
  padding: 64px 0 86px !important;
}

main:has(> .grid:first-child) {
  width: min(1180px, calc(100% - 32px));
  max-width: 1180px !important;
}

main h2 {
  margin: 44px 0 12px !important;
  font-size: 32px !important;
  line-height: 1.12 !important;
}

main h3 {
  margin: 30px 0 10px !important;
  font-size: 22px !important;
  line-height: 1.18 !important;
}

main p,
main li {
  color: var(--blog-muted) !important;
  font-size: 17px;
}

main p {
  margin: 14px 0 !important;
}

main strong {
  color: #fff;
}

main ul,
main ol {
  padding-left: 22px;
}

main li::marker {
  color: var(--blog-lime);
}

.grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)) !important;
  gap: 14px !important;
}

.card {
  transition: transform 0.24s ease, border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease;
}

.card:hover {
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-4px);
  border-color: rgba(140, 82, 255, 0.42) !important;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32), 0 0 34px rgba(140, 82, 255, 0.14) !important;
}

.callout {
  color: #dffbff !important;
  border-color: rgba(0, 217, 255, 0.22) !important;
}

.faq {
  margin-top: 40px !important;
  padding: 22px !important;
}

.footer {
  border-top: 1px solid var(--blog-line);
  padding: 44px 16px 34px !important;
  background: rgba(4, 3, 10, 0.78);
  color: rgba(255, 255, 255, 0.5) !important;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

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

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr !important;
  }

  h1 {
    font-size: 46px !important;
  }
}

@media (max-width: 720px) {
  header {
    width: min(100% - 24px, 1180px);
  }

  header .nav,
  .nav {
    min-height: 56px;
    padding: 8px 10px !important;
    gap: 10px !important;
  }

  .brand {
    font-size: 21px !important;
  }

  .brand img {
    width: 31px !important;
    height: 31px !important;
  }

  .nav-links {
    padding: 0 !important;
    border: 0;
    background: transparent;
  }

  .nav-links a:not(.btn) {
    display: none;
  }

  .nav-links .btn {
    min-height: 40px;
    width: auto !important;
    padding: 10px 12px !important;
    white-space: nowrap;
  }

  .hero {
    margin-top: -68px;
    padding: 128px 0 48px !important;
  }

  .hero-inner,
  main {
    width: min(100% - 28px, 1180px);
  }

  h1 {
    font-size: 37px !important;
  }

  .lede {
    font-size: 16px !important;
  }

  .hero-card {
    display: none;
  }

  .cta-bar .btn,
  .hero .btn-primary {
    width: 100%;
    justify-content: center;
  }

  main {
    padding: 48px 0 70px !important;
  }

  main h2 {
    font-size: 28px !important;
  }

  main p,
  main li {
    font-size: 16px;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
