/* ═══════════════════════════════════════════════════════════════
   NX Scripts — Dark Editorial Store
   Inspired by Svdden Development aesthetic
   Font: DM Sans + DM Mono  |  Dark bg + neutral accents
═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,300&family=DM+Mono:wght@300;400;500&family=Chakra+Petch:wght@400;500;600;700&display=swap');

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

:root {
  /* Backgrounds — deep dark with purple undertone */
  --bg:            #0d0d14;
  --bg2:           #111118;
  --surface:       #16161f;
  --surface-2:     #1d1d28;
  --surface-3:     #252533;
  --surface-4:     #2e2e3e;

  /* Borders */
  --border:        #252532;
  --border-2:      #32323f;
  --border-3:      #42424f;

  /* Text */
  --text:          #eeedf2;
  --text-2:        #8e8ca8;
  --text-3:        #535268;
  --text-4:        #353448;

  /* White */
  --white:         #ffffff;
  --white-dim:     rgba(255,255,255,0.07);
  --white-subtle:  rgba(255,255,255,0.03);

  /* Purple — primary accent */
  --purple:        #7c3aed;
  --purple-light:  #a78bfa;
  --purple-bright: #8b5cf6;
  --purple-dim:    rgba(124,58,237,0.15);
  --purple-subtle: rgba(124,58,237,0.07);
  --purple-glow:   rgba(124,58,237,0.35);
  --purple-border: rgba(124,58,237,0.3);

  /* Neutral accent */
  --accent:        #a78bfa;
  --accent-dim:    rgba(167,139,250,0.12);
  --accent-subtle: rgba(167,139,250,0.05);

  /* Semantic colors */
  --green:         #3dd68c;
  --green-bg:      rgba(61,214,140,0.08);
  --red:           #f87171;
  --red-bg:        rgba(248,113,113,0.08);
  --blue:          #5b8af5;
  --blue-bg:       rgba(91,138,245,0.10);

  --sans:    'DM Sans', sans-serif;
  --mono:    'DM Mono', monospace;
  --display: 'Chakra Petch', sans-serif;

  --r:    8px;
  --r-lg: 14px;
  --r-xl: 20px;

  --ease:   cubic-bezier(0.4, 0, 0.2, 1);
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);
  --t:      0.2s;

  --shadow:    0 2px 8px rgba(0,0,0,0.4);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.6);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-3); border-radius: 99px; }

a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { letter-spacing: -0.025em; font-weight: 600; line-height: 1.2; }

code {
  font-family: var(--mono); font-size: 0.85em;
  background: var(--surface-2); color: var(--text-2);
  padding: 2px 7px; border-radius: 5px;
  border: 1px solid var(--border-2);
}

/* ── Page routing ─────────────────────────────────────────── */
.page { display: none; animation: fadeUp 0.3s var(--ease) both; }
.page.active { display: block; }

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

/* ── Eyebrow label ────────────────────────────────────────── */
.section-eyebrow, .hero-eyebrow, .spotlight-label {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; font-weight: 400;
  color: var(--accent); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 14px;
}
.section-eyebrow.center { justify-content: center; }

.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--purple-light); flex-shrink: 0;
  box-shadow: 0 0 8px var(--purple-glow);
  animation: dotPulse 2.5s ease-in-out infinite;
}
@keyframes dotPulse {
  0%,100% { opacity:1; transform:scale(1); box-shadow: 0 0 6px var(--purple-glow); }
  50%      { opacity:0.5; transform:scale(0.65); box-shadow: 0 0 14px var(--purple-glow); }
}

/* ── FiveM login button ───────────────────────────────────── */
.btn-fivem-login {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 16px;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--r); cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; transition: all var(--t);
}
.btn-fivem-login i { color: var(--accent); font-size: 13px; }
.btn-fivem-login:hover:not(:disabled) {
  background: var(--surface-4); border-color: var(--border-3);
  color: var(--white);
}
.btn-fivem-login:disabled { opacity: 0.6; cursor: wait; }

.nav-user {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 8px;
  background: var(--surface-3); border: 1px solid var(--border-2);
  border-radius: var(--r);
}
.nav-user-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--accent-dim); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 11px;
}
.nav-user-name {
  font-size: 12px; font-weight: 600; color: var(--white);
  letter-spacing: 0.02em; max-width: 120px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.nav-logout, .nav-switch {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 12px; padding: 2px 4px;
  border-radius: 4px; transition: color var(--t);
}
.nav-logout:hover { color: var(--red); }
.nav-switch:hover { color: var(--purple-light); }

#nav-auth-out, #nav-auth-in { display: flex; align-items: center; }
.ticker-wrap {
  width: 100%; overflow: hidden;
  background: linear-gradient(90deg, var(--surface-2) 0%, rgba(124,58,237,0.06) 50%, var(--surface-2) 100%);
  border-bottom: 1px solid rgba(124,58,237,0.12);
  padding: 10px 0;
  /* Edge fade */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ticker-track {
  display: flex; align-items: center; gap: 32px;
  white-space: nowrap;
  will-change: transform;
  animation: ticker 28s linear infinite;
}
.ticker-set {
  display: flex; align-items: center; gap: 32px;
  flex-shrink: 0;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(var(--ticker-offset, -50%)); }
}

.ticker-item {
  font-size: 12px; font-weight: 500;
  color: var(--text-2); letter-spacing: 0.02em;
  display: inline-flex; align-items: center; gap: 7px;
}
.ticker-item i { color: var(--purple-light); font-size: 11px; }
.ticker-item strong { color: var(--purple-light); font-weight: 600; }
.ticker-sep {
  color: var(--text-4); font-size: 14px; user-select: none;
}

/* ── Nav ──────────────────────────────────────────────────── */
#nav {
  position: sticky; top: 0; z-index: 200;
  height: 62px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: rgba(13,13,20,0.85);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-bottom: 1px solid rgba(124,58,237,0.1);
  transition: border-color var(--t), background var(--t);
}
#nav.scrolled {
  background: rgba(13,13,20,0.95);
  border-bottom-color: rgba(124,58,237,0.18);
  box-shadow: 0 1px 40px rgba(0,0,0,0.5);
}

.nav-logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav-wordmark {
  font-size: 16px; font-weight: 700;
  letter-spacing: -0.03em; color: var(--white);
  transition: opacity var(--t);
}
.nav-wordmark:hover { opacity: 0.75; }

/* Centered absolutely so it's always in the middle of the bar */
.nav-links {
  position: absolute; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 0; list-style: none;
}
.nav-links li a {
  display: block; padding: 8px 14px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  color: var(--text-3); cursor: pointer;
  transition: color var(--t); font-family: var(--sans);
  position: relative;
}
.nav-links li a::after {
  content: ''; position: absolute; bottom: 2px; left: 50%;
  width: 0; height: 1px;
  background: var(--purple-light);
  transform: translateX(-50%);
  transition: width 0.25s var(--ease);
  box-shadow: 0 0 6px var(--purple-glow);
}
.nav-links li a:hover { color: var(--text-2); }
.nav-links li a:hover::after { width: 50%; }
.nav-links li a.active { color: var(--purple-light); }
.nav-links li a.active::after { width: 60%; }

.nav-right { display: flex; align-items: center; gap: 10px; }

/* ── Cart icon button (square) ────────────────────────────── */
.btn-cart-icon {
  position: relative;
  width: 38px; height: 38px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--r); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all var(--t);
}
.btn-cart-icon:hover {
  background: var(--purple-subtle); border-color: var(--purple-border);
  color: var(--purple-light);
  box-shadow: 0 0 14px var(--purple-subtle);
}
.btn-cart-icon:active { transform: scale(0.95); }
.btn-cart-icon .cart-count {
  position: absolute; top: -6px; right: -6px;
  display: none;
  background: var(--purple); color: #fff;
  font-size: 10px; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%;
  align-items: center; justify-content: center;
  border: 2px solid var(--bg);
  box-shadow: 0 0 8px var(--purple-glow);
  animation: popIn 0.25s var(--bounce);
}
.btn-cart-icon .cart-count.show { display: flex; }

/* ── Nav Discord icon button ──────────────────────────────── */
.btn-nav-discord {
  width: 38px; height: 38px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-2);
  border-radius: var(--r); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; text-decoration: none;
  transition: all var(--t);
}
.btn-nav-discord:hover {
  background: rgba(88,101,242,0.12);
  border-color: rgba(88,101,242,0.4);
  color: #7289da;
  box-shadow: 0 0 14px rgba(88,101,242,0.2);
  transform: scale(1.05);
}
.btn-nav-discord:active { transform: scale(0.95); }

