@import url('https://fonts.googleapis.com/css2?family=Inter:wght@700;800;900&family=Roboto+Mono:wght@700&display=swap');

/* --- CUSTOM VARIABLES --- */
:root {
  /* Premium Dark Theme Only (Pure Black & White) */
  --bg-primary: #000000;
  --bg-secondary: #0a0a0a;
  --text-primary: #ffffff;
  --text-secondary: #707070;
  --accent: #ffffff;
  --border-color: rgba(255, 255, 255, 0.06);
  --grid-color: rgba(255, 255, 255, 0.02);
  --spotlight-color: rgba(255, 255, 255, 0.025);
  --noise-opacity: 0.025;
  --cursor-blend: difference;
}

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

body, html {
  width: 100%;
  height: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden !important;
  position: fixed;
  top: 0;
  left: 0;
  transition: background-color 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Custom Selection */
::selection {
  background-color: var(--accent);
  color: var(--bg-primary);
}

/* --- MONOCHROME TEXTURES --- */

/* Blueprint/Technical Grid Backing */
.grid-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--grid-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-color) 1px, transparent 1px);
  background-size: 60px 60px;
  background-position: center center;
  pointer-events: none;
  z-index: 1;
}

/* Ambient Radial Glow (Cursor Follows) */
.ambient-glow {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle 400px at var(--mouse-x, 50%) var(--mouse-y, 50%), var(--spotlight-color), transparent 80%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.5s ease;
}

/* Premium Noise Overlay */
.noise-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: var(--noise-opacity);
  pointer-events: none;
  z-index: 999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* --- HEADER / NAVIGATION --- */
header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  /* border-bottom removed */
}

.brand {
  font-family: 'Roboto Mono', monospace;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.05em;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  transition: opacity 0.3s ease;
}

.brand:hover {
  opacity: 0.85;
}

.logo-accent {
  color: #00f3ff; /* Sleek Electric Cyber Cyan */
  font-weight: 800; /* Emphasize the core variable "x" */
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.4); /* Subtly illuminating the dark aesthetic */
}

/* Brand Logo (Top Left SVG Animation) */
.brand-logo {
  color: var(--accent);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand:hover .brand-logo {
  transform: rotate(90deg) scale(1.05);
}

/* --- HERO SECTION --- */
.hero-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center; /* Center the text container horizontally */
  padding: 0 8%;
  z-index: 10;
}

.hero-content {
  max-width: 1300px;
}

.hero-phrase {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 900; /* Ultra Bold as in screenshot */
  font-size: clamp(2rem, 5.2vw, 5.8rem);
  line-height: 1.08; /* Compact height, slightly increased for line spacing balance */
  letter-spacing: -0.05em; /* Extremely tight letters */
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(20px);
  animation: revealText 1s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

.phrase-line {
  display: block;
  margin-bottom: 0.15rem;
}

/* Premium Keyword styling (Muted Gray to White on Hover) */
.keyword {
  position: relative;
  display: inline-block;
  color: #727272; /* Muted elegant gray in screenshot */
  text-decoration: none;
  font-weight: 900;
  border-bottom: 2px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 2px;
  transition: color 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.keyword::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.keyword:hover {
  color: #ffffff; /* Lights up white on hover */
  border-bottom-color: transparent;
}

.keyword:hover::after {
  width: 100%;
}

/* --- BESPOKE KEYWORD HOVER ARTIFACTS --- */

/* LLM Text Scrambling / Matrix effect helper */
.scramble-char {
  display: inline-block;
  opacity: 0.6;
  font-family: monospace;
  font-size: 0.9em;
  color: var(--text-secondary);
}

/* ML Neural Network Canvas overlay */
#ml-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  opacity: 0;
  transition: opacity 0.4s ease;
}

#ml-canvas.active {
  opacity: 1;
}

/* CV Scanning HUD Box */
.cv-scanner-hud {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background-color: rgba(255, 255, 255, 0.02);
  pointer-events: none;
  opacity: 0;
  transform: scale(0.95);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.02);
  z-index: 50;
}

.cv-scanner-hud.active {
  opacity: 1;
  transform: scale(1.02);
}

/* HUD corners */
.cv-corner {
  position: absolute;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  pointer-events: none;
}
.cv-tl { top: -2px; left: -2px; border-right: none; border-bottom: none; }
.cv-tr { top: -2px; right: -2px; border-left: none; border-bottom: none; }
.cv-bl { bottom: -2px; left: -2px; border-right: none; border-top: none; }
.cv-br { bottom: -2px; right: -2px; border-left: none; border-top: none; }

/* HUD Scanning Line */
.cv-scan-line {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: scanning 2s linear infinite;
  opacity: 0.7;
}

/* HUD Coordinates label */
.cv-coords {
  position: absolute;
  bottom: -22px;
  right: 0;
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* HUD Scanning active state text */
.cv-status {
  position: absolute;
  top: -22px;
  left: 0;
  font-family: monospace;
  font-size: 0.65rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 5px;
}

.cv-status-dot {
  width: 5px;
  height: 5px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: blink 1s infinite alternate;
}

/* --- FOOTER / METADATA PANEL --- */
footer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 90px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-color);
  z-index: 100;
}

.footer-info {
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 15px;
}

.network-status {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-indicator {
  width: 6px;
  height: 6px;
  background-color: #34c759; /* Standard clean green */
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(52, 199, 89, 0.4);
}

.coordinates-tracker {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}



/* --- KEYFRAME ANIMATIONS --- */
@keyframes revealText {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scanning {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

@keyframes blink {
  from { opacity: 0.3; }
  to { opacity: 1; }
}

/* Responsive adjust */
@media (max-width: 768px) {
  header {
    height: 80px;
    padding: 0 4%;
  }
  
  footer {
    height: 80px;
    padding: 0 4%;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }
  
  .hero-wrapper {
    padding: 0 5%;
  }
  
  .coordinates-tracker {
    display: none;
  }
}
