/* =========================================
   BASE — shared by all pages (nav, footer, tokens, auras, keyframes)
   ========================================= */

:root {
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-body: 'Nunito', 'Inter', system-ui, sans-serif;
  --font-jakarta: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Space Mono', 'Fragment Mono', monospace;
}

html,
body {
  background: #F6F8FE;
  color: #3A3847;
  font-family: var(--font-body);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(104, 87, 217, 0.25);
  color: #121D3A;
}

/* ---------- BG patterns & auras ---------- */
.bg-grid-lines {
  background-image:
    linear-gradient(rgba(104, 87, 217, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(104, 87, 217, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
}

.bg-grid-pattern {
  background-image: radial-gradient(circle at 1px 1px, rgba(216, 222, 255, 0.10) 1px, transparent 0);
  background-size: 24px 24px;
}

.aura-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(90px);
  opacity: .55;
  pointer-events: none;
  will-change: transform;
}

.aura-a {
  background: radial-gradient(circle, #8686E8 0%, transparent 70%);
}

.aura-b {
  background: radial-gradient(circle, #B8C0F4 0%, transparent 70%);
}

.aura-c {
  background: radial-gradient(circle, #CF4F27 0%, transparent 70%);
  opacity: .35;
}

.aura-d {
  background: radial-gradient(circle, #259C50 0%, transparent 70%);
  opacity: .25;
}

/* ---------- Keyframes ---------- */
@keyframes animationIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.reveal-section:not(.is-visible) [class*="animationIn"] {
  opacity: 0 !important;
  animation: none !important;
  transform: translateY(30px);
  filter: blur(8px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-section [class*="animationIn"] {
    opacity: 1 !important;
    animation: none !important;
    transform: none !important;
    filter: none !important;
  }
}

@keyframes beam {
  0% { left: -100%; }
  100% { left: 100%; }
}

@keyframes dotty {
  0%, 100% { opacity: .25; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.4); }
}

.animate-dotty {
  animation: dotty 1.2s ease-in-out infinite;
}

@keyframes aura-drift {
  0% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.1); }
  66% { transform: translate(-30px, 40px) scale(0.95); }
  100% { transform: translate(0, 0) scale(1); }
}

.animate-aura {
  animation: aura-drift 18s ease-in-out infinite;
}

/* ---------- Display gradients ---------- */
.gradient-display {
  background: linear-gradient(135deg, #6857D9 0%, #8686E8 45%, #B8C0F4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gradient-display-accent {
  background: linear-gradient(90deg, #6857D9, #8686E8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Section eyebrow ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .7);
  border: 1px solid #D9DEFF;
  padding: .25rem .75rem;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #31388D;
  backdrop-filter: blur(8px);
}

/* =========================================
   FLOATING PILL NAVBAR
   ========================================= */
.nav-float-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1rem 0;
  pointer-events: none;
}

.nav-float-shell > * {
  pointer-events: auto;
}

.nav-float-halo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 5.625rem;
  pointer-events: none;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  background: linear-gradient(to bottom, rgba(246, 248, 254, 0.55) 0%, rgba(246, 248, 254, 0.15) 75%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
}

.nav-pill {
  position: relative;
  width: 100%;
  max-width: 76rem;
  height: 4rem;
  border-radius: 1.5rem;
  background: rgba(246, 248, 254, .6);
  border: 1px solid rgba(216, 222, 255, .55);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 10px 30px -16px rgba(18, 29, 58, .25), inset 0 1px 0 rgba(255, 255, 255, .7);
}

.nav-pill-refract {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 0%, rgba(255, 255, 255, .35), transparent 55%),
    radial-gradient(120% 80% at 80% 100%, rgba(132, 148, 244, .22), transparent 55%);
  mix-blend-mode: screen;
  opacity: .9;
}

.nav-link-pill {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  height: 2.5rem;
  padding: 0 .95rem;
  border-radius: 9999px;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: -0.00875rem;
  color: #4D4B5C;
  transition: color .25s ease, background .25s ease, box-shadow .25s ease;
  cursor: pointer;
}

.nav-link-pill:hover {
  color: #31388D;
  background: rgba(104, 87, 217, .08);
}

.nav-link-pill.active {
  color: #31388D;
  background: linear-gradient(180deg, rgba(217, 222, 255, .6), rgba(237, 241, 253, .4));
  box-shadow: inset 0 0 0 1px rgba(104, 87, 217, .18);
}

.nav-divider {
  width: 1px;
  height: 2rem;
  background: linear-gradient(180deg, transparent, rgba(104, 87, 217, .35), transparent);
}

.nav-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: .75rem;
  border: 1px solid rgba(216, 222, 255, .9);
  background: #FFFFFF;
  color: #31388D;
  box-shadow: 0 1px 2px 0 rgba(16, 24, 40, 0.05);
  transition: transform .25s, box-shadow .25s, color .25s;
}

.nav-icon-btn:hover {
  transform: translateY(-1px);
  color: #6857D9;
  box-shadow: 0 8px 20px -6px rgba(104, 87, 217, .35);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  height: 2.5rem;
  padding: 0 1.1rem;
  border-radius: .75rem;
  background: linear-gradient(164.83deg, #8686E8 3.64%, #31388D 96.36%);
  color: #fff;
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: -0.00875rem;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 10px 25px -10px rgba(104, 87, 217, .55);
  transition: transform .25s, box-shadow .25s, filter .25s;
  cursor: pointer;
}

.nav-cta:hover {
  transform: translateY(-1px);
  filter: saturate(115%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 16px 35px -12px rgba(104, 87, 217, .75);
}

/* Mobile drawer */
.nav-mobile-drawer {
  position: fixed;
  top: 5.5rem;
  left: 1rem;
  right: 1rem;
  z-index: 49;
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, .85);
  border: 1px solid rgba(216, 222, 255, .8);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  box-shadow: 0 30px 70px -25px rgba(18, 29, 58, .35);
  padding: .75rem;
  transform-origin: top center;
  transform: translateY(-12px) scale(.97);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .3s cubic-bezier(.2, .8, .2, 1);
}

.nav-mobile-drawer.open {
  transform: translateY(0) scale(1);
  opacity: 1;
  pointer-events: auto;
}

.nav-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: .85rem 1rem;
  border-radius: .9rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: #1B2C58;
  transition: background .2s ease, color .2s ease;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  background: rgba(104, 87, 217, .08);
  color: #31388D;
}

/* =========================================
   FOOTER
   ========================================= */
.footer-heading {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #B8C0F4;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-heading::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background: #6857D9;
  box-shadow: 0 0 8px rgba(104, 87, 217, .65);
}

.footer-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  color: #D9DEFF;
  transition: color .25s ease, transform .25s ease;
  padding: 4px 0;
}

.footer-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 1px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, #8686E8, #B8C0F4);
  transition: width .3s ease;
}

.footer-link:hover {
  color: #FFFFFF;
  transform: translateX(2px);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 222, 255, .25) 20%, rgba(216, 222, 255, .25) 80%, transparent);
}

.social-icon {
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(216, 222, 255, .15);
  color: #D9DEFF;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.social-icon:hover {
  transform: translateY(-3px) rotate(-4deg);
  background: #6857D9;
  color: #FFFFFF;
  border-color: #6857D9;
  box-shadow: 0 14px 30px -10px rgba(104, 87, 217, .6);
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(216, 222, 255, .18);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: #D9DEFF;
  backdrop-filter: blur(8px);
  transition: background .25s ease, border-color .25s ease, transform .25s ease;
}

a.footer-status-pill:hover {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(216, 222, 255, .35);
  transform: translateY(-1px);
}

.footer-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #53C371;
  box-shadow: 0 0 0 0 rgba(83, 195, 113, .55);
  animation: dotty 1.6s ease-in-out infinite;
}

.wordmark-mega {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.06em;
  font-size: clamp(80px, 18vw, 220px);
  line-height: .85;
  background: linear-gradient(180deg, rgba(216, 222, 255, .14) 0%, rgba(104, 87, 217, .04) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  pointer-events: none;
  user-select: none;
  white-space: nowrap;
}