/* ── Discord button ───────────────────────────────────────── */
.btn-discord {
  display: flex; align-items: center; gap: 7px;
  padding: 8px 14px;
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r); cursor: pointer;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.05em; transition: all var(--t);
  text-decoration: none;
}
.btn-discord i { color: #5865f2; font-size: 14px; }
.btn-discord:hover { background: var(--surface-2); color: var(--white); border-color: var(--border-3); }

@keyframes popIn {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: 99px;
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; cursor: pointer; border: none;
  transition: all var(--t); user-select: none; white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

.btn-white {
  background: var(--white); color: #0d0d14;
  box-shadow: 0 0 0 0 rgba(255,255,255,0);
}
.btn-white:hover:not(:disabled) {
  background: #ece8ff;
  box-shadow: 0 0 32px rgba(167,139,250,0.2), 0 4px 16px rgba(0,0,0,0.3);
  transform: translateY(-1px);
}

.btn-purple {
  background: var(--purple); color: #fff;
  box-shadow: 0 0 20px var(--purple-glow);
}
.btn-purple:hover:not(:disabled) {
  background: var(--purple-bright);
  box-shadow: 0 0 36px var(--purple-glow), 0 4px 20px rgba(0,0,0,0.4);
  transform: translateY(-1px);
}

.btn-ghost-white {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2);
}
.btn-ghost-white:hover:not(:disabled) {
  background: var(--purple-subtle); color: var(--purple-light);
  border-color: var(--purple-border);
}

.btn-outline-white {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border-2); border-radius: var(--r);
}
.btn-outline-white:hover:not(:disabled) {
  background: var(--purple-subtle); color: var(--purple-light);
  border-color: var(--purple-border);
  box-shadow: 0 0 16px var(--purple-subtle);
}
.btn-outline-white.added {
  background: var(--green-bg); color: var(--green);
  border-color: rgba(61,214,140,0.25);
}

.btn-full { width: 100%; }
.btn-lg   { padding: 14px 28px; font-size: 13px; }
.btn-sm   { padding: 8px 16px; font-size: 11px; }

/* ── Hero ─────────────────────────────────────────────────── */

/* Full-width wrapper holds the background */
.hero-wrap {
  position: relative;
  overflow: hidden;
  min-height: 88vh;
  border-bottom: 1px solid rgba(124,58,237,0.18);
}

/* Background layer — full bleed */
.hero-bg {
  position: absolute; inset: 0;
  z-index: 0; pointer-events: none;
}

/* The grid */
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(124,58,237,0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(124,58,237,0.22) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image:
    radial-gradient(ellipse 120% 100% at 60% 40%, black 20%, rgba(0,0,0,0.4) 55%, transparent 80%);
  -webkit-mask-image:
    radial-gradient(ellipse 120% 100% at 60% 40%, black 20%, rgba(0,0,0,0.4) 55%, transparent 80%);
}

/* Glow orbs */
.hero-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.hero-orb-1 {
  width: 700px; height: 700px;
  right: -120px; top: -160px;
  background: radial-gradient(circle, rgba(124,58,237,0.32) 0%, rgba(124,58,237,0.08) 40%, transparent 70%);
  animation: orbFloat1 9s ease-in-out infinite alternate;
}
.hero-orb-2 {
  width: 420px; height: 420px;
  left: -60px; bottom: -60px;
  background: radial-gradient(circle, rgba(91,138,245,0.18) 0%, transparent 65%);
  animation: orbFloat2 12s ease-in-out infinite alternate;
}
.hero-orb-3 {
  width: 320px; height: 320px;
  left: 38%; top: 10%;
  background: radial-gradient(circle, rgba(167,139,250,0.14) 0%, transparent 65%);
  animation: orbFloat3 15s ease-in-out infinite alternate;
}
@keyframes orbFloat1 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(-35px, 45px) scale(1.1); }
}
@keyframes orbFloat2 {
  from { transform: translate(0, 0); }
  to   { transform: translate(25px, -30px); }
}
@keyframes orbFloat3 {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(20px, 25px) scale(1.08); }
}

/* Subtle horizontal scan line sweep */
.hero-scanline {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(124,58,237,0.04) 50%,
    transparent 100%
  );
  background-size: 100% 200%;
  animation: scanSweep 6s linear infinite;
}
@keyframes scanSweep {
  from { background-position: 0 -100%; }
  to   { background-position: 0 200%; }
}

/* Content grid */
.hero {
  position: relative; z-index: 1;
  min-height: 88vh;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 80px 48px;
  max-width: 1240px; margin: 0 auto;
  gap: 48px;
}

