:root {
  --bg-deep: #050a12;
  --bg-mid: #0a1628;
  --blue-dark: #0d2847;
  --blue-electric: #1a4d7c;
  --blue-accent: #2563eb;
  --blue-glow: #3b82f6;
  --cyan-accent: #22d3ee;
  --cyan-soft: #06b6d4;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: 'Outfit', sans-serif;
  background: var(--bg-deep);
  color: var(--text-primary);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Grain texture overlay */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Animated gradient background */
.gradient-bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, var(--blue-dark) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 50%, rgba(37, 99, 235, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
    var(--bg-deep);
  z-index: 0;
}

/* Moving light orb */
.light-orb {
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  will-change: transform;
}

.light-orb-secondary {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.06) 0%, transparent 70%);
  transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Main container */
.main-container {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
}

.loader-ring {
  width: 48px;
  height: 48px;
  border: 2px solid transparent;
  border-top-color: var(--blue-glow);
  border-radius: 50%;
  animation: loaderSpin 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
  position: relative;
}

.loader-ring::before {
  content: '';
  position: absolute;
  inset: 6px;
  border: 2px solid transparent;
  border-top-color: var(--cyan-accent);
  border-radius: 50%;
  animation: loaderSpin 0.8s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

/* Logo section */
.logo-wrapper {
  margin-bottom: 3rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 0.3s;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: transform 0.4s ease;
}

.logo-container:hover {
  transform: scale(1.02);
}

.logo-icon {
  width: 44px;
  height: 44px;
  position: relative;
}


.logo-image {
  width: 100%;
  height: 100%;
  filter: brightness(0) invert(1);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(37, 99, 235, 0.3));

}

.logo-text {
  display: flex;
  align-items: baseline;
}

.logo-text .option {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.logo-text .web {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  font-size: 1.75rem;
  color: var(--cyan-accent);
  letter-spacing: -0.02em;
}

/* Content card with glass effect */
.content-card {
  background: linear-gradient(
    135deg,
    rgba(13, 40, 71, 0.4) 0%,
    rgba(10, 22, 40, 0.3) 100%
  );
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(59, 130, 246, 0.1);
  border-radius: 24px;
  padding: 3.5rem 4rem;
  max-width: 560px;
  width: 100%;
  text-align: center;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
  animation: fadeInUp 0.9s ease forwards;
  animation-delay: 0.5s;
  box-shadow:
    0 4px 60px rgba(0, 0, 0, 0.4),
    0 0 80px rgba(37, 99, 235, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.content-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(59, 130, 246, 0.3),
    rgba(34, 211, 238, 0.2),
    transparent
  );
}

/* Title */
.main-title {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 500;
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: var(--text-primary);
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
  line-height: 1.3;
}

/* Decorative line */
.decorative-line {
  width: 80px;
  height: 2px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(
    90deg,
    transparent,
    var(--blue-glow),
    var(--cyan-accent),
    var(--blue-glow),
    transparent
  );
  background-size: 200% 100%;
  animation: fadeInUp 0.6s ease forwards, lineShimmer 4s ease-in-out infinite;
  border-radius: 2px;
  opacity: 0;
  animation-delay: 0.8s, 0.8s;
}

@keyframes lineShimmer {
  0%, 100% { background-position: 200% 0; }
  50% { background-position: 0% 0; }
}

/* Subtitle */
.subtitle {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 0.5rem;
}

.subtitle-secondary {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.6;
}

/* Status indicator */
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 0.625rem 1.25rem;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.15);
  border-radius: 100px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.01em;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1s;
  transition: all 0.3s ease;
}

.status-indicator:hover {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(59, 130, 246, 0.25);
  transform: translateY(-1px);
}

.status-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan-accent);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

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

/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 2rem;
  text-align: center;
  z-index: 20;
  opacity: 0;
  transform: translateY(10px);
  animation: fadeInUp 0.6s ease forwards;
  animation-delay: 1.2s;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-dim);
  font-weight: 300;
}

.footer-link {
  position: relative;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 400;
  transition: color 0.3s ease;
  padding-bottom: 2px;
}

.footer-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--blue-glow), var(--cyan-accent));
  transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-link:hover::after {
  width: 100%;
}

.footer-link:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  .page-loader {
    display: none;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .content-card {
    padding: 2.5rem 1.75rem;
    border-radius: 20px;
    margin: 0 0.5rem;
  }

  .logo-text .option,
  .logo-text .web {
    font-size: 1.5rem;
  }

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

  .main-title {
    font-size: 1.375rem;
  }

  .subtitle {
    font-size: 1rem;
  }

  .footer {
    padding: 1.25rem 1.5rem;
  }

  .footer-content {
    flex-direction: column;
    gap: 0.25rem;
  }
}

/* Focus visible for accessibility */
*:focus-visible {
  outline: 2px solid var(--blue-glow);
  outline-offset: 2px;
}

/* Selection styling */
::selection {
  background: rgba(37, 99, 235, 0.3);
  color: var(--text-primary);
}
