/* ==========================================================================
   ARCADIA GAMES BOT — NEXT-GEN DESIGN SYSTEM (2026 RELEASE)
   Crafted with Popular Web Designs, Linear/Stripe Aesthetics & Framer Motion
   ========================================================================== */

/* --- 1. LOCAL PIXEL / GEIST FONTS --- */
@font-face {
  font-family: 'PixelDisplay';
  src: url('fonts/PixelDisplay.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

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

/* --- 2. CSS VARIABLES & DESIGN TOKENS --- */
:root {
  /* Dark Obsidian / Violet Palette */
  --bg-black: #06050a;
  --bg-surface: #0c0a14;
  --bg-card: #120e1e;
  --bg-card-hover: #181328;
  --bg-card-elevated: #1f1933;

  /* Hairline Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --border-glow: rgba(139, 92, 246, 0.4);
  --border-cyan: rgba(6, 182, 212, 0.4);

  /* Vivid Arcade Accents */
  --primary: #8b5cf6;          /* Neon Violet */
  --primary-light: #a78bfa;
  --primary-dark: #6d28d9;
  --primary-glow: rgba(139, 92, 246, 0.35);

  --pink: #ec4899;             /* Arcade Neon Pink */
  --pink-light: #f472b6;
  --pink-glow: rgba(236, 72, 153, 0.35);

  --cyan: #06b6d4;             /* Cyber Cyan */
  --cyan-light: #22d3ee;
  --cyan-glow: rgba(6, 182, 212, 0.35);

  --emerald: #10b981;          /* Live / Victory Green */
  --emerald-glow: rgba(16, 185, 129, 0.35);

  --amber: #f59e0b;            /* Champion Gold */
  --amber-glow: rgba(245, 158, 11, 0.35);

  /* Typography Colors */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Font Stacks */
  --font-sans: 'Cairo', 'IBM Plex Sans Arabic', system-ui, -apple-system, sans-serif;
  --font-display: 'PixelDisplay', 'GeistPixelCircle', 'Geist Mono', monospace;

  /* Geometry & Layout */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;
  --container-max: 1200px;
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- 3. RESET & BASE --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-black);
  color: var(--text-primary);
  font-family: var(--font-sans);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--primary);
  color: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

img, video {
  display: block;
  max-width: 100%;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-black);
}
::-webkit-scrollbar-thumb {
  background: #27203d;
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

/* --- 4. AMBIENT BACKGROUND SYSTEM --- */
.bg-ambient-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.14;
  filter: blur(14px) saturate(1.8);
}

.bg-ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 10%, rgba(139, 92, 246, 0.12) 0%, transparent 60%),
              radial-gradient(circle at 85% 35%, rgba(236, 72, 153, 0.08) 0%, transparent 50%),
              radial-gradient(circle at 15% 75%, rgba(6, 182, 212, 0.08) 0%, transparent 55%),
              linear-gradient(180deg, rgba(6, 5, 10, 0.7) 0%, rgba(6, 5, 10, 0.95) 70%, var(--bg-black) 100%);
}

.bg-ambient-grid {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 80%);
}

/* --- 5. PAGE CONTAINER & TYPOGRAPHY --- */
.page-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.content-container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.font-tech {
  font-family: var(--font-display);
  letter-spacing: 0.05em;
}

