/* ============================================
   Faze One Plus Marketing - Coming Soon
   Modern Glassmorphism Design
   ============================================ */

:root {
  /* Core palette */
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --accent: #8b5cf6;
  --accent-alt: #a78bfa;

  /* Neutrals */
  --bg-dark: #0a0a1a;
  --bg-medium: #12122a;
  --surface: rgba(255, 255, 255, 0.03);
  --surface-elevated: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-primary: #ffffff;
  --text-secondary: rgba(255, 255, 255, 0.7);
  --text-muted: rgba(255, 255, 255, 0.4);

  /* Glass */
  --glass-bg: rgba(255, 255, 255, 0.05);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);

  /* Effects */
  --glow: 0 0 40px rgba(99, 102, 241, 0.3);
  --glow-accent: 0 0 60px rgba(139, 92, 246, 0.2);

  /* Spacing */
  --container-max: 720px;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* ============================================
   Base Styles
   ============================================ */

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow-x: hidden;
  line-height: 1.6;
}

/* ============================================
   Animated Background
   ============================================ */

.background-animation {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  animation: orbFloat 20s ease-in-out infinite;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: -200px;
  right: -100px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
  animation-delay: -7s;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, #ec4899 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  opacity: 0.3;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(30px, -30px) scale(1.05); }
  50% { transform: translate(-20px, 20px) scale(0.95); }
  75% { transform: translate(-30px, -20px) scale(1.02); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 70%);
}

/* ============================================
   Floating Particles
   ============================================ */

.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary-light);
  border-radius: 50%;
  opacity: 0.4;
  animation: particleFloat 15s linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 18s; animation-delay: 0s; }
.particle:nth-child(2) { left: 20%; animation-duration: 22s; animation-delay: -3s; }
.particle:nth-child(3) { left: 35%; animation-duration: 16s; animation-delay: -6s; }
.particle:nth-child(4) { left: 50%; animation-duration: 20s; animation-delay: -9s; }
.particle:nth-child(5) { left: 65%; animation-duration: 24s; animation-delay: -12s; }
.particle:nth-child(6) { left: 75%; animation-duration: 17s; animation-delay: -15s; }
.particle:nth-child(7) { left: 85%; animation-duration: 21s; animation-delay: -5s; }
.particle:nth-child(8) { left: 95%; animation-duration: 19s; animation-delay: -10s; }

@keyframes particleFloat {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 0.4;
  }
  90% {
    opacity: 0.4;
  }
  100% {
    transform: translateY(-100px) scale(1);
    opacity: 0;
  }
}

/* ============================================
   Container & Layout
   ============================================ */

.container {
  position: relative;
  z-index: 10;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 48px 24px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}

/* ============================================
   Fade In Animations
   ============================================ */

.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

.fade-in-delay-1 { animation-delay: 0.2s; }
.fade-in-delay-2 { animation-delay: 0.4s; }
.fade-in-delay-3 { animation-delay: 0.6s; }

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

