/* ============================================
   GUARDIAN LANDING PAGE — Custom Styles
   ============================================ */

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

html {
  scroll-behavior: smooth;
  background: #050505;
  color: #ffffff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  background: #050505;
  overflow-x: hidden;
}

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar {
  width: 4px;
}
::-webkit-scrollbar-track {
  background: #050505;
}
::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}
::-webkit-scrollbar-thumb:hover {
  background: #D4A843;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #333 #050505;
}

/* ============================================
   HERO — PERSPECTIVE GRID
   ============================================ */
.hero-grid {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-grid::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background-image:
    linear-gradient(to right, rgba(212, 168, 67, 0.2) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(212, 168, 67, 0.2) 1px, transparent 1px);
  background-size: 40px 40px;
  transform: perspective(500px) rotateX(60deg) translateY(-100px) translateZ(-200px);
  transform-origin: center center;
}

/* ============================================
   HERO — SCANLINE
   ============================================ */
.scanline {
  position: absolute;
  left: 0;
  width: 100%;
  height: 4px;
  background: #D4A843;
  box-shadow: 0 0 15px #D4A843;
  opacity: 0.5;
  animation: scanline 6s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes scanline {
  0%   { top: 0%; }
  100% { top: 100%; }
}

/* ============================================
   PULSING DOT
   ============================================ */
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #D4A843;
  animation: pulse-glow 2s ease-in-out infinite;
}

.pulse-dot-lg {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #D4A843;
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(212, 168, 67, 0.4); }
  50%      { opacity: 0.6; box-shadow: 0 0 0 6px rgba(212, 168, 67, 0); }
}

/* ============================================
   HERO — TITLE GLOW
   ============================================ */
.hero-title {
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: clamp(48px, 10vw, 120px);
  line-height: 1.1;
  background: linear-gradient(180deg, #ffffff 0%, #6b7280 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  filter: drop-shadow(0 0 60px rgba(255, 255, 255, 0.3));
}

/* ============================================
   HERO CTA INPUT + BUTTON
   ============================================ */
.cta-input {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid #374151;
  padding: 16px 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  text-transform: uppercase;
  color: #ffffff;
  outline: none;
  transition: border-color 0.3s;
  width: 100%;
}

.cta-input::placeholder {
  color: #6b7280;
}

.cta-input:focus {
  border-color: #D4A843;
}

.cta-button {
  background: #D4A843;
  color: #000000;
  padding: 16px 32px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
  white-space: nowrap;
}

.cta-button:hover {
  background: #ffffff;
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.3);
}

/* ============================================
   SECTION 2 — FUSION ENGINE
   ============================================ */
.signal-list {
  overflow-y: auto;
  max-height: calc(100vh - 160px);
}

.signal-list::-webkit-scrollbar {
  width: 4px;
}
.signal-list::-webkit-scrollbar-track {
  background: #050505;
}
.signal-list::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 2px;
}
.signal-list::-webkit-scrollbar-thumb:hover {
  background: #D4A843;
}

.signal-block {
  padding: 24px;
  border: 1px solid #1f2937;
  cursor: crosshair;
  transition: all 0.3s;
}

.signal-block:hover,
.signal-block.active {
  border-color: #D4A843;
  background: rgba(212, 168, 67, 0.05);
}

.signal-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  box-sizing: content-box;
  flex-shrink: 0;
}

.signal-icon.inactive {
  background: #1f2937;
  color: #9ca3af;
}

.signal-icon.active {
  background: #D4A843;
  color: #000000;
}

.signal-block:hover .signal-icon,
.signal-block.active .signal-icon {
  background: #D4A843;
  color: #000000;
}

.signal-block:hover .signal-title,
.signal-block.active .signal-title {
  color: #D4A843;
}

/* ============================================
   SECTION 2 — RADAR
   ============================================ */
.radar-container {
  position: relative;
  width: 400px;
  height: 400px;
  max-width: 100%;
  aspect-ratio: 1;
  margin: 0 auto;
}

