/* =====================================================
   Nexus — Scan Probing Premium Design System
   Fullscreen • No-Scroll • Radar • Hacker
   ===================================================== */

:root {
  --bg-deep: #000000;
  --bg-navy: #0a0f0a;
  --bg-mid: #0d1f0d;
  --bg-light: #142814;
  --green: #00ff41;
  --green-light: #4aef6a;
  --green-dark: #00cc33;
  --green-glow: rgba(0, 255, 65, 0.15);
  --green-glow-strong: rgba(0, 255, 65, 0.4);
  --amber: #ffb000;
  --amber-glow: rgba(255, 176, 0, 0.1);
  --white: #FFFFFF;
  --off-white: #e0ffe0;
  --text-primary: rgba(224, 255, 224, 0.95);
  --text-secondary: rgba(224, 255, 224, 0.75);
  --text-muted: rgba(224, 255, 224, 0.5);
  --glass-bg: rgba(0, 20, 0, 0.6);
  --glass-border: rgba(0, 255, 65, 0.15);
  --glass-bg-heavy: rgba(0, 10, 0, 0.85);
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 30px;
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-deep);
  color: var(--off-white);
  line-height: 1.6;
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  cursor: none;
}

::selection {
  background: var(--green);
  color: var(--bg-deep);
}

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

button {
  font-family: inherit;
  cursor: none;
}

/* =====================================================
   Custom Cursor
   ===================================================== */
.cursor {
  width: 22px;
  height: 22px;
  border: 2px solid var(--green);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transition: width 0.3s, height 0.3s, border-color 0.3s, background 0.3s, border-radius 0.3s;
  mix-blend-mode: difference;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  position: fixed;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor.hover {
  width: 56px;
  height: 56px;
  background: rgba(0, 255, 65, 0.08);
  border-color: var(--green-light);
  border-radius: 50%;
}

/* =====================================================
   Preloader
   ===================================================== */
.preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-deep);
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 24px;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-logo {
  font-family: 'JetBrains Mono', monospace;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--off-white);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards 0.2s;
}

.preloader-logo span {
  color: var(--green);
}

.preloader-bar {
  width: 200px;
  height: 2px;
  background: rgba(0, 255, 65, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.preloader-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--green-dark), var(--green-light));
  border-radius: 2px;
  animation: loadBar 1.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes loadBar {
  to { width: 100%; }
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preloader-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--green);
  letter-spacing: 0.1em;
  opacity: 0;
  animation: fadeInUp 0.8s ease forwards 0.4s;
}

/* =====================================================
   App / Fullscreen
   ===================================================== */
.app {
  position: relative;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

section {
  position: relative;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
  position: relative;
  z-index: 5;
  width: 100%;
}

/* =====================================================
   Scanner / Radar
   ===================================================== */
.scanner {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.scanner-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid var(--green);
  opacity: 0;
}

.ring-1 {
  width: 300px;
  height: 300px;
  animation: scannerPulse 4s ease-out infinite;
}

.ring-2 {
  width: 500px;
  height: 500px;
  animation: scannerPulse 4s ease-out infinite 1s;
}

.ring-3 {
  width: 700px;
  height: 700px;
  animation: scannerPulse 4s ease-out infinite 2s;
}

@keyframes scannerPulse {
  0% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.8);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
  }
}

.scanner-line {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50%;
  height: 2px;
  background: linear-gradient(90deg, var(--green), transparent);
  transform-origin: left center;
  animation: scannerRotate 6s linear infinite;
  box-shadow: 0 0 20px var(--green-glow-strong);
}

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

.scanner-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 400px;
  height: 400px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--green-glow) 0%, transparent 70%);
  animation: scannerPulseGlow 4s ease-out infinite;
}

@keyframes scannerPulseGlow {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.1); }
}

/* Probe Lines */
.probe-lines {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.probe-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  height: 1px;
  width: 100%;
  opacity: 0.3;
}

.line-1 {
  top: 20%;
  animation: probeScan 8s linear infinite;
}

.line-2 {
  top: 40%;
  animation: probeScan 8s linear infinite 2s;
}

.line-3 {
  top: 60%;
  animation: probeScan 8s linear infinite 4s;
}

.line-4 {
  top: 80%;
  animation: probeScan 8s linear infinite 6s;
}

@keyframes probeScan {
  0% { transform: translateX(-100%); opacity: 0; }
  10% { opacity: 0.4; }
  90% { opacity: 0.4; }
  100% { transform: translateX(100%); opacity: 0; }
}