.gradient-text-hero {
  background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 50%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-purple {
  background: linear-gradient(135deg, #a78bfa 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fde68a 0%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- 6. NAVIGATION BAR --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(6, 5, 10, 0.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: background var(--transition-smooth), border-color var(--transition-smooth);
}

.site-header.scrolled {
  background: rgba(10, 8, 18, 0.88);
  border-bottom-color: var(--border-strong);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-anchor {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-avatar-box {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  padding: 2px;
  background: linear-gradient(135deg, var(--primary), var(--pink));
  box-shadow: 0 0 16px var(--primary-glow);
  flex-shrink: 0;
}

.brand-avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-md) - 2px);
}

.brand-live-dot {
  position: absolute;
  bottom: -2px;
  right: -2px;
  width: 12px;
  height: 12px;
  background: var(--emerald);
  border: 2px solid var(--bg-black);
  border-radius: var(--radius-pill);
  box-shadow: 0 0 8px var(--emerald-glow);
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.brand-badge-pill {
  font-size: 0.65rem;
  color: var(--primary-light);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-links-list {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
  position: relative;
  padding-block: 0.25rem;
}

.nav-link:hover, .nav-link.active {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: var(--radius-pill);
  transition: width var(--transition-fast);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-header-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.55);
}

.btn-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  font-size: 1.15rem;
}

/* Mobile Drawer */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 72px;
  inset-inline: 0;
  background: rgba(12, 10, 20, 0.98);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border-strong);
  padding: 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 99;
}

.mobile-nav-drawer.open {
  display: flex;
  animation: slideDown 0.25s ease-out;
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- 7. BUTTONS & CHIPS SYSTEM --- */
.btn-cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary) 0%, #6366f1 50%, var(--pink) 100%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 24px -4px rgba(139, 92, 246, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.35);
  transition: all var(--transition-fast);
}

.btn-cta-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px -4px rgba(139, 92, 246, 0.7);
}

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

.btn-cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  transition: all var(--transition-fast);
}

.btn-cta-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary-light);
  transform: translateY(-3px);
  color: #ffffff;
}

/* --- 8. HERO SECTION --- */
.hero-wrapper {
  padding-top: 4.5rem;
  padding-bottom: 3.5rem;
  text-align: center;
  position: relative;
}

.hero-pill-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.4rem 1rem;
  background: rgba(139, 92, 246, 0.1);
  border: 1px solid rgba(139, 92, 246, 0.3);
  border-radius: var(--radius-pill);
  margin-bottom: 1.75rem;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.15);
}

.hero-pill-stack .pulse-indicator {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--emerald);
  box-shadow: 0 0 10px var(--emerald);
  animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.hero-pill-text {
  font-size: 0.88rem;
  font-weight: 600;
  color: #e2e8f0;
}

.hero-title-main {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 960px;
  margin-inline: auto;
}

.hero-description {
  font-size: clamp(1.05rem, 1.8vw, 1.28rem);
  color: var(--text-secondary);
  max-width: 760px;
  margin-inline: auto;
  line-height: 1.75;
  margin-bottom: 2.25rem;
}

.hero-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-prefix-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0.9rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.hero-prefix-hint:hover {
  background: rgba(139, 92, 246, 0.15);
  border-color: var(--primary);
  color: #ffffff;
}

.hero-prefix-hint code {
  color: var(--cyan-light);
  font-weight: 700;
}

/* Stats Counter Strip */
.stats-counter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  margin-top: 3.5rem;
}

.stat-metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth);
}

.stat-metric-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
}

.stat-val-num {
  font-size: 2rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.stat-label-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* --- 9. INTERACTIVE DISCORD SIMULATOR SECTION --- */
.section-standard {
  padding-block: 5.5rem;
  position: relative;
}

.section-headline-group {
  text-align: center;
  max-width: 760px;
  margin-inline: auto;
  margin-bottom: 3.5rem;
}

.eyebrow-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  background: rgba(139, 92, 246, 0.12);
  border: 1px solid rgba(139, 92, 246, 0.28);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary-light);
  margin-bottom: 1rem;
}

.section-main-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  color: #ffffff;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Discord Window Mockup */
.discord-mockup-frame {
  background: #110e1a;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.discord-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: #0d0a14;
  border-bottom: 1px solid var(--border-subtle);
}

.discord-channel-info {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.channel-hash-icon {
  color: var(--text-muted);
  font-size: 1.15rem;
}

.channel-title-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.channel-topic-tag {
  font-size: 0.78rem;
  color: var(--text-muted);
  border-right: 1px solid var(--border-subtle);
  padding-right: 0.75rem;
  margin-right: 0.5rem;
}

.discord-live-status-chip {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
}

.discord-messages-stream {
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-height: 380px;
}

.discord-msg-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.discord-avatar-wrap {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-pill);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffffff;
}

