:root {
  --primary: #7c5cfc;
  --primary-rgb: 124 92 252;
  --primary-light: #a78bfa;
  --primary-on-light: #4338ca;
  --primary-soft: #f1f0fe;
  --primary-dim: #2a1f6b;
  --primary-glow: rgb(124 92 252 / 0.15);
  --radius: 12px;
  --card-gap: 30px;
  --content-max: 1320px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  font-family: "Inter", system-ui, sans-serif;
  background: #0d0d14;
  color: #fff;
  -webkit-font-smoothing: antialiased;
}

/* ── Gradient text utility ── */
.grad-text {
  background: linear-gradient(
    135deg,
    var(--primary-light) 0%,
    var(--primary) 50%,
    #c4b5fd 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-amber {
  background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Noise / grain on dark sections ── */
.noise::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  border-radius: inherit;
}

/* ── Glow behind hero ── */
.hero-glow {
  background: radial-gradient(
    ellipse 600px 400px at 50% -60px,
    rgb(var(--primary-rgb) / 0.35),
    transparent
  );
}

/* ── Typing cursor ── */
.cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--primary);
  margin-left: 2px;
  vertical-align: -2px;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  0%,
  49% {
    opacity: 1;
  }
  50%,
  100% {
    opacity: 0;
  }
}

/* ── Card hover lift ── */
.card-lift {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* ── Sticky nav ── */
#nav-mount {
  position: sticky;
  top: 0;
  z-index: 50;
}
#nav-mount > nav,
nav.sticky {
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ── Shimmer on AI badge ── */
@keyframes shimmer {
  0% {
    background-position: -200% center;
  }
  100% {
    background-position: 200% center;
  }
}
.shimmer-badge {
  background: linear-gradient(
    90deg,
    var(--primary) 0%,
    var(--primary-light) 30%,
    #c4b5fd 50%,
    var(--primary-light) 70%,
    var(--primary) 100%
  );
  background-size: 200% auto;
  animation: shimmer 3s linear infinite;
}

/* ── Toggle ── */
.toggle-pill {
  transition: left 0.2s ease;
}

/* ── Responsive table scroll ── */
.table-wrap {
  overflow-x: auto;
}

/* ── Section alt background ── */
.section-paper {
  background: #fff;
  color: #0d0d14;
}

/* ── Mobile nav ── */
#mobile-menu {
  display: none;
  flex-direction: column;
  gap: 1rem;
}
#mobile-menu.open {
  display: flex;
}
#mobile-toggle .icon-close {
  display: none;
}
#mobile-toggle[aria-expanded="true"] .icon-menu {
  display: none;
}
#mobile-toggle[aria-expanded="true"] .icon-close {
  display: block;
}
@media (min-width: 1024px) {
  #mobile-menu,
  #mobile-menu.open {
    display: none !important;
  }
}
.nav-brand-tag {
  display: none;
}
@media (min-width: 480px) {
  .nav-brand-tag {
    display: inline;
  }
}

/* ── Footer social icons ── */
.footer-social-icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.footer-social-icon:hover {
  color: rgba(255, 255, 255, 0.95);
}
.footer-social-icon svg {
  display: block;
}
