/* ========================================
   TETRA Coming Soon Page - Styles
   ======================================== */

/* CSS Variables */
:root {
  /* Background Colors */
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-tertiary: #1a1a24;
  --bg-elevated: #22222e;
  --bg-hover: #2a2a38;

  /* Text Colors */
  --text-primary: #ffffff;
  --text-secondary: #a0a0b0;
  --text-tertiary: #606070;
  --text-muted: #404050;

  /* Border Colors */
  --border-primary: #2a2a38;
  --border-secondary: #1a1a24;

  /* App Accent Colors */
  --motus: #a855f7;
  --atlas: #5a9be0;
  --orbis: #3dc4d4;
  --omnis: #f07167;
  --dexus: #4ade80;
  --signum: #e3b341;
  --mercatus: #a78bfa;
  --cursor: #38bdf8;

  /* Primary Brand Gradient */
  --gradient-primary: linear-gradient(135deg, #a855f7 0%, #38bdf8 50%, #4ade80 100%);
  --gradient-text: linear-gradient(90deg, #a855f7, #38bdf8, #4ade80);

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  /* Border Radius */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;
  --transition-slow: 0.4s ease;

  /* Shadows */
  --shadow-sm: 0 2px 8px 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(168, 85, 247, 0.3);

  /* Container */
  --container-max: 1280px;
  --container-padding: 24px;
}

/* Reset & Base */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ========================================
   Navigation
   ======================================== */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--space-lg) 0;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  border-bottom-color: var(--border-primary);
}

.nav-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-padding);
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: 20px;
  font-weight: 700;
}

.logo-icon-svg {
  display: inline-block;
  vertical-align: middle;
  overflow: visible;
}

.logo-icon-nav {
  width: 32px;
  height: 32px;
}

.logo-icon-hero {
  width: 72px;
  height: 72px;
}

/* ========================================
   Typography
   ======================================== */

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

.gradient-text {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ========================================
   Hero / Coming Soon Section
   ======================================== */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  z-index: 0;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.geometric-lines {
  position: absolute;
  inset: 0;
  background: 
    linear-gradient(135deg, transparent 49.5%, rgba(168, 85, 247, 0.1) 49.5%, rgba(168, 85, 247, 0.1) 50.5%, transparent 50.5%),
    linear-gradient(45deg, transparent 49.5%, rgba(56, 189, 248, 0.05) 49.5%, rgba(56, 189, 248, 0.05) 50.5%, transparent 50.5%);
  background-size: 60px 60px;
  opacity: 0.5;
}

/* ========================================
   Coming Soon Content
   ======================================== */

.coming-soon-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 var(--container-padding);
  animation: fadeInUp 1s ease forwards;
}

.coming-soon-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  font-size: 48px;
  font-weight: 800;
  margin-bottom: var(--space-3xl);
}

.coming-soon-logo .logo-icon-hero {
  width: 72px;
  height: 72px;
}

.coming-soon-banner {
  display: inline-block;
  padding: var(--space-lg) var(--space-4xl);
  background: rgba(18, 18, 26, 0.7);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(12px);
  margin-bottom: var(--space-2xl);
  animation: glow-pulse 3s ease-in-out infinite;
}

.coming-soon-banner h1 {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -1px;
}

.coming-soon-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 540px;
  margin: 0 auto;
  margin-top: var(--space-xl);
}

/* Orb visual */
.hero-visual {
  position: absolute;
  right: 50%;
  top: 50%;
  transform: translate(50%, -50%);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

.orb-container {
  position: relative;
  width: 500px;
  height: 500px;
}

.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(168, 85, 247, 0.3), rgba(56, 189, 248, 0.2), rgba(74, 222, 128, 0.1));
  box-shadow: 
    0 0 60px rgba(168, 85, 247, 0.3),
    0 0 120px rgba(56, 189, 248, 0.2),
    inset 0 0 60px rgba(255, 255, 255, 0.1);
  animation: orb-pulse 4s ease-in-out infinite;
}

.orb-inner {
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.2), transparent 60%);
}

.orb-glow {
  position: absolute;
  inset: -40px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.2) 0%, transparent 70%);
  animation: orb-glow 3s ease-in-out infinite alternate;
}

.orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation: orbit-rotate 20s linear infinite;
}

.orbit-1 {
  width: 280px;
  height: 280px;
  animation-duration: 15s;
}

.orbit-2 {
  width: 360px;
  height: 360px;
  animation-duration: 20s;
  animation-direction: reverse;
}

.orbit-3 {
  width: 440px;
  height: 440px;
  animation-duration: 25s;
}

.orbit-dot {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%) translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--color);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--color);
}

/* ========================================
   Animations
   ======================================== */

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

@keyframes orb-pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.05); }
}

@keyframes orb-glow {
  0% { opacity: 0.3; transform: scale(1); }
  100% { opacity: 0.6; transform: scale(1.2); }
}

@keyframes orbit-rotate {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.15), 0 0 60px rgba(56, 189, 248, 0.05);
  }
  50% {
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.25), 0 0 80px rgba(56, 189, 248, 0.1);
  }
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@media (max-width: 768px) {
  .coming-soon-logo {
    font-size: 32px;
  }

  .coming-soon-logo .logo-icon {
    font-size: 40px;
  }

  .coming-soon-banner h1 {
    font-size: 28px;
  }

  .coming-soon-banner {
    padding: var(--space-lg) var(--space-2xl);
  }

  .coming-soon-subtitle {
    font-size: 15px;
  }

  .orb-container {
    width: 300px;
    height: 300px;
  }

  .orb {
    width: 120px;
    height: 120px;
  }

  .orbit-1 { width: 180px; height: 180px; }
  .orbit-2 { width: 230px; height: 230px; }
  .orbit-3 { width: 280px; height: 280px; }
}

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