.discord-msg-content {
  flex: 1;
}

.discord-msg-header {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.discord-author-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: #ffffff;
}

.discord-bot-badge {
  background: var(--primary);
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.12rem 0.35rem;
  border-radius: 4px;
}

.discord-msg-time {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.discord-text-command {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cyan-light);
  background: rgba(6, 182, 212, 0.1);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-sm);
  display: inline-block;
}

/* Discord Bot Embed Card */
.discord-embed-card {
  background: #171324;
  border: 1px solid var(--border-subtle);
  border-right: 4px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  margin-top: 0.35rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  max-width: 680px;
}

.embed-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.embed-title-text {
  font-weight: 800;
  font-size: 1.1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.embed-timer-countdown {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--amber);
  background: rgba(245, 158, 11, 0.12);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
}

.embed-question-body {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.embed-display-target {
  background: #0d0a14;
  border: 1px dashed var(--primary);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 1rem;
}

.embed-meta-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-subtle);
  padding-top: 0.75rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Winner Followup */
.winner-alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.25rem;
  margin-top: 0.45rem;
}

.winner-text-line {
  font-size: 0.92rem;
  font-weight: 600;
  color: #d1fae5;
}

.winner-highlight-time {
  color: var(--emerald);
  font-weight: 800;
  font-family: var(--font-display);
}

/* Interactive Tabs Bar */
.discord-tabs-controller {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: #0b0912;
  border-top: 1px solid var(--border-subtle);
}

.sim-tabs-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.sim-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sim-btn-pill {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.4rem 0.95rem;
  transition: all var(--transition-fast);
}

.sim-btn-pill:hover {
  color: #ffffff;
  border-color: var(--primary);
}

.sim-btn-pill.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary-light);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* --- 10. BENTO GRID SYSTEM (`landing-page-design`) --- */
.bento-grid-container {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
}

.bento-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2rem;
  overflow: hidden;
  transition: transform var(--transition-smooth), border-color var(--transition-smooth), box-shadow var(--transition-smooth);
}

.bento-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-glow);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.6);
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-col-12 {
  grid-column: span 12;
}

.bento-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.bento-card-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.bento-card-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

/* Interactive Spelling Demo in Bento */
.spelling-grid-demo {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.spelling-chip-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 700;
}

.spelling-chip-box.valid {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
}

.spelling-chip-box.invalid {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #f87171;
  text-decoration: line-through;
}

/* Ping Monitor Widget */
.ping-monitor-widget {
  background: #090710;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.ping-stat-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.ping-speed-val {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--cyan);
  line-height: 1;
}

.ping-graph-bar {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 48px;
}

.ping-col {
  flex: 1;
  background: linear-gradient(to top, var(--cyan-glow), var(--cyan));
  border-radius: 3px;
  min-height: 12px;
}

/* Abilities Shop Showcase */
.abilities-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
}

.ability-card-pill {
  background: #171326;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
  text-align: center;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.ability-card-pill:hover {
  transform: translateY(-3px);
  border-color: var(--pink);
}

.ability-icon-giant {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.ability-title-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ability-cost-tag {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--amber);
}

/* --- 11. PLAYABLE BROWSER ARCADE SIMULATOR 2.0 --- */
.arcade-playground-card {
  background: #100c1c;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.7);
}

.arcade-nav-chips {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 1.25rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--border-subtle);
}

.arcade-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.arcade-chip-btn:hover {
  color: #ffffff;
  border-color: var(--primary);
  background: var(--bg-card-hover);
}

.arcade-chip-btn.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-color: var(--primary-light);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.arcade-arena-box {
  background: #090710;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.arcade-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.arcade-category-tag {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--cyan);
}

.arcade-timer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 800;
  color: #f87171;
}

