/**
 * Public landing page styles
 */

/* Hero section */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 50px);
  padding: 40px 24px;
  background: radial-gradient(
      ellipse at 20% 50%,
      rgba(0, 173, 181, 0.08) 0%,
      transparent 60%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(233, 69, 96, 0.06) 0%,
      transparent 60%
    ),
    var(--bg-primary);
  overflow: hidden;
}

/* ── Animated gears background ── */
.gears-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.gear {
  position: absolute;
  color: rgba(255, 255, 255, 0.03);
}

.gear-1 {
  width: 420px;
  height: 420px;
  top: -80px;
  right: -60px;
  animation: spin-cw 40s linear infinite;
}

.gear-2 {
  width: 280px;
  height: 280px;
  bottom: -40px;
  left: -50px;
  animation: spin-ccw 30s linear infinite;
}

.gear-3 {
  width: 180px;
  height: 180px;
  top: 50%;
  right: 18%;
  transform: translateY(-50%);
  animation: spin-cw 25s linear infinite;
}

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

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

/* keep gear-3 centred while spinning */
.gear-3 {
  animation: spin-cw-centre 25s linear infinite;
}

@keyframes spin-cw-centre {
  from {
    transform: translateY(-50%) rotate(0deg);
  }
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* ── Hero content (above gears) ── */
.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 640px;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--info), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-desc {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-desc a {
  color: var(--info);
  text-decoration: none;
  font-weight: 600;
}

.hero-desc a:hover {
  text-decoration: underline;
}

/* Status indicator */
.hero-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-dot.online {
  background: var(--success);
  box-shadow: 0 0 8px rgba(0, 210, 106, 0.5);
}

.status-dot.offline {
  background: var(--accent);
  box-shadow: 0 0 8px rgba(233, 69, 96, 0.5);
}

.status-text {
  font-weight: 600;
}

.status-text.online {
  color: var(--success);
}

.status-text.offline {
  color: var(--accent);
}

.status-sep {
  color: var(--border);
}

.status-detail strong {
  color: var(--text-primary);
  font-family: "Monaco", "Menlo", monospace;
}

/* Sign in button */
.hero-actions .btn-signin {
  display: inline-block;
  padding: 12px 44px;
  border-radius: 8px;
  background: var(--info);
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.hero-actions .btn-signin:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 173, 181, 0.3);
}

/* Footer */
.landing-footer {
  text-align: center;
  padding: 16px 20px;
  color: var(--text-secondary);
  font-size: 0.78rem;
  border-top: 1px solid var(--border);
}

.landing-footer a {
  color: var(--info);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-status {
    flex-direction: column;
    gap: 6px;
  }

  .status-sep {
    display: none;
  }

  .gear-1 {
    width: 250px;
    height: 250px;
  }
  .gear-2 {
    width: 160px;
    height: 160px;
  }
  .gear-3 {
    width: 100px;
    height: 100px;
  }
}