.hero-inner { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 700; color: var(--white);
  margin-bottom: 20px;
  line-height: 1.05; letter-spacing: -0.02em;
  animation: fadeUp 0.6s 0.1s var(--ease) both;
}
.hero-title .gradient-word {
  background: linear-gradient(135deg, #fff 0%, var(--purple-light) 50%, var(--purple-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-dots { color: var(--purple-light); opacity: 0.7; }

.hero-body {
  font-size: 16px; font-weight: 300; color: var(--text-2);
  line-height: 1.8; max-width: 480px;
  margin-bottom: 32px;
  animation: fadeUp 0.5s 0.2s var(--ease) both;
}

.hero-actions {
  display: flex; gap: 12px; margin-bottom: 32px;
  animation: fadeUp 0.5s 0.3s var(--ease) both;
}

/* Social proof strip */
.hero-proof {
  display: flex; align-items: center; gap: 16px;
  animation: fadeUp 0.5s 0.4s var(--ease) both;
}
.hero-proof-item {
  display: flex; align-items: center; gap: 7px;
  font-size: 12px; color: var(--text-3); font-family: var(--mono);
  letter-spacing: 0.03em;
}
.hero-proof-item i { color: var(--accent); font-size: 11px; }
.hero-proof-divider {
  width: 1px; height: 14px; background: var(--border-2); flex-shrink: 0;
}

/* Hero visual side — floating stat cards */
.hero-visual {
  position: relative; height: 420px;
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 16px; padding-left: 32px;
}

/* ── Hero Terminal ────────────────────────────────────────── */
@keyframes floatCard {
  from { transform: translateY(0px) rotate(-1deg); }
  to   { transform: translateY(-10px) rotate(-1deg); }
}
.hero-terminal {
  width: 340px;
  background: rgba(13,13,20,0.85);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124,58,237,0.35);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 0 1px rgba(124,58,237,0.15), 0 0 60px rgba(124,58,237,0.08);
  animation: floatCard 5s ease-in-out infinite alternate;
  transform: rotate(-1deg);
}
/* Title bar */
.term-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid rgba(124,58,237,0.2);
}
.term-dots { display: flex; gap: 6px; }
.term-dot {
  width: 11px; height: 11px; border-radius: 50%;
}
.term-dot--red    { background: #ff5f57; }
.term-dot--yellow { background: #ffbd2e; }
.term-dot--green  { background: #28ca41; }
.term-title {
  flex: 1; text-align: center;
  font-family: var(--mono); font-size: 11px;
  color: var(--text-3); letter-spacing: 0.05em;
}
.term-badge {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.08em; color: var(--purple-light);
  background: var(--purple-dim); border: 1px solid var(--purple-border);
  border-radius: 4px; padding: 1px 6px;
}
/* Code body */
.term-body {
  padding: 14px 0 10px;
  font-family: var(--mono); font-size: 12px; line-height: 1.8;
}
.term-line {
  display: flex; align-items: baseline; gap: 12px;
  padding: 0 14px;
  opacity: 0;
  animation: lineIn 0.25s ease forwards;
}
.tl-1  { animation-delay: 0.1s; }
.tl-2  { animation-delay: 0.3s; }
.tl-3  { animation-delay: 0.5s; }
.tl-4  { animation-delay: 0.65s; }
.tl-5  { animation-delay: 0.8s; }
.tl-6  { animation-delay: 0.9s; }
.tl-7  { animation-delay: 1.05s; }
.tl-8  { animation-delay: 1.2s; }
.tl-9  { animation-delay: 1.4s; }
.tl-10 { animation-delay: 1.6s; }
.tl-11 { animation-delay: 1.8s; }
.tl-12 { animation-delay: 2.0s; }
@keyframes lineIn {
  from { opacity: 0; transform: translateX(-4px); }
  to   { opacity: 1; transform: translateX(0); }
}
.tc-lnum  { color: rgba(255,255,255,0.18); font-size: 10px; width: 16px; flex-shrink: 0; text-align: right; user-select: none; }
.tc-comment { color: #636e7b; font-style: italic; }
.tc-kw    { color: #c792ea; }
.tc-fn    { color: #82aaff; }
.tc-str   { color: #c3e88d; }
.tc-var   { color: #e2e8f0; }
.tc-prop  { color: #f78c6c; }
.tc-op    { color: #89ddff; }
.tc-punct { color: #89ddff; }
/* Blinking cursor */
.term-cursor {
  display: inline-block; width: 7px; height: 13px;
  background: var(--purple-light); border-radius: 1px;
  vertical-align: middle; margin-left: 2px;
  animation: cursorBlink 0.9s step-end infinite;
}
/* Status footer */
.term-footer {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: rgba(124,58,237,0.06);
  border-top: 1px solid rgba(124,58,237,0.15);
  font-family: var(--mono); font-size: 10px;
  color: var(--text-3); letter-spacing: 0.05em;
}
.tf-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 6px rgba(61,214,140,0.8);
  flex-shrink: 0;
}
.tf-sep { color: rgba(255,255,255,0.15); }
.tf-right { margin-left: auto; color: var(--purple-light); font-weight: 600; }

/* Feature cards grid */
.hero-cards {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; width: 100%; max-width: 400px;
}
.hero-card {
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; align-items: flex-start; gap: 14px;
  transition: border-color var(--t), background var(--t);
  animation: fadeUp 0.5s var(--ease) both;
}
.hero-card:hover { background: var(--surface-3); border-color: var(--border-3); }
.hero-card--1 { animation-delay: 0.25s; }
.hero-card--2 { animation-delay: 0.35s; }
.hero-card--3 { animation-delay: 0.45s; }
.hero-card--4 { animation-delay: 0.55s; }

.hcard-icon {
  width: 34px; height: 34px; border-radius: var(--r);
  background: var(--surface-3); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent); font-size: 13px; flex-shrink: 0;
}
.hcard-title {
  font-size: 13px; font-weight: 600; color: var(--white);
  margin-bottom: 3px; letter-spacing: -0.01em;
}
.hcard-sub {
  font-size: 11px; color: var(--text-3);
  line-height: 1.5; font-family: var(--mono);
}

/* ── Pillars ──────────────────────────────────────────────── */
.pillars {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillar {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 28px;
  border-right: 1px solid var(--border);
  transition: background var(--t);
}
.pillar:last-child { border-right: none; }
.pillar:hover { background: var(--purple-subtle); }
.pillar-icon {
  font-size: 13px;
  color: var(--purple-light);
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px var(--purple-glow));
}
.pillar h3 { font-size: 13px; font-weight: 500; color: var(--text-2); margin: 0; }
.pillar:hover h3 { color: var(--text); }

/* ── Spotlight ────────────────────────────────────────────── */
.spotlight {
  padding: 80px 48px;
  max-width: 1240px; margin: 0 auto;
  border-bottom: 1px solid var(--border);
}
.spotlight-skeleton { padding: 24px 0; }
.spotlight-content { max-width: 680px; }
.spotlight-icon { font-size: 32px; margin-bottom: 16px; }
.spotlight-cat {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 10px;
}
.spotlight-title {
  font-size: clamp(32px, 4vw, 52px); font-weight: 700;
  color: var(--white); margin-bottom: 18px;
}
.spotlight-desc {
  font-size: 16px; font-weight: 300; color: var(--text-2);
  line-height: 1.8; margin-bottom: 32px; max-width: 560px;
}
.spotlight-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.spotlight-price-badge {
  display: inline-flex; flex-direction: column; align-items: flex-start;
  margin-top: 32px; padding: 20px 28px;
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
}
.spb-label {
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 4px;
}
.spb-price { font-size: 28px; font-weight: 700; color: var(--white); letter-spacing: -0.03em; }

/* ── Section ──────────────────────────────────────────────── */
.section {
  padding: 72px 48px;
  max-width: 1240px; margin: 0 auto;
}
.section-header-row {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.section-header-row h2 { font-size: 26px; color: var(--white); }
.see-all {
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.08em; cursor: pointer; transition: color var(--t);
}
.see-all:hover { color: var(--text-2); }

/* ── Store page header ────────────────────────────────────── */
.store-header {
  padding: 72px 48px 0; max-width: 1240px; margin: 0 auto;
  text-align: center;
}
.store-title { font-size: 40px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.store-sub   { font-size: 15px; color: var(--text-2); margin-bottom: 0; font-weight: 300; }
.pkg-count-row { margin-bottom: 20px; text-align: center; }
.pkg-count-label { font-family: var(--mono); font-size: 11px; color: var(--text-3); letter-spacing: 0.06em; }

/* ── Category pills ───────────────────────────────────────── */
.pill-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; margin-top: 24px; justify-content: center; }
.pill {
  padding: 6px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.05em;
  cursor: pointer; border: 1px solid var(--border-2);
  background: transparent; color: var(--text-3);
  font-family: var(--sans);
  transition: all var(--t);
}
.pill.active  { background: var(--purple-dim); color: var(--purple-light); border-color: var(--purple-border); box-shadow: 0 0 12px var(--purple-subtle); }
.pill:hover:not(.active) { background: var(--purple-subtle); color: var(--text-2); border-color: var(--purple-border); }

/* ── Package grid ─────────────────────────────────────────── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}

.grid-empty {
  grid-column: 1/-1; padding: 48px;
  text-align: center; color: var(--text-3);
  font-size: 13px; font-family: var(--mono);
}

/* ── Package card ─────────────────────────────────────────── */
.pkg-card {
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              border-color 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              box-shadow 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  display: flex; flex-direction: column;
  animation: cardIn 0.5s var(--ease) both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.pkg-card:nth-child(1) { animation-delay: 0.04s; }
.pkg-card:nth-child(2) { animation-delay: 0.08s; }
.pkg-card:nth-child(3) { animation-delay: 0.12s; }
.pkg-card:nth-child(4) { animation-delay: 0.16s; }
.pkg-card:nth-child(5) { animation-delay: 0.20s; }
.pkg-card:nth-child(6) { animation-delay: 0.24s; }

.pkg-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple-border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.45), 0 0 0 1px var(--purple-border), 0 0 32px rgba(124,58,237,0.15);
}
.pkg-card-image {
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.pkg-card:hover .pkg-card-image {
  transform: scale(1.04);
}

/* Best seller / featured badge */
.pkg-card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-bright) 100%);
  backdrop-filter: blur(6px);
  border: none;
  color: #fff; font-size: 10px; font-weight: 700;
  font-family: var(--mono); letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 99px;
  text-transform: uppercase;
  box-shadow: 0 0 16px var(--purple-glow);
}

/* Image hero */
.pkg-card-image {
  width: 100%; height: 180px;
  background: var(--surface-2);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  position: relative;
  flex-shrink: 0;
}
.pkg-card-image::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(0,0,0,0.6) 100%);
}
.pkg-card-image-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 48px; opacity: 0.2;
}

/* Card body */
.pkg-card-body {
  padding: 16px 18px 18px;
  display: flex; flex-direction: column; gap: 10px;
  flex: 1;
}

/* Framework tag pills */
.pkg-card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.pkg-fw-tag {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--purple-subtle); color: var(--purple-light);
  border: 1px solid var(--purple-border);
  padding: 3px 9px; border-radius: 5px;
}

/* Name & price */
.pkg-card-name {
  font-size: 15px; font-weight: 600;
  color: var(--white); letter-spacing: -0.01em;
  line-height: 1.3;
}
.pkg-card-price {
  font-size: 22px; font-weight: 700;
  color: var(--white); letter-spacing: -0.03em;
}

/* Action buttons row */
.pkg-card-actions {
  display: grid; grid-template-columns: 1fr 2fr;
  gap: 8px; margin-top: 4px; align-items: stretch;
}

.btn-view {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--r);
  background: transparent; color: var(--purple-light);
  border: 1px solid var(--purple-border);
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; cursor: pointer;
  transition: background 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              color 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
}
.btn-view:hover {
  background: var(--purple-subtle);
  border-color: var(--purple-light);
  color: #fff;
  box-shadow: 0 0 16px rgba(124,58,237,0.2);
}
.btn-view:active { opacity: 0.8; }

.pkg-basket-wrap {
  width: 100%; display: flex; align-items: stretch;
}

.btn-basket {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 12px; border-radius: var(--r);
  background: var(--purple); color: #fff;
  border: 1px solid var(--purple-bright);
  font-family: var(--sans); font-size: 12px; font-weight: 700;
  letter-spacing: 0.05em; cursor: pointer;
  width: 100%;
  transition: background 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
}
.btn-basket:hover {
  background: var(--purple-bright);
  box-shadow: 0 0 20px rgba(124,58,237,0.35);
  border-color: var(--purple-light);
}
.btn-basket:active { opacity: 0.85; }

.qty-ctrl {
  display: flex; align-items: stretch;
  background: var(--surface-3); border: 1px solid var(--purple-border);
  border-radius: var(--r); overflow: hidden; width: 100%;
  transition: border-color 0.25s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow 0.25s cubic-bezier(0.25,0.46,0.45,0.94);
}
.qty-ctrl:hover {
  border-color: var(--purple-light);
  box-shadow: 0 0 16px rgba(124,58,237,0.2);
}
.qty-btn {
  background: none; border: none; cursor: pointer;
  color: var(--purple-light); font-size: 15px; font-weight: 600;
  padding: 8px 13px; line-height: 1;
  transition: background 0.2s ease, color 0.2s ease;
}
.qty-btn:hover:not(:disabled) {
  background: var(--purple-subtle); color: #fff;
}
.qty-btn:disabled { opacity: 0.25; cursor: default; }
.qty-num {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--white); flex: 1; text-align: center;
  display: flex; align-items: center; justify-content: center;
}

/* ── Skeletons ────────────────────────────────────────────── */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 50%, var(--surface-2) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite;
}
.skel-card {
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.skel-image  { width: 100%; height: 180px; }
.skel-body   { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; }
.skel-tags   { display: flex; gap: 6px; }
.skel-tag    { height: 22px; width: 64px; border-radius: 5px; }
.skel-line   { height: 12px; margin-bottom: 4px; border-radius: 4px; }
.skel-line.w-40  { width: 40%; }
.skel-line.w-60  { width: 60%; }
.skel-line.w-80  { width: 80%; }
.skel-line.w-100 { width: 100%; }
.skel-price  { height: 28px; width: 80px; border-radius: 4px; }
.skel-btns   { display: grid; grid-template-columns: 1fr 2fr; gap: 8px; margin-top: 4px; }
.skel-btn    { height: 38px; border-radius: var(--r); }

/* ── Trusted communities ──────────────────────────────────── */
.trusted {
  padding: 72px 0 64px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  overflow: hidden;
}
.trusted-title {
  font-size: 26px; font-weight: 700;
  color: var(--white); margin-bottom: 10px;
  letter-spacing: -0.025em;
}
.trusted-sub {
  font-size: 13px; color: var(--text-3);
  font-family: var(--mono); letter-spacing: 0.04em;
  margin-bottom: 48px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.trusted-sub::before {
  content: '';
  display: inline-block; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent); opacity: 0.5;
}
.trusted-marquee {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.trusted-track {
  display: flex;
  align-items: center;
  gap: 80px;
  width: max-content;
  animation: marquee-scroll 18s linear infinite;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trusted-track img {
  height: 56px;
  width: auto;
  object-fit: contain;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
}
.testimonials {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
}
.testimonials-title {
  font-size: 32px; font-weight: 700; color: var(--white);
  margin-bottom: 40px; text-align: center;
}

.testimonial-carousel,
.tcar-viewport,
.tcar-track,
.tcar-arrow { display: none; } /* Remove old carousel elements */

/* ── Testimonial fade-up stack ────────────────────────────── */
.tcar-wrap {
  position: relative;
  max-width: 780px; margin: 0 auto;
  min-height: 280px;
}

.tcar-card {
  position: absolute; inset: 0;
  background: var(--surface-2);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 40px 44px;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  pointer-events: none;
}
.tcar-card::before {
  content: '';
  position: absolute; top: 0; left: 44px; right: 44px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-3), transparent);
}
.tcar-card::after {
  content: '\201C';
  position: absolute; top: 16px; right: 36px;
  font-size: 96px; line-height: 1;
  color: var(--border-2);
  font-family: Georgia, serif;
  pointer-events: none; user-select: none;
}
.tcar-card.active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.tcar-card.exiting {
  opacity: 0;
  transform: translateY(-16px);
  position: absolute; inset: 0;
}

.tcar-stars {
  display: flex; gap: 5px; margin-bottom: 22px;
  color: #fbbf24; font-size: 14px;
}
.tcar-quote {
  font-size: 15px; font-weight: 300; color: var(--text-2);
  line-height: 1.9; margin-bottom: 32px;
  position: relative; z-index: 1;
}
.tcar-author {
  display: flex; align-items: center; gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.tcar-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--surface-3); border: 1px solid var(--border-2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--accent);
}
.tcar-name   { font-size: 14px; font-weight: 600; color: var(--white); }
.tcar-rating { font-size: 12px; color: var(--accent); font-family: var(--mono); margin-top: 3px; }

