@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,100..1000&display=swap');

:root {
  --bg-1: #030416;
  --bg-2: #0a0f1f;
  --panel: rgba(255,255,255,0.02);
  --surface: rgba(255,255,255,0.02);
  --surface-hover: rgba(255,255,255,0.04);
  --border: rgba(255,255,255,0.08);
  --muted: #a0a8c0;
  --accent-a: #ff4d4d;
  --accent-b: #cc0000;
  --accent-c: #ffd86b;
  --text-primary: #ffffff;
  --text-secondary: #d0d8e8;
  --radius: 14px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Roboto Flex', system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

.galaxy-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 48px 20px;
}

.container {
  width: 100%;
  max-width: 800px;
}

.panel {
  width: 100%;
  border-radius: var(--radius);
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.012), rgba(255,255,255,0.006));
  box-shadow: 0 18px 60px rgba(2,6,23,0.6);
  border: 1px solid rgba(255,255,255,0.03);
  backdrop-filter: blur(6px);
}

.hero-head {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.variable-proximity-heading {
  margin: 0;
  font-weight: 900;
  font-size: 3rem;
  letter-spacing: -0.01em;
  line-height: 1.02;
  font-family: 'Roboto Flex', system-ui, sans-serif;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-a));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-align: center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.subtitle {
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: 0.05em;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
}

.left {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 500px;
}

.card {
  border-radius: 12px;
  padding: 16px;
  background: linear-gradient(180deg, rgba(255,255,255,0.01), rgba(255,255,255,0.005));
  border: 1px solid rgba(255,255,255,0.02);
}

.progress {
  padding: 12px 8px;
}

.progress-label {
  font-size: 0.9rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  text-align: center;
}

.progress-bar {
  height: 14px;
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}

.progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  box-shadow: 0 8px 24px rgba(255,77,77,0.2);
  animation: pulse 2s ease-in-out infinite;
}

.progress-meta {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-top: 10px;
  text-align: center;
}

.notify-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.notify-row input {
  flex: 1;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.04);
  background: transparent;
  color: var(--text-primary);
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

.notify-row input:focus {
  border-color: var(--accent-a);
  outline: none;
}

.btn {
  padding: 14px 16px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
  color: #000000;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.btn:hover {
  transform: scale(1.05) translateY(-2px);
}

.btn:active {
  transform: scale(0.95);
}

.privacy {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 10px;
  text-align: center;
}

.card-foot {
  display: flex;
  justify-content: center;
  margin-top: 24px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.02);
}

.copy {
  font-size: 0.9rem;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  bottom: 30px;
  background: linear-gradient(90deg, var(--accent-b), var(--accent-a));
  color: #000000;
  padding: 14px 20px;
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(2,6,23,0.6);
  opacity: 0;
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 999;
  font-size: 1rem;
}

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

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.reveal.revealed {
  opacity: 1;
  transform: none;
}

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

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@media (max-width: 480px) {
  .variable-proximity-heading {
    font-size: 2rem;
  }
  .subtitle {
    font-size: 1rem;
  }
  .panel {
    padding: 24px;
  }
}