:root {
  --bg-color: #050505;
  --bg-grid: #0a0a0a;
  --primary: #00f3ff; /* Cyan */
  --primary-dim: rgba(0, 243, 255, 0.1);
  --secondary: #bd00ff; /* Purple */
  --success: #00ff66;
  --error: #ff004c;
  --text-main: #e0e0e0;
  --text-muted: #888;
  --border: #333;
  --card-bg: rgba(20, 20, 20, 0.6);
  --font-display: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --scanline-color: rgba(255, 255, 255, 0.03);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-display);
  background-color: var(--bg-color);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.6;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* Background Effects */
.bg-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(var(--bg-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bg-grid) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  opacity: 0.5;
  perspective: 1000px;
}

.scanline {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, transparent 50%, var(--scanline-color) 51%);
  background-size: 100% 4px;
  z-index: 9999;
  pointer-events: none;
}

/* Typography & Utilities */
h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

.container {
  width: min(1200px, 90vw);
  margin: 0 auto;
}

.highlight {
  color: var(--primary);
  text-shadow: 0 0 10px var(--primary-dim);
}

.center { text-align: center; }

/* Header */
.topbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  z-index: 100;
  padding: 15px 0;
}

.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

/* Glitch Logo Effect */
.glitch {
  position: relative;
  display: inline-block;
  color: #fff;
}

.glitch::before,
.glitch::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-color);
}

.glitch::before {
  left: 2px;
  text-shadow: -1px 0 var(--secondary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 4s infinite linear alternate-reverse;
}

.glitch::after {
  left: -2px;
  text-shadow: -1px 0 var(--primary);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 3s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(42px, 9999px, 44px, 0); transform: skew(0.3deg); }
  5% { clip: rect(12px, 9999px, 59px, 0); transform: skew(0.3deg); }
  10% { clip: rect(48px, 9999px, 29px, 0); transform: skew(-0.3deg); }
  15% { clip: rect(42px, 9999px, 73px, 0); transform: skew(0.3deg); }
  20% { clip: rect(63px, 9999px, 27px, 0); transform: skew(0.3deg); }
  25% { clip: rect(34px, 9999px, 55px, 0); transform: skew(-0.3deg); }
  30% { clip: rect(86px, 9999px, 73px, 0); transform: skew(0.3deg); }
  35% { clip: rect(20px, 9999px, 20px, 0); transform: skew(0.3deg); }
  40% { clip: rect(26px, 9999px, 60px, 0); transform: skew(-0.3deg); }
  45% { clip: rect(25px, 9999px, 66px, 0); transform: skew(0.3deg); }
  50% { clip: rect(57px, 9999px, 98px, 0); transform: skew(0.3deg); }
  55% { clip: rect(5px, 9999px, 46px, 0); transform: skew(-0.3deg); }
  60% { clip: rect(82px, 9999px, 31px, 0); transform: skew(0.3deg); }
  65% { clip: rect(54px, 9999px, 27px, 0); transform: skew(0.3deg); }
  70% { clip: rect(28px, 9999px, 99px, 0); transform: skew(-0.3deg); }
  75% { clip: rect(45px, 9999px, 69px, 0); transform: skew(0.3deg); }
  80% { clip: rect(23px, 9999px, 85px, 0); transform: skew(0.3deg); }
  85% { clip: rect(54px, 9999px, 84px, 0); transform: skew(-0.3deg); }
  90% { clip: rect(45px, 9999px, 47px, 0); transform: skew(0.3deg); }
  95% { clip: rect(37px, 9999px, 20px, 0); transform: skew(0.3deg); }
  100% { clip: rect(4px, 9999px, 91px, 0); transform: skew(-0.3deg); }
}

.version-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-muted);
}

.nav {
  display: flex;
  gap: 30px;
}

.nav a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  position: relative;
  overflow: hidden;
}

.nav a::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 100%;
  color: var(--primary);
  overflow: hidden;
  transition: width 0.3s ease;
  white-space: nowrap;
}

.nav a:hover::before, .nav a.active::before {
  width: 100%;
}

.nav a:hover, .nav a.active {
  color: rgba(255,255,255,0.2); 
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  font-weight: 700;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn.primary {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 15px var(--primary-dim);
}

.btn.primary:hover {
  background: #fff;
  box-shadow: 0 0 25px var(--primary);
}

.clip-path {
  clip-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

.cyber-btn {
  border: 1px solid var(--primary);
  background: transparent;
  color: var(--primary);
  padding: 14px 32px;
  clip-path: polygon(15px 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%, 0 15px);
  position: relative;
}

.cyber-btn.primary {
  background: rgba(0, 243, 255, 0.1);
}

.cyber-btn:hover {
  background: var(--primary);
  color: #000;
  box-shadow: 0 0 30px var(--primary-dim);
}

.cyber-btn.secondary {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.cyber-btn.secondary:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  min-height: 80vh;
  display: flex;
  align-items: center;
  position: relative;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.status-line {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 243, 255, 0.7); }
  70% { opacity: 1; box-shadow: 0 0 0 10px rgba(0, 243, 255, 0); }
  100% { opacity: 0.5; box-shadow: 0 0 0 0 rgba(0, 243, 255, 0); }
}

.glitch-title {
  font-size: 4.5rem;
  line-height: 1;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 4px 4px 0px rgba(0, 243, 255, 0.2);
}

.blink {
  animation: blink 1s infinite;
}

@keyframes blink { 50% { opacity: 0; } }

.lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 90%;
}