/* =====================================================
   Navigation
   ===================================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 24px 0;
  transition: all var(--transition-smooth);
}

.nav.scrolled {
  background: var(--glass-bg-heavy);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--glass-border);
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.03em;
  color: var(--off-white);
  transition: color var(--transition-fast);
}

.logo:hover {
  color: var(--green);
}

.logo span {
  color: var(--green);
}

.nav-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.btn-nav {
  font-family: 'JetBrains Mono', monospace;
  padding: 10px 24px;
  background: var(--green);
  color: var(--bg-deep) !important;
  border-radius: 100px;
  font-weight: 700;
  font-size: 14px;
  transition: all var(--transition-bounce);
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--green-glow-strong);
}

/* =====================================================
   Hero
   ===================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 30%, rgba(0, 255, 65, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 70%, rgba(255, 176, 0, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 50%, rgba(0, 255, 65, 0.04) 0%, transparent 70%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  filter: blur(80px);
  opacity: 0.8;
}

.mesh-blob {
  position: absolute;
  border-radius: 50%;
  animation: blobFloat 20s ease-in-out infinite;
}

.blob-1 {
  width: 500px;
  height: 500px;
  background: var(--green-glow);
  top: -10%;
  right: -5%;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px;
  height: 400px;
  background: var(--amber-glow);
  bottom: -10%;
  left: -5%;
  animation-delay: -7s;
}

.blob-3 {
  width: 300px;
  height: 300px;
  background: rgba(74, 239, 106, 0.08);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation-delay: -14s;
  animation-name: blobFloatCenter;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -40px) scale(1.05); }
  66% { transform: translate(-20px, 30px) scale(0.95); }
}

@keyframes blobFloatCenter {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1); }
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image: 
    linear-gradient(rgba(0, 255, 65, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 255, 65, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 70%);
}

.hero-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 30%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
  z-index: 2;
}

.scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 50%,
    rgba(0, 0, 0, 0.15) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 3;
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 5;
  max-width: 1000px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 40px;
  padding: 10px 20px;
  background: var(--green-glow);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 20px var(--green-glow);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  box-shadow: 0 0 12px var(--green-glow-strong);
}

.eyebrow-text {
  opacity: 1;
  transform: translateY(0);
}

.hero-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: clamp(48px, 7vw, 110px);
  font-weight: 900;
  line-height: 1.01;
  letter-spacing: -0.04em;
  margin-bottom: 36px;
  color: var(--white);
  text-shadow: 0 0 60px rgba(0, 255, 65, 0.25);
}

.title-line {
  display: block;
  overflow: hidden;
}

.title-word {
  display: inline-block;
  margin-right: 0.25em;
  color: var(--white);
  text-shadow: 0 0 40px rgba(0, 255, 65, 0.3);
}

.title-word:last-child {
  margin-right: 0;
}

.title-gradient {
  background: linear-gradient(135deg, var(--green-light) 0%, var(--green) 50%, var(--green-light) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 4s ease infinite;
  filter: drop-shadow(0 0 30px var(--green-glow-strong));
  color: transparent;
  text-shadow: none;
}

@keyframes gradientShift {
  0%, 100% { background-position: 0% center; }
  50% { background-position: 100% center; }
}

.hero-desc {
  font-size: 17px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 48px;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 18px 40px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 100px;
  transition: all var(--transition-bounce);
  overflow: hidden;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--green);
  color: var(--bg-deep);
  box-shadow: 0 4px 30px var(--green-glow-strong);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--green-light), var(--green-dark));
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 12px 40px var(--green-glow-strong);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-text {
  position: relative;
  z-index: 2;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.7s ease;
  z-index: 1;
}

.btn-primary:hover .btn-glow {
  left: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--off-white);
  border: 1.5px solid rgba(224, 255, 224, 0.3);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  border-color: var(--green);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 255, 65, 0.15);
  background: var(--green-glow);
}

/* Hero Floaters */
.hero-floaters {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.floater {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 100px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  opacity: 1;
  pointer-events: auto;
  cursor: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.floater:hover {
  border-color: var(--green);
  background: rgba(0, 255, 65, 0.1);
  transform: scale(1.08) translateY(-2px);
  box-shadow: 0 8px 30px var(--green-glow);
}

.floater-1 { top: 18%; left: 6%; animation: floatFade 8s ease-in-out infinite; }
.floater-2 { top: 25%; right: 6%; animation: floatFade 8s ease-in-out infinite 1.5s; }
.floater-3 { bottom: 22%; left: 8%; animation: floatFade 8s ease-in-out infinite 3s; }
.floater-4 { bottom: 28%; right: 8%; animation: floatFade 8s ease-in-out infinite 4.5s; }
.floater-5 { top: 40%; left: 3%; animation: floatFade 8s ease-in-out infinite 6s; }
.floater-6 { top: 40%; right: 3%; animation: floatFade 8s ease-in-out infinite 7.5s; }

@keyframes floatFade {
  0%, 100% { opacity: 0; transform: translateY(20px); }
  15%, 85% { opacity: 1; transform: translateY(0); }
}

.floater-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--green-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--glass-border);
}

.floater-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--green);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Bottom Bar */
.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 5;
  padding: 24px 40px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.7) 50%, transparent 100%);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.bottom-stats {
  display: flex;
  gap: 32px;
}

.bottom-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.bottom-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow-strong);
}

.bottom-stat-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.bottom-marquee {
  flex: 1;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

.marquee-track {
  display: flex;
  gap: 16px;
  animation: marquee 30s linear infinite;
  width: max-content;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.marquee-item {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.marquee-dot {
  color: var(--green);
  font-size: 10px;
}

/* =====================================================
   Utilities
   ===================================================== */
.grain-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 99998;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-deep);
}

::-webkit-scrollbar-thumb {
  background: var(--green);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green-light);
}

/* =====================================================
   Responsive
   ===================================================== */
@media (max-width: 1024px) {
  .floater {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 24px;
  }
  
  .hero-desc br {
    display: none;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .btn {
    width: 100%;
    max-width: 300px;
  }
  
  .nav-actions {
    display: none;
  }
  
  .hero-bottom {
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
  }
  
  .bottom-stats {
    gap: 24px;
  }
  
  .bottom-stat-value {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 42px;
  }
  
  .hero-desc {
    font-size: 16px;
  }
  
  .marquee-track {
    animation-duration: 15s;
  }
}
