/* ==========================================================================
   NEXUS LABS - Dynamic & Animated Under Process Page
   Modern, High-Performance Design System & Motion Graphics
   ========================================================================== */

:root {
  /* Color Palette - Curated HSL Tokens */
  --bg-base: hsl(222, 47%, 6%);
  --bg-surface: hsla(222, 40%, 10%, 0.7);
  --bg-surface-elevated: hsla(222, 35%, 14%, 0.85);
  --bg-input: hsla(222, 45%, 8%, 0.9);
  
  --border-subtle: hsla(220, 30%, 30%, 0.35);
  --border-highlight: hsla(217, 91%, 60%, 0.45);
  --border-glass: hsla(0, 0%, 100%, 0.1);

  --text-primary: hsl(210, 40%, 98%);
  --text-secondary: hsl(215, 20%, 75%);
  --text-muted: hsl(215, 15%, 55%);
  
  --accent-cyan: hsl(190, 95%, 50%);
  --accent-blue: hsl(217, 91%, 60%);
  --accent-indigo: hsl(238, 84%, 67%);
  --accent-emerald: hsl(156, 73%, 45%);
  
  --glow-primary: hsla(217, 91%, 60%, 0.25);
  --glow-secondary: hsla(190, 95%, 50%, 0.2);

  /* Typography */
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'Space Grotesk', monospace;
  
  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

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

html, body {
  min-height: 100vh;
  width: 100%;
  font-family: var(--font-main);
  background-color: var(--bg-base);
  color: var(--text-primary);
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background Elements */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: radial-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

.glow-orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.45;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-blue) 0%, transparent 70%);
  top: -10%;
  left: 15%;
}

.orb-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 70%);
  bottom: 0%;
  right: 10%;
  animation-delay: -6s;
  animation-duration: 22s;
}

.orb-3 {
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, var(--accent-indigo) 0%, transparent 70%);
  top: 40%;
  left: 60%;
  animation-delay: -12s;
  animation-duration: 16s;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(60px, -40px) scale(1.1); }
  100% { transform: translate(-40px, 50px) scale(0.95); }
}

/* Layout Wrapper */
.wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 1.5rem;
  max-width: 1080px;
  margin: 0 auto;
}

/* Header */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0 2rem;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  user-select: none;
}

.brand-symbol {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--glow-secondary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.symbol-inner {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-text {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.brand-dot {
  color: var(--accent-cyan);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.active-url-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  cursor: pointer;
  position: relative;
  transition: all 0.2s var(--ease-spring);
}

.active-url-pill:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.active-url-pill .link-icon {
  width: 13px;
  height: 13px;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.active-url-pill .url-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.copied-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--accent-emerald);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s var(--ease-spring);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.copied-tooltip.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.header-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  padding: 0.45rem 0.9rem;
  border-radius: 9999px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.status-indicator {
  position: relative;
  width: 8px;
  height: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

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

.status-pulse {
  position: absolute;
  width: 18px;
  height: 18px;
  background-color: var(--accent-emerald);
  border-radius: 50%;
  opacity: 0.4;
  animation: radarPulse 2s ease-out infinite;
}

@keyframes radarPulse {
  0% { transform: scale(0.4); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}

.status-text {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

/* Hero Main Card */
.main-card {
  position: relative;
  width: 100%;
  max-width: 780px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 28px;
  padding: 3rem 2.75rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 
    0 24px 60px -12px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;
  text-align: center;
  transition: transform 0.25s var(--ease-spring), box-shadow 0.25s var(--ease-spring);
  transform-style: preserve-3d;
  margin: 1.5rem 0;
}

.card-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-cyan), var(--accent-blue), transparent);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  opacity: 0.8;
}

/* Badge */
.badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: hsla(217, 91%, 60%, 0.12);
  border: 1px solid hsla(217, 91%, 60%, 0.25);
  color: hsl(210, 100%, 82%);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.gear-icon {
  width: 16px;
  height: 16px;
  animation: gearSpin 8s linear infinite;
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Typography */
.headline {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin-bottom: 1.25rem;
}

.site-name-highlight {
  color: var(--text-primary);
  font-weight: 800;
  text-transform: capitalize;
}

.highlight-text {
  background: linear-gradient(135deg, #38bdf8 10%, #818cf8 60%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.description {
  font-size: clamp(1rem, 2vw, 1.1rem);
  line-height: 1.65;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-weight: 400;
}

/* Progress Tracker */
.progress-section {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 2.2rem;
  text-align: left;
}

.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.progress-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.progress-percentage {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent-cyan);
}

.progress-bar-track {
  width: 100%;
  height: 10px;
  background: hsla(220, 35%, 8%, 0.8);
  border-radius: 9999px;
  overflow: hidden;
  position: relative;
  margin-bottom: 1.2rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.4) inset;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-blue), var(--accent-indigo));
  border-radius: 9999px;
  position: relative;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 0 12px var(--glow-primary);
}

.progress-light-shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 100%
  );
  animation: shimmer 2.5s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.milestones-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.75rem;
}