/* ============================================
   Brand Header
   ============================================ */

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo-mark {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

.brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================
   Hero Section
   ============================================ */

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

.headline {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(135deg, #fff 0%, var(--primary-light) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 0 80px rgba(99, 102, 241, 0.5);
}

.subheadline {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin: 0;
  max-width: 480px;
  line-height: 1.7;
}

/* ============================================
   Progress Animation (Work In Progress)
   ============================================ */

.progress-animation {
  position: relative;
  width: 160px;
  height: 160px;
  margin-bottom: 8px;
}

.progress-ring {
  position: relative;
  width: 100%;
  height: 100%;
}

.progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: var(--surface-elevated);
  stroke-width: 4;
}

.ring-progress {
  fill: none;
  stroke: url(#ringGradient);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-dasharray: 339.292;
  stroke-dashoffset: 339.292;
  animation: progressFill 3s ease-out forwards, progressPulse 2s ease-in-out infinite 3s;
}

/* Add gradient definition inline via CSS trick using filter */
.ring-progress {
  stroke: var(--primary);
  filter: drop-shadow(0 0 8px var(--primary));
}

@keyframes progressFill {
  to { stroke-dashoffset: 85; }
}

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

.progress-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gear-container {
  width: 48px;
  height: 48px;
}

.gear {
  width: 100%;
  height: 100%;
  color: var(--text-secondary);
  animation: gearSpin 8s linear infinite;
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   Floating UI Elements
   ============================================ */

.floating-elements {
  position: absolute;
  inset: -20px;
  pointer-events: none;
}

.float-item {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  backdrop-filter: blur(8px);
  display: flex;
  gap: 6px;
  animation: floatBounce 4s ease-in-out infinite;
}

.float-1 {
  top: 10px;
  left: -60px;
  flex-direction: column;
  animation-delay: 0s;
}

.float-2 {
  top: 20px;
  right: -50px;
  animation-delay: -1.3s;
}

.float-3 {
  bottom: 20px;
  left: -40px;
  flex-direction: column;
  animation-delay: -2.6s;
}

.float-bar {
  width: 40px;
  height: 6px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 3px;
}

.float-bar.short {
  width: 24px;
  opacity: 0.5;
}

.float-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: dotPulse 1.5s ease-in-out infinite;
}

.float-dot:nth-child(2) { animation-delay: 0.2s; opacity: 0.7; }
.float-dot:nth-child(3) { animation-delay: 0.4s; opacity: 0.4; }

.float-line {
  width: 30px;
  height: 3px;
  background: var(--text-muted);
  border-radius: 2px;
}

.float-line:nth-child(2) {
  width: 20px;
}

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

@keyframes dotPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* ============================================
   Building Indicator
   ============================================ */

.building-indicator {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

.pulse-dot {
  width: 10px;
  height: 10px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);
  }
}

/* ============================================
   Glass Card
   ============================================ */

.glass-card {
  width: 100%;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(20px);
  box-shadow: var(--glass-shadow);
}

/* ============================================
   Countdown Timer
   ============================================ */

.countdown {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 64px;
}

.countdown-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
  background: linear-gradient(180deg, var(--text-primary) 0%, var(--text-secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.countdown-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 4px;
}

.countdown-separator {
  font-size: 2rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 20px;
}

/* ============================================
   Email Capture Form
   ============================================ */

.email-capture {
  width: 100%;
}

.input-wrapper {
  display: flex;
  gap: 12px;
  width: 100%;
}

.email-capture input {
  flex: 1;
  padding: 16px 20px;
  font-size: 1rem;
  font-family: inherit;
  background: var(--surface-elevated);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: all 0.3s ease;
}

.email-capture input::placeholder {
  color: var(--text-muted);
}

.email-capture input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

.btn-submit {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
  border: none;
  border-radius: var(--radius-md);
  color: white;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s ease;
}

.btn-submit svg {
  width: 18px;
  height: 18px;
  transition: transform 0.3s ease;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.4);
}

.btn-submit:hover svg {
  transform: translateX(4px);
}

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

.btn-submit.success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
}

.form-hint {
  margin: 12px 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-align: center;
}

/* ============================================
   Social Links
   ============================================ */

.social-links {
  display: flex;
  gap: 16px;
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--surface);
  border: 1px solid var(--glass-border);
  border-radius: 50%;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-link svg {
  width: 20px;
  height: 20px;
}

.social-link:hover {
  background: var(--surface-elevated);
  border-color: var(--primary);
  color: var(--primary-light);
  transform: translateY(-2px);
}

/* ============================================
   Staff Link
   ============================================ */

.staff-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.staff-link:hover {
  color: var(--text-secondary);
}

/* ============================================
   Responsive Design
   ============================================ */

@media (max-width: 640px) {
  :root {
    --container-max: 100%;
  }

  .container {
    padding: 32px 20px;
    gap: 24px;
  }

  .brand-name {
    font-size: 1.1rem;
  }

  .progress-animation {
    width: 140px;
    height: 140px;
  }

  .floating-elements {
    display: none;
  }

  .headline {
    font-size: 2.25rem;
  }

  .subheadline {
    font-size: 1rem;
  }

  .glass-card {
    padding: 24px 20px;
    border-radius: var(--radius-lg);
  }

  .countdown {
    gap: 4px;
  }

  .countdown-item {
    min-width: 52px;
  }

  .countdown-value {
    font-size: 1.75rem;
  }

  .countdown-separator {
    font-size: 1.5rem;
  }

  .input-wrapper {
    flex-direction: column;
  }

  .btn-submit {
    justify-content: center;
  }

  .building-indicator {
    font-size: 0.75rem;
  }
}

@media (max-width: 380px) {
  .brand {
    flex-direction: column;
    gap: 8px;
  }

  .countdown-item {
    min-width: 44px;
  }

  .countdown-value {
    font-size: 1.5rem;
  }

  .countdown-label {
    font-size: 0.625rem;
  }
}

/* ============================================
   Reduced Motion
   ============================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   High Contrast Mode Support
   ============================================ */

@media (prefers-contrast: high) {
  :root {
    --glass-border: rgba(255, 255, 255, 0.3);
    --text-secondary: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
  }
}
