:root {
  --bg-primary: #090a0f;
  --bg-card: rgba(255, 255, 255, 0.03);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(99, 102, 241, 0.5);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-primary: #6366f1;
  --accent-glow: #818cf8;
  --accent-gradient: linear-gradient(135deg, #6366f1 0%, #a855f7 50%, #ec4899 100%);
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

body {
  min-height: 100vh;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-main);
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

.ambient-glow {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(168, 85, 247, 0.08) 40%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.app-container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2.5rem;
}

.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: #c7d2fe;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 400;
  max-width: 280px;
  line-height: 1.5;
}

.interactive-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.button-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.button-halo {
  position: absolute;
  inset: -12px;
  border-radius: 24px;
  background: var(--accent-gradient);
  opacity: 0.4;
  filter: blur(18px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: -1;
}

.glow-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.25rem 2.75rem;
  font-family: var(--font-main);
  font-size: 1.125rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent-gradient);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(99, 102, 241, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.glow-button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 32px -6px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.glow-button:hover ~ .button-halo {
  opacity: 0.7;
  transform: scale(1.05);
}

.glow-button:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 6px 16px -4px rgba(99, 102, 241, 0.4);
}

.glow-button:focus-visible {
  outline: 3px solid #818cf8;
  outline-offset: 4px;
}

.btn-icon {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.glow-button:hover .btn-icon {
  transform: rotate(15deg) scale(1.15);
}

.stats-card {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 16px;
  padding: 1.25rem 1rem;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  align-items: center;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: var(--border-subtle);
}

.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

.stat-value {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-primary);
}

.stat-status {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 600;
  color: #34d399;
}

.app-footer {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Floating particles effect on click */
.particle {
  position: fixed;
  pointer-events: none;
  border-radius: 50%;
  z-index: 99;
  animation: float-out 0.8s cubic-bezier(0.12, 0.8, 0.33, 1) forwards;
}

@keyframes float-out {
  0% {
    opacity: 1;
    transform: translate(0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(var(--tx), var(--ty)) scale(0);
  }
}