.radar-ring {
  position: absolute;
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.radar-ring.outer {
  width: 400px;
  height: 400px;
  border: 1px solid rgba(212, 168, 67, 0.5);
}

.radar-ring.middle {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(212, 168, 67, 0.3);
}

.radar-ring.inner {
  width: 200px;
  height: 200px;
  border: 1px solid rgba(212, 168, 67, 0.1);
}

.radar-sweep {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 1px;
  transform-origin: 0% 50%;
  border-top: 1px solid #D4A843;
  box-shadow: 0 0 20px #D4A843;
  animation: sweep 4s linear infinite;
}

@keyframes sweep {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ============================================
   SECTION 2 — THREAT BARS
   ============================================ */
.threat-bar-fill {
  height: 100%;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s ease-out;
}

.threat-bar-fill.animated {
  transform: scaleX(1);
}

/* ============================================
   SECTION 3 — MONITORING CARDS
   ============================================ */
.monitor-card {
  width: 192px;
  height: 192px;
  padding: 24px;
  border: 1px solid #1f2937;
  background: rgba(17, 24, 39, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.monitor-card .glow-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  opacity: 0.5;
}

/* ============================================
   SECTION 3 — GRADIENT DIVIDER
   ============================================ */
.gradient-divider {
  height: 1px;
  background: linear-gradient(to right, transparent, #1f2937, transparent);
}

/* ============================================
   SECTION 3 — CATEGORY GRID
   ============================================ */
.category-item {
  padding: 12px;
  border: 1px solid #1f2937;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-item svg {
  width: 18px;
  height: 18px;
  color: #D4A843;
  flex-shrink: 0;
}

/* ============================================
   SECTION 3 — PLATFORM CIRCLES
   ============================================ */
.platform-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #000000;
  border: 1px solid #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  flex-shrink: 0;
}

.platform-circle svg {
  width: 32px;
  height: 32px;
  color: #9ca3af;
  transition: color 0.3s;
}

.platform-row:hover .platform-circle {
  border-color: #D4A843;
}

.platform-row:hover .platform-circle svg {
  color: #D4A843;
}

/* ============================================
   SECTION 4 — PRICING CARDS
   ============================================ */
.pricing-card {
  padding: 32px;
  border: 1px solid #1f2937;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}

.pricing-card.highlighted {
  border-color: #D4A843;
  background: rgba(212, 168, 67, 0.05);
  box-shadow: 0 0 30px rgba(212, 168, 67, 0.1);
  position: relative;
}

.pricing-button {
  width: 100%;
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.pricing-button.default {
  background: #1f2937;
  color: #ffffff;
}

.pricing-button.default:hover {
  background: #374151;
}

.pricing-button.primary {
  background: #D4A843;
  color: #000000;
}

.pricing-button.primary:hover {
  background: #ffffff;
}

/* ============================================
   SECTION 5 — BACKGROUND ORB
   ============================================ */
.status-orb {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: rgba(212, 168, 67, 0.05);
  filter: blur(120px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav-link {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  text-decoration: none;
  transition: color 0.3s;
  padding: 4px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

.nav-button {
  background: #D4A843;
  color: #000000;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s;
}

.nav-button:hover {
  background: #ffffff;
}

/* ============================================
   ENTRANCE ANIMATIONS
   ============================================ */
.anim-fade-in {
  opacity: 0;
  transition: opacity 0.5s ease, transform 0.5s ease, filter 0.5s ease;
}

.anim-fade-in.visible {
  opacity: 1;
}

.anim-from-top {
  transform: translateY(-20px);
}

.anim-from-top.visible {
  transform: translateY(0);
}

.anim-from-bottom {
  transform: translateY(20px);
}

.anim-from-bottom.visible {
  transform: translateY(0);
}

.anim-from-left {
  transform: translateX(-20px);
}

.anim-from-left.visible {
  transform: translateX(0);
}

.anim-from-right {
  transform: translateX(20px);
}

.anim-from-right.visible {
  transform: translateX(0);
}

.anim-scale-up {
  transform: scale(0.95);
  filter: blur(10px);
}

.anim-scale-up.visible {
  transform: scale(1);
  filter: blur(0px);
}

.anim-scale-in {
  transform: scale(0.9);
}

.anim-scale-in.visible {
  transform: scale(1);
}

/* Spring-like entrance for pricing cards */
.anim-spring {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.anim-spring.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (min-width: 768px) {
  .pricing-card {
    padding: 48px;
  }
}

@media (max-width: 767px) {
  .radar-container {
    width: 280px;
    height: 280px;
  }

  .radar-ring.outer {
    width: 280px;
    height: 280px;
  }

  .radar-ring.middle {
    width: 210px;
    height: 210px;
  }

  .radar-ring.inner {
    width: 140px;
    height: 140px;
  }

  .monitor-card {
    width: 160px;
    height: 160px;
    padding: 16px;
  }
}

/* ============================================
   SVG DECORATION
   ============================================ */
.svg-decor {
  position: absolute;
  top: 0;
  right: 0;
  width: 400px;
  height: 400px;
  opacity: 0.2;
  pointer-events: none;
}

@media (max-width: 767px) {
  .svg-decor {
    width: 200px;
    height: 200px;
  }
}
