/* ============================================================
   ZERO — Fresh Black & White Style Sheet
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Pure monochrome — black / white / grey */
  --bg: #050507;
  --bg-2: #0a0a0c;
  --bg-3: #111114;
  --surface: rgba(16, 16, 18, 0.78);
  --surface-2: rgba(20, 20, 22, 0.92);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f5f5f5;
  --text-dim: #9a9a9a;
  --text-mute: #666666;

  /* Accent — white */
  --accent: #ffffff;
  --accent-mint: #c8c8c8;
  --accent-glow: rgba(255, 255, 255, 0.14);
  --accent-gradient: linear-gradient(135deg, #ffffff 0%, #e6e6e6 100%);
  --accent-gradient-hover: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);

  /* Lighting — neutral white wash */
  --light-soft: rgba(255, 255, 255, 0.04);
  --light-mid: rgba(255, 255, 255, 0.1);
  --light-strong: rgba(255, 255, 255, 0.22);
  --light-beam: rgba(255, 255, 255, 0.08);
  --glow-sm: 0 0 20px rgba(255, 255, 255, 0.06);
  --glow-md: 0 0 40px rgba(255, 255, 255, 0.07), 0 0 80px rgba(255, 255, 255, 0.03);
  --glow-lg: 0 0 60px rgba(255, 255, 255, 0.08), 0 0 110px rgba(255, 255, 255, 0.04);
  --rim-light: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  --glass-bg: rgba(10, 10, 12, 0.72);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-highlight: linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0%, transparent 40%);

  --radius: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;
  --shadow: 0 24px 56px rgba(0, 0, 0, 0.7);
  --font: 'Outfit', system-ui, sans-serif;
  --display: 'Space Grotesk', 'Outfit', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Motion tokens (Emil) */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --dur-press: 140ms;
  --dur-ui: 200ms;
  --dur-reveal: 280ms;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  background-image:
    radial-gradient(ellipse 100% 70% at 50% -25%, rgba(255, 255, 255, 0.06), transparent 55%);
  background-attachment: fixed;
}

/* --- Atmosphere (minimal — no rain / floating glows) --- */
.rain-bg,
.glow,
.ambient-light {
  display: none !important;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.03 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* Soft technical grid */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: center;
  mask-image: radial-gradient(circle at 50% 40%, black, transparent 78%);
  -webkit-mask-image: radial-gradient(circle at 50% 40%, black, transparent 78%);
}

/* --- Container --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
}
.container.narrow { max-width: 800px; }

/* --- Screen-Wide Fixed / Sticky Top Navigation --- */
.site-nav, .nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: 72px;
  backdrop-filter: blur(28px) saturate(1.5);
  -webkit-backdrop-filter: blur(28px) saturate(1.5);
  background: rgba(8, 8, 12, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.site-nav::after, .nav::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.15) 25%, rgba(255, 255, 255, 0.7) 50%, rgba(255, 255, 255, 0.15) 75%, transparent 100%);
  opacity: 0.85;
  pointer-events: none;
}
.nav-container, .nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo:hover {
  opacity: 1;
  transform: translateY(-1px);
}
.logo-img {
  height: 34px;
  width: auto;
  display: block;
  box-shadow: none;
  border: none;
  outline: none;
  background: transparent;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.logo:hover .logo-img {
  transform: scale(1.04);
  box-shadow: none;
}
.logo-text {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: 0.22em;
  font-size: 19px;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 30%, #a8a8b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px 20px;
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.nav-links a {
  color: #9ea0b4;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.02em;
  position: relative;
  padding: 4px 6px;
}
.nav-links a:hover {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 255, 255, 0.6);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-discord-btn {
  background: rgba(88, 101, 242, 0.12);
  color: #c4c9ff;
  border: 1px solid rgba(88, 101, 242, 0.25);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
}
.nav-discord-btn:hover {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.5);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(88, 101, 242, 0.3);
}
.nav-panel-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-panel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.12);
}
.live-dot-mini {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2de062;
  box-shadow: 0 0 8px #2de062;
}
.nav-login-btn {
  background: linear-gradient(135deg, #ffffff 0%, #e2e2e2 100%);
  color: #050507;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.4);
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 8px;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.nav-login-btn:hover {
  background: #ffffff;
  box-shadow: 0 0 26px rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}
.nav-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-mobile-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: #ffffff;
  border-radius: 2px;
  transition: all 0.3s ease;
}
.nav-mobile-menu {
  display: none;
  background: rgba(6, 6, 10, 0.96);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 16px 24px 24px;
}
.nav-mobile-menu.active {
  display: block;
}
.nav-mob-link {
  display: block;
  padding: 12px 0;
  color: #a0a0b8;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.nav-mob-link:hover {
  color: #ffffff;
}
.nav-mob-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-discord-btn, .nav-panel-btn { display: none; }
  .nav-mobile-toggle { display: flex; }
}