.arcade-rules-hint {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

.arcade-target-display {
  background: #140f24;
  border: 2px solid var(--primary);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.4rem);
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin-bottom: 1.75rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.arcade-flag-img {
  width: 58px;
  height: 38px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.arcade-input-row {
  display: flex;
  gap: 0.85rem;
  max-width: 620px;
  margin-inline: auto;
}

.arcade-text-input {
  flex: 1;
  padding: 0.95rem 1.25rem;
  background: #120e1f;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 1.05rem;
  font-family: inherit;
  outline: none;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.arcade-text-input:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.25);
}

.btn-arcade-submit {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.95rem 1.75rem;
  background: var(--emerald);
  color: #064e3b;
  font-weight: 800;
  font-size: 1.05rem;
  border-radius: var(--radius-pill);
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.btn-arcade-submit:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.btn-arcade-next {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.95rem 1.25rem;
  background: var(--bg-card);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  font-weight: 700;
  transition: all var(--transition-fast);
}

.btn-arcade-next:hover {
  background: var(--bg-card-hover);
  color: #ffffff;
  border-color: var(--border-strong);
}

.arcade-feedback-message {
  margin-top: 1.25rem;
  font-size: 1.05rem;
  font-weight: 700;
  min-height: 28px;
}

/* --- 12. POINTS & RANK CALCULATOR SECTION --- */
.calc-grid-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.calc-control-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
}

.calc-slider-box {
  margin-bottom: 2rem;
}

.calc-slider-box:last-child {
  margin-bottom: 0;
}

.calc-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.slider-label-title {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.slider-live-value {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary-light);
}

.range-input-styled {
  width: 100%;
  height: 8px;
  -webkit-appearance: none;
  background: #1e1933;
  border-radius: var(--radius-pill);
  outline: none;
  margin-bottom: 0.65rem;
}

.range-input-styled::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: #ffffff;
  border: 4px solid var(--primary);
  box-shadow: 0 0 14px var(--primary);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.range-input-styled::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

.slider-result-formula {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* User Profile Rank Card Preview */
.profile-preview-card-wrap {
  background: #140f24;
  border: 2px solid var(--primary);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  box-shadow: 0 16px 40px -10px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.profile-card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

.rank-display-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1.15rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.total-score-pill {
  text-align: left;
}

.total-score-title {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 600;
}

.total-score-number {
  font-size: 1.8rem;
  font-weight: 900;
  line-height: 1;
}

.profile-avatar-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.profile-avatar-ring-frame {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  padding: 3px;
  flex-shrink: 0;
}

.profile-avatar-ring-frame img {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-pill);
  object-fit: cover;
}

.profile-info-block .user-name {
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.profile-info-block .user-quote {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.points-breakdown-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.points-chip-unit {
  background: #0a0812;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
}

.chip-unit-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.chip-unit-val {
  font-size: 1.3rem;
  font-weight: 800;
}

.profile-progress-tier-bar {
  background: #0a0812;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem;
}

.progress-tier-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.progress-track-bg {
  width: 100%;
  height: 10px;
  background: #231b38;
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--pink));
  border-radius: var(--radius-pill);
  transition: width var(--transition-smooth);
}

.progress-remaining-text {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* --- 13. SERVER CHAMPIONS LEADERBOARD --- */
.leaderboard-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.leader-podium-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.75rem;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.leader-podium-card:hover {
  transform: translateX(-6px);
  border-color: var(--border-glow);
}

.leader-podium-card.first-place {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-card) 60%);
  border-color: rgba(245, 158, 11, 0.4);
  box-shadow: 0 8px 30px -6px rgba(245, 158, 11, 0.2);
}

.leader-user-meta {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.leader-rank-badge {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  font-weight: 900;
  flex-shrink: 0;
}

.leader-rank-badge.gold {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #78350f;
  box-shadow: 0 0 12px var(--amber);
}

.leader-rank-badge.diamond {
  background: linear-gradient(135deg, #38bdf8, #0284c7);
  color: #082f49;
}

.leader-rank-badge.platinum {
  background: linear-gradient(135deg, #c084fc, #7e22ce);
  color: #3b0764;
}

.leader-rank-badge.standard {
  background: #1f1b2e;
  color: var(--text-secondary);
}

.leader-details .leader-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.leader-details .leader-tier {
  font-size: 0.8rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.leader-points-pill {
  text-align: left;
}

.leader-points-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.leader-points-num {
  font-size: 1.5rem;
  font-weight: 900;
  color: #ffffff;
}

/* --- 14. COMMANDS CATALOG --- */
.commands-browser-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem;
}

.commands-filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.cmd-search-wrap {
  position: relative;
  flex: 1;
  min-width: 280px;
}

.cmd-search-input {
  width: 100%;
  padding: 0.85rem 2.85rem 0.85rem 1.25rem;
  background: #090710;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.cmd-search-input:focus {
  border-color: var(--primary);
}

.cmd-search-icon {
  position: absolute;
  right: 1.15rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.category-pills-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.category-pill-btn {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-secondary);
  background: #090710;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1rem;
  transition: all var(--transition-fast);
}

.category-pill-btn:hover {
  color: #ffffff;
  border-color: var(--primary);
}

.category-pill-btn.active {
  color: #ffffff;
  background: var(--primary);
  border-color: var(--primary-light);
}

.commands-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}

.command-card-item {
  background: #171326;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  cursor: pointer;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.command-card-item:hover {
  transform: translateY(-3px);
  border-color: var(--primary);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.command-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.command-prefix-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}

.command-copy-icon {
  font-size: 0.85rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.command-card-item:hover .command-copy-icon {
  color: var(--primary-light);
}

.command-desc-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.command-tags-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.cmd-badge-tag {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
}

/* --- 15. FAQ ACCORDION --- */
.faq-accordion-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
  margin-inline: auto;
}

.faq-accordion-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-accordion-card:hover {
  border-color: var(--border-strong);
}

.faq-accordion-card.open {
  border-color: var(--primary);
}

.faq-trigger-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  font-size: 1.1rem;
  font-weight: 800;
  color: #ffffff;
  text-align: right;
}

.faq-chevron-icon {
  color: var(--text-muted);
  transition: transform var(--transition-smooth);
}

.faq-accordion-card.open .faq-chevron-icon {
  transform: rotate(180deg);
  color: var(--primary);
}

.faq-answer-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-accordion-card.open .faq-answer-collapse {
  max-height: 300px;
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.faq-answer-collapse p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* --- 16. FINAL CONVERSION BANNER --- */
.final-cta-banner-card {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.3) 0%, rgba(20, 15, 34, 0.95) 75%);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 20px 60px -10px rgba(139, 92, 246, 0.35);
}

.final-cta-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.final-cta-desc {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: 2.25rem;
  line-height: 1.7;
}

/* --- 17. FOOTER --- */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #040307;
  padding-block: 3.5rem 2rem;
  margin-top: 5rem;
}