.tcar-dots {
  display: flex; gap: 8px; justify-content: center; margin-top: 28px;
}
.tcar-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--border-3); border: none; cursor: pointer;
  transition: all 0.3s var(--ease);
}
.tcar-dot.active {
  background: var(--accent); transform: scale(1.4);
  box-shadow: 0 0 8px rgba(200,196,187,0.35);
}

/* ── FAQ ──────────────────────────────────────────────────── */
.faq-section {
  padding: 80px 48px;
  border-top: 1px solid var(--border);
  max-width: 800px; margin: 0 auto;
}
.faq-title { font-size: 32px; font-weight: 700; color: var(--white); margin-bottom: 40px; text-align: center; }
.faq-list  { display: flex; flex-direction: column; }
.faq-item  { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0;
  background: none; border: none; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 500; color: var(--text);
  transition: color var(--t);
}
.faq-q:hover { color: var(--white); }
.faq-item.open .faq-q { color: var(--white); }
.faq-icon { font-size: 13px; color: var(--text-3); flex-shrink: 0; transition: color var(--t); }
.faq-item.open .faq-icon { color: var(--white); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height 0.3s var(--ease);
}
.faq-a p {
  font-size: 14px; color: var(--text-2); line-height: 1.8;
  padding-bottom: 20px;
}
.faq-a strong { color: var(--text); font-weight: 600; }

/* ── Product page ─────────────────────────────────────────── */
.breadcrumb {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; color: var(--text-3);
  letter-spacing: 0.06em;
}
.breadcrumb a { color: var(--text-2); cursor: pointer; }
.breadcrumb a:hover { color: var(--white); }
.breadcrumb-sep { opacity: 0.3; }

/* Hero banner */
.product-hero {
  position: relative;
  min-height: 260px;
  display: flex; align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.product-hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  filter: blur(18px) brightness(0.35) saturate(0.7);
  transform: scale(1.05);
}
.product-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, var(--bg) 0%, transparent 55%),
    linear-gradient(to right, rgba(124,58,237,0.12) 0%, transparent 60%);
}
.product-hero-inner {
  position: relative; z-index: 1;
  max-width: 1100px; width: 100%; margin: 0 auto;
  padding: 32px 48px 44px;
}
.breadcrumb--hero { margin-bottom: 20px; }
.product-eyebrow {
  font-family: var(--mono); font-size: 10px; color: var(--accent);
  text-transform: uppercase; letter-spacing: 0.12em;
  margin-bottom: 10px;
}
.product-title {
  font-family: var(--display);
  font-size: 40px; font-weight: 700; color: var(--white);
  letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.1;
}
.product-hero-price {
  font-size: 26px; font-weight: 600; color: var(--white);
  letter-spacing: -0.03em; opacity: 0.9;
}