.milestone-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-muted);
}

.milestone-item.done {
  color: var(--text-primary);
}

.milestone-item.done .check-icon {
  width: 15px;
  height: 15px;
  color: var(--accent-emerald);
  background: hsla(156, 73%, 45%, 0.15);
  border-radius: 50%;
  padding: 2px;
}

.milestone-item.active {
  color: var(--accent-cyan);
  font-weight: 600;
}

.spinner-small {
  width: 13px;
  height: 13px;
  border: 2px solid var(--accent-cyan);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.circle-small {
  width: 10px;
  height: 10px;
  border: 1.5px solid var(--text-muted);
  border-radius: 50%;
  margin-left: 2px;
}

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

/* Countdown Grid */
.countdown-container {
  margin-bottom: 2.2rem;
}

.countdown-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.9rem;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
}

.countdown-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  min-width: 78px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease-spring), border-color 0.2s;
}

.countdown-box:hover {
  transform: translateY(-2px);
  border-color: var(--border-highlight);
}

.box-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.countdown-number {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 0.35rem;
}

.countdown-unit {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.countdown-separator {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-muted);
  animation: blink 1.5s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 0.2; }
}

/* Subscription & Input */
.subscription-wrapper {
  max-width: 520px;
  margin: 0 auto;
}

.notify-form {
  position: relative;
  width: 100%;
}

.input-group {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 0.4rem 0.45rem 0.4rem 1.1rem;
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.input-group:focus-within {
  border-color: var(--accent-blue);
  background: hsla(222, 50%, 9%, 0.95);
  box-shadow: 0 0 0 3px var(--glow-primary);
}

.mail-icon {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  margin-right: 0.75rem;
  transition: color 0.3s;
}

.input-group:focus-within .mail-icon {
  color: var(--accent-cyan);
}

.input-group input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-main);
  font-size: 0.95rem;
  color: var(--text-primary);
  padding: 0.5rem 0;
}

.input-group input::placeholder {
  color: var(--text-muted);
  font-weight: 400;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-blue));
  border: none;
  outline: none;
  color: #ffffff;
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.35rem;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 14px var(--glow-primary);
  transition: transform 0.2s var(--ease-spring), filter 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}

.submit-btn:hover {
  transform: translateY(-1px) scale(1.02);
  filter: brightness(1.1);
  box-shadow: 0 6px 20px var(--glow-primary);
}

.submit-btn:active {
  transform: translateY(1px) scale(0.98);
}

.btn-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease-smooth);
}

.submit-btn:hover .btn-arrow {
  transform: translateX(3px);
}

.form-feedback {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  min-height: 1.2rem;
  transition: all 0.3s ease;
  font-weight: 500;
}

.form-feedback.success {
  color: var(--accent-emerald);
}

.form-feedback.error {
  color: hsl(0, 85%, 65%);
}

.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

.lock-icon {
  width: 13px;
  height: 13px;
}

/* Footer */
.footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding-top: 2rem;
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: 12px;
  color: var(--text-secondary);
  transition: all 0.25s var(--ease-spring);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border-color: var(--border-highlight);
  transform: translateY(-3px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Responsive Breakpoints */
@media (max-width: 640px) {
  .wrapper {
    padding: 1.25rem 1rem;
  }
  
  .header {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    text-align: center;
  }

  .header-right {
    justify-content: center;
  }
  
  .main-card {
    padding: 2rem 1.25rem;
    border-radius: 20px;
  }

  .input-group {
    flex-direction: column;
    padding: 0.75rem;
    gap: 0.75rem;
  }

  .mail-icon {
    display: none;
  }

  .input-group input {
    width: 100%;
    text-align: center;
  }

  .submit-btn {
    width: 100%;
    justify-content: center;
  }

  .countdown-grid {
    gap: 0.35rem;
  }

  .countdown-box {
    min-width: 62px;
    padding: 0.65rem 0.5rem;
  }

  .countdown-number {
    font-size: 1.4rem;
  }

  .milestones-row {
    grid-template-columns: 1fr 1fr;
  }
}