/* Screen-Wide Top Navigation Bar */
#site-dock {
  width: 100%;
  position: relative;
  z-index: 100;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-ui) var(--ease-out),
    border-color var(--dur-ui) var(--ease-out),
    color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out),
    opacity var(--dur-ui) var(--ease-out);
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  position: relative;
  overflow: hidden;
  background: var(--accent-gradient);
  color: #000000;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  border: none;
}
.btn-primary::after {
  display: none;
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background: var(--accent-gradient-hover);
    box-shadow: 0 6px 28px rgba(255, 255, 255, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }
  .btn-outline:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.5);
  }
  .btn-ghost:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.04);
  }
}
.btn-outline {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.btn-ghost {
  background: transparent;
  color: var(--text-dim);
}
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.btn-lg { padding: 15px 36px; font-size: 15px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* --- Hero --- */
.hero {
  padding: 160px 0 110px;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: min(92vh, 920px);
  display: flex;
  align-items: center;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1100px;
  height: 60%;
  background: radial-gradient(ellipse 65% 55% at 50% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
  pointer-events: none;
  z-index: 2;
}
/* Seamless fade into the next section */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 180px;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(5, 5, 7, 0.65) 55%,
    var(--bg) 100%
  );
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: grayscale(1) contrast(1.05) brightness(0.5);
  opacity: 0.8;
}
.hero-vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 75% 60% at 50% 35%, transparent 0%, rgba(5, 5, 7, 0.55) 70%, var(--bg) 100%),
    linear-gradient(180deg, rgba(5, 5, 7, 0.7) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
  pointer-events: none;
}
.hero .container {
  position: relative;
  z-index: 3;
}
.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: #f0f0f5;
  margin-bottom: 28px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.badge-dot-green, .badge-dot-purple {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px #4ade80;
  animation: statusPulse 2s infinite ease-in-out;
}
.badge-title {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.badge-divider {
  opacity: 0.4;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(42px, 7.5vw, 82px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 26px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.hero-title-line1 {
  display: block;
  background: linear-gradient(
    110deg,
    #ffffff 15%,
    #a2a2b4 35%,
    #ffffff 50%,
    #8e8e9e 65%,
    #ffffff 85%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroTextShimmer 8s linear infinite;
  filter: drop-shadow(0 4px 20px rgba(0, 0, 0, 0.6));
}

.hero-title-line2 {
  display: inline-block;
  position: relative;
  background: linear-gradient(
    110deg,
    #8c8ca0 10%,
    #ffffff 35%,
    #e2e2ec 50%,
    #ffffff 65%,
    #8c8ca0 90%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroTextShimmer 8s linear infinite 1.2s;
  filter: drop-shadow(0 0 25px rgba(255, 255, 255, 0.25));
  padding-bottom: 8px;
}

.hero-title-line2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 50%, transparent 100%);
  border-radius: 999px;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.7);
  animation: heroBeamPulse 4s ease-in-out infinite;
}

@keyframes heroTextShimmer {
  0% {
    background-position: 200% center;
  }
  100% {
    background-position: -200% center;
  }
}

@keyframes heroBeamPulse {
  0%, 100% {
    opacity: 0.35;
    transform: scaleX(0.75);
  }
  50% {
    opacity: 0.95;
    transform: scaleX(1.08);
  }
}

.accent-glow {
  background: linear-gradient(135deg, #ffffff 0%, #d8d8d8 45%, #888894 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 35px rgba(255, 255, 255, 0.25);
}
.hero-sub {
  font-size: clamp(15px, 2vw, 18px);
  color: var(--text-dim);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.6;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6);
}
.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 0;
}
.hero-highlights {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  max-width: 960px;
  margin: 64px auto 0;
  text-align: left;
}
.highlight-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(12, 12, 18, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.highlight-item:hover {
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(255, 255, 255, 0.08);
}
.highlight-icon {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.highlight-item strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  font-weight: 600;
}
.highlight-item span {
  font-size: 12px;
  color: var(--text-dim);
}
@media (max-width: 900px) {
  .hero-highlights {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .hero-highlights {
    grid-template-columns: 1fr;
  }
}
.stat-num {
  font-size: 30px;
  font-weight: 800;
  font-family: var(--mono);
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #ffffff 0%, #d4d4d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-lbl {
  font-size: 11px;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-top: 6px;
}

/* --- Scroll Reveal / Slide Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-left {
  transform: translateX(-14px);
}
.reveal-left.is-visible {
  transform: translateX(0);
}
.reveal-right {
  transform: translateX(14px);
}
.reveal-right.is-visible {
  transform: translateX(0);
}
.reveal-up {
  transform: translateY(12px);
}
.reveal-up.is-visible {
  transform: translateY(0);
}
.reveal-scale {
  transform: scale(0.97) translateY(10px);
}
.reveal-scale.is-visible {
  transform: scale(1) translateY(0);
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity var(--dur-reveal) var(--ease-out),
    transform var(--dur-reveal) var(--ease-out);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 45ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 90ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 135ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 180ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 225ms; }
.reveal-stagger.is-visible > *:nth-child(7) { transition-delay: 270ms; }
.reveal-stagger.is-visible > *:nth-child(8) { transition-delay: 315ms; }

.reveal-delay-1 { transition-delay: 50ms !important; }
.reveal-delay-2 { transition-delay: 100ms !important; }
.reveal-delay-3 { transition-delay: 150ms !important; }

.nav.nav-scrolled {
  background: rgba(0, 0, 0, 0.88);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Sections --- */
.section {
  padding: 110px 0;
  position: relative;
  z-index: 2;
}
.section-dither {
  overflow: hidden;
}
.section-dither .container {
  position: relative;
  z-index: 1;
}
.dither-site-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  /* Soft scroll edges — no hard cut into neighboring sections */
  -webkit-mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    black 28%,
    black 68%,
    rgba(0, 0, 0, 0.35) 86%,
    transparent 100%
  );
  mask-image: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.35) 12%,
    black 28%,
    black 68%,
    rgba(0, 0, 0, 0.35) 86%,
    transparent 100%
  );
}
.cta.section-dither .dither-site-wash {
  opacity: 0.7;
}
.cta.section-dither::before {
  height: 180px;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.75) 28%,
    rgba(5, 5, 7, 0.35) 58%,
    transparent 100%
  );
  z-index: 1;
}
.cta.section-dither::after {
  height: 200px;
  background: linear-gradient(
    0deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.8) 30%,
    rgba(5, 5, 7, 0.35) 62%,
    transparent 100%
  );
  z-index: 1;
}
.section::before,
.section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 140px;
  pointer-events: none;
  z-index: 0;
}
.section::before {
  top: 0;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.55) 35%,
    rgba(5, 5, 7, 0.18) 70%,
    transparent 100%
  );
}
.section::after {
  bottom: 0;
  background: linear-gradient(
    0deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.45) 35%,
    rgba(5, 5, 7, 0.14) 70%,
    transparent 100%
  );
}
.section-dark {
  background:
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(10, 10, 14, 0.35) 10%,
      rgba(10, 10, 14, 0.82) 22%,
      rgba(10, 10, 14, 0.9) 50%,
      rgba(10, 10, 14, 0.82) 78%,
      rgba(10, 10, 14, 0.35) 90%,
      transparent 100%
    );
  isolation: isolate;
}
.section-dark::before {
  height: 160px;
  background: linear-gradient(
    180deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.7) 30%,
    rgba(5, 5, 7, 0.25) 65%,
    transparent 100%
  );
}
.section-dark::after {
  height: 160px;
  background: linear-gradient(
    0deg,
    var(--bg) 0%,
    rgba(5, 5, 7, 0.7) 30%,
    rgba(5, 5, 7, 0.25) 65%,
    transparent 100%
  );
}
.section > .container,
.showcase-scroll-section > .container {
  position: relative;
  z-index: 1;
}
.section-head {
  margin-bottom: 64px;
}
.section-head.center { text-align: center; }
.eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.03);
  margin-bottom: 22px;
}
.section-head h2 {
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  background: linear-gradient(to right, #ffffff, #b8b8b8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--text-mute); font-weight: 700; }

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.feature {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
  transition:
    border-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out),
    transform var(--dur-ui) var(--ease-out);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px) saturate(1.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.feature::after {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: var(--rim-light);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
  pointer-events: none;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 0%), rgba(255, 255, 255, 0.14), transparent 45%);
  opacity: 0;
  transition: opacity var(--dur-ui) var(--ease-out);
  pointer-events: none;
}
@media (hover: hover) and (pointer: fine) {
  .feature:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-2px);
    box-shadow: var(--glow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
  .feature:hover::before,
  .feature:hover::after { opacity: 1; }
  .feature:hover .feature-icon {
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition:
    border-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 4px 20px rgba(0, 0, 0, 0.3);
}
.feature h3 {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
  color: #f3f4f6;
}
.feature p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}
.mono {
  font-family: var(--mono);
  font-size: 0.88em;
  padding: 3px 7px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d4d4d4;
  border-radius: 6px;
}