.footer-top-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.footer-logo-img {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
}

.footer-title-text {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
}

.footer-links-row {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.footer-link-anchor {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link-anchor:hover {
  color: #ffffff;
}

.footer-bottom-copy {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 1rem;
}

/* --- 18. TOAST NOTIFICATION --- */
.app-toast-alert {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #1f1933;
  border: 1px solid var(--primary);
  border-radius: var(--radius-pill);
  padding: 0.75rem 1.5rem;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.92rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--primary-glow);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-spring);
  z-index: 9999;
}

.app-toast-alert.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* --- 19. RESPONSIVE BREAKPOINTS --- */
@media (max-width: 1024px) {
  .bento-col-8, .bento-col-4, .bento-col-6 {
    grid-column: span 12;
  }
  .calc-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links-list {
    display: none;
  }
  .btn-mobile-toggle {
    display: flex;
  }
  .stats-counter-bar {
    grid-template-columns: 1fr 1fr;
  }
  .arcade-input-row {
    flex-direction: column;
  }
  .arcade-arena-box {
    padding: 1.25rem;
  }
  .arcade-playground-card {
    padding: 1.5rem;
  }
  .calc-control-panel, .profile-preview-card-wrap {
    padding: 1.5rem;
  }
}

/* --- 20. MOTIONSITES RETRO-FUTURIST HERO ENHANCEMENTS --- */
.retro-blur-intro {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  padding: 0.35rem 0.95rem;
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.28);
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #e2e8f0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  user-select: none;
  box-shadow: 0 0 20px rgba(168, 85, 247, 0.15);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.retro-blur-intro:hover {
  border-color: rgba(168, 85, 247, 0.5);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.3);
}

.retro-blur-intro .intro-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #a855f7;
  box-shadow: 0 0 8px #a855f7;
  animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.hero-typewriter-box {
  margin-bottom: 1.75rem;
  max-width: 800px;
}

.hero-typewriter-text {
  font-size: clamp(17px, 3.2vw, 23px);
  line-height: 1.45;
  font-weight: 600;
  color: #f8fafc;
  margin-bottom: 0.75rem;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.typewriter-cursor {
  display: inline-block;
  color: #c084fc;
  font-weight: 300;
  margin-inline-start: 4px;
  animation: blinkCursor 0.9s step-end infinite;
  text-shadow: 0 0 8px rgba(192, 132, 252, 0.8);
}

@keyframes blinkCursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.hero-pill-actions-container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1.5rem;
  margin-bottom: 2rem;
  animation: slideUpFade 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

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

.retro-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  font-size: 0.875rem;
  font-weight: 600;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.retro-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.retro-pill-btn:active {
  transform: translateY(0);
}

.retro-pill-primary {
  background: linear-gradient(135deg, #9333ea, #6366f1);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 0 25px rgba(147, 51, 234, 0.45);
}

.retro-pill-primary:hover {
  background: linear-gradient(135deg, #a855f7, #818cf8);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 35px rgba(147, 51, 234, 0.65);
}

.retro-pill-special {
  background: rgba(168, 85, 247, 0.14);
  color: #e9d5ff;
  border: 1px solid rgba(168, 85, 247, 0.35);
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.retro-pill-special:hover {
  background: rgba(168, 85, 247, 0.28);
  color: #ffffff;
  border-color: rgba(168, 85, 247, 0.6);
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.45);
}

.retro-pill-outline {
  background: rgba(15, 23, 42, 0.5);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.retro-pill-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.3);
}

/* Language Switcher Pill */
.lang-switch-box {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.6rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.lang-btn-item {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.lang-btn-item:hover, .lang-btn-item.active {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(168, 85, 247, 0.8);
}

.lang-divider {
  color: rgba(255, 255, 255, 0.2);
  font-size: 0.75rem;
}

.btn-header-login {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.48rem 1rem;
  background: rgba(88, 101, 242, 0.15);
  color: #c7d2fe;
  border: 1px solid rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(10px);
}

.btn-header-login:hover {
  background: #5865F2;
  color: #ffffff;
  border-color: #5865F2;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.5);
  transform: translateY(-1px);
}

.retro-pill-login {
  background: rgba(88, 101, 242, 0.18);
  color: #e0e7ff;
  border: 1px solid rgba(88, 101, 242, 0.4);
}

.retro-pill-login:hover {
  background: #5865F2;
  color: #ffffff;
  border-color: #5865F2;
  box-shadow: 0 0 25px rgba(88, 101, 242, 0.5);
}

.mobile-lang-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-lang-chip {
  flex: 1;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.mobile-lang-chip.active {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary-light);
}

/* Smooth Background Video Parallax & Visibility */
.bg-ambient-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.48;
  filter: saturate(1.25) contrast(1.1);
  will-change: transform;
  transform: scale(1.04);
}

.bg-ambient-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 15%, rgba(147, 51, 234, 0.14), transparent 60%),
              linear-gradient(to bottom, rgba(6, 5, 10, 0.45) 0%, rgba(6, 5, 10, 0.8) 55%, #06050a 100%);
  pointer-events: none;
}