/* Two-column layout */
.product-layout {
  max-width: 1100px; margin: 0 auto;
  padding: 48px 48px 80px;
  display: grid; grid-template-columns: 1fr 340px; gap: 56px;
  align-items: start;
}
/* Product image gallery */
.prod-gallery {
  margin-bottom: 36px;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  background: var(--surface-2);
}
.prod-gallery-main {
  width: 100%; aspect-ratio: 16 / 9;
  background-size: cover; background-position: center;
  background-color: var(--surface-2);
}
.prod-gallery-thumbs {
  display: flex; gap: 4px; padding: 6px;
  background: var(--surface-3); border-top: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.prod-gallery-thumbs::-webkit-scrollbar { display: none; }
.prod-thumb {
  width: 64px; height: 44px; flex-shrink: 0;
  border-radius: 5px; border: 2px solid transparent;
  background-size: cover; background-position: center;
  cursor: pointer; opacity: 0.45;
  transition: opacity var(--t), border-color var(--t);
}
.prod-thumb:hover { opacity: 0.75; }
.prod-thumb.active { opacity: 1; border-color: var(--white); }

.product-section-head {
  font-size: 11px; font-family: var(--mono);
  color: var(--text-3); text-transform: uppercase; letter-spacing: 0.1em;
  margin: 0 0 16px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.product-main > .product-section-head + * { margin-bottom: 36px; }
.product-desc {
  font-size: 15px; color: var(--text-2); line-height: 1.85;
  margin-bottom: 40px;
}
.product-desc p { margin-bottom: 12px; }

.feature-list { margin-bottom: 40px; }
.feature-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 11px 0; border-bottom: 1px solid var(--border);
  font-size: 14px; color: var(--text-2);
}
.feature-item:last-child { border-bottom: none; }
.feature-check {
  width: 20px; height: 20px; border-radius: 50%; flex-shrink: 0;
  background: var(--green-bg);
  display: flex; align-items: center; justify-content: center; margin-top: 1px;
}
.feature-check svg { width: 11px; height: 11px; stroke: var(--green); stroke-width: 2.5; fill: none; }

/* Sidebar */
.product-sidebar {
  position: sticky; top: 76px;
  background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--shadow-md), 0 0 40px var(--purple-subtle);
}
.sidebar-price {
  font-family: var(--display);
  font-size: 38px; font-weight: 700; color: var(--white);
  letter-spacing: -0.03em; margin-bottom: 4px;
}
.sidebar-note  { font-size: 12px; color: var(--text-3); font-family: var(--mono); margin-bottom: 0; }
.sidebar-hr { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.sidebar-actions { display: flex; flex-direction: column; gap: 8px; }
.sidebar-meta { display: flex; flex-direction: column; gap: 10px; }
.meta-row { display: flex; justify-content: space-between; font-size: 12px; }
.meta-key { color: var(--text-3); font-family: var(--mono); letter-spacing: 0.04em; }
.meta-val { color: var(--text-2); }
.meta-val.ok { color: var(--green); font-weight: 500; }

/* Gift button & form */
.btn-gift-toggle {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--purple-light); font-family: var(--mono);
  letter-spacing: 0.04em; padding: 6px 0;
  display: flex; align-items: center; gap: 7px;
  opacity: 0.7;
  transition: opacity var(--t), color var(--t);
}
.btn-gift-toggle:hover { opacity: 1; color: #fff; }
.gift-form {
  display: none;
  margin-top: 16px;
  background: var(--purple-subtle);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-lg);
  padding: 18px;
}
.gift-form.open { display: block; }
.gift-form-heading {
  font-size: 13px; font-weight: 600; color: var(--white);
  margin-bottom: 6px; display: flex; align-items: center; gap: 8px;
}
.gift-form-sub {
  font-size: 12px; color: var(--text-3); line-height: 1.6; margin-bottom: 14px;
}
.gift-form .form-input { margin-bottom: 12px; }
.gift-form-btns { display: flex; flex-direction: column; gap: 8px; }
.btn-gift-cancel {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--text-3); font-family: var(--mono);
  padding: 4px 0; text-align: center;
  transition: color var(--t);
}
.btn-gift-cancel:hover { color: var(--text-2); }

/* ── Cart ─────────────────────────────────────────────────── */
.cart-overlay {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(0,0,0,0);
  display: none; justify-content: flex-end;
  backdrop-filter: blur(0px);
  transition: background 0.28s var(--ease), backdrop-filter 0.28s var(--ease);
}
.cart-overlay.open {
  display: flex;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(4px);
}
.cart-overlay.open .cart-panel { animation: slideIn 0.3s var(--ease) both; }
.cart-overlay.closing .cart-panel { animation: slideOut 0.26s var(--ease) forwards; }

@keyframes slideIn {
  from { transform: translateX(105%); opacity: 0.6; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes slideOut {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(105%); opacity: 0; }
}

.cart-panel {
  width: 420px; max-width: 100vw; height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border-2);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.cart-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header-eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--text-2); letter-spacing: 0.1em;
}
.cart-close {
  width: 30px; height: 30px;
  background: var(--surface-2); border: 1px solid var(--border-2); border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--text-2);
  transition: all var(--t);
}
.cart-close:hover { background: var(--surface-3); color: var(--white); }

.cart-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.cart-empty { text-align: center; padding: 56px 0; }
.cart-empty-icon { font-size: 36px; opacity: 0.3; margin-bottom: 12px; }
.cart-empty p { font-size: 13px; color: var(--text-3); font-family: var(--mono); }

.cart-item {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
  animation: fadeUp 0.2s both;
}
.cart-item:last-child { border-bottom: none; }
.cart-item-icon {
  width: 44px; height: 44px; border-radius: var(--r);
  background: var(--surface-2); border: 1px solid var(--border-2);
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-name  { font-size: 14px; font-weight: 500; color: var(--white); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-gift  { font-size: 11px; color: var(--purple-light); font-family: var(--mono); margin-bottom: 3px; }
.cart-item-gift i { margin-right: 3px; }
.cart-item-price { font-size: 12px; color: var(--text-3); font-family: var(--mono); }
.cart-item-remove {
  background: none; border: none; cursor: pointer;
  color: var(--text-4); font-size: 16px; padding: 4px; border-radius: 5px; line-height: 1;
  transition: color var(--t);
}
.cart-item-remove:hover { color: var(--red); }

.cart-footer { padding: 20px 24px; border-top: 1px solid var(--border); }
.cart-total-row {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px;
}
.cart-total-label  { font-size: 13px; color: var(--text-2); font-family: var(--mono); }
.cart-total-amount { font-size: 24px; font-weight: 700; color: var(--white); letter-spacing: -0.03em; }

/* ── Checkout Simple ──────────────────────────────────────── */
.checkout-simple {
  max-width: 600px;
  margin: 64px auto 120px;
  padding: 0 24px;
}
.checkout-title {
  font-family: var(--display);
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 700; color: var(--white);
  margin-bottom: 6px; letter-spacing: -0.03em;
}

.form-group { margin-bottom: 14px; }
.form-label {
  display: block; font-family: var(--mono); font-size: 10px; font-weight: 500;
  color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 7px;
}
.form-input {
  width: 100%; padding: 11px 14px;
  background: var(--surface-2); border: 1px solid var(--border-2);
  border-radius: var(--r); font-size: 14px;
  font-family: var(--sans); color: var(--text);
  outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.form-input:focus {
  border-color: var(--border-3);
  box-shadow: 0 0 0 3px rgba(255,255,255,0.04);
}
.form-input::placeholder { color: var(--text-4); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.tebex-badge {
  display: flex; align-items: center; gap: 9px;
  background: rgba(124,58,237,0.06); border: 1px solid var(--purple-border);
  border-radius: var(--r); padding: 11px 16px;
  font-size: 11.5px; color: var(--text-3); font-family: var(--mono);
  margin-top: 16px; letter-spacing: 0.01em;
}
.tebex-badge svg { flex-shrink: 0; color: var(--purple-light); }

.checkout-error {
  color: #f87171; font-size: 12px; font-family: var(--mono);
  margin-top: 12px; padding: 11px 16px;
  background: rgba(248,113,113,0.07); border: 1px solid rgba(248,113,113,0.2);
  border-radius: var(--r); display: none;
}
.checkout-error.show { display: block; }

.order-summary {
  background: rgba(124,58,237,0.05);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-lg); padding: 28px;
  box-shadow: 0 0 40px rgba(124,58,237,0.08);
  margin-bottom: 16px;
}
.order-line {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 0; border-bottom: 1px solid rgba(255,255,255,0.05);
}
.order-line:last-of-type { border-bottom: none; padding-bottom: 0; }
.order-line-thumb {
  width: 52px; height: 52px; border-radius: 8px; flex-shrink: 0;
  object-fit: cover; background: var(--surface-2);
  border: 1px solid var(--purple-border);
}
.order-line-info { flex: 1; min-width: 0; }
.order-line-name {
  font-size: 14px; color: var(--white); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.order-line-qty { font-size: 11px; color: var(--text-3); font-family: var(--mono); margin-top: 3px; }
.order-line-price {
  font-weight: 700; font-family: var(--display);
  font-size: 15px; color: var(--purple-light); flex-shrink: 0;
}
.order-total {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--purple-border);
  font-weight: 700; margin-top: 8px;
  font-size: 14px; color: var(--text-2); font-family: var(--mono);
  letter-spacing: 0.04em; text-transform: uppercase;
}
#order-total {
  font-size: 26px; letter-spacing: -0.03em;
  font-family: var(--display); color: var(--white);
}

/* ── Success ──────────────────────────────────────────────── */
.success-wrap {
  max-width: 440px; margin: 80px auto;
  padding: 0 48px; text-align: center;
}
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--green-bg); border: 1px solid rgba(61,214,140,0.2);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
  animation: popIn 0.4s var(--bounce);
}
.success-icon svg { width: 30px; height: 30px; }
.success-eyebrow {
  font-family: var(--mono); font-size: 10px; color: var(--text-3);
  letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px;
}
.success-wrap h2 { font-size: 28px; color: var(--white); margin-bottom: 12px; }
.success-wrap p  { color: var(--text-2); font-size: 14px; margin-bottom: 28px; line-height: 1.75; }

