/* ========================================
   CSS Custom Properties & Design System
   ======================================== */

:root {
  --color-bg-primary: #0a0a0a;
  --color-bg-secondary: #111111;
  --color-bg-tertiary: #1a1a1a;
  --color-text-primary: #ffffff;
  --color-text-secondary: #b0b0b0;
  --color-text-muted: #808080;
  --color-accent: #4f46e5;
  --color-accent-light: #6366f1;
  --color-accent-glow: rgba(79, 70, 229, 0.15);
  --color-status-active: #10b981;
  --color-status-glow: rgba(16, 185, 129, 0.2);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  
  --duration-fast: 200ms;
  --duration-normal: 300ms;
  --duration-slow: 500ms;
  --timing-ease: cubic-bezier(0.4, 0, 0.2, 1);
  
  --font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.5rem;
  --font-size-2xl: 2rem;
  --font-size-3xl: 3rem;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 24px rgba(0, 0, 0, 0.5);
  
  /* Viewport breakpoints */
  --bp-mobile: 320px;
  --bp-tablet: 768px;
  --bp-desktop: 1024px;
  --bp-wide: 1440px;
}

/* ========================================
   Reset & Base Styles
   ======================================== */

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
  position: relative;
}

/* Ensure content is above background */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 50%, rgba(79, 70, 229, 0.08) 0%, transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(16, 185, 129, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 0%, rgba(79, 70, 229, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ========================================
   Background Elements
   ======================================== */

.background {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -1;
  background-color: var(--color-bg-primary);
  overflow: hidden;
}

.gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.1;
  will-change: transform;
}

.gradient-orb-1 {
  width: 600px;
  height: 600px;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  top: -200px;
  right: -200px;
  animation: float-slow 20s ease-in-out infinite;
}

.gradient-orb-2 {
  width: 500px;
  height: 500px;
  background: linear-gradient(135deg, #10b981, #06b6d4);
  bottom: -150px;
  left: -150px;
  animation: float-slow 25s ease-in-out infinite reverse;
  animation-delay: -5s;
}

.gradient-orb-3 {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: float-slow 30s ease-in-out infinite;
  animation-delay: -10s;
}

.grid-pattern {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(0deg, transparent 24%, rgba(79, 70, 229, 0.02) 25%, rgba(79, 70, 229, 0.02) 26%, transparent 27%, transparent 74%, rgba(79, 70, 229, 0.02) 75%, rgba(79, 70, 229, 0.02) 76%, transparent 77%, transparent),
    linear-gradient(90deg, transparent 24%, rgba(79, 70, 229, 0.02) 25%, rgba(79, 70, 229, 0.02) 26%, transparent 27%, transparent 74%, rgba(79, 70, 229, 0.02) 75%, rgba(79, 70, 229, 0.02) 76%, transparent 77%, transparent);
  background-size: 100px 100px;
  opacity: 0.3;
}

@keyframes float-slow {
  0%, 100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(20px, -20px);
  }
  50% {
    transform: translate(-10px, 20px);
  }
  75% {
    transform: translate(30px, 10px);
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .gradient-orb {
    animation: none !important;
  }
}

/* ========================================
   Main Layout Container
   ======================================== */

.container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-lg);
  max-width: 900px;
  margin: 0 auto;
}

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

.header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-lg) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-section {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  border-radius: var(--radius-md);
  color: white;
  flex-shrink: 0;
  box-shadow: 0 0 24px var(--color-accent-glow);
}

.logo svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.brand-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--color-text-primary);
}

.brand-subtitle {
  font-size: var(--font-size-sm);
  color: var(--color-text-secondary);
  font-weight: 400;
}

/* ========================================
   Status Badge
   ======================================== */

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  padding: var(--spacing-xs) var(--spacing-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 999px;
  font-size: var(--font-size-sm);
  color: #10b981;
  margin-top: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: currentColor;
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.2);
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
}

.status-text {
  font-weight: 500;
}

/* ========================================
   Main Content
   ======================================== */

.main-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: var(--spacing-lg);
  width: 100%;
  padding: var(--spacing-xl) 0;
}

/* Headline */
.headline {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.5px;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-sm);
}

.headline .highlight {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Description */
.description {
  font-size: var(--font-size-lg);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin-bottom: var(--spacing-lg);
  font-weight: 400;
}

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

.countdown-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-md);
  margin: var(--spacing-xl) 0;
}

.countdown-title {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--color-text-primary);
  text-transform: none;
}

.countdown {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: var(--spacing-md);
  flex-wrap: wrap;
}

.countdown-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.countdown-value {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  color: var(--color-accent-light);
  min-width: 80px;
  padding: var(--spacing-md) var(--spacing-sm);
  background: rgba(79, 70, 229, 0.05);
  border: 1px solid rgba(79, 70, 229, 0.1);
  border-radius: var(--radius-md);
  transition: all var(--duration-fast) var(--timing-ease);
}

@media (max-width: 768px) {
  .countdown-value {
    font-size: var(--font-size-2xl);
    min-width: 60px;
    padding: var(--spacing-sm) 0.5rem;
  }
}

@media (max-width: 480px) {
  .countdown-value {
    font-size: var(--font-size-xl);
    min-width: 50px;
  }
}

.countdown-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 500;
  text-transform: none;
}

.countdown-separator {
  font-size: var(--font-size-2xl);
  color: var(--color-text-muted);
  font-weight: 300;
  margin-bottom: var(--spacing-md);
  line-height: 1;
}

@media (max-width: 480px) {
  .countdown-separator {
    display: none;
  }
  
  .countdown {
    gap: var(--spacing-sm);
  }
}

/* ========================================
   Status Indicator
   ======================================== */

.status-indicator {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
  margin: var(--spacing-lg) 0;
  padding: var(--spacing-md);
  background: rgba(79, 70, 229, 0.03);
  border: 1px solid rgba(79, 70, 229, 0.08);
  border-radius: var(--radius-lg);
}

.status-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-secondary);
  text-transform: none;
}

.status-bar {
  position: relative;
  width: 100%;
  height: 3px;
  background: rgba(79, 70, 229, 0.1);
  border-radius: 999px;
  overflow: hidden;
}

.status-progress {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 35%;
  background: linear-gradient(90deg, var(--color-accent), var(--color-accent-light));
  border-radius: 999px;
  animation: progress-pulse 3s ease-in-out infinite;
}

@keyframes progress-pulse {
  0%, 100% {
    width: 35%;
  }
  50% {
    width: 65%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .status-progress {
    animation: none;
    width: 50%;
  }
}

.status-message {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

/* ========================================
   Supporting Message
   ======================================== */

.supporting-message {
  font-size: var(--font-size-base);
  color: var(--color-text-secondary);
  line-height: 1.7;
  max-width: 500px;
  margin: var(--spacing-lg) 0;
  font-weight: 400;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  width: 100%;
  text-align: center;
  padding: var(--spacing-lg) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer p {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  font-weight: 400;
}

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

@media (max-width: 768px) {
  :root {
    --font-size-3xl: 2.25rem;
    --font-size-2xl: 1.75rem;
    --font-size-xl: 1.25rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 2.5rem;
  }

  .container {
    padding: var(--spacing-md);
  }

  .header {
    padding: var(--spacing-md) 0;
  }

  .logo-section {
    gap: var(--spacing-sm);
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .logo svg {
    width: 20px;
    height: 20px;
  }

  .brand-name {
    font-size: var(--font-size-base);
  }

  .headline {
    font-size: var(--font-size-2xl);
  }

  .description {
    font-size: var(--font-size-base);
  }

  .main-content {
    padding: var(--spacing-lg) 0;
    gap: var(--spacing-md);
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-3xl: 1.875rem;
    --font-size-2xl: 1.5rem;
    --font-size-lg: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 1.5rem;
  }

  .container {
    padding: var(--spacing-md);
    justify-content: flex-start;
  }

  .header {
    padding: var(--spacing-md) 0;
    border-bottom: none;
  }

  .status-badge {
    margin-top: var(--spacing-md);
    margin-bottom: var(--spacing-md);
  }

  .headline {
    font-size: var(--font-size-2xl);
    line-height: 1.4;
  }

  .description {
    font-size: 0.95rem;
  }

  .countdown-section {
    margin: var(--spacing-lg) 0;
  }

  .countdown-value {
    font-size: 1.75rem;
    min-width: 55px;
    padding: var(--spacing-sm);
  }

  .status-indicator {
    max-width: 100%;
  }

  .footer {
    border-top: none;
    padding: var(--spacing-md) 0;
  }

  .footer p {
    font-size: 0.8rem;
  }
}

@media (max-width: 360px) {
  .logo-section {
    gap: var(--spacing-xs);
  }

  .logo {
    width: 36px;
    height: 36px;
  }

  .logo svg {
    width: 18px;
    height: 18px;
  }

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

  .brand-subtitle {
    font-size: 0.75rem;
  }

  .headline {
    font-size: 1.5rem;
  }

  .status-badge {
    font-size: 0.8rem;
    padding: 0.375rem 0.75rem;
  }

  .countdown-value {
    font-size: 1.5rem;
    min-width: 48px;
    padding: 0.75rem 0.375rem;
  }
}

/* ========================================
   Print Styles
   ======================================== */

@media print {
  .background,
  body::before {
    display: none;
  }

  .container {
    background: white;
    color: black;
  }

  .status-badge,
  .logo {
    border: 1px solid black;
    background: none !important;
    box-shadow: none !important;
  }
}
