/* ═══════════════════════════════════════════════════════════════════
   Frog Client — Design System
   Premium dark-themed gaming aesthetic with emerald accents
   ═══════════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ── Base Reset & Typography ── */
*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --color-darkForest: #0a1a0e;
  --color-deepGreen: #0e2f15;
  --color-neonLime: #39ff14;
  --color-glowGreen: #1f6426;
  --color-emerald: #10b981;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-heading: 'Space Grotesk', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-darkForest);
  color: #d1d5db;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #050d07; }
::-webkit-scrollbar-thumb { background: #1f6426; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #39ff14; }

/* ── Animated Background Grid ── */
.animated-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.animated-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background-image: 
    linear-gradient(rgba(57,255,20,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(57,255,20,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* ── Floating Particles ── */
.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(57,255,20,0.3);
  border-radius: 50%;
  animation: float var(--duration, 8s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.3; }
  25% { transform: translate(var(--tx1, 30px), var(--ty1, -50px)) scale(1.5); opacity: 0.6; }
  50% { transform: translate(var(--tx2, -20px), var(--ty2, -100px)) scale(1); opacity: 0.4; }
  75% { transform: translate(var(--tx3, 40px), var(--ty3, -60px)) scale(1.3); opacity: 0.5; }
}

/* ── Glassmorphism ── */
.glass {
  background: rgba(14, 47, 21, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(31, 100, 38, 0.3);
  border-radius: 1rem;
}

.glass-card {
  background: rgba(14, 47, 21, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(57, 255, 20, 0.08);
  border-radius: 1rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-card:hover {
  border-color: rgba(57, 255, 20, 0.2);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.05), 0 8px 32px rgba(0,0,0,0.3);
  transform: translateY(-4px);
}

/* ── Neon Glow Effects ── */
.neon-glow {
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.15), 0 0 45px rgba(57, 255, 20, 0.05);
  transition: box-shadow 0.3s ease;
}

.neon-glow:hover {
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.3), 0 0 60px rgba(57, 255, 20, 0.1);
}

.neon-border {
  position: relative;
}

.neon-border::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(57,255,20,0.4), transparent 40%, transparent 60%, rgba(57,255,20,0.2));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* ── Gradient Text ── */
.gradient-text {
  background: linear-gradient(135deg, #39ff14, #10b981, #39ff14);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientShift 4s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ── Input Fields ── */
.input-field {
  width: 100%;
  background: rgba(10, 26, 14, 0.8);
  border: 1px solid rgba(31, 100, 38, 0.3);
  border-radius: 0.75rem;
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  outline: none;
}

.input-field:focus {
  border-color: #39ff14;
  box-shadow: 0 0 0 3px rgba(57, 255, 20, 0.1), 0 0 20px rgba(57, 255, 20, 0.05);
}

.input-field::placeholder {
  color: rgba(156, 163, 175, 0.5);
}

/* ── Buttons ── */
.btn-primary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem 1.5rem;
  background: linear-gradient(135deg, #39ff14, #10b981);
  color: #0a1a0e;
  font-weight: 700;
  border-radius: 0.75rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 20px rgba(57, 255, 20, 0.15);
  text-decoration: none;
  font-size: 0.875rem;
  letter-spacing: 0.025em;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(57, 255, 20, 0.3), 0 4px 16px rgba(0,0,0,0.3);
  background: linear-gradient(135deg, #4dff33, #34d399);
}

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

.btn-secondary {
  display: block;
  width: 100%;
  text-align: center;
  padding: 0.875rem 1.5rem;
  background: rgba(14, 47, 21, 0.6);
  color: #ffffff;
  font-weight: 600;
  border-radius: 0.75rem;
  border: 1px solid rgba(57, 255, 20, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  font-size: 0.875rem;
}

.btn-secondary:hover {
  background: rgba(31, 100, 38, 0.4);
  border-color: rgba(57, 255, 20, 0.3);
  transform: translateY(-1px);
}

/* ── Scroll Reveal Animation ── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Pricing Card Highlight ── */
.pricing-highlight {
  position: relative;
  border: 2px solid rgba(57, 255, 20, 0.4);
  box-shadow: 0 0 40px rgba(57, 255, 20, 0.08);
}

.pricing-highlight::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(57,255,20,0.2), transparent, rgba(57,255,20,0.1));
  z-index: -1;
  filter: blur(8px);
}

/* ── Pulse Animation ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(57,255,20,0.2); }
  50% { box-shadow: 0 0 20px rgba(57,255,20,0.4); }
}

.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

/* ── Skeleton Loader ── */
.skeleton {
  background: linear-gradient(90deg, rgba(14,47,21,0.3), rgba(31,100,38,0.2), rgba(14,47,21,0.3));
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 0.5rem;
}

@keyframes skeleton-shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ── Radio Card (Downloads) ── */
.radio-card {
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid rgba(31, 100, 38, 0.3);
  border-radius: 0.75rem;
  padding: 1rem;
  background: rgba(10, 26, 14, 0.5);
}

.radio-card:hover {
  border-color: rgba(57, 255, 20, 0.3);
  background: rgba(14, 47, 21, 0.5);
}

.radio-card.selected {
  border-color: #39ff14;
  background: rgba(57, 255, 20, 0.05);
  box-shadow: 0 0 15px rgba(57, 255, 20, 0.1);
}

/* ── Stat Counter Animation ── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.stat-value {
  animation: countUp 0.6s ease-out forwards;
}

/* ── Accordion (FAQ) ── */
.accordion-item {
  border: 1px solid rgba(31, 100, 38, 0.2);
  border-radius: 0.75rem;
  overflow: hidden;
  transition: border-color 0.3s ease;
  background: rgba(14, 47, 21, 0.2);
}

.accordion-item:hover {
  border-color: rgba(57, 255, 20, 0.2);
}

.accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 1.5rem;
  cursor: pointer;
  font-weight: 600;
  color: #ffffff;
  transition: color 0.3s ease;
}

.accordion-header:hover {
  color: #39ff14;
}

.accordion-icon {
  transition: transform 0.3s ease;
  color: #39ff14;
}

.accordion-item.open .accordion-icon {
  transform: rotate(180deg);
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  padding: 0 1.5rem;
  color: #9ca3af;
  line-height: 1.7;
}

.accordion-item.open .accordion-content {
  max-height: 300px;
  padding: 0 1.5rem 1.25rem;
}

/* ── Toast Notification ── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  padding: 1rem 1.5rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.875rem;
  z-index: 9999;
  transform: translateY(120%);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  backdrop-filter: blur(12px);
  max-width: 400px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-success {
  background: rgba(31, 100, 38, 0.9);
  border: 1px solid rgba(57, 255, 20, 0.4);
  color: #ffffff;
}

.toast-error {
  background: rgba(127, 29, 29, 0.9);
  border: 1px solid rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

/* ── Progress Bar ── */
.progress-bar-container {
  height: 6px;
  background: rgba(14, 47, 21, 0.5);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #39ff14, #10b981);
  border-radius: 3px;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.3);
}

/* ── Mobile Responsive ── */
@media (max-width: 768px) {
  .hide-mobile { display: none !important; }
}

/* ── Utility: Staggered Animation ── */
.stagger > * {
  opacity: 0;
  transform: translateY(20px);
  animation: staggerIn 0.5s ease forwards;
}

.stagger > *:nth-child(1) { animation-delay: 0.1s; }
.stagger > *:nth-child(2) { animation-delay: 0.2s; }
.stagger > *:nth-child(3) { animation-delay: 0.3s; }
.stagger > *:nth-child(4) { animation-delay: 0.4s; }

@keyframes staggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* ── Link styles ── */
a { text-decoration: none; }