/* --- Split Section --- */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.split-text h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  background: linear-gradient(135deg, #ffffff 70%, #d4d4d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--text-dim);
  margin-bottom: 36px;
  line-height: 1.65;
}
.checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.checklist li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.checklist svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #d4d4d4;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  padding: 3px;
  box-sizing: content-box;
}
.checklist strong {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.checklist span {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
}

/* --- Code Window --- */
.code-window {
  background: #0a0a0a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8), 0 0 50px rgba(255, 255, 255, 0.06);
}
.code-head {
  padding: 14px 18px;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
}
.code-dots {
  display: flex;
  gap: 7px;
}
.code-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.code-dots span:nth-child(1) { background: #ef4444; }
.code-dots span:nth-child(2) { background: #f59e0b; }
.code-dots span:nth-child(3) { background: #737373; }
.code-title {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-mute);
  flex: 1;
  text-align: center;
  padding-right: 48px;
}
.code-body {
  padding: 24px 26px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.95;
  color: #e2fdf0;
  overflow-x: auto;
  white-space: pre;
}
.c-dim { color: var(--text-mute); }
.c-cmd { color: #d4d4d4; font-weight: 500; }
.c-ok  { color: #ffffff; text-shadow: 0 0 8px rgba(255, 255, 255, 0.35); }
.c-hex { color: #ffffff; }
.c-glow {
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 255, 255, 0.4);
  letter-spacing: 0.22em;
}

/* --- Pricing --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
/* From Uiverse.io by MuhammadHasann — faithful card + rim-only spin */
.pricing-grid--two {
  grid-template-columns: repeat(2, auto);
  max-width: 60rem;
  margin: 0 auto;
  padding-top: 36px;
  justify-content: center;
  align-items: stretch;
  gap: 2.75rem;
}

.pricing-grid .card {
  --white: hsl(0, 0%, 100%);
  --black: hsl(240, 15%, 9%);
  --paragraph: hsl(0, 0%, 83%);
  --line: hsl(240, 9%, 17%);
  --primary: hsl(266, 92%, 58%);

  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  padding: 2.2rem 2rem 2.25rem;
  width: 25rem;
  max-width: 100%;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--white);
  background-color: hsl(240, 15%, 9%);
  background-image:
    radial-gradient(at 88% 40%, hsl(240, 15%, 9%) 0px, transparent 85%),
    radial-gradient(at 49% 30%, hsl(240, 15%, 9%) 0px, transparent 85%),
    radial-gradient(at 14% 26%, hsl(240, 15%, 9%) 0px, transparent 85%),
    radial-gradient(at 0% 64%, rgba(255, 255, 255, 0.04) 0px, transparent 85%),
    radial-gradient(at 41% 94%, rgba(255, 255, 255, 0.03) 0px, transparent 85%),
    radial-gradient(at 100% 99%, rgba(255, 255, 255, 0.05) 0px, transparent 85%);
  border-radius: 1.25rem;
  box-shadow: 0px -16px 24px 0px rgba(255, 255, 255, 0.12) inset;
  overflow: visible;
}

.pricing-grid .card:first-child {
  width: 25rem;
  transform: none;
  z-index: 1;
}

/* Animated border — masked so ONLY the outline shows (not the card center) */
.pricing-grid .card .card__border {
  pointer-events: none;
  position: absolute;
  z-index: 0;
  inset: -1px;
  border-radius: calc(1.25rem + 1px);
  padding: 1.5px;
  background: linear-gradient(
    0deg,
    hsl(0, 0%, 100%) -50%,
    hsl(0, 0%, 40%) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  overflow: hidden;
}

.pricing-grid .card .card__border::before {
  content: "";
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220%;
  height: 14rem;
  transform: translate(-50%, -50%) rotate(0deg);
  transform-origin: center;
  background-image: linear-gradient(
    0deg,
    hsla(0, 0%, 100%, 0) 0%,
    rgba(255, 255, 255, 0.8) 40%,
    rgba(255, 255, 255, 0.8) 60%,
    hsla(0, 0%, 40%, 0) 100%
  );
  animation: uiverse-border-rotate 8s linear infinite;
}

@keyframes uiverse-border-rotate {
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

.pricing-grid .card > *:not(.card__border) {
  position: relative;
  z-index: 1;
}

.pricing-grid .card .card_title__container {
  display: flex;
  flex-direction: column;
}

.pricing-grid .card .card_title__container .card_title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}

.pricing-grid .card .card_title__container .card_paragraph {
  margin: 0.35rem 0 0;
  width: 95%;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--paragraph);
}

.pricing-grid .card .line {
  width: 100%;
  height: 0.1rem;
  margin: 0.15rem 0;
  border: none;
  background-color: var(--line);
}

.pricing-grid .card .card__list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  margin: 0.25rem 0;
  padding: 0;
}

.pricing-grid .card .card__list .card__list_item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-grid .card .card__list .card__list_item .check {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background-color: #262632;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
}

.pricing-grid .card .card__list .card__list_item .check .check_svg {
  width: 0.85rem;
  height: 0.85rem;
  fill: var(--white);
  color: var(--white);
}

.pricing-grid .card .card__list .card__list_item .list_text {
  font-size: 0.92rem;
  color: var(--white);
  line-height: 1.35;
}

.pricing-grid .card .button {
  cursor: pointer;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  margin-top: auto;
  padding: 0.85rem 1.2rem;
  width: 100%;
  box-sizing: border-box;
  background-image: linear-gradient(
    135deg,
    #ffffff 0%,
    #e2e2e8 100%
  );
  font-size: 0.92rem;
  font-weight: 700;
  color: #050507;
  border: 0;
  border-radius: 9999px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.18);
  transition: all 0.2s ease;
}

.pricing-grid .card .button:hover {
  filter: brightness(1.1);
  box-shadow: 0 6px 26px rgba(255, 255, 255, 0.35);
  color: #000000;
  transform: translateY(-1px);
}

.pricing-featured {
  position: relative;
  box-shadow: 0 0 35px rgba(255, 255, 255, 0.1) !important;
}
.pricing-pop-badge {
  position: absolute;
  top: -14px;
  right: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #d8d8d8 100%);
  color: #050507;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.3);
  z-index: 10;
}
.pricing-price-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 2px;
}
.pricing-amount {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(180deg, #ffffff 0%, #b8b8c8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pricing-period {
  font-size: 15px;
  color: var(--text-dim);
  font-weight: 500;
}

#pricing.section-dark {
  background: transparent;
}
#pricing.section-dark::before,
#pricing.section-dark::after {
  display: none;
}

/* --- Glass fan (Uiverse codebykay101) — fan default, expand on hover/scroll --- */
.glass-fan {
  --fan: 0;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
  margin: 12px auto 0;
  padding: 48px 0 32px;
  width: 100%;
}

.glass-fan .glass {
  position: relative;
  width: 240px;
  height: 280px;
  flex-shrink: 0;
  background: linear-gradient(#fff2, transparent);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 25px rgba(0, 0, 0, 0.25);
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 280ms var(--ease-out), margin 280ms var(--ease-out);
  border-radius: 14px;
  margin: 0 calc(-60px + (72px * var(--fan)));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: rotate(calc(var(--r) * (1 - var(--fan)) * 1deg));
  z-index: 1;
}

.glass-fan .glass:nth-child(1) { z-index: 1; }
.glass-fan .glass:nth-child(2) { z-index: 2; }
.glass-fan .glass:nth-child(3) { z-index: 3; }

/* Hover + scroll-open */
.glass-fan:hover,
.glass-fan.is-open {
  --fan: 1;
}

.glass-fan .glass::before {
  content: attr(data-text);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 52px;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  border-radius: 0 0 14px 14px;
}

.glass-fan .glass svg {
  width: 2.75em;
  height: 2.75em;
  fill: none;
  stroke: #fff;
  color: #fff;
  margin-bottom: 28px;
}

@media (max-width: 640px) {
  .glass-fan {
    --fan: 1;
    flex-wrap: wrap;
    gap: 14px;
    min-height: 0;
    padding: 12px 0;
  }
  .glass-fan .glass {
    margin: 0 !important;
    transform: none !important;
    width: min(180px, 44vw);
    height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .glass-fan {
    --fan: 1;
  }
  .glass-fan .glass {
    transition: none;
  }
}

/* --- FAQ --- */
.faq {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq details {
  background: rgba(14, 14, 14, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 22px 26px;
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  backdrop-filter: blur(10px);
}
.faq details:hover {
  border-color: rgba(255, 255, 255, 0.25);
  background: rgba(14, 14, 14, 0.55);
}
.faq details[open] {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(14, 14, 14, 0.65);
  box-shadow: 0 10px 30px rgba(255, 255, 255, 0.05);
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  user-select: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 24px;
  font-weight: 300;
  color: #ffffff;
  transition: transform 0.25s;
  line-height: 1;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  color: #d4d4d4;
}
.faq p {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
}

/* --- CTA --- */
.cta { padding: 60px 0 110px; }
.cta-box {
  background: linear-gradient(160deg, rgba(30, 30, 30, 0.8) 0%, rgba(8, 8, 8, 0.95) 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(20px) saturate(1.15);
  box-shadow: var(--glow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.cta-box::after {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: var(--rim-light);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}
.cta-box::before {
  content: "";
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1), transparent 55%);
  animation: rotate 24s linear infinite;
  pointer-events: none;
}
@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.cta-box > * { position: relative; z-index: 1; }
.cta-box h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #ffffff, #d4d4d4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cta-box p {
  color: var(--text-dim);
  max-width: 520px;
  margin: 0 auto 36px;
  font-size: 16px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
  position: relative;
  border-top: none;
  padding: 90px 0 0;
  background: linear-gradient(180deg, var(--bg) 0%, #050505 28%, #050505 100%);
  overflow: hidden;
}
.footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 120px;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 7, 0.9) 0%,
    rgba(5, 5, 7, 0.35) 45%,
    transparent 100%
  );
  z-index: 0;
}
.footer-inner,
.footer-bottom {
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  padding-bottom: 44px;
}
.footer-brand p { margin-top: 14px; font-size: 14px; color: var(--text-dim); }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5e5e5;
  margin-bottom: 18px;
}
.footer-cols a {
  display: block;
  color: var(--text-mute);
  text-decoration: none;
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.15s;
}
.footer-cols a:hover { color: var(--text); }
.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  color: var(--text-mute);
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.35));
  font-size: 13px;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* --- Showcase Slideshow --- */
.showcase {
  position: relative;
}
.showcase-slides {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  min-height: 520px;
}
.showcase-slide {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 48px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px) saturate(1.1);
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(60px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: opacity 0.55s cubic-bezier(0.16, 1, 0.3, 1), transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 0;
}
.showcase-slide.active {
  opacity: 1;
  transform: translateX(0);
  box-shadow: var(--glow-md), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.showcase-slide.slide-out-left {
  opacity: 0;
  transform: translateX(-60px);
}
.showcase-slide.slide-out-right {
  opacity: 0;
  transform: translateX(60px);
}
.showcase-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #e5e5e5;
  background: rgba(255, 255, 255, 0.05);
  margin-bottom: 20px;
}
.showcase-badge svg { color: #ffffff; }
.showcase-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #ffffff 60%, #d4d4d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.showcase-desc {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 24px;
}
.showcase-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.showcase-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-dim);
}
.showcase-list svg {
  color: #d4d4d4;
  flex-shrink: 0;
}

/* Slide Controls */
.showcase-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 32px;
}
.showcase-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(14, 14, 14, 0.6);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  backdrop-filter: blur(8px);
}
.showcase-arrow:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--text);
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.08);
}
.showcase-dots {
  display: flex;
  gap: 10px;
}
.showcase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  padding: 0;
}
.showcase-dot.active {
  background: #ffffff;
  border-color: #ffffff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
  transform: scale(1.2);
}
.showcase-dot:hover:not(.active) {
  border-color: #d4d4d4;
  background: rgba(255, 255, 255, 0.2);
}

