/* ==========================================================================
   Celestial Radar — Landing Page Stylesheet
   Modern, Tactical Dark Mode Aesthetic
   ========================================================================== */

:root {
  --bg-primary: #050709;
  --bg-secondary: #0b0f17;
  --bg-card: rgba(15, 23, 42, 0.65);
  --border-card: rgba(0, 212, 255, 0.15);
  --border-highlight: rgba(0, 212, 255, 0.4);
  
  --accent-cyan: #00d4ff;
  --accent-cyan-glow: rgba(0, 212, 255, 0.35);
  --accent-purple: #7c3aed;
  --accent-purple-glow: rgba(124, 58, 237, 0.35);
  --accent-green: #10b981;
  --accent-red: #ef4444;

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-mono: 'JetBrains Mono', monospace;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

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

html, body {
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-mono);
  overflow-x: hidden;
  line-height: 1.6;
}

/* Glassmorphism Background Gradients */
.bg-glow-1 {
  position: absolute;
  top: -150px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(0, 212, 255, 0.12) 0%, rgba(124, 58, 237, 0.05) 50%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* Top Navbar */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  background: rgba(5, 7, 9, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  z-index: 100;
}

.brand-container {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 18px;
  box-shadow: 0 0 16px var(--accent-cyan-glow);
}

.brand-name {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #fff;
}

.brand-badge {
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(0, 212, 255, 0.1);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 212, 255, 0.3);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent-cyan);
}

.brand-logo-img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(0, 212, 255, 0.45));
  transition: transform 0.2s ease;
}

.brand-logo-img:hover {
  transform: scale(1.08);
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  padding: 6px 14px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 20px;
  color: var(--accent-green);
  cursor: pointer;
  user-select: none;
  transition: all 0.25s ease;
}

.status-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.status-pill.live {
  background: rgba(0, 212, 255, 0.12);
  border-color: rgba(0, 212, 255, 0.4);
  color: var(--accent-cyan);
}

.status-pill.live .pulse-dot {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
  animation: pulse-cyan 1.5s infinite;
}

.status-pill.ready {
  background: rgba(16, 185, 129, 0.1);
  border-color: rgba(16, 185, 129, 0.3);
  color: var(--accent-green);
}

.status-pill.offline {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--accent-red);
}

.status-pill.offline .pulse-dot {
  background-color: var(--accent-red);
  box-shadow: 0 0 8px var(--accent-red);
  animation: pulse-red 1.5s infinite;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  animation: pulse-green 1.5s infinite;
}

@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulse-cyan {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(0, 212, 255, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(0, 212, 255, 0); }
}

@keyframes pulse-red {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(239, 68, 68, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Hero Section */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: 130px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-left: 5%;
  padding-right: 5%;
  z-index: 1;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.3);
  border-radius: 30px;
  color: #c084fc;
  font-size: 12px;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 900px;
  background: linear-gradient(180deg, #ffffff 30%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-title span {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: clamp(14px, 2vw, 17px);
  color: var(--text-muted);
  max-width: 680px;
  margin-bottom: 36px;
  font-family: var(--font-sans);
  line-height: 1.6;
}

/* Radar Sweep Visualization Component */
.radar-sweep-container {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 20px auto 40px auto;
  border-radius: 50%;
  border: 1px solid var(--border-highlight);
  box-shadow: 0 0 30px var(--accent-cyan-glow);
  background: radial-gradient(circle, rgba(0, 212, 255, 0.05) 0%, rgba(5, 7, 9, 0.9) 80%);
  overflow: hidden;
}

.radar-sweep-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 130px;
  height: 130px;
  transform-origin: 0% 0%;
  background: conic-gradient(from 0deg at 0% 0%, rgba(0, 212, 255, 0.4) 0deg, transparent 60deg);
  animation: radar-spin 3s linear infinite;
  pointer-events: none;
}

@keyframes radar-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px dashed rgba(0, 212, 255, 0.25);
  pointer-events: none;
}

.radar-ring-1 { width: 80px; height: 80px; }
.radar-ring-2 { width: 160px; height: 160px; }
.radar-ring-3 { width: 230px; height: 230px; }

.radar-blip {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan);
  animation: blip-fade 2s infinite ease-in-out;
}

.blip-1 { top: 35%; left: 65%; animation-delay: 0.2s; }
.blip-2 { top: 70%; left: 30%; background-color: var(--accent-red); box-shadow: 0 0 10px var(--accent-red); animation-delay: 1.1s; }
.blip-3 { top: 25%; left: 35%; background-color: var(--accent-purple); box-shadow: 0 0 10px var(--accent-purple); animation-delay: 1.8s; }

@keyframes blip-fade {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Sample URL Box */
.url-preview-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-highlight);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-width: 580px;
  width: 100%;
}

.url-text {
  font-size: 13px;
  color: var(--accent-cyan);
  word-break: break-all;
  flex: 1;
  text-align: left;
}

.url-badge {
  padding: 4px 10px;
  background: rgba(0, 212, 255, 0.15);
  border-radius: 6px;
  font-size: 11px;
  color: var(--accent-cyan);
  white-space: nowrap;
}

/* How It Works Section */
.section-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 4%;
  z-index: 1;
}

.section-header {
  text-align: center;
  margin-bottom: 50px;
}

.section-subtitle {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent-cyan);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  color: #fff;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.step-card {
  position: relative;
  padding: 30px 24px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.08);
}

.step-number {
  font-size: 36px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.1);
  margin-bottom: 12px;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 10px;
}

.step-desc {
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card {
  padding: 26px 20px;
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-card);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-highlight);
  box-shadow: 0 12px 30px rgba(0, 212, 255, 0.08);
}

.feature-icon {
  font-size: 28px;
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: rgba(0, 212, 255, 0.08);
  border: 1px solid rgba(0, 212, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.feature-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: var(--font-sans);
  line-height: 1.55;
}

/* Footer */
.landing-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 5%;
  text-align: center;
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--accent-cyan);
}

/* Mobile Responsiveness */
@media (max-width: 960px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .steps-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 580px) {
  .features-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .url-preview-box {
    flex-direction: column;
    text-align: center;
  }

  .url-text {
    text-align: center;
  }
}