/* ── Docs ─────────────────────────────────────────────────── */
.docs-layout {
  max-width: 760px; margin: 0 auto; padding: 52px 48px 80px;
}
.docs-layout h1 { font-size: 32px; color: var(--white); margin-bottom: 10px; }
.docs-lead      { color: var(--text-2); font-size: 15px; margin-bottom: 40px; }
.doc-block {
  background: var(--surface); border: 1px solid var(--border-2);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 14px;
}
.doc-block h2 { font-size: 15px; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.doc-block p, .doc-block li { font-size: 14px; color: var(--text-2); line-height: 1.8; }
.doc-block strong { color: var(--text); }

.endpoint-list   { display: flex; flex-direction: column; gap: 6px; }
.endpoint {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 14px; border-radius: var(--r);
  background: var(--surface-2); font-family: var(--mono); font-size: 12px;
  border: 1px solid var(--border);
}
.method { padding: 2px 8px; border-radius: 4px; font-size: 10px; font-weight: 700; flex-shrink: 0; text-transform: uppercase; letter-spacing: 0.04em; }
.method.get  { background: var(--green-bg); color: var(--green); }
.method.post { background: var(--blue-bg);  color: var(--blue);  }
.endpoint-path { flex: 1; color: var(--text); }
.endpoint-desc { color: var(--text-3); font-size: 11px; }

/* ── Code blocks ──────────────────────────────────────────── */
.code-block {
  background: #060606; color: #c8c4bc;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75;
  border-radius: var(--r-lg); padding: 20px 22px;
  overflow-x: auto; margin: 16px 0;
  border: 1px solid var(--border);
}
.c-comment { color: #3a3a38; }
.c-key     { color: #a0c4ff; }
.c-str     { color: #b9f0b0; }
.c-num     { color: #ffb3b3; }
.c-fn      { color: #d4b8ff; }

/* ── Cart Toast (rich add-to-cart notification) ───────────── */
#cart-toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 500;
  width: 340px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.03);
  overflow: hidden;
  transform: translateY(20px) scale(0.96);
  opacity: 0; pointer-events: none;
  transition: all 0.35s var(--bounce);
}
#cart-toast.show { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }

.ct-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  background: rgba(61,214,140,0.07);
  border-bottom: 1px solid rgba(61,214,140,0.12);
}
.ct-added {
  font-size: 11px; font-weight: 600; font-family: var(--mono);
  color: var(--green); letter-spacing: 0.06em;
  display: flex; align-items: center; gap: 6px;
}
.ct-close {
  background: none; border: none; cursor: pointer;
  color: var(--text-3); font-size: 13px;
  padding: 3px 5px; border-radius: 5px; line-height: 1;
  transition: color var(--t);
}
.ct-close:hover { color: var(--text); }

.ct-body { display: flex; }

.ct-gallery {
  width: 130px; flex-shrink: 0;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--border);
  background: var(--surface-2);
}
.ct-img-main {
  flex: 1; min-height: 95px;
  background-size: cover; background-position: center;
  background-color: var(--surface-3);
}
.ct-img-placeholder {
  width: 130px; height: 95px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-4); font-size: 28px;
}
.ct-thumbs {
  display: flex; gap: 3px; padding: 5px;
  background: var(--surface-3); border-top: 1px solid var(--border);
  overflow-x: auto; scrollbar-width: none;
}
.ct-thumbs::-webkit-scrollbar { display: none; }
.ct-thumb {
  width: 30px; height: 22px; flex-shrink: 0;
  border: 1px solid var(--border-2); border-radius: 3px;
  background-size: cover; background-position: center;
  cursor: pointer; opacity: 0.45;
  transition: opacity var(--t), border-color var(--t);
}
.ct-thumb.active { opacity: 1; border-color: var(--white); }

.ct-info {
  flex: 1; padding: 14px 15px; min-width: 0;
  display: flex; flex-direction: column; gap: 6px;
}
.ct-name {
  font-size: 13px; font-weight: 600; color: var(--white);
  line-height: 1.35;
}
.ct-price {
  font-size: 20px; font-weight: 700; color: var(--white);
  font-family: var(--mono); letter-spacing: -0.02em; line-height: 1;
}

/* ── Toast (small — errors / generic messages) ────────────── */
#toast {
  position: fixed; bottom: 28px; right: 28px; z-index: 501;
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--border-2);
  padding: 12px 18px; border-radius: var(--r-lg);
  font-size: 13px; font-weight: 500; font-family: var(--mono);
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.95);
  opacity: 0; pointer-events: none;
  transition: all 0.3s var(--bounce);
}
#toast.show { transform: translateY(0) scale(1); opacity: 1; }
#toast.toast-success { background: var(--green-bg); color: var(--green); border-color: rgba(61,214,140,0.2); }
#toast.toast-error   { background: var(--red-bg);   color: var(--red);   border-color: rgba(248,113,113,0.2); }

/* ── Page loader ──────────────────────────────────────────── */
#page-loader {
  position: fixed; inset: 0; z-index: 999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.4s, visibility 0.4s;
}
#page-loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { animation: dotPulse 1s infinite; }
.loader-mark {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 700; color: #000;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 52px 48px 0;
}
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 48px;
}
.footer-wordmark {
  display: block; font-size: 18px; font-weight: 700;
  color: var(--white); letter-spacing: -0.03em; margin-bottom: 12px;
}
.footer-brand { max-width: 420px; }
.footer-brand p {
  font-size: 12px; color: var(--text-3); font-family: var(--mono);
  line-height: 1.75;
}
.footer-cols { display: flex; gap: 56px; flex-shrink: 0; }
.footer-col {
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col-head {
  font-size: 10px; font-weight: 600; font-family: var(--mono);
  color: var(--text-4); letter-spacing: 0.12em; text-transform: uppercase;
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 13px; color: var(--text-3); cursor: pointer;
  transition: color var(--t); display: flex; align-items: center; gap: 6px;
}
.footer-col a:hover { color: var(--text-2); }
.footer-bottom {
  max-width: 1240px; margin: 32px auto 0;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  font-size: 11px; color: var(--text-4); font-family: var(--mono);
}

/* Legal pages */
.legal-layout {
  max-width: 720px; margin: 0 auto; padding: 64px 48px 100px;
}
.legal-layout h1 { font-size: 36px; margin: 12px 0 6px; }
.legal-updated { font-size: 12px; color: var(--text-3); font-family: var(--mono); margin-bottom: 40px; }
.legal-body h2 {
  font-size: 14px; font-weight: 600; color: var(--white);
  margin: 32px 0 10px; letter-spacing: -0.01em;
}
.legal-body p {
  font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 8px;
}
.legal-body a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--white); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 64px 32px; }
  .hero-visual { display: none; }
  .hero-proof { flex-wrap: wrap; gap: 12px; }
  .pillars { grid-template-columns: repeat(2,1fr); }
  .pillar { border-bottom: 1px solid var(--border); }
}
@media (max-width: 768px) {
  #nav { padding: 0 20px; }
  .nav-links { display: none; }
  .btn-discord { display: none; }
  .hero { padding: 48px 20px; grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .spotlight { padding: 48px 20px; }
  .section, .store-header { padding-left: 20px; padding-right: 20px; }
  .trusted { padding: 48px 0; }
  .testimonials, .faq-section { padding: 48px 20px; }
  .tcar-card { padding: 24px 20px; }
  .tcar-arrow { display: none; }
  .product-hero-inner { padding: 24px 20px 36px; }
  .product-layout { grid-template-columns: 1fr; padding: 28px 20px 60px; }
  .product-sidebar { position: static; }
  .checkout-layout { grid-template-columns: 1fr; padding: 24px 20px 60px; }
  .docs-layout { padding: 40px 20px 60px; }
  .footer-inner { flex-direction: column; }
  .footer-cols { gap: 32px; }
  footer { padding: 40px 20px 0; }
  .legal-layout { padding: 40px 20px 80px; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: none; }
  .package-grid { grid-template-columns: 1fr; }
  .hero-actions, .spotlight-actions { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 480px) {
  .promo-banner { font-size: 12px; padding: 10px 40px 10px 12px; }
  .hero-title { font-size: 36px; }
  .form-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════════════════════
   ANIMATION SYSTEM — scroll reveal + micro-interactions
═══════════════════════════════════════════════════════════ */

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.delay-1 { transition-delay: 0.1s; }
.reveal.delay-2 { transition-delay: 0.2s; }
.reveal.delay-3 { transition-delay: 0.3s; }
.reveal.delay-4 { transition-delay: 0.4s; }
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Reduced motion — skip all animations */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* (hero bg orbs handled by .hero-orb-* elements) */

/* Shimmer on cards (overriding existing) */
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Floating glow orbs in the product hero */
.product-hero::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 90% 50%, rgba(124,58,237,0.1) 0%, transparent 60%);
}

/* Purple glow pulse on active nav link */
@keyframes navGlow {
  0%, 100% { text-shadow: 0 0 8px rgba(167,139,250,0.4); }
  50%       { text-shadow: 0 0 16px rgba(167,139,250,0.8); }
}
.nav-links li a.active { animation: navGlow 3s ease-in-out infinite; }

/* Cart count badge purple glow */
.cart-count.show {
  background: var(--purple);
  box-shadow: 0 0 10px var(--purple-glow);
}

/* Testimonial card purple accent border on active */
.tcar-card.active {
  border-color: var(--purple-border) !important;
  box-shadow: 0 0 0 1px var(--purple-subtle), 0 8px 40px rgba(0,0,0,0.4) !important;
}

/* FAQ open state purple accent */
.faq-item.open .faq-q { color: var(--purple-light); }
.faq-item.open .faq-icon { color: var(--purple-light); }

/* Pill active state */
.pill.active {
  background: var(--purple-dim);
  color: var(--purple-light);
  border-color: var(--purple-border);
  box-shadow: 0 0 12px var(--purple-subtle);
}

/* Spotlight price badge purple */
.spotlight-price-badge {
  border-color: var(--purple-border) !important;
  background: linear-gradient(135deg, var(--surface) 0%, var(--purple-subtle) 100%) !important;
}

/* Store header eyebrow */
.store-header .section-eyebrow { color: var(--purple-light); }

/* Nav wordmark purple shimmer on hover */
.nav-wordmark {
  background: linear-gradient(90deg, var(--white) 0%, var(--purple-light) 50%, var(--white) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  transition: background-position 0.4s var(--ease);
}
.nav-wordmark:hover { background-position: right center; opacity: 1; }

/* Footer purple hover on links */
.footer-col a:hover { color: var(--purple-light) !important; }
.footer-wordmark {
  background: linear-gradient(135deg, var(--white) 0%, var(--purple-light) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Form input focus purple */
.form-input:focus {
  border-color: var(--purple-border) !important;
  outline: none;
  box-shadow: 0 0 0 3px var(--purple-subtle) !important;
}

/* Cart item image icon sizing */
.cart-item-icon {
  border-radius: var(--r) !important;
  overflow: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   ANIMATION UPGRADE — NX Scripts
   ═══════════════════════════════════════════════════════════════ */

/* ── Scroll progress bar ──────────────────────────────────────── */
#scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--purple), var(--purple-light), #f43f5e);
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 9999;
  pointer-events: none;
  transition: transform 0.08s linear;
}

/* ── Button shimmer sweep ─────────────────────────────────────── */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute; top: 0; left: -120%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.5s ease;
  pointer-events: none;
}
.btn:hover::after { left: 160%; }


/* ── Staggered card entrance ──────────────────────────────────── */
@keyframes cardRise {
  from { opacity: 0; transform: translateY(28px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.pkg-card { animation: cardRise 0.45s var(--ease) both; }
.pkg-card:nth-child(1)  { animation-delay: 0ms; }
.pkg-card:nth-child(2)  { animation-delay: 60ms; }
.pkg-card:nth-child(3)  { animation-delay: 120ms; }
.pkg-card:nth-child(4)  { animation-delay: 180ms; }
.pkg-card:nth-child(5)  { animation-delay: 240ms; }
.pkg-card:nth-child(6)  { animation-delay: 300ms; }
.pkg-card:nth-child(7)  { animation-delay: 360ms; }
.pkg-card:nth-child(8)  { animation-delay: 420ms; }
.pkg-card:nth-child(n+9){ animation-delay: 480ms; }

/* ── Glitch text ──────────────────────────────────────────────── */
@keyframes glitch-1 {
  0%,90%,100% { clip-path: none; transform: none; }
  91%  { clip-path: polygon(0 10%,100% 10%,100% 35%,0 35%); transform: translateX(-4px) skewX(-3deg); }
  93%  { clip-path: polygon(0 55%,100% 55%,100% 75%,0 75%); transform: translateX(4px)  skewX(3deg);  }
  95%  { clip-path: polygon(0 5%, 100% 5%, 100% 20%,0 20%); transform: translateX(-2px); }
  97%  { clip-path: none; transform: none; }
}
@keyframes glitch-2 {
  0%,90%,100% { clip-path: none; transform: none; opacity: 0; }
  91%  { clip-path: polygon(0 40%,100% 40%,100% 60%,0 60%); transform: translateX(6px); opacity: 0.7; color: #f43f5e; }
  93%  { clip-path: polygon(0 70%,100% 70%,100% 90%,0 90%); transform: translateX(-6px); opacity: 0.7; color: var(--purple-light); }
  95%  { clip-path: none; opacity: 0; }
}
.glitch-text {
  position: relative;
  display: inline-block;
  animation: glitch-1 8s steps(1) infinite;
}
.glitch-text::before {
  content: 'NX Scripts';
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
  animation: glitch-2 8s steps(1) infinite;
  pointer-events: none;
}

/* ── Enhanced hero orb ────────────────────────────────────────── */
@keyframes orbPulse {
  0%,100% { opacity: 0.55; transform: scale(1); }
  50%     { opacity: 0.8;  transform: scale(1.08); }
}
.hero-orb-1 { animation: orbFloat1 7s ease-in-out infinite, orbPulse 4s ease-in-out infinite; }
.hero-orb-2 { animation: orbFloat2 9s ease-in-out infinite, orbPulse 5s ease-in-out infinite 1s; }
.hero-orb-3 { animation: orbFloat3 6s ease-in-out infinite, orbPulse 6s ease-in-out infinite 2s; }

/* ── Floating particles in hero ───────────────────────────────── */
@keyframes particleDrift {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-80px) translateX(20px); opacity: 0; }
}
.hero-particle {
  position: absolute;
  width: 2px; height: 2px;
  border-radius: 50%;
  background: var(--purple-light);
  pointer-events: none;
  animation: particleDrift linear infinite;
  opacity: 0;
}

/* ── Reveal animation upgrade ─────────────────────────────────── */
@keyframes revealUp {
  from { opacity: 0; transform: translateY(40px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0);    filter: blur(0); }
}
.reveal { opacity: 0; }
.revealed { animation: revealUp 0.6s var(--ease) both; }


/* ── Stat counter number flash ────────────────────────────────── */
@keyframes countFlash {
  0%   { color: var(--purple-light); text-shadow: 0 0 20px var(--purple-glow); }
  100% { color: var(--white); text-shadow: none; }
}
.hfc-value.counting { animation: countFlash 0.8s ease-out forwards; }

/* ── Page enter fade ──────────────────────────────────────────── */
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.page.active-page { animation: pageFadeIn 0.3s var(--ease) both; }

/* ── Cursor blink on hero body text ───────────────────────────── */
@keyframes cursorBlink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0; }
}
.typed-cursor {
  display: inline-block;
  width: 2px; height: 1em;
  background: var(--purple-light);
  margin-left: 3px;
  vertical-align: middle;
  animation: cursorBlink 0.9s step-end infinite;
  border-radius: 1px;
}

/* ── Pill bar animations ─────────────────────────────────────── */
.pill {
  transition: background 0.22s cubic-bezier(0.25,0.46,0.45,0.94),
              color       0.22s cubic-bezier(0.25,0.46,0.45,0.94),
              border-color 0.22s cubic-bezier(0.25,0.46,0.45,0.94),
              box-shadow  0.22s cubic-bezier(0.25,0.46,0.45,0.94),
              transform   0.18s cubic-bezier(0.34,1.56,0.64,1);
}
.pill:hover:not(.active) { transform: translateY(-2px) scale(1.03); }
.pill:active             { transform: scale(0.94); transition-duration: 0.08s; }
.pill.active             { transform: translateY(-1px) scale(1.02); }

/* ── Grid tab-switch fade ────────────────────────────────────── */
@keyframes gridFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.grid-switching {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}
#store-grid:not(.grid-switching) {
  animation: gridFadeIn 0.22s cubic-bezier(0.25,0.46,0.45,0.94) both;
}

/* ── Basket button ↔ qty-ctrl swap animations ────────────────── */
@keyframes swapIn {
  from { opacity: 0; transform: scale(0.88) translateY(4px); }
  to   { opacity: 1; transform: scale(1)    translateY(0); }
}
@keyframes swapOut {
  from { opacity: 1; transform: scale(1)    translateY(0); }
  to   { opacity: 0; transform: scale(0.88) translateY(-4px); }
}
.btn-swap-in  { animation: swapIn  0.2s cubic-bezier(0.34,1.56,0.64,1) both; }
.btn-swap-out { animation: swapOut 0.16s ease both; pointer-events: none; }

/* ── Login modal ─────────────────────────────────────────────── */
.login-modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, backdrop-filter 0.25s ease;
}
.login-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.login-modal-overlay .login-modal {
  transform: scale(0.9) translateY(20px);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1),
              opacity 0.25s ease;
}
.login-modal-overlay.open .login-modal {
  transform: scale(1) translateY(0);
  opacity: 1;
}