/* Device Mockups */
.showcase-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-device {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0a0a0a;
}
.showcase-device--desktop {
  width: 100%;
  max-width: 480px;
}
.showcase-device--phone {
  width: 220px;
  border-radius: 28px;
  border: 3px solid rgba(255, 255, 255, 0.25);
}
.device-bar {
  padding: 10px 14px;
  background: #111111;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  gap: 6px;
}
.device-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.device-bar span:nth-child(1) { background: #ef4444; }
.device-bar span:nth-child(2) { background: #f59e0b; }
.device-bar span:nth-child(3) { background: #737373; }
.device-notch {
  width: 100px;
  height: 22px;
  background: #0a0a0a;
  margin: 0 auto;
  border-radius: 0 0 14px 14px;
  position: relative;
  z-index: 3;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.device-screen {
  background: #0a0a0a;
}

/* Panel Mockup (Desktop) */
.panel-mock {
  display: flex;
  min-height: 260px;
}
.panel-sidebar {
  width: 52px;
  background: #111111;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  padding: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.panel-logo-mock {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-gradient);
  opacity: 0.7;
}
.panel-nav-mock {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.panel-nav-mock span {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.panel-nav-mock span.active {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.3);
}
.panel-main {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.panel-header-mock {
  width: 60%;
  height: 14px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}
.panel-grid-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

/* Toggle Mockups */
.panel-toggle-mock, .phone-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: rgba(14, 14, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-dim);
}
.toggle-track {
  width: 32px;
  height: 18px;
  border-radius: 99px;
  background: rgba(255,255,255,0.08);
  position: relative;
  transition: background 0.3s;
  flex-shrink: 0;
}
.toggle-track.sm { width: 28px; height: 16px; }
.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #555;
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.toggle-track.sm .toggle-thumb { width: 12px; height: 12px; }
.toggle-thumb.on {
  left: calc(100% - 16px);
  background: #ffffff;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}
.toggle-track.sm .toggle-thumb.on { left: calc(100% - 14px); }

/* Slider Mockups */
.panel-slider-mock, .phone-slider-area {
  padding: 8px 10px;
  background: rgba(14, 14, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  font-size: 11px;
  color: var(--text-dim);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.slider-track {
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.06);
  position: relative;
}
.slider-fill {
  height: 100%;
  border-radius: 99px;
  background: var(--accent-gradient);
}
.slider-knob {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #111111;
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.4);
}

/* Phone Mockup */
.phone-mock {
  padding: 0 0 16px;
}
.phone-status-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 16px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-dim);
}
.phone-status-icons { display: flex; gap: 4px; color: var(--text-dim); }
.phone-header-mock {
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 10px 0 14px;
  color: var(--text);
  letter-spacing: 0.12em;
  background: linear-gradient(135deg, #ffffff 50%, #a3a3a3 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.phone-toggles {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 12px;
}
.phone-slider-area {
  margin: 10px 12px 0;
}

/* Radar Mockup */
.radar-mock {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: radial-gradient(circle, #111111 0%, #000000 100%);
  overflow: hidden;
}
.radar-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 20% 20%;
}
.radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.radar-ring.ring-1 { width: 30%; height: 48%; }
.radar-ring.ring-2 { width: 55%; height: 88%; }
.radar-ring.ring-3 { width: 80%; height: 128%; }
.radar-sweep {
  position: absolute;
  top: 50%; left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.5), transparent);
  transform-origin: left center;
  animation: radar-spin 4s linear infinite;
}
@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.radar-dot {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 0 8px #ffffff, 0 0 16px rgba(255, 255, 255, 0.3);
  animation: radar-blink 2s ease-in-out infinite;
}
.dot-1 { top: 25%; left: 35%; animation-delay: 0s; }
.dot-2 { top: 60%; left: 22%; animation-delay: 0.4s; }
.dot-3 { top: 40%; left: 70%; animation-delay: 0.8s; }
.dot-4 { top: 72%; left: 58%; animation-delay: 1.2s; }
.dot-5 { top: 18%; left: 78%; animation-delay: 1.6s; }
.dot-self {
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 10px; height: 10px;
  background: #d4d4d4;
  box-shadow: 0 0 10px #d4d4d4, 0 0 20px rgba(255, 255, 255, 0.4);
  animation: none;
}
@keyframes radar-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

/* --- How It Works / Steps --- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}
.step-num {
  font-family: var(--mono);
  font-size: 48px;
  font-weight: 900;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.03));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 20px;
}
.step-connector {
  display: none;
}
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 24px;
  right: -16px;
  width: calc(100% - 80px);
  height: 1px;
  left: calc(50% + 40px);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.05));
}
.step-card {
  background: rgba(14, 14, 14, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  padding: 32px 24px;
  width: 100%;
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  backdrop-filter: blur(12px);
}
.step-card:hover {
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(255, 255, 255, 0.06);
}
.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #ffffff;
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.step-card:hover .step-icon {
  color: #d4d4d4;
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transform: scale(1.08);
}
.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--text);
}
.step-card p {
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.65;
}

/* --- Testimonials Carousel --- */
.testimonials-track-wrapper {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.testimonials-track {
  display: flex;
  gap: 24px;
  animation: scroll-testimonials 30s linear infinite;
  width: max-content;
}
@keyframes scroll-testimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.testimonials-track:hover {
  animation-play-state: paused;
}
.testimonial-card {
  flex-shrink: 0;
  width: 360px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 28px;
  backdrop-filter: blur(14px) saturate(1.1);
  transition: border-color var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out), color var(--dur-ui) var(--ease-out), opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}
.testimonial-card::before {
  content: "";
  position: absolute;
  top: 0; left: 15%; right: 15%;
  height: 1px;
  background: var(--rim-light);
  opacity: 0.4;
}
.testimonial-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: var(--glow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.testimonial-stars {
  color: #f59e0b;
  font-size: 14px;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.testimonial-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}
.testimonial-author strong {
  display: block;
  font-size: 14px;
  color: var(--text);
}
.testimonial-author span {
  font-size: 12px;
  color: var(--text-mute);
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-actions { gap: 8px; }
  .nav-actions a[href="/panel"] { display: none; }
  .nav-inner { height: 64px; gap: 10px; }
  .logo-text { font-size: 15px; letter-spacing: 0.14em; }
  .btn-sm { padding: 10px 14px; font-size: 13px; min-height: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .stat::before, .stat::after { display: none !important; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
  .pricing-grid--two { grid-template-columns: 1fr; max-width: 100%; }
  .pricing-grid .card,
  .pricing-grid .card:first-child {
    width: min(100%, 28rem);
    transform: none;
  }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
  .showcase-slide { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .showcase-slides { min-height: auto; }
  .showcase-device--desktop { max-width: 100%; }
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .step:not(:last-child)::after { display: none; }
}
@media (max-width: 600px) {
  .section { padding: 75px 0; }
  .hero { padding: 80px 0 50px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); padding: 26px; }
  .stat-num { font-size: 24px; }
  .cta-box { padding: 44px 26px; }
  .footer-cols { grid-template-columns: 1fr; gap: 26px; }
  .footer-bottom .container { flex-direction: column; gap: 12px; text-align: center; }
  .showcase-slide { padding: 24px; }
  .testimonial-card { width: 290px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }
  .nav-actions a[href="#pricing"] { display: none; }
  .nav-actions a[href="/login"] {
    background: #fff;
    color: #000;
    border-color: transparent;
  }
}

/* ============================================================
   CUSTOMER PORTAL — login.html + dashboard.html
   ============================================================ */

.portal-main {
  min-height: 100vh;
  padding: 120px 0 80px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
}

/* Portal pages: lighter GPU load (fewer stacked blurs) */
body[data-page="login"] .glow-2,
body[data-page="login"] .glow-3,
body[data-page="dashboard"] .glow-2,
body[data-page="dashboard"] .glow-3 {
  display: none;
}
.portal-main {
  position: relative;
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 0 60px;
}
.portal-main.dashboard-main {
  align-items: flex-start;
  padding: 100px 0 90px;
}
.container.narrow {
  max-width: 520px;
  width: 100%;
}

/* Ambient glow & header badge */
.portal-ambient-glow {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 450px;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.08), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.portal-header-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #99999f;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  margin-left: 14px;
  display: inline-flex;
  align-items: center;
}

/* Status chips & badges */
.portal-badge-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.status-chip.chip-online {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #34d399;
}
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 10px #10b981;
  animation: pulseDot 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}
.portal-badge-ver {
  font-family: var(--mono);
  font-size: 11px;
  color: #888892;
  padding: 3px 9px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* --- Customer Login Card --- */
.portal-wrapper {
  position: relative;
  width: 100%;
  z-index: 1;
}
.portal-card {
  background: linear-gradient(175deg, rgba(22, 22, 26, 0.94) 0%, rgba(10, 10, 12, 0.98) 100%);
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-lg);
  padding: 44px 40px 38px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(24px) saturate(1.2);
}
.card-glow-overlay {
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  pointer-events: none;
}
.portal-card-head {
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}
.portal-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.12);
}
.portal-card h1 {
  font-family: var(--display);
  font-size: 29px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.portal-sub {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 420px;
  margin: 0 auto;
}

/* Form controls & inputs */
.portal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.portal-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e5ea;
}
.label-action {
  background: none;
  border: none;
  color: #a0a0ab;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}
.label-action:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}
.portal-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.input-icon {
  position: absolute;
  left: 16px;
  color: #777782;
  pointer-events: none;
}
.portal-input {
  width: 100%;
  padding: 14px 44px 14px 44px;
  background: rgba(0, 0, 0, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out), background-color var(--dur-ui) var(--ease-out);
}
.portal-input.mono {
  font-family: var(--mono);
  font-size: 14px;
  letter-spacing: 0.08em;
}
.portal-input::placeholder {
  color: #555562;
  letter-spacing: 0.04em;
}
.portal-input:focus {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(8, 8, 10, 0.98);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12), 0 0 20px rgba(255, 255, 255, 0.08);
}
.input-clear-btn {
  position: absolute;
  right: 12px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #9999a5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
}
.input-clear-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}

/* Custom Checkbox */
.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 0;
}
.custom-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  user-select: none;
}
.custom-checkbox input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox-indicator {
  width: 17px;
  height: 17px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.custom-checkbox input:checked + .checkbox-indicator {
  background: #ffffff;
  border-color: #ffffff;
}
.custom-checkbox input:checked + .checkbox-indicator::after {
  content: "";
  width: 5px;
  height: 9px;
  border: solid #000000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-0.5px, -1px);
}
.checkbox-label {
  font-size: 13px;
  color: #b0b0bb;
}
.custom-checkbox:hover .checkbox-label {
  color: #ffffff;
}

/* Error banner */
.portal-error {
  color: #f87171;
  font-size: 13px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.28);
  display: none;
  line-height: 1.45;
}
.portal-error.is-visible {
  display: block;
  animation: errShake 0.3s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}
@keyframes errShake {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-3px, 0, 0); }
  40%, 60% { transform: translate3d(3px, 0, 0); }
}

/* Button styles & Busy state */
.btn.btn-block {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn.btn-lg {
  padding: 15px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius);
}
.btn .btn-spinner {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  margin-top: -9px;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: currentColor;
  border-radius: 50%;
  opacity: 0;
  animation: spin 0.8s linear infinite;
  pointer-events: none;
  transition: opacity 0.2s;
}
.btn.is-busy .btn-label,
.btn.is-busy .btn-arrow,
.btn.is-busy > svg {
  opacity: 0;
}
.btn.is-busy .btn-spinner {
  opacity: 1;
}
.btn.is-busy {
  pointer-events: none;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

.portal-hint {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13.5px;
  color: var(--text-dim);
  text-align: left;
  line-height: 1.5;
}
.portal-hint svg {
  flex-shrink: 0;
  margin-top: 2px;
  color: #777782;
}
.portal-hint a {
  color: #e5e5ea;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}
.portal-hint a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* Security pills below login */
.portal-security {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.sec-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  color: #9999a4;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(8px);
}
.sec-pill svg {
  color: #d1d1d8;
}

/* --- Floating Toasts --- */
.portal-toast-container {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.portal-toast {
  background: rgba(18, 18, 22, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 13.5px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: auto;
  backdrop-filter: blur(14px);
  max-width: 380px;
}
.portal-toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.portal-toast.is-hiding {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}
.portal-toast .toast-icon {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.toast-success .toast-icon { color: #10b981; }
.toast-error .toast-icon { color: #ef4444; }
.toast-info .toast-icon { color: #38bdf8; }

/* ============================================================
   DASHBOARD / COMMAND CENTER STYLES
   ============================================================ */
.dash-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
}
.dash-hero::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 140px;
  height: 2px;
  background: linear-gradient(90deg, #ffffff, transparent);
}
.dash-hero-copy h1 {
  font-family: var(--display);
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 4px 0 8px;
  background: linear-gradient(135deg, #ffffff 55%, #b0b0b0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.dash-hero .portal-sub {
  margin: 0;
  max-width: 480px;
  text-align: left;
}
.dash-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* Quick Stat Strip */
.dash-stat-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.dash-stat-card {
  background: linear-gradient(165deg, rgba(20, 20, 24, 0.7), rgba(12, 12, 14, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
  overflow: hidden;
}
.dash-stat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
}
.dash-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #7e7e89;
}
.dash-stat-val {
  display: flex;
  align-items: center;
  min-height: 26px;
}
.dash-stat-time,
.dash-stat-num {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}
.dash-stat-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.dash-stat-pill.pill-locked {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}
.dash-stat-pill.pill-ready {
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
}

/* Main Dashboard Grid */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.dash-card {
  background: linear-gradient(170deg, rgba(20, 20, 24, 0.85) 0%, rgba(10, 10, 12, 0.94) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: border-color var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out), box-shadow var(--dur-ui) var(--ease-out);
}
.dash-card.dash-in {
  animation: dash-card-in var(--dur-reveal) var(--ease-out) both;
}
.dash-card.dash-in:nth-child(1) { animation-delay: 0ms; }
.dash-card.dash-in:nth-child(2) { animation-delay: 50ms; }
.dash-card.dash-in:nth-child(3) { animation-delay: 100ms; }
.dash-card.dash-in:nth-child(4) { animation-delay: 150ms; }
.dash-card.dash-in:nth-child(5) { animation-delay: 200ms; }

@keyframes dash-card-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.dash-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  background: var(--rim-light);
  opacity: 0.45;
  pointer-events: none;
}
.dash-card:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@media (hover: hover) and (pointer: fine) {
  .dash-card:hover { transform: translateY(-2px); }
}

/* Featured Download Card */
.dash-card-featured {
  grid-column: 1 / -1;
  border-color: rgba(255, 255, 255, 0.2);
  background: linear-gradient(165deg, rgba(24, 24, 30, 0.92) 0%, rgba(12, 12, 14, 0.98) 100%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.dash-card-featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(700px 220px at 90% -10%, rgba(255, 255, 255, 0.08), transparent 65%);
  pointer-events: none;
}
.dash-card-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.dash-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.dash-card-icon-bright {
  background: #ffffff !important;
  color: #000000 !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}
.dash-card-title-group {
  flex: 1;
}
.dash-card-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  color: #34d399;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 2px;
}
.dash-card-head h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 4px;
  color: #ffffff;
}
.dash-card-sub {
  color: var(--text-dim);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Download action & quota */
.dash-dl-action-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 580px;
}
.dash-quota-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-quota-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
}
.dash-quota-fill {
  height: 100%;
  background: linear-gradient(90deg, #34d399, #10b981);
  border-radius: 999px;
  transition: width 0.4s ease;
}
.dash-quota-fill.is-full {
  background: linear-gradient(90deg, #f87171, #ef4444);
}
.dash-quota-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #888892;
}
.dash-quota-labels strong {
  color: #ffffff;
}

/* Quick 3-Step Setup */
.dash-setup-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.step-content {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.step-content strong {
  font-size: 13.5px;
  color: #ffffff;
}
.step-content span {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.45;
}
.step-content code,
.step-content kbd {
  font-family: var(--mono);
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 1px 5px;
  border-radius: 4px;
  color: #ffffff;
}
.setup-step-link {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: inherit;
  transition: all 0.15s ease;
}
.setup-step-link strong {
  color: #38bdf8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.setup-step-link:hover strong {
  color: #7dd3fc;
  text-decoration: underline;
}
.setup-step-link:hover span {
  color: #ffffff;
}

/* Fields & Keys */
.dash-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dash-field label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #e5e5ea;
}
.field-aux {
  font-size: 11.5px;
  color: #777782;
}
.field-aux.is-active {
  color: #34d399;
}
.dash-key-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.dash-key {
  flex: 1;
  font-family: var(--mono);
  font-size: 15px;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  color: var(--text);
  letter-spacing: 0.08em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dash-mono-sm {
  font-family: var(--mono);
  font-size: 13px;
  padding: 11px 14px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  color: var(--text-dim);
  word-break: break-all;
  display: block;
}

.btn-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.7);
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--dur-ui) var(--ease-out);
  flex-shrink: 0;
}
.btn-icon:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}
.btn-icon.is-flash {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.dash-meta-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.dash-meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.dash-meta label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #777782;
}
.dash-meta-val {
  font-size: 14px;
  color: #ffffff;
}
.dash-sec-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #888892;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
}
.dash-sec-note svg {
  color: #a0a0ab;
  flex-shrink: 0;
}

/* HWID Action row & hints */
.dash-hwid-action-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dash-hint {
  font-size: 12.5px;
  color: #888892;
  line-height: 1.45;
}
.dash-hint.is-ok { color: #34d399; }
.dash-hint.is-err { color: #f87171; }

.btn.is-disabled,
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

/* Radar preview card */
.dash-radar-preview {
  padding: 16px 18px;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.radar-preview-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #38bdf8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.radar-preview-status .status-dot {
  background: #38bdf8;
  box-shadow: 0 0 8px #38bdf8;
}
.radar-preview-desc {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
  margin: 0;
}

/* Community & Links */
.dash-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-link {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  transition: all var(--dur-ui) var(--ease-out);
}
.dash-link:hover {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-2px);
}
.dash-link-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}
.dash-link-text {
  flex: 1;
}
.dash-link-text strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 2px;
}
.dash-link-text span {
  display: block;
  font-size: 12.5px;
  color: #888892;
}
.dash-link-arrow {
  color: #666672;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.dash-link:hover .dash-link-arrow {
  color: #ffffff;
  transform: translateX(3px);
}

/* Responsive queries */
@media (max-width: 900px) {
  .dash-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .dash-setup-steps {
    grid-template-columns: 1fr;
    gap: 14px;
  }
}

@media (max-width: 800px) {
  .dash-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .portal-card {
    padding: 30px 22px 26px;
    margin-top: 10px;
  }
  .dash-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 18px;
  }
  .portal-main {
    padding: 24px 0 48px;
  }
  .portal-main.dashboard-main {
    padding: 24px 0 64px;
  }
  .dash-card {
    padding: 22px 20px;
    gap: 18px;
  }
  .dash-meta-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dash-key {
    font-size: 13px;
    padding: 10px 12px;
  }
  .btn-icon {
    width: 42px;
    height: 42px;
  }
}

/* --- Scroll-animated WebMenu showcase --- */
.showcase-scroll-section {
  padding-bottom: 0;
  overflow: visible;
}
.showcase-scroll-section .section-head {
  margin-bottom: 28px;
}
.panel-scroll {
  --p: 0;
  position: relative;
  z-index: 2;
}
.panel-scroll-track {
  height: 220vh;
  position: relative;
}
.panel-scroll-track::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--bg));
  z-index: 4;
}
.panel-scroll-sticky {
  position: sticky;
  top: 88px;
  height: calc(100vh - 110px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: 0 24px 40px;
  perspective: 1400px;
}
.panel-scroll-glow {
  position: absolute;
  width: min(900px, 80vw);
  height: 55%;
  top: 18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(180, 220, 255, 0.14), transparent 68%);
  filter: blur(40px);
  opacity: calc(0.25 + var(--p) * 0.55);
  pointer-events: none;
  z-index: 0;
}
.panel-scroll-frame {
  position: relative;
  z-index: 1;
  margin: 0;
  width: min(1080px, 92vw);
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(220, 230, 255, 0.14);
  background: #0a0a0e;
  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform:
    translateY(calc((1 - var(--p)) * 56px))
    scale(calc(0.82 + var(--p) * 0.18))
    rotateX(calc((1 - var(--p)) * 7deg));
  opacity: calc(0.55 + var(--p) * 0.45);
  will-change: transform, opacity;
}
.panel-scroll-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(180deg, rgba(5, 5, 7, 0.32) 0%, transparent 18%, transparent 70%, rgba(5, 5, 7, 0.5) 100%),
    linear-gradient(90deg, rgba(5, 5, 7, 0.25) 0%, transparent 14%, transparent 86%, rgba(5, 5, 7, 0.25) 100%),
    radial-gradient(ellipse 90% 80% at 50% 45%, transparent 42%, rgba(5, 5, 7, 0.38) 100%);
  opacity: calc(0.9 - var(--p) * 0.4);
}
.panel-scroll-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.07) 0%, transparent 30%, transparent 100%);
  opacity: calc(0.35 + var(--p) * 0.4);
}
.panel-scroll-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  transform: scale(calc(1.06 - var(--p) * 0.06));
  transform-origin: 50% 40%;
  will-change: transform;
  filter: contrast(1.02) brightness(0.9);
}
.panel-scroll-caption {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 480px;
  opacity: calc(clamp(0, (var(--p) - 0.12) / 0.55, 1));
  transform: translateY(calc((1 - clamp(0, (var(--p) - 0.12) / 0.55, 1)) * 18px));
}
.panel-scroll-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c8d0e4;
  border: 1px solid rgba(200, 210, 240, 0.22);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 12px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}
.panel-scroll-caption h3 {
  font-family: var(--display);
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}
.panel-scroll-caption p {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 700px) {
  .panel-scroll-track { height: 180vh; }
  .panel-scroll-sticky {
    top: 72px;
    height: calc(100vh - 90px);
    gap: 18px;
  }
  .panel-scroll-frame {
    border-radius: 14px;
    transform:
      translateY(calc((1 - var(--p)) * 36px))
      scale(calc(0.88 + var(--p) * 0.12))
      rotateX(calc((1 - var(--p)) * 5deg));
  }
}

@media (prefers-reduced-motion: reduce) {
  .panel-scroll-track { height: auto; }
  .panel-scroll-sticky { position: relative; top: 0; height: auto; padding: 24px; }
  .panel-scroll-frame,
  .panel-scroll-img,
  .panel-scroll-caption,
  .panel-scroll-glow {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
  }
  .panel-scroll-frame::before { opacity: 0.35; }
  .pricing-grid .card .card__border::before { animation: none; }
}

/* ============================================================
   MOBILE PERF — kill heavy GPU layers / fixed bg / long scroll
   ============================================================ */
@media (max-width: 900px) {
  html { scroll-behavior: auto; }
  body {
    background-attachment: scroll !important;
    background-image: none !important;
    background-color: #050507 !important;
  }
  body::before,
  .grain,
  .glow,
  .ambient-light,
  .rain-bg {
    display: none !important;
    animation: none !important;
  }
  .nav {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(5, 5, 7, 0.96) !important;
  }
  .portal-card,
  .dash-card,
  .feature,
  .pricing-grid .card,
  .cta-box,
  .faq details,
  .stat,
  .testimonial-card,
  .btn-outline {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  body[data-page="login"] .portal-card,
  body[data-page="dashboard"] .dash-card {
    background: #121218 !important;
    border-color: rgba(255,255,255,0.12);
    box-shadow: none;
    transform: none !important;
  }
  .dash-card:hover,
  .dash-link:hover {
    transform: none !important;
  }
  .btn-primary::after { display: none !important; animation: none !important; }
  .pricing-grid .card .card__border::before { animation: none !important; }
  .hero-bg-img {
    filter: none !important;
    opacity: 0.45;
    transform: translate(-50%, -50%) scale(1) !important;
  }
  .panel-scroll-track { height: auto !important; }
  .panel-scroll-sticky {
    position: relative !important;
    top: 0 !important;
    height: auto !important;
    padding: 12px 0 28px !important;
    perspective: none !important;
  }
  .panel-scroll-frame,
  .panel-scroll-img,
  .panel-scroll-caption,
  .panel-scroll-glow {
    transform: none !important;
    opacity: 1 !important;
    filter: none !important;
    will-change: auto !important;
  }
  .panel-scroll-glow { display: none !important; }
  .reveal, .reveal-stagger {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    will-change: auto !important;
  }
}

/* ============================================================
   Fresh ZERO polish — portal + motion a11y
   ============================================================ */
.portal-card-head .eyebrow {
  margin-bottom: 18px;
}
.portal-card h1 {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  color: var(--text);
  letter-spacing: -0.03em;
}
.btn-icon {
  transition:
    border-color var(--dur-ui) var(--ease-out),
    background-color var(--dur-ui) var(--ease-out),
    color var(--dur-ui) var(--ease-out),
    transform var(--dur-press) var(--ease-out);
}
.btn-icon:active {
  transform: scale(0.97);
}
.dash-link {
  transition:
    border-color var(--dur-ui) var(--ease-out),
    background-color var(--dur-ui) var(--ease-out),
    transform var(--dur-ui) var(--ease-out);
}
.pricing-grid .card .button {
  transition:
    transform var(--dur-press) var(--ease-out),
    background-color var(--dur-ui) var(--ease-out),
    box-shadow var(--dur-ui) var(--ease-out);
}
.pricing-grid .card .button:active {
  transform: scale(0.97);
}
@media (hover: hover) and (pointer: fine) {
  .pricing-grid .card .button:hover {
    transform: none;
  }
  .nav-links a:hover {
    text-shadow: none;
    color: var(--text);
  }
}
@media (prefers-reduced-motion: reduce) {
  .dash-card.dash-in,
  .badge-dot,
  .dash-live-dot {
    animation: none !important;
  }
  .glass-fan .glass {
    transition: none !important;
  }
}