.cta-group {
  display: flex;
  gap: 20px;
}

/* Hero Visual (Dashboard) */
.cyber-card {
  background: rgba(10, 10, 10, 0.8);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  position: relative;
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  transition: transform 0.3s ease;
}

.cyber-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
}

.cyber-card::before {
  content: '';
  position: absolute;
  top: -1px; left: -1px;
  width: 20px; height: 20px;
  border-top: 2px solid var(--primary);
  border-left: 2px solid var(--primary);
}

.cyber-card::after {
  content: '';
  position: absolute;
  bottom: -1px; right: -1px;
  width: 20px; height: 20px;
  border-bottom: 2px solid var(--primary);
  border-right: 2px solid var(--primary);
}

.card-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
  margin-bottom: 20px;
  font-family: var(--font-mono);
  color: var(--secondary);
  font-size: 0.8rem;
}

.stat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.bar {
  width: 60%;
  height: 6px;
  background: #222;
  border-radius: 2px;
  overflow: hidden;
}

.fill {
  height: 100%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: loadBar 2s ease-out forwards;
}

@keyframes loadBar { from { width: 0; } }

.code-block {
  margin-top: 20px;
  background: #000;
  padding: 15px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #0f0;
  border-left: 2px solid var(--secondary);
}

/* Page Headers */
.page-header {
  padding: 140px 0 60px;
}

.page-header h1 {
  font-size: 3.5rem;
  margin-bottom: 15px;
  color: #fff;
}

/* Features */
.section {
  padding: 80px 0;
}

.feature-category {
  margin-bottom: 80px;
}

.category-title {
  font-size: 2rem;
  margin-bottom: 40px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 10px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 30px;
  transition: 0.3s;
  position: relative;
  overflow: hidden;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--secondary);
  box-shadow: 0 10px 30px rgba(189, 0, 255, 0.15);
}

.feature-card h3 {
  color: var(--primary);
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.feature-card p {
  color: var(--text-muted);
  margin: 0;
  font-size: 0.95rem;
}

/* Download Card */
.center-card {
  max-width: 600px;
  margin: 0 auto;
}

.download-title {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #fff;
}

.download-desc {
  color: var(--text-muted);
  margin-bottom: 30px;
}

.file-specs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  margin-bottom: 30px;
  background: rgba(0,0,0,0.3);
  padding: 15px;
  border-radius: 4px;
}

.spec {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.spec .label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.spec .val {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--primary);
}

.mega-btn {
  background: var(--primary);
  color: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 20px;
  font-weight: 700;
  font-size: 1.2rem;
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
  transition: 0.3s;
  width: 100%;
}

.mega-btn:hover {
  transform: scale(1.02);
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.4);
}

.hash-code {
  margin-top: 20px;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}

.install-guide {
  max-width: 600px;
  margin: 60px auto 0;
}

.install-guide h3 {
  margin-bottom: 20px;
  color: var(--secondary);
}

.terminal-list {
  background: #080808;
  border: 1px solid var(--border);
  padding: 30px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  list-style: none;
}

.terminal-list li {
  margin-bottom: 10px;
}

/* Timeline */
.timeline {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}

.timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 30px;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  margin-bottom: 50px;
  padding-left: 80px;
  position: relative;
}

.timeline-date {
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--primary);
  writing-mode: vertical-rl;
  text-orientation: mixed;
  transform: rotate(180deg);
  height: 80px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: 26px;
  top: 5px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg-color);
  border: 2px solid var(--primary);
}

.timeline-content h3 {
  color: #fff;
  margin-bottom: 15px;
  font-size: 1.2rem;
}

.changelog-list {
  list-style: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.changelog-list li {
  margin-bottom: 8px;
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 4px;
}

.changelog-list li.new {
  border-left: 3px solid var(--success);
}

.changelog-list li.fix {
  border-left: 3px solid var(--secondary);
}

.changelog-list li.removed {
  border-left: 3px solid var(--error);
  color: rgba(255,255,255,0.5);
}

/* Scroll Reveal Animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s ease;
}

.scroll-reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  background: #020202;
  margin-top: 80px;
}

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

.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.footer-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #444;
}

@media (max-width: 768px) {
  .hero-content {
    grid-template-columns: 1fr;
  }
  .glitch-title {
    font-size: 3.5rem;
  }
  .nav {
    display: none;
  }
}