/* ==========================================================================
   Gravity One - Core Stylesheet
   ========================================================================== */

/* Design Tokens & CSS Variables */
:root {
  --bg-color: #0b0c10;
  --bg-card: rgba(15, 23, 42, 0.55);
  --border-card: rgba(255, 255, 255, 0.08);

  --color-primary: #4f46e5;
  --color-secondary: #06b6d4;
  --color-accent: #8b5cf6;
  --color-text-main: #ffffff;
  --color-text-muted: #94a3b8;
  --color-badge: #10b981;

  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  height: 100vh;
  width: 100vw;
  overflow: hidden;
  background-color: var(--bg-color);
  color: var(--color-text-main);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* ==========================================================================
   Background Orbital Loader Animations
   ========================================================================== */
.bg-glow-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

/* Animação de Fundo (Orbital Principal) */
.bg-loader {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0%, transparent 50%, var(--color-primary) 100%);
  animation: spin 2.5s linear infinite;
  filter: blur(45px);
  opacity: 0.65;
}

/* Animação de Fundo (Orbital Interna Inversa) */
.bg-loader-inner {
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: conic-gradient(from 180deg, transparent 0%, transparent 50%, var(--color-secondary) 100%);
  animation: spin 1.8s linear infinite reverse;
  filter: blur(35px);
  opacity: 0.55;
}

/* Pulso Central */
.bg-pulse {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent) 0%, transparent 70%);
  animation: pulse 3s ease-in-out infinite alternate;
  filter: blur(25px);
  opacity: 0.4;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes pulse {
  0% {
    transform: scale(0.85);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.25);
    opacity: 0.6;
  }
}

/* ==========================================================================
   Hero Content & Glassmorphism Card
   ========================================================================== */
.hero-container {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  width: 100%;
  max-width: 800px;
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-card);
  border-radius: 24px;
  padding: 3.5rem 3rem;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5),
              inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* Status Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.875rem;
  border-radius: 9999px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: var(--color-badge);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-badge);
  box-shadow: 0 0 8px var(--color-badge);
}

/* Main Heading */
h1 {
  font-family: var(--font-heading);
  color: var(--color-text-main);
  font-size: 3.75rem;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Tagline */
.tagline {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 540px;
  line-height: 1.6;
  font-weight: 300;
}

/* Actions & Indicators */
.actions {
  margin-top: 0.5rem;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.pulse-ring {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: var(--color-secondary);
}

.pulse-ring::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  border-radius: 50%;
  border: 2px solid var(--color-secondary);
  animation: ring-pulse 1.8s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

@keyframes ring-pulse {
  0% {
    transform: scale(0.6);
    opacity: 1;
  }
  100% {
    transform: scale(2.2);
    opacity: 0;
  }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 640px) {
  .glass-card {
    padding: 2.5rem 1.5rem;
    border-radius: 20px;
  }

  h1 {
    font-size: 2.5rem;
    letter-spacing: 0.04em;
  }

  .tagline {
    font-size: 0.975rem;
  }

  .bg-loader {
    width: 260px;
    height: 260px;
    filter: blur(35px);
  }

  .bg-loader-inner {
    width: 180px;
    height: 180px;
    filter: blur(25px);
  }
}

@media (max-height: 500px) {
  body {
    overflow-y: auto;
    height: auto;
    min-height: 100vh;
  }
}
