/* ============================================
   NEUROVEXA LLC — Maintenance Landing Page
   Premium Dark Theme Stylesheet
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
  --color-bg: #000000;
  --color-bg-elevated: #050508;
  --color-surface: rgba(255, 255, 255, 0.03);
  --color-surface-hover: rgba(255, 255, 255, 0.06);
  --color-border: rgba(0, 240, 255, 0.1);
  --color-border-hover: rgba(0, 240, 255, 0.22);
  --color-text: #e8faff;
  --color-text-muted: #8ec8d4;
  --color-text-dim: #5a8a96;
  --color-accent: #00f0ff;
  --color-accent-light: #5ce1e6;
  --color-accent-blue: #38b6ff;
  --color-accent-cyan: #00f0ff;
  --color-accent-purple: #cb6ce6;
  --color-accent-lavender: #b197fc;
  --color-success: #00e676;
  --color-success-glow: rgba(0, 230, 118, 0.4);

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.75rem;
  --font-size-5xl: 3.5rem;

  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-2xl: 3rem;
  --spacing-3xl: 4rem;

  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 0.875rem;
  --radius-xl: 1.25rem;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 40px rgba(0, 240, 255, 0.12);

  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(0, 240, 255, 0.1);
  --glass-blur: 20px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  --max-width: 1200px;
  --content-width: 720px;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  display: flex;
  flex-direction: column;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

::selection {
  background: rgba(0, 240, 255, 0.25);
  color: #fff;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--spacing-md);
  z-index: 10000;
  padding: var(--spacing-sm) var(--spacing-md);
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--spacing-md);
}

/* --- Background Layers --- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Aurora Gradients */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.28;
  will-change: transform;
}

.aurora-1 {
  width: 70vw;
  height: 70vw;
  max-width: 900px;
  max-height: 900px;
  top: -25%;
  left: -15%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.22) 0%, transparent 65%);
  animation: aurora-drift-1 28s ease-in-out infinite alternate;
}

.aurora-2 {
  width: 55vw;
  height: 55vw;
  max-width: 750px;
  max-height: 750px;
  top: 20%;
  right: -20%;
  background: radial-gradient(circle, rgba(203, 108, 230, 0.18) 0%, transparent 65%);
  animation: aurora-drift-2 32s ease-in-out infinite alternate;
}

.aurora-3 {
  width: 50vw;
  height: 50vw;
  max-width: 650px;
  max-height: 650px;
  bottom: -15%;
  left: 25%;
  background: radial-gradient(circle, rgba(56, 182, 255, 0.15) 0%, transparent 65%);
  animation: aurora-drift-3 30s ease-in-out infinite alternate;
}

@keyframes aurora-drift-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(5%, 8%) scale(1.05); }
  100% { transform: translate(-3%, 5%) scale(0.95); }
}

@keyframes aurora-drift-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8%, 5%) scale(1.08); }
  100% { transform: translate(5%, -3%) scale(0.92); }
}

@keyframes aurora-drift-3 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(4%, -4%) scale(1.03); }
  100% { transform: translate(-3%, 3%) scale(0.97); }
}

/* Depth Vignette */
.bg-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% 45%, transparent 30%, rgba(0, 0, 0, 0.55) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, transparent 35%, transparent 65%, rgba(0, 0, 0, 0.4) 100%);
  pointer-events: none;
}

/* Gentle Light Beams */
.light-beam {
  position: absolute;
  width: 140%;
  height: 200px;
  left: -20%;
  filter: blur(60px);
  opacity: 0.12;
  will-change: transform, opacity;
  pointer-events: none;
}

.light-beam-1 {
  top: 15%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(0, 240, 255, 0.15) 35%,
    rgba(56, 182, 255, 0.1) 55%,
    transparent 80%
  );
  animation: beam-drift-1 20s ease-in-out infinite alternate;
}

.light-beam-2 {
  bottom: 20%;
  background: linear-gradient(
    75deg,
    transparent 0%,
    rgba(203, 108, 230, 0.12) 40%,
    rgba(0, 240, 255, 0.08) 60%,
    transparent 85%
  );
  animation: beam-drift-2 24s ease-in-out infinite alternate;
}

@keyframes beam-drift-1 {
  0% { transform: translateX(-3%) rotate(-8deg); opacity: 0.08; }
  100% { transform: translateX(3%) rotate(-5deg); opacity: 0.14; }
}

@keyframes beam-drift-2 {
  0% { transform: translateX(2%) rotate(6deg); opacity: 0.1; }
  100% { transform: translateX(-2%) rotate(9deg); opacity: 0.06; }
}

/* Particle Canvas */
.particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Mouse Glow Effects */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
  pointer-events: none;
}

.glow-1 {
  width: 500px;
  height: 500px;
  background: rgba(0, 240, 255, 0.06);
}

.glow-2 {
  width: 400px;
  height: 400px;
  background: rgba(203, 108, 230, 0.05);
}

body.mouse-active .glow {
  opacity: 1;
}

/* --- Floating Language Switch --- */
.lang-switch {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  padding: 3px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-switch-float {
  position: fixed;
  top: var(--spacing-lg);
  right: var(--spacing-lg);
  z-index: 100;
}

.lang-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-muted);
  transition: all var(--transition-fast);
  white-space: nowrap;
  opacity: 0.55;
}

.lang-btn:hover {
  color: var(--color-text);
  opacity: 0.85;
  background: var(--color-surface-hover);
}

.lang-btn.active {
  color: var(--color-text);
  opacity: 1;
  background: rgba(0, 240, 255, 0.12);
  box-shadow: 0 0 16px rgba(0, 240, 255, 0.15);
}

.lang-divider {
  color: var(--color-text-dim);
  font-size: var(--font-size-sm);
  opacity: 0.35;
  user-select: none;
  padding: 0 1px;
}

/* --- Main Content --- */
.main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-3xl) var(--spacing-xl);
}

.hero {
  max-width: var(--content-width);
  width: 100%;
  text-align: center;
  animation: fade-in-up 0.8s ease-out both;
}

.hero-logo-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: var(--spacing-2xl);
  animation: fade-in-up 0.8s ease-out both;
}

.hero-logo {
  width: 100%;
  max-width: 480px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(0, 240, 255, 0.25)) drop-shadow(0 0 60px rgba(203, 108, 230, 0.12));
  animation: logo-glow 4s ease-in-out infinite alternate;
}

@keyframes logo-glow {
  0% {
    filter: drop-shadow(0 0 24px rgba(0, 240, 255, 0.2)) drop-shadow(0 0 48px rgba(203, 108, 230, 0.1));
  }
  100% {
    filter: drop-shadow(0 0 36px rgba(0, 240, 255, 0.35)) drop-shadow(0 0 72px rgba(56, 182, 255, 0.15));
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: var(--font-size-4xl);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--spacing-md);
  color: var(--color-text);
}

.hero-intro {
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-muted);
  max-width: 480px;
  margin: 0 auto var(--spacing-2xl);
}

.hero-panel {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* --- Desktop Viewport Fit (1920×1080) --- */
@media (min-width: 1024px) and (min-height: 800px) {
  html {
    height: 100%;
  }

  body {
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
  }

  .main {
    padding: 1.25rem var(--spacing-xl) 0.5rem;
    flex: 1;
    min-height: 0;
  }

  .footer {
    padding: 0.5rem var(--spacing-md) 0.75rem;
    flex-shrink: 0;
  }

  .hero-logo {
    max-width: 360px;
  }

  .hero-logo-wrap {
    margin-bottom: 1rem;
  }

  .hero-title {
    font-size: 2.125rem;
    margin-bottom: 0.5rem;
  }

  .hero-intro {
    font-size: 0.9375rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    max-width: 440px;
  }

  .hero-panel {
    gap: 0.625rem;
    max-width: 720px;
  }

  .status-card {
    padding: 0.75rem 1.125rem;
  }

  .status-header {
    gap: 0.625rem;
    margin-bottom: 0.5rem;
  }

  .status-text {
    font-size: 0.875rem;
  }

  .progress-bar {
    height: 3px;
    margin-bottom: 0.375rem;
  }

  .progress-label {
    font-size: 0.75rem;
  }

  .info-cards {
    gap: 0.625rem;
  }

  .info-card {
    padding: 0.75rem 0.875rem;
  }

  .info-card-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 0.375rem;
  }

  .info-card-icon svg {
    width: 18px;
    height: 18px;
  }

  .info-card-label {
    margin-bottom: 0.125rem;
  }

  .info-card-value {
    font-size: 0.875rem;
    line-height: 1.35;
  }
}

@media (min-width: 1200px) and (min-height: 800px) {
  .hero-panel {
    max-width: 820px;
  }

  .info-cards {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* --- Glass Card Base --- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-md), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.glass-card:hover {
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-lg), var(--shadow-glow), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* --- Status Card --- */
.status-card {
  padding: var(--spacing-lg) var(--spacing-xl);
  text-align: left;
  animation: fade-in-up 0.8s ease-out 0.2s both;
}

.status-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.status-indicator {
  position: relative;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.status-dot {
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: var(--color-success);
  z-index: 2;
}

.status-dot-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--color-success);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.status-text {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.01em;
}

/* Progress Bar */
.progress-bar {
  position: relative;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--spacing-sm);
}

.progress-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--color-accent-purple), var(--color-accent), var(--color-accent-blue));
  border-radius: var(--radius-full);
  transition: width 0.15s linear;
}

.progress-glow {
  position: absolute;
  top: -4px;
  left: 0;
  width: 40px;
  height: 12px;
  background: radial-gradient(ellipse, rgba(0, 240, 255, 0.6) 0%, transparent 70%);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.progress-bar.active .progress-glow {
  opacity: 1;
}

.progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
}

.progress-percent {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--color-text-muted);
}

/* --- Info Cards --- */
.info-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-md);
  animation: fade-in-up 0.8s ease-out 0.35s both;
}

.info-card {
  padding: var(--spacing-lg);
  text-align: left;
  position: relative;
  overflow: hidden;
}

.info-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.3), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.info-card:hover::before {
  opacity: 1;
}

.info-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-md);
  background: rgba(0, 240, 255, 0.08);
  color: var(--color-accent-light);
}

.info-card-label {
  font-size: var(--font-size-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dim);
  margin-bottom: var(--spacing-xs);
}

.info-card-value {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.4;
}

/* --- Footer --- */
.footer {
  position: relative;
  z-index: 1;
  padding: var(--spacing-lg) var(--spacing-md);
  text-align: center;
}

.footer-copyright {
  font-size: var(--font-size-sm);
  color: var(--color-text-dim);
  line-height: 1.5;
}

/* --- Responsive: Tablet --- */
@media (max-width: 1024px) {
  :root {
    --font-size-4xl: 2.25rem;
  }
}

@media (max-width: 768px) {
  :root {
    --font-size-4xl: 2rem;
    --font-size-lg: 1rem;
  }

  .lang-switch-float {
    top: var(--spacing-md);
    right: var(--spacing-md);
  }

  .main {
    padding: var(--spacing-2xl) var(--spacing-md);
  }

  .hero-intro {
    font-size: var(--font-size-base);
    margin-bottom: var(--spacing-xl);
  }

  .hero-title {
    font-size: var(--font-size-3xl);
  }

  .info-cards {
    grid-template-columns: 1fr;
  }

  .info-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
  }

  .info-card-icon {
    margin-bottom: 0;
    flex-shrink: 0;
  }

  .info-card-label {
    margin-bottom: 2px;
  }

  .status-card {
    padding: var(--spacing-md) var(--spacing-lg);
  }

  .hero-logo-wrap {
    margin-bottom: var(--spacing-xl);
  }

  .hero-logo {
    max-width: 280px;
  }

  .aurora-1,
  .aurora-2,
  .aurora-3 {
    filter: blur(80px);
    opacity: 0.22;
  }

  .light-beam {
    opacity: 0.07;
  }
}

@media (max-width: 480px) {
  :root {
    --font-size-4xl: 1.75rem;
  }

  .hero-logo {
    max-width: 240px;
  }
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .aurora {
    animation: none;
  }

  .hero-logo {
    animation: none;
    filter: drop-shadow(0 0 20px rgba(0, 240, 255, 0.2));
  }

  .light-beam {
    animation: none;
  }

  .hero {
    animation: none;
  }

  .status-card,
  .info-cards {
    animation: none;
  }

  .status-dot-ring {
    animation: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* --- High Contrast --- */
@media (prefers-contrast: high) {
  :root {
    --color-border: rgba(255, 255, 255, 0.2);
    --color-text-muted: #d4d4d8;
    --glass-border: rgba(255, 255, 255, 0.2);
  }
}

/* --- Print --- */
@media print {
  .bg-layer,
  .lang-switch-float,
  .particle-canvas {
    display: none;
  }

  body {
    background: #fff;
    color: #000;
  }

  .glass-card {
    border: 1px solid #ccc;
    background: #f9f9f9;
    backdrop-filter: none;
  }
}
