/* ===================================================
   NEXOFORMA DESIGN SYSTEM — Global Styles v2
   Tokens: Ink / Bone / Violet / Acid
   Fonts: Instrument Serif / JetBrains Mono / Inter
   Startup-honest, animation-first, centered layouts
   =================================================== */

/* RESET & BASE */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #F7F6F2;
  color: #0A0A0B;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

/* ===================================================
   ANIMATED LOGO — Pulsing AI Orbit with "N"
   =================================================== */
.nexoforma-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0A0A0B;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nexoforma-logo .logo-letter {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  color: #D4FF4F;
  position: relative;
  z-index: 2;
  line-height: 1;
  animation: logo-letter-pulse 2.5s ease-in-out infinite;
}
.nexoforma-logo .orbit-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: #D4FF4F;
  border-right-color: #7C3AED;
  animation: orbit-spin 2.5s linear infinite;
  pointer-events: none;
}
.nexoforma-logo .orbit-ring-2 {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px solid transparent;
  border-bottom-color: rgba(124,58,237,0.3);
  border-left-color: rgba(212,255,79,0.2);
  animation: orbit-spin 4s linear infinite reverse;
  pointer-events: none;
}
@keyframes orbit-spin {
  to { transform: rotate(360deg); }
}
@keyframes logo-letter-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.9); opacity: 0.85; }
}

/* Footer logo — inverted colors (bone bg, violet letter) */
.nexoforma-logo-dark {
  background: #F7F6F2;
}
.nexoforma-logo-dark .logo-letter {
  color: #7C3AED;
}
.nexoforma-logo-dark .orbit-ring {
  border-top-color: #7C3AED;
  border-right-color: #D4FF4F;
}

/* ===================================================
   STICKY NAV — sticks to top after system bar scrolls away
   =================================================== */
#main-nav {
  transition: box-shadow 0.3s ease;
}

/* TYPOGRAPHY UTILITIES */
.font-sans { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
.font-display { font-family: 'Instrument Serif', Georgia, serif; letter-spacing: -0.02em; }
.font-mono { font-family: 'JetBrains Mono', monospace; }

/* ===================================================
   BACKGROUND PATTERNS & EFFECTS
   =================================================== */

/* DOT GRID BACKGROUNDS */
.dot-grid {
  background-image: radial-gradient(circle, rgba(10,10,11,0.12) 1px, transparent 1px);
  background-size: 24px 24px;
}
.dot-grid-dark {
  background-image: radial-gradient(circle, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* GLOWS */
.violet-glow {
  background: radial-gradient(ellipse at center, rgba(124,58,237,0.25) 0%, rgba(124,58,237,0) 60%);
}
.acid-glow {
  background: radial-gradient(ellipse at center, rgba(212,255,79,0.15) 0%, rgba(212,255,79,0) 60%);
}

/* Gradient text for AI accent */
.gradient-text-ai {
  background: linear-gradient(135deg, #7C3AED 0%, #D4FF4F 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===================================================
   SYSTEM BAR
   =================================================== */
.sys-bar {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ===================================================
   GLASS MORPHISM
   =================================================== */
.glass {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(10,10,11,0.08);
}
.glass-dark {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* ===================================================
   CARDS
   =================================================== */

/* Dashed service card */
.dashed-card {
  border: 1px dashed rgba(10,10,11,0.2);
  transition: all 0.25s ease;
}
.dashed-card:hover {
  border-color: #7C3AED;
  background: rgba(124,58,237,0.03);
  transform: translateY(-2px);
}

/* ===================================================
   PILLS / BADGES
   =================================================== */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(10,10,11,0.15);
  background: rgba(255,255,255,0.7);
}
.pill-dark {
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.85);
}
.pill-violet {
  border-color: #7C3AED;
  background: rgba(124,58,237,0.08);
  color: #6D28D9;
}

/* ===================================================
   ANIMATIONS — Core
   =================================================== */

/* Marquee */
@keyframes scroll-x {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.ticker-track { animation: scroll-x 40s linear infinite; }

/* Spin */
@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-slow { animation: spin-slow 20s linear infinite; }
.spin-reverse { animation: spin-slow 30s linear infinite reverse; }

/* Pulse */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ===================================================
   ANIMATIONS — Scroll Reveal (works on ALL pages)
   =================================================== */
.scroll-reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger delays for children */
.scroll-reveal-stagger > .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.scroll-reveal-stagger > .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal-stagger > .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal-stagger > .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.scroll-reveal-stagger > .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }
.scroll-reveal-stagger > .scroll-reveal:nth-child(6) { transition-delay: 0.5s; }

/* ===================================================
   ANIMATIONS — Hero specific
   =================================================== */

/* Hero section */
#hero-section {
  position: relative;
  overflow: hidden;
  min-height: 90vh;
}
#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 10;
}

/* Text reveal on load */
.hero-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Typing cursor */
#hero-typed-role {
  border-right: 2px solid #7C3AED;
  padding-right: 2px;
  animation: blink-cursor 0.8s step-end infinite;
}
@keyframes blink-cursor {
  50% { border-color: transparent; }
}

/* Interactive role cards */
.hero-role-card {
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.hero-role-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124,58,237,0.08) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-role-card:hover {
  transform: translateY(-3px);
  border-color: #7C3AED;
  box-shadow: 0 8px 30px rgba(124,58,237,0.12);
}
.hero-role-card:hover::before { opacity: 1; }
.hero-role-card.role-active {
  border-color: #7C3AED;
  background: rgba(124,58,237,0.06);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.15);
}
.hero-role-card.role-active .role-icon {
  background: #7C3AED;
  color: #F7F6F2;
}

/* ===================================================
   ANIMATIONS — AI / Floating elements
   =================================================== */

@keyframes float-node {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-12px) scale(1.05); }
}
.ai-float { animation: float-node 4s ease-in-out infinite; }
.ai-float-delay { animation: float-node 4s ease-in-out infinite 1s; }
.ai-float-delay-2 { animation: float-node 4s ease-in-out infinite 2s; }

@keyframes flow-dash {
  0% { stroke-dashoffset: 20; }
  100% { stroke-dashoffset: 0; }
}
.flow-line {
  stroke-dasharray: 6 4;
  animation: flow-dash 1.5s linear infinite;
}

@keyframes ai-pulse-ring {
  0% { transform: scale(0.8); opacity: 0.6; }
  50% { transform: scale(1.2); opacity: 0.2; }
  100% { transform: scale(0.8); opacity: 0.6; }
}
.ai-pulse-ring {
  animation: ai-pulse-ring 3s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 8px rgba(124,58,237,0.4), 0 0 20px rgba(124,58,237,0.15); }
  50% { box-shadow: 0 0 16px rgba(124,58,237,0.6), 0 0 40px rgba(124,58,237,0.25); }
}
.ai-glow { animation: glow-pulse 2.5s ease-in-out infinite; }

/* Stat counter */
.hero-counter {
  font-variant-numeric: tabular-nums;
}

/* ===================================================
   ANIMATIONS — Background particles (inner pages)
   Used via js/page-animations.js on all pages
   =================================================== */
.page-bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* Floating ambient dots for inner pages */
@keyframes ambient-float-1 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(30px, -20px); }
  50% { transform: translate(-10px, -40px); }
  75% { transform: translate(-30px, -10px); }
}
@keyframes ambient-float-2 {
  0%, 100% { transform: translate(0, 0); }
  25% { transform: translate(-20px, 30px); }
  50% { transform: translate(20px, 10px); }
  75% { transform: translate(10px, -20px); }
}
.ambient-dot {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.ambient-dot-1 { animation: ambient-float-1 12s ease-in-out infinite; }
.ambient-dot-2 { animation: ambient-float-2 15s ease-in-out infinite; }

/* ===================================================
   CENTERED HERO LAYOUT (for inner pages)
   =================================================== */
.hero-centered {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.hero-centered h1 {
  margin-bottom: 1.5rem;
}
.hero-centered p {
  margin: 0 auto 2rem;
  max-width: 640px;
}

/* Balanced 2-column layout (for inner pages) */
.hero-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

/* ===================================================
   BUTTONS
   =================================================== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #0A0A0B;
  color: #F7F6F2;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  border: none;
}
.btn-primary:hover { background: #7C3AED; transform: translateY(-1px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  color: #0A0A0B;
  border: 1px solid rgba(10,10,11,0.2);
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
}
.btn-ghost:hover { border-color: #7C3AED; color: #7C3AED; }

.btn-acid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #D4FF4F;
  color: #0A0A0B;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  cursor: pointer;
  font-weight: 600;
}
.btn-acid:hover { background: #F7F6F2; }

/* ===================================================
   LINKS
   =================================================== */
.link-dotted {
  border-bottom: 1px dotted currentColor;
  transition: color 0.2s ease;
  text-decoration: none;
  color: inherit;
}
.link-dotted:hover { color: #7C3AED; border-bottom-style: solid; }

/* ===================================================
   TIER POPULAR
   =================================================== */
.tier-popular {
  background: #0A0A0B;
  color: #F7F6F2;
  position: relative;
}
.tier-popular::before {
  content: 'MOST POPULAR';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #D4FF4F;
  color: #0A0A0B;
  padding: 4px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ===================================================
   LOGO MARQUEE
   =================================================== */
.logo-fade-mask {
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

/* ===================================================
   FAQ ACCORDION
   =================================================== */
details summary { list-style: none; }
details summary::-webkit-details-marker { display: none; }
details[open] summary .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s ease; }

/* ===================================================
   COMPARISON TABLE
   =================================================== */
.compare-table th { text-align: left; }
.compare-table td, .compare-table th { padding: 12px 16px; border-bottom: 1px solid rgba(10,10,11,0.08); }
.compare-table tr:hover td { background: rgba(124,58,237,0.03); }

/* ===================================================
   BREADCRUMB
   =================================================== */
.breadcrumb { font-family: 'JetBrains Mono', monospace; font-size: 12px; letter-spacing: 0.04em; }
.breadcrumb a { text-decoration: none; color: rgba(10,10,11,0.5); transition: color 0.2s; }
.breadcrumb a:hover { color: #7C3AED; }
.breadcrumb span.current { color: #0A0A0B; }

/* ===================================================
   SKILL TAG
   =================================================== */
.skill-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  background: rgba(10,10,11,0.06);
  color: #0A0A0B;
  transition: all 0.2s ease;
}
.skill-tag:hover { background: rgba(124,58,237,0.1); color: #6D28D9; }

/* ===================================================
   RESPONSIVE UTILITIES
   =================================================== */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
  #hero-section { min-height: 70vh; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}

/* ===================================================
   MAGNETIC CURSOR + VIOLET PARTICLE TRAIL (global)
   Only visible on non-touch devices — JS auto-disables
   =================================================== */
#sx-cursor-glow {
  position: fixed;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124,58,237,0.35) 0%, transparent 70%);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  opacity: 0;
  mix-blend-mode: screen;
  transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease, background 0.3s ease;
  will-change: left, top;
}
#sx-cursor-glow.sx-cursor-active {
  opacity: 1;
}
#sx-cursor-glow.sx-cursor-on-cta {
  width: 56px;
  height: 56px;
  background: radial-gradient(circle, rgba(124,58,237,0.45) 0%, rgba(212,255,79,0.12) 50%, transparent 70%);
}
.sx-cursor-particle {
  position: fixed;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #7C3AED;
  pointer-events: none;
  z-index: 9998;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

/* ===================================================
   404 EASTER EGG — "Catch the Talent" Game
   =================================================== */
.game-404-area {
  position: relative;
  max-width: 100%;
  height: 420px;
  background: #0A0A0B;
  border-radius: 20px;
  overflow: hidden;
  cursor: crosshair;
}
.game-score-display {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #D4FF4F;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 10;
}
.game-sys-label {
  position: absolute;
  top: 16px;
  left: 20px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255,255,255,0.25);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  z-index: 10;
}
.game-timer-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #D4FF4F);
  z-index: 10;
  transition: width 0.1s linear;
}
.game-overlay-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 12;
}
.floating-talent {
  position: absolute;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  pointer-events: all;
  z-index: 5;
  animation: talentFloatIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transition: transform 0.1s ease;
}
.floating-talent:hover { transform: scale(1.15); }
@keyframes talentFloatIn {
  from { transform: scale(0) rotate(-45deg); opacity: 0; }
  to { transform: scale(1) rotate(0); opacity: 1; }
}
.floating-talent.caught {
  animation: talentCatch 0.35s forwards;
  pointer-events: none;
}
@keyframes talentCatch {
  0% { transform: scale(1); }
  50% { transform: scale(1.4); opacity: 1; }
  100% { transform: scale(0); opacity: 0; }
}

/* ===================================================
   COST SAVINGS CALCULATOR (pricing page)
   =================================================== */
.calc-container {
  max-width: 800px;
  margin: 0 auto;
  background: white;
  border-radius: 20px;
  padding: 40px;
  border: 1.5px solid rgba(10,10,11,0.08);
  box-shadow: 0 8px 30px rgba(10,10,11,0.06);
}
.calc-role-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.role-chip {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(10,10,11,0.12);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  background: transparent;
  font-family: 'Inter', sans-serif;
  color: #0A0A0B;
}
.role-chip:hover { border-color: #7C3AED; color: #7C3AED; }
.role-chip.active {
  background: #7C3AED;
  color: white;
  border-color: #7C3AED;
}
.calc-slider-track {
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: rgba(10,10,11,0.08);
  position: relative;
  cursor: pointer;
}
.calc-slider-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #7C3AED, #6D28D9);
  transition: width 0.15s ease;
}
.calc-slider-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: white;
  border: 3px solid #7C3AED;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  cursor: grab;
  box-shadow: 0 2px 8px rgba(124,58,237,0.25);
  transition: box-shadow 0.2s;
}
.calc-slider-thumb:active { cursor: grabbing; box-shadow: 0 4px 16px rgba(124,58,237,0.4); }
.calc-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.calc-card {
  padding: 28px;
  border-radius: 16px;
  text-align: center;
}
.calc-card.us-card { background: rgba(10,10,11,0.04); }
.calc-card.sx-card {
  background: linear-gradient(135deg, rgba(124,58,237,0.08), rgba(212,255,79,0.08));
  border: 1.5px solid rgba(124,58,237,0.15);
}
.calc-price {
  font-family: 'Instrument Serif', serif;
  font-size: 42px;
  line-height: 1.1;
  margin: 8px 0;
}
.calc-savings-bar {
  padding: 20px;
  border-radius: 12px;
  background: #0A0A0B;
  color: #F7F6F2;
  text-align: center;
}
.calc-savings-amount {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: #D4FF4F;
}
/* ===================================================
   TERMINAL TYPING ANIMATION (how-it-works page)
   =================================================== */
.terminal-window {
  background: #0A0A0B;
  border-radius: 16px;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 25px 60px rgba(10,10,11,0.3);
}
.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255,255,255,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.terminal-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}
.terminal-dot.red { background: #FF5F57; }
.terminal-dot.yellow { background: #FEBC2E; }
.terminal-dot.green { background: #28C840; }
.terminal-title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.terminal-body {
  padding: 28px 24px;
  min-height: 220px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 2;
  color: rgba(255,255,255,0.5);
}
.terminal-body .prompt { color: #D4FF4F; }
.terminal-body .command { color: #fff; }
.terminal-body .output { color: rgba(255,255,255,0.4); }
.terminal-body .success { color: #D4FF4F; }
.terminal-body .violet-text { color: #7C3AED; }
.terminal-cursor {
  display: inline-block;
  width: 9px;
  height: 18px;
  background: #D4FF4F;
  margin-left: 2px;
  vertical-align: text-bottom;
  animation: terminal-blink 1s step-end infinite;
}
@keyframes terminal-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ===================================================
   MOBILE NAV MENU
   =================================================== */
.mobile-nav-group { border-bottom: 1px solid rgba(10,10,11,0.08); }
.mobile-nav-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; padding: 14px 0; font-size: 15px; font-weight: 600;
  background: none; border: none; cursor: pointer; color: #0A0A0B;
  font-family: inherit;
}
.mobile-nav-arrow { transition: transform 0.2s; font-size: 12px; }
.mobile-nav-group.open .mobile-nav-arrow { transform: rotate(90deg); }
.mobile-nav-panel {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
  padding-left: 8px;
}
.mobile-nav-group.open .mobile-nav-panel { max-height: 600px; }
.mobile-nav-panel a {
  display: block; padding: 8px 0; font-size: 14px; color: #0A0A0B;
  text-decoration: none; opacity: 0.7;
}
.mobile-nav-panel a:hover { opacity: 1; color: #7C3AED; }
.mobile-nav-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: #7C3AED; padding: 8px 0 4px;
}
.mobile-nav-link {
  display: block; padding: 14px 0; font-size: 15px; font-weight: 600;
  color: #0A0A0B; text-decoration: none;
  border-bottom: 1px solid rgba(10,10,11,0.08);
}
.mobile-nav-link:hover { color: #7C3AED; }

@media (max-width: 640px) {
  .calc-comparison { grid-template-columns: 1fr; }
  .calc-price { font-size: 32px; }
  .calc-savings-amount { font-size: 28px; }
  .game-404-area { height: 350px; }
  .terminal-body { font-size: 12px; padding: 20px 16px; min-height: 200px; }
}