.login-modal {
  position: relative;
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--purple-border);
  border-radius: var(--r-xl);
  padding: 40px 36px 32px;
  width: 100%; max-width: 400px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.6), 0 0 0 1px var(--purple-border), 0 0 60px rgba(124,58,237,0.12);
}

/* Ambient glow orb behind content */
.lm-orb {
  position: absolute; top: -60px; left: 50%; transform: translateX(-50%);
  width: 260px; height: 260px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.lm-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--surface-3); border: 1px solid var(--border-2);
  border-radius: var(--r); width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text-3); font-size: 13px;
  transition: background 0.2s ease, color 0.2s ease;
}
.lm-close:hover { background: var(--surface-4); color: var(--white); }

.lm-icon {
  width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 20px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-bright) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: #fff;
  box-shadow: 0 8px 24px rgba(124,58,237,0.4), 0 0 0 1px rgba(255,255,255,0.08);
}

.lm-title {
  font-size: 22px; font-weight: 700;
  color: var(--white); letter-spacing: -0.02em;
  margin: 0 0 10px;
}
.lm-sub {
  font-size: 13px; color: var(--text-3); line-height: 1.6;
  margin: 0 0 22px;
}

.lm-features {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 8px;
  text-align: left;
}
.lm-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--text-2);
}
.lm-features li i {
  color: var(--purple-light); font-size: 11px; flex-shrink: 0;
  width: 16px; height: 16px;
  background: var(--purple-subtle); border: 1px solid var(--purple-border);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}

.lm-btn {
  width: 100%; padding: 14px;
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-bright) 100%);
  color: #fff; border: none; border-radius: var(--r);
  font-family: var(--sans); font-size: 14px; font-weight: 700;
  letter-spacing: 0.04em; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  box-shadow: 0 4px 20px rgba(124,58,237,0.35);
  margin-bottom: 12px;
}
.lm-btn:hover  { opacity: 0.92; box-shadow: 0 8px 28px rgba(124,58,237,0.5); transform: translateY(-1px); }
.lm-btn:active { transform: scale(0.97); }
.lm-btn:disabled { opacity: 0.5; cursor: wait; transform: none; }

.lm-cancel {
  background: none; border: none; cursor: pointer;
  font-size: 12px; color: var(--text-4);
  font-family: var(--sans); padding: 4px;
  transition: color 0.2s ease;
}
.lm-cancel:hover { color: var(--text-2); }

/* ── Support page ────────────────────────────────────────────── */
.support-layout {
  max-width: 900px; margin: 0 auto;
  padding: 40px 32px 120px;
  display: flex; flex-direction: column; align-items: center; gap: 48px;
}

.support-header { text-align: center; }
.support-header .section-eyebrow { margin-bottom: 6px; }
.support-title {
  font-size: 48px; font-weight: 800;
  color: var(--white); letter-spacing: -0.03em;
  margin: 0 0 14px;
}
.support-sub {
  font-size: 15px; color: var(--text-3); max-width: 440px; line-height: 1.6;
}

.support-cards {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 20px; width: 100%;
}

.support-card {
  background: linear-gradient(145deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-2);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex; flex-direction: column; gap: 20px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s cubic-bezier(0.25,0.46,0.45,0.94);
  align-self: stretch;
}
.support-card:hover {
  border-color: var(--purple-border);
  box-shadow: 0 16px 48px rgba(0,0,0,0.4), 0 0 0 1px var(--purple-border), 0 0 32px rgba(124,58,237,0.1);
  transform: translateY(-4px);
}

.scard-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.scard-icon--discord {
  background: linear-gradient(135deg, #5865f2 0%, #7289da 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(88,101,242,0.4);
}
.scard-icon--ticket {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-bright) 100%);
  color: #fff;
  box-shadow: 0 6px 20px rgba(124,58,237,0.4);
}

.scard-body { display: flex; flex-direction: column; gap: 14px; flex: 1; }
.scard-body .scard-btn { margin-top: auto; }

.scard-title {
  font-size: 18px; font-weight: 700;
  color: var(--white); letter-spacing: -0.01em; margin: 0;
}
.scard-desc {
  font-size: 13px; color: var(--text-3); line-height: 1.65; margin: 0;
}

.scard-steps {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 10px;
}
.scard-steps li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--text-3); line-height: 1.5;
}
.scard-steps li i {
  color: var(--purple-light); font-size: 8px; margin-top: 5px; flex-shrink: 0;
}

.scard-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; border-radius: var(--r);
  font-family: var(--sans); font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-decoration: none; border: none; cursor: pointer;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, transform 0.18s cubic-bezier(0.34,1.56,0.64,1);
  width: 100%; text-align: center;
}
.scard-btn--discord {
  background: #5865f2; color: #fff;
  box-shadow: 0 4px 16px rgba(88,101,242,0.35);
}
.scard-btn--discord:hover {
  opacity: 0.9; box-shadow: 0 8px 24px rgba(88,101,242,0.5); transform: translateY(-1px);
}
.scard-btn--purple {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-bright) 100%);
  color: #fff;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}
.scard-btn--purple:hover {
  opacity: 0.9; box-shadow: 0 8px 24px rgba(124,58,237,0.5); transform: translateY(-1px);
}
.scard-btn:active { transform: scale(0.97); }

.scard-tip {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; color: var(--text-4); margin: 0; line-height: 1.5;
}
.scard-tip i { color: var(--purple-light); flex-shrink: 0; }

.support-note {
  font-size: 13px; color: var(--text-3);
  display: flex; align-items: center; gap: 8px;
}
.support-note i { color: var(--purple-light); }
.support-note strong { color: var(--text-2); }

@media (max-width: 640px) {
  .support-cards { grid-template-columns: 1fr; }
  .support-title  { font-size: 36px; }
}

/* ── Sidebar buy button pulse ─────────────────────────────────── */
@keyframes buyPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(124,58,237,0.4); }
  50%     { box-shadow: 0 0 0 8px rgba(124,58,237,0); }
}
.prod-sidebar .btn-white {
  animation: buyPulse 2.5s ease-out infinite;
}

/* ── Footer link underline slide ─────────────────────────────── */
.footer-col a {
  position: relative;
}
.footer-col a::after {
  content: '';
  position: absolute; bottom: -2px; left: 0;
  width: 0; height: 1px;
  background: var(--purple-light);
  transition: width 0.25s var(--ease);
}
.footer-col a:hover::after { width: 100%; }

/* ── Respect reduced motion ───────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}