@font-face {
  font-family: "Geist Pixel Circle";
  src: url("/fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #000000;
  --text: #ffffff;
  --muted: #8e8e8e;
  --nav-text: #2e2e2e;
  --pill-dark: #28282a;
  --sign-in-text: #c8c8c8;
  --nav-shadow: 0 4px 14px rgba(0, 0, 0, 0.16);
  --trust-bg: #28282a;
  --trust-border: rgba(255, 255, 255, 0.4);
  --trust-text: #c4c2c3;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "MedievalSharp", "Pirata One", "UnifrakturMaguntia", "Almendra Display", serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.menu-open {
  overflow: hidden;
}

/* Screen reader and crawler accessible hidden content */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Background video cover */
.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #000000;
  z-index: 0;
}

.bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  pointer-events: none;
  z-index: 0;
  opacity: 0.95;
  transition: opacity 0.4s ease;
}

/* Subtle gradient overlay to keep text ultra-legible without obscuring the Crucible, lightning & smoke */
.bg-gradient-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 18% 45%, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.4) 48%, rgba(0, 0, 0, 0.08) 85%),
              linear-gradient(to right, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 45%, rgba(0, 0, 0, 0) 75%),
              linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 22%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 18%);
}

/* Interactive Atmospheric Purple Smoke Canvas */
.smoke-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

/* Page container (1 viewport: 3 vertical regions) */
.page {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  padding: clamp(16px, 2.4vh, 28px) clamp(14px, 3.5vw, 44px);
  overflow: hidden;
}

/* ----------------------------------------------------
   1) HEADER (Desktop)
---------------------------------------------------- */
.header {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 880px;
  gap: clamp(10px, 1.6vw, 20px);
  flex-shrink: 0;
  animation: slideDown 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Logo Button */
.logo-btn {
  width: clamp(40px, 4.4vw, 46px);
  height: clamp(40px, 4.4vw, 46px);
  border-radius: 50%;
  background: rgba(20, 14, 30, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  display: grid;
  place-items: center;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
}

.logo-btn:hover {
  transform: scale(1.05);
  background: rgba(36, 22, 56, 0.8);
  border-color: rgba(192, 132, 252, 0.45);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 16px rgba(168, 85, 247, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.logo-img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  display: block;
}

/* Nav Pill (Glassy Dark) */
.nav-pill {
  background: rgba(18, 14, 28, 0.62);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  height: clamp(44px, 5.2vw, 48px);
  max-width: 640px;
  flex: 1;
  padding: 4px 6px;
  border-radius: 999px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 0 20px rgba(147, 51, 234, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  gap: 2px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-pill:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 0 25px rgba(168, 85, 247, 0.15);
}

.nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(12px, 1.05vw, 13.5px);
  letter-spacing: -0.01em;
  color: #ffffff;
  opacity: 0.72;
  text-decoration: none;
  position: relative;
  padding: 6px clamp(7px, 0.85vw, 12px);
  border-radius: 999px;
  transition: opacity 0.2s ease, color 0.2s ease, background-color 0.2s ease;
  background: transparent;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}

.nav-link:hover {
  opacity: 1;
  color: #ffffff;
  background-color: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
  opacity: 1;
  color: #ffffff;
  font-weight: 600;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #ffffff, 5px 0 0 #ffffff, 0 0 8px rgba(216, 180, 254, 0.8);
}

/* Sign In / Install Button (Glassy Dark) */
.sign-in-btn {
  background: rgba(26, 18, 40, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  height: clamp(44px, 5.2vw, 48px);
  padding: 0 clamp(16px, 2vw, 22px);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 14.5px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s ease;
  flex-shrink: 0;
  cursor: pointer;
  white-space: nowrap;
}

.sign-in-btn:hover {
  background: rgba(147, 51, 234, 0.4);
  border-color: rgba(192, 132, 252, 0.5);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 35px rgba(147, 51, 234, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}

/* Mobile Burger Button */
.mobile-burger-btn {
  display: none;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 14, 30, 0.65);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
  flex-shrink: 0;
}

.burger-bar {
  display: block;
  width: 18px;
  height: 1.5px;
  background-color: #ffffff;
  border-radius: 1px;
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease, opacity 0.2s ease;
}

.mobile-burger-btn[aria-expanded="true"] {
  background: rgba(45, 24, 75, 0.85);
  border-color: rgba(192, 132, 252, 0.4);
}

.mobile-burger-btn[aria-expanded="true"] .burger-bar {
  background-color: #ffffff;
}

.mobile-burger-btn[aria-expanded="true"] .burger-bar:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}

.mobile-burger-btn[aria-expanded="true"] .burger-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-burger-btn[aria-expanded="true"] .burger-bar:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ----------------------------------------------------
   2) HERO (Center)
---------------------------------------------------- */
.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 920px;
  width: 100%;
  flex: 1;
}

/* 3D Glassy GitHub Star Pill Badge */
.github-star-pill {
  display: inline-flex;
  align-items: center;
  gap: clamp(8px, 1.2vw, 11px);
  padding: 6px clamp(16px, 2vw, 20px) 6px 8px;
  margin-bottom: clamp(16px, 2.4vh, 26px);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 40%, rgba(147, 51, 234, 0.14) 100%), rgba(16, 10, 26, 0.72);
  backdrop-filter: blur(20px) saturate(190%);
  -webkit-backdrop-filter: blur(20px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 
    0 14px 34px -4px rgba(0, 0, 0, 0.65),
    0 4px 14px rgba(147, 51, 234, 0.2),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.45),
    inset 0 0 18px rgba(192, 132, 252, 0.12);
  position: relative;
  text-decoration: none;
  user-select: none;
  cursor: pointer;
  transform: perspective(600px) translateZ(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.github-star-pill:hover {
  transform: perspective(600px) translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.08) 40%, rgba(168, 85, 247, 0.22) 100%), rgba(28, 16, 46, 0.85);
  border-color: rgba(216, 180, 254, 0.5);
  box-shadow: 
    0 20px 42px -4px rgba(0, 0, 0, 0.75),
    0 0 28px rgba(168, 85, 247, 0.45),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.6),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.5),
    inset 0 0 24px rgba(192, 132, 252, 0.25);
}

.github-star-pill:active {
  transform: perspective(600px) translateY(-1px) scale(0.99);
}

/* Glass Specular Curved Reflection */
.gh-glass-shine {
  position: absolute;
  top: 0;
  left: 12%;
  width: 48%;
  height: 52%;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.42) 0%, rgba(255, 255, 255, 0) 72%);
  border-radius: 999px;
  pointer-events: none;
}

/* 3D Glass Icon Orb */
.gh-icon-box {
  width: clamp(28px, 3.2vw, 32px);
  height: clamp(28px, 3.2vw, 32px);
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.28) 0%, rgba(255, 255, 255, 0.06) 100%), rgba(35, 20, 55, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: clamp(14px, 1.5vw, 16px);
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.github-star-pill:hover .gh-icon-box {
  transform: scale(1.08) rotate(-4deg);
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Text */
.gh-star-text {
  font-family: var(--font-sans);
  font-size: clamp(13px, 1.4vw, 14px);
  font-weight: 500;
  color: #ffffff;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
}

/* Headline with Smooth Iridescent Color Waves */
.headline {
  font-family: var(--font-display);
  font-size: clamp(32px, 6.8vw, 86px);
  font-weight: 700;
  letter-spacing: 0.025em;
  line-height: 1.08;
  text-align: center;
  margin-bottom: clamp(14px, 2vh, 20px);
}

.headline-line {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px);
  background-image: linear-gradient(
    120deg,
    #ffffff 0%,
    #f3e8ff 14%,
    #d8b4fe 28%,
    #c084fc 42%,
    #e879f9 56%,
    #818cf8 70%,
    #38bdf8 82%,
    #f5d0fe 92%,
    #ffffff 100%
  );
  background-size: 280% 280%;
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(168, 85, 247, 0.4));
  animation: headlineFade 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             headlineColorWave 10s ease-in-out infinite alternate;
}

.headline-line.line-1 {
  animation-delay: 0.12s, 0s;
}

.headline-line.line-2 {
  animation-delay: 0.3s, -5s;
}

/* Subhead */
.subhead {
  max-width: min(560px, 92%);
  font-size: clamp(calc(13.5px + 2pt), calc(1.55vw + 2pt), calc(16.5px + 2pt));
  color: #d0d0d0;
  opacity: 0.85;
  line-height: 1.55;
  font-weight: 400;
  margin-bottom: clamp(18px, 2.5vh, 28px);
}

/* CTA Buttons — High Visibility 3D Glassy Aesthetic */
.cta-wrap {
  display: inline-flex;
  gap: 14px;
}

.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: clamp(13.5px, 1.5vw, 14.5px);
  background: linear-gradient(135deg, #ffffff 0%, #f3e8ff 50%, #ffffff 100%);
  color: #0c0716;
  padding: clamp(11px, 1.6vh, 13px) clamp(22px, 3vw, 28px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 
    0 10px 24px -3px rgba(0, 0, 0, 0.55),
    0 0 20px rgba(192, 132, 252, 0.35),
    inset 0 2px 0 rgba(255, 255, 255, 0.95),
    inset 0 -2px 0 rgba(147, 51, 234, 0.2);
  transform: perspective(600px) translateZ(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.cta-btn:hover {
  transform: perspective(600px) translateY(-3px) scale(1.02);
  background: linear-gradient(135deg, #ffffff 0%, #faf5ff 50%, #f3e8ff 100%);
  box-shadow: 
    0 16px 36px -4px rgba(0, 0, 0, 0.65),
    0 0 32px rgba(168, 85, 247, 0.55),
    inset 0 2px 0 #ffffff,
    inset 0 -2px 0 rgba(147, 51, 234, 0.3);
}

.cta-btn:active {
  transform: perspective(600px) translateY(-1px) scale(0.99);
}

.cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  text-decoration: none;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: clamp(13px, 1.4vw, 14px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.05) 40%, rgba(147, 51, 234, 0.18) 100%), rgba(20, 14, 32, 0.78);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  padding: clamp(11px, 1.6vh, 13px) clamp(20px, 2.6vw, 26px);
  border-radius: 999px;
  box-shadow: 
    0 10px 24px -4px rgba(0, 0, 0, 0.55),
    0 0 16px rgba(147, 51, 234, 0.18),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.38),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.45);
  transform: perspective(600px) translateZ(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  user-select: none;
}

.cta-btn-secondary:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.09) 40%, rgba(168, 85, 247, 0.28) 100%), rgba(30, 20, 48, 0.88);
  border-color: rgba(216, 180, 254, 0.55);
  transform: perspective(600px) translateY(-3px) scale(1.02);
  box-shadow: 
    0 16px 36px -4px rgba(0, 0, 0, 0.65),
    0 0 28px rgba(168, 85, 247, 0.45),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.55),
    inset 0 -1.5px 0 rgba(0, 0, 0, 0.5);
}

.cta-btn-secondary:active {
  transform: perspective(600px) translateY(-1px) scale(0.99);
}

/* ----------------------------------------------------
   3) STATS FOOTER — 3D Glass Interactive Tiles
---------------------------------------------------- */
.stats-footer {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(12px, 2vw, 28px);
  width: 100%;
  max-width: 940px;
  flex-shrink: 0;
  padding-top: clamp(10px, 1.5vh, 18px);
}

.stat-card {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 14px);
  padding: 8px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid transparent;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  cursor: pointer;
  user-select: none;
}

.stat-card:hover {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%), rgba(22, 16, 36, 0.7);
  border-color: rgba(255, 255, 255, 0.18);
  transform: translateY(-3px);
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.5),
    0 0 16px rgba(147, 51, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.stat-icon {
  font-family: var(--font-display);
  color: #ffffff;
  font-size: clamp(22px, 3vw, 32px);
  line-height: 1;
  flex-shrink: 0;
}

.stat-content {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-family: var(--font-sans);
  color: #ffffff;
  font-weight: 600;
  font-size: clamp(18px, 2.2vw, 26px);
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}

.stat-label {
  font-family: var(--font-sans);
  color: var(--muted);
  font-size: clamp(11px, 1.2vw, 12.5px);
  font-weight: 400;
  line-height: 1.3;
  white-space: nowrap;
}

/* ----------------------------------------------------
   ANIMATIONS
---------------------------------------------------- */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineFade {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes headlineColorWave {
  0% {
    background-position: 0% 40%;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(147, 51, 234, 0.35));
  }
  50% {
    background-position: 100% 60%;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 34px rgba(192, 132, 252, 0.55));
  }
  100% {
    background-position: 0% 40%;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 20px rgba(147, 51, 234, 0.35));
  }
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

@keyframes revealPulse {
  0% {
    opacity: 0;
    transform: translateY(22px) scale(0.98);
    filter: blur(6px);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.anim {
  opacity: 0;
  animation: reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}

.cta-wrap.anim {
  animation-name: revealPulse;
}

/* ----------------------------------------------------
   INTERACTIVE MODALS & DRAWERS (Crucible Data)
---------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 16px;
  animation: overlayIn 0.24s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-panel {
  position: relative;
  width: min(680px, 94vw);
  max-height: min(84vh, 720px);
  background: linear-gradient(145deg, rgba(28, 20, 46, 0.9) 0%, rgba(14, 10, 24, 0.96) 100%);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 
    0 32px 80px -10px rgba(0, 0, 0, 0.85),
    0 0 35px rgba(147, 51, 234, 0.2),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.28),
    inset 0 0 28px rgba(168, 85, 247, 0.06);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modalIn 0.3s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.modal-title {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 17px;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 10px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.modal-title-badge {
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.06) 100%), rgba(38, 26, 56, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  padding: 2px 9px;
  border-radius: 999px;
  color: #e4e4e7;
}

.modal-close-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(30, 20, 48, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transform: perspective(600px) translateZ(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease,
              color 0.2s ease;
}

.modal-close-btn:hover {
  transform: perspective(600px) scale(1.08) rotate(90deg);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.35) 0%, rgba(185, 28, 28, 0.2) 100%), rgba(45, 15, 25, 0.9);
  border-color: rgba(248, 113, 113, 0.6);
  box-shadow: 0 0 18px rgba(239, 68, 68, 0.5), inset 0 1px 0 rgba(254, 202, 202, 0.6);
  color: #ffffff;
}

.modal-close-btn:active {
  transform: perspective(600px) scale(0.96);
}

.modal-body {
  padding: 22px 26px 26px;
  overflow-y: auto;
  color: #e4e4e7;
  font-size: 14px;
  line-height: 1.6;
}

/* Code Copy Block in Modal — 3D Glass Surface */
.code-block {
  background: linear-gradient(180deg, rgba(12, 8, 22, 0.95) 0%, rgba(6, 4, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  padding: 12px 14px;
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.65), 0 6px 16px rgba(0, 0, 0, 0.35);
}

.code-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  color: #ffffff;
  overflow-x: auto;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

/* 3D Glassy Action Buttons inside Popups */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22) 0%, rgba(255, 255, 255, 0.06) 50%, rgba(147, 51, 234, 0.22) 100%), rgba(28, 18, 46, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  border-radius: 999px;
  padding: 7px 15px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 0 12px rgba(147, 51, 234, 0.18),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.45),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4);
  transform: perspective(600px) translateZ(0);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.2s ease,
              border-color 0.2s ease,
              box-shadow 0.2s ease,
              color 0.2s ease;
  user-select: none;
}

.copy-btn:hover {
  transform: perspective(600px) translateY(-2px) scale(1.04);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0.1) 50%, rgba(168, 85, 247, 0.32) 100%), rgba(38, 24, 60, 0.95);
  border-color: rgba(216, 180, 254, 0.65);
  box-shadow: 
    0 10px 24px rgba(0, 0, 0, 0.6),
    0 0 20px rgba(168, 85, 247, 0.5),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

.copy-btn:active {
  transform: perspective(600px) translateY(0) scale(0.98);
}

.copy-btn.copied {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.32) 0%, rgba(21, 128, 61, 0.22) 100%), rgba(12, 38, 20, 0.92);
  color: #86efac;
  border-color: rgba(74, 222, 128, 0.65);
  box-shadow: 
    0 6px 16px rgba(0, 0, 0, 0.45),
    0 0 20px rgba(34, 197, 94, 0.45),
    inset 0 1.5px 0 rgba(134, 239, 172, 0.65);
}

/* 3D Glass Cards inside modals */
.modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.modal-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%), rgba(20, 14, 32, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 
    0 6px 18px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
}

.modal-card:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.04) 100%), rgba(28, 20, 44, 0.78);
  border-color: rgba(192, 132, 252, 0.4);
  box-shadow: 
    0 10px 26px rgba(0, 0, 0, 0.45),
    0 0 18px rgba(147, 51, 234, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.modal-card-title {
  color: #ffffff;
  font-weight: 600;
  font-size: 13.5px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.modal-card-desc {
  color: #a1a1aa;
  font-size: 12.5px;
  line-height: 1.48;
}

/* Depth pill chips — 3D Glass Badges */
.depth-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  margin-right: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.depth-chip.quick {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.28) 0%, rgba(21, 128, 61, 0.18) 100%), rgba(14, 35, 22, 0.7);
  border: 1px solid rgba(74, 222, 128, 0.5);
  color: #86efac;
}

.depth-chip.review {
  background: linear-gradient(135deg, rgba(234, 179, 8, 0.28) 0%, rgba(161, 98, 7, 0.18) 100%), rgba(38, 28, 14, 0.7);
  border: 1px solid rgba(250, 204, 21, 0.5);
  color: #fef08a;
}

.depth-chip.deep {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.28) 0%, rgba(185, 28, 28, 0.18) 100%), rgba(40, 14, 18, 0.7);
  border: 1px solid rgba(248, 113, 113, 0.5);
  color: #fca5a5;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ----------------------------------------------------
   MOBILE OVERLAY & SHEET MENU (<= 720px)
---------------------------------------------------- */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: overlayIn 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-overlay[hidden] {
  display: none;
}

.mobile-menu {
  position: fixed;
  top: clamp(74px, 12vh, 90px);
  left: 50%;
  transform: translateX(-50%);
  width: min(420px, calc(100% - 32px));
  z-index: 50;
  background: rgba(18, 14, 28, 0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 28px;
  padding: 22px 18px 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 0 30px rgba(147, 51, 234, 0.12);
  display: flex;
  flex-direction: column;
  gap: 8px;
  animation: menuIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-nav-link {
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  color: #ffffff;
  text-decoration: none;
  padding: 12px 16px;
  border-radius: 14px;
  transition: background-color 0.15s ease, opacity 0.15s ease, color 0.15s ease;
  position: relative;
  text-align: center;
  opacity: 0.78;
  background: transparent;
  border: none;
  cursor: pointer;
  width: 100%;
}

.mobile-nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  opacity: 1;
  color: #ffffff;
}

.mobile-nav-link.active {
  opacity: 1;
  color: #ffffff;
  font-weight: 600;
}

.mobile-nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #ffffff;
  transform: translateX(-50%);
  box-shadow: -5px 0 0 #ffffff, 5px 0 0 #ffffff, 0 0 8px rgba(216, 180, 254, 0.8);
}

.mobile-sign-in-btn {
  margin-top: 6px;
  background: rgba(147, 51, 234, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(192, 132, 252, 0.4);
  color: #ffffff;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 15px;
  height: 48px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.mobile-sign-in-btn:hover {
  background: rgba(147, 51, 234, 0.55);
  border-color: rgba(192, 132, 252, 0.6);
  transform: translateY(-1px);
}

@keyframes overlayIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translate(-50%, -14px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
}

/* ----------------------------------------------------
   RESPONSIVE BREAKPOINTS & HERO COMPOSITION
---------------------------------------------------- */
@media (min-width: 960px) {
  .hero {
    align-items: flex-start;
    text-align: left;
    max-width: 1240px;
    margin-right: auto;
    padding-left: clamp(12px, 2.5vw, 40px);
  }

  .headline {
    text-align: left;
  }

  .subhead {
    text-align: left;
    max-width: 530px;
  }

  .cta-wrap {
    justify-content: flex-start;
  }

  .trust-row {
    align-self: flex-start;
  }

  .stats-footer {
    max-width: 1240px;
    padding-left: clamp(12px, 2.5vw, 40px);
    margin-right: auto;
  }

  .bg-video {
    object-position: 68% center;
  }
}

@media (max-width: 960px) and (min-width: 761px) {
  .header {
    gap: 8px;
    max-width: 100%;
  }
  .nav-pill {
    padding: 3px 4px;
    gap: 1px;
  }
  .nav-link {
    padding: 5px 6px;
    font-size: 11.5px;
  }
  .sign-in-btn {
    padding: 0 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 760px) {
  .nav-pill,
  .header .sign-in-btn {
    display: none;
  }

  .mobile-burger-btn {
    display: flex;
  }

  .header {
    justify-content: space-between;
    max-width: 100%;
  }

  .logo-btn {
    width: 46px;
    height: 46px;
  }

  .headline {
    letter-spacing: -0.07em;
    line-height: 1.06;
  }

  .stats-footer {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 20px;
    max-width: 440px;
  }
}

@media (max-width: 440px) {
  .trust-row {
    --trust-size: 32px;
  }

  .trust-pill {
    font-size: 11.5px;
  }

  .headline {
    letter-spacing: -0.08em;
    line-height: 1.04;
  }
  
  .cta-wrap {
    flex-direction: column;
    width: 100%;
    max-width: 280px;
  }
  
  .cta-btn, .cta-btn-secondary {
    width: 100%;
  }
}

@media (max-height: 700px) {
  .page {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .trust-row {
    margin-bottom: 8px;
  }

  .headline {
    margin-bottom: 8px;
  }

  .subhead {
    margin-bottom: 12px;
  }

  .stats-footer {
    padding-top: 6px;
  }
}

/* Accessibility: Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
  .header,
  .anim,
  .headline-line,
  .cta-wrap.anim,
  .mobile-overlay,
  .mobile-menu,
  .modal-backdrop,
  .modal-panel,
  .loader-ring {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* ====================================================
   CRUCIBLE MINIMAL LOADING SCREEN
   ==================================================== */
.loader-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 99999;
  background: #07040e;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.5s ease;
  user-select: none;
  overflow: hidden;
}

.loader-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 200px;
  text-align: center;
}

/* Minimal Logo */
.loader-logo-wrap {
  margin-bottom: 20px;
  animation: loaderPulse 2s ease-in-out infinite;
}

.loader-svg {
  display: block;
  filter: drop-shadow(0 0 10px rgba(168, 85, 247, 0.45));
}

/* Minimal Progress Track & Percent */
.loader-bar-wrap {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.loader-bar-track {
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  position: relative;
  overflow: hidden;
}

.loader-bar-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: linear-gradient(90deg, #9333ea, #c084fc 70%, #ffffff 100%);
  border-radius: 999px;
  box-shadow: 0 0 8px rgba(168, 85, 247, 0.8);
  transition: width 0.08s linear;
}

.loader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  font-family: var(--font-sans);
  font-size: 11px;
  color: #71717a;
  letter-spacing: 0.04em;
}

.loader-brand {
  font-weight: 500;
  color: #a1a1aa;
}

.loader-percent-text {
  font-family: monospace;
  font-size: 11px;
  color: #d8b4fe;
  font-weight: 600;
}

@keyframes loaderPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(192, 132, 252, 0.65));
  }
}

