:root {
  --bg-color: #050505;
  --cyan: #00FFFF;
  --neon-green: #39FF14;
  --gold: #FFD700;
  --crimson: #8B0000;
  --glass-bg: rgba(5, 5, 5, 0.6);
  --font-mono: 'JetBrains Mono', monospace;
  --font-display: 'Orbitron', sans-serif;
}

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

body {
  background-color: var(--bg-color);
  color: var(--cyan);
  font-family: var(--font-mono);
  overflow-x: hidden;
  min-height: 100vh;
}

/* CRT Scanlines */
.scanlines {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 4px, 3px 100%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.6;
}

/* 3D Background */
#three-container {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: -1;
}

/* Layout */
.system-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */
.cyber-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--neon-green);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.brand-glitch {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--gold);
  position: relative;
  text-shadow: 0 0 10px var(--gold);
}
.brand-glitch::before, .brand-glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
}
.brand-glitch::before {
  left: 2px;
  text-shadow: -1px 0 red;
  animation: glitch-anim-1 2s infinite linear alternate-reverse;
}
.brand-glitch::after {
  left: -2px;
  text-shadow: -1px 0 blue;
  animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.sys-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--neon-green);
}
.status-dot {
  width: 8px; height: 8px;
  background-color: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: blink 1s infinite;
}

/* Hero Section */
.terminal-container {
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0, 255, 255, 0.3);
  box-shadow: 0 0 30px rgba(0, 255, 255, 0.1) inset;
  padding: 2rem;
  border-radius: 4px;
}

.glitch-title {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: #fff;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  position: relative;
  text-shadow: 0 0 20px var(--cyan);
}

.sub-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--crimson);
  margin-bottom: 2rem;
  text-shadow: 0 0 10px var(--crimson);
}

.hacker-text {
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 3rem;
  color: #ccc;
  border-left: 2px solid var(--cyan);
  padding-left: 1rem;
}

/* CTA Button */
.cta-wrapper {
  margin-bottom: 3rem;
}
.cyber-btn {
  position: relative;
  display: inline-block;
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--bg-color);
  background: var(--neon-green);
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid var(--neon-green);
  box-shadow: 0 0 15px var(--neon-green);
  transition: all 0.3s ease;
  overflow: hidden;
}
.cyber-btn:hover {
  background: transparent;
  color: var(--neon-green);
  box-shadow: 0 0 30px var(--neon-green) inset;
}
.btn-text {
  position: relative;
  z-index: 2;
}

/* Stats Data Grid */
.data-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 3rem;
}
.data-card {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.2);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s, background 0.3s;
}
.data-card:hover {
  transform: translateY(-5px);
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--cyan);
}
.data-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.data-val {
  font-size: 2.5rem;
  font-weight: 700;
  color: #fff;
  font-family: var(--font-display);
  text-shadow: 0 0 10px var(--cyan);
}
.data-label {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 0.5rem;
}

/* Data Stream Marquee */
.data-stream {
  overflow: hidden;
  white-space: nowrap;
  background: var(--crimson);
  color: #fff;
  padding: 0.5rem;
  font-size: 0.9rem;
  margin-bottom: 3rem;
  border: 1px solid #ff4444;
}
.stream-inner {
  display: inline-block;
  animation: marquee 15s linear infinite;
}
.stream-inner span {
  padding-right: 2rem;
}

/* Hologram Flags */
.hologram-section {
  margin-bottom: 3rem;
}
.section-title {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--cyan);
}
.flag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 1rem;
}
.holo-flag {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  background: rgba(255, 215, 0, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.3);
  text-decoration: none;
  color: var(--gold);
  transition: all 0.3s;
}
.globe-flag {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background-size: 200% 100%;
  background-position: 0 0;
  box-shadow: 
    inset -10px -10px 15px rgba(0,0,0,0.8), 
    inset 5px 5px 15px rgba(255,255,255,0.4), 
    0 0 15px rgba(0, 255, 255, 0.2);
  animation: spin-globe 6s linear infinite;
  margin-bottom: 0.5rem;
  transition: all 0.3s;
}

.hero-globe {
  width: 100px;
  height: 100px;
  box-shadow: 
    inset -20px -20px 30px rgba(0,0,0,0.8), 
    inset 10px 10px 30px rgba(255,255,255,0.4), 
    0 0 30px rgba(255, 215, 0, 0.3);
  animation: spin-globe 10s linear infinite;
}

@keyframes spin-globe {
  0% { background-position: 0 0; }
  100% { background-position: 200% 0; }
}

.holo-flag:hover {
  background: rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}
.holo-flag:hover .globe-flag {
  box-shadow: 
    inset -10px -10px 15px rgba(0,0,0,0.8), 
    inset 5px 5px 15px rgba(255,255,255,0.6), 
    0 0 25px var(--neon-green);
}

/* Warning Box */
.warning-box {
  border: 1px dashed var(--crimson);
  background: rgba(139, 0, 0, 0.1);
  padding: 1.5rem;
  text-align: center;
}
.warning-header {
  color: var(--crimson);
  font-weight: 700;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  animation: blink 1s infinite;
}
.warning-box p {
  color: #fff;
  font-size: 0.9rem;
}

/* Animations */
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

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

@keyframes glitch-anim-1 {
  0% { clip-path: inset(20% 0 80% 0); }
  20% { clip-path: inset(60% 0 10% 0); }
  40% { clip-path: inset(40% 0 50% 0); }
  60% { clip-path: inset(80% 0 5% 0); }
  80% { clip-path: inset(10% 0 70% 0); }
  100% { clip-path: inset(30% 0 20% 0); }
}
@keyframes glitch-anim-2 {
  0% { clip-path: inset(10% 0 60% 0); }
  20% { clip-path: inset(30% 0 20% 0); }
  40% { clip-path: inset(70% 0 10% 0); }
  60% { clip-path: inset(20% 0 50% 0); }
  80% { clip-path: inset(50% 0 30% 0); }
  100% { clip-path: inset(5% 0 80% 0); }
}

@media (max-width: 768px) {
  .glitch-title { font-size: 2.5rem; }
  .sub-title { font-size: 1.2rem; }
  .terminal-container { padding: 1rem; }
}