* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #000000;
  font-family: 'Space Grotesk', sans-serif;
  color: #eaeef2;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.cyber-grid {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(183, 0, 0, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(183, 0, 0, 0.08) 1px, transparent 1px);
  background-size: 40px 40px;
  z-index: -2;
  pointer-events: none;
}

.cyber-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 50%, rgba(183,0,0,0.15) 0%, transparent 70%);
  pointer-events: none;
}

#particleCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
  pointer-events: none;
}

::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #b70000; border-radius: 4px; }

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  background: rgba(0,0,0,0.75);
  border-bottom: 1px solid rgba(183,0,0,0.4);
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo i {
  font-size: 2rem;
  color: #b70000;
  filter: drop-shadow(0 0 8px #b70000);
  animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
  0% { filter: drop-shadow(0 0 0px #b70000); }
  50% { filter: drop-shadow(0 0 12px #b70000); }
  100% { filter: drop-shadow(0 0 0px #b70000); }
}

.logo span {
  font-size: 1.6rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff, #b70000);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -1px;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: #ccc;
  text-decoration: none;
  font-weight: 500;
  transition: 0.2s;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.nav-links a:hover {
  color: #b70000;
  text-shadow: 0 0 6px #b70000;
}

.mobile-menu-btn {
  display: none;
  font-size: 1.8rem;
  color: #b70000;
  cursor: pointer;
  transition: 0.2s;
}

.mobile-menu-btn:hover {
  text-shadow: 0 0 10px #b70000;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 70%;
  max-width: 280px;
  height: 100%;
  background: rgba(0,0,0,0.95);
  backdrop-filter: blur(20px);
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 4rem 2rem;
  gap: 1.5rem;
  transition: right 0.3s ease;
  border-left: 1px solid #b70000;
}

.mobile-menu.active {
  right: 0;
}

.mobile-menu a {
  color: #fff;
  text-decoration: none;
  font-size: 1.2rem;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(183,0,0,0.3);
  transition: 0.2s;
}

.mobile-menu a:hover {
  color: #b70000;
  padding-left: 10px;
}

.mobile-menu-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.5rem;
  color: #b70000;
  cursor: pointer;
  transition: 0.2s;
}

.mobile-menu-close:hover {
  transform: scale(1.1);
}

.hero {
  text-align: center;
  padding: 4rem 2rem 5rem;
  position: relative;
}

.hero-logo-under {
  margin: 1.5rem 0;
}

.hero-logo-under img {
  filter: drop-shadow(0 0 12px rgba(183,0,0,0.5));
  transition: transform 0.3s;
  cursor: pointer;
}

.hero-logo-under img:hover {
  transform: scale(1.05);
}

.glitch-title {
  font-size: 6rem;
  font-weight: 900;
  letter-spacing: -4px;
  position: relative;
  margin: 1rem 0;
  font-family: 'Fira Code', 'Space Grotesk', monospace;
  text-transform: uppercase;
  filter: drop-shadow(0 0 15px rgba(183, 0, 0, 0.5));
}

.glitch-title span {
  position: relative;
  display: inline-block;
  animation: glitch-text-pulse 3s infinite;
}

.glitch-title span {
  color: #fff;
  text-shadow: 
    0.05em 0 0 rgba(183, 0, 0, 0.75),
    -0.05em -0.025em 0 rgba(0, 255, 255, 0.3),
    0.025em 0.05em 0 rgba(255, 0, 255, 0.2);
}

.glitch-title span::before {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #b70000;
  text-shadow: 3px 0 #ff0000, -1px 0 #ff4444;
  z-index: -1;
  animation: glitch-shift-1 2.3s infinite linear alternate-reverse;
}

.glitch-title span::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: #fff;
  text-shadow: -2px 0 #00ffff, 1px 0 #0088ff;
  z-index: -2;
  animation: glitch-shift-2 2.7s infinite linear alternate-reverse;
}

@keyframes glitch-text-pulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 5px rgba(183,0,0,0.5); }
  50% { opacity: 0.95; text-shadow: 0 0 20px rgba(183,0,0,0.8); }
}

@keyframes glitch-shift-1 {
  0% {
    clip-path: inset(0 0 0 0);
    transform: translate(-3px, -2px);
  }
  10% {
    clip-path: inset(10% 0 15% 0);
    transform: translate(4px, 1px);
  }
  20% {
    clip-path: inset(25% 0 30% 0);
    transform: translate(-4px, -1px);
  }
  30% {
    clip-path: inset(5% 0 8% 0);
    transform: translate(2px, 2px);
  }
  40% {
    clip-path: inset(50% 0 45% 0);
    transform: translate(-2px, -3px);
  }
  50% {
    clip-path: inset(15% 0 20% 0);
    transform: translate(3px, -1px);
  }
  60% {
    clip-path: inset(70% 0 25% 0);
    transform: translate(-3px, 2px);
  }
  70% {
    clip-path: inset(35% 0 40% 0);
    transform: translate(1px, -2px);
  }
  80% {
    clip-path: inset(80% 0 10% 0);
    transform: translate(-1px, 3px);
  }
  90% {
    clip-path: inset(0 0 0 0);
    transform: translate(2px, -1px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
}

@keyframes glitch-shift-2 {
  0% {
    clip-path: inset(0 0 0 0);
    transform: translate(2px, 1px);
  }
  15% {
    clip-path: inset(20% 0 10% 0);
    transform: translate(-3px, -2px);
  }
  25% {
    clip-path: inset(40% 0 35% 0);
    transform: translate(3px, 2px);
  }
  35% {
    clip-path: inset(8% 0 12% 0);
    transform: translate(-2px, -1px);
  }
  45% {
    clip-path: inset(60% 0 30% 0);
    transform: translate(2px, 3px);
  }
  55% {
    clip-path: inset(12% 0 18% 0);
    transform: translate(-4px, -2px);
  }
  65% {
    clip-path: inset(85% 0 5% 0);
    transform: translate(1px, -3px);
  }
  75% {
    clip-path: inset(30% 0 25% 0);
    transform: translate(-2px, 2px);
  }
  85% {
    clip-path: inset(0 0 0 0);
    transform: translate(3px, -1px);
  }
  100% {
    clip-path: inset(0 0 0 0);
    transform: translate(0, 0);
  }
}

.glitch-title::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(183, 0, 0, 0.15), 
    rgba(255, 255, 255, 0.1),
    rgba(183, 0, 0, 0.15),
    transparent);
  animation: scan-line 4s infinite;
  pointer-events: none;
  z-index: 10;
}

@keyframes scan-line {
  0% { left: -100%; }
  50% { left: 100%; }
  100% { left: 100%; }
}

@keyframes glitch-flicker {
  0% { opacity: 1; }
  5% { opacity: 0.3; }
  10% { opacity: 1; }
  15% { opacity: 0.5; }
  20% { opacity: 1; }
  100% { opacity: 1; }
}

.glitch-title span {
  animation: glitch-text-pulse 3s infinite, glitch-flicker 8s infinite;
}

.glitch-title:hover span {
  animation: glitch-text-pulse 1.5s infinite, glitch-flicker 2s infinite;
}

.glitch-title:hover span::before {
  animation: glitch-shift-1 0.5s infinite linear alternate-reverse;
}

.glitch-title:hover span::after {
  animation: glitch-shift-2 0.7s infinite linear alternate-reverse;
}

.badge-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 2rem 0;
}

.badge {
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
  border: 1px solid #b70000;
  padding: 0.5rem 1.2rem;
  border-radius: 40px;
  font-family: 'Fira Code', monospace;
  font-size: 0.75rem;
  font-weight: 500;
  transition: 0.2s;
  cursor: default;
}

.badge i {
  margin-right: 6px;
  color: #b70000;
}

.badge:hover {
  background: #b7000011;
  box-shadow: 0 0 12px rgba(183,0,0,0.3);
  transform: translateY(-2px);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.version-section {
  margin: 6rem 0;
}

.version-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 2.5rem;
  border-bottom: 2px solid rgba(183,0,0,0.4);
  padding-bottom: 0.5rem;
}

.version-badge {
  font-size: 2rem;
  font-weight: 800;
  font-family: 'Fira Code', monospace;
  color: #b70000;
  background: rgba(183,0,0,0.15);
  padding: 0.2rem 1rem;
  border-radius: 12px;
  letter-spacing: -1px;
}

.version-sub {
  color: #888;
  font-size: 0.9rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
  gap: 2rem;
}

.feature-neon {
  background: linear-gradient(135deg, rgba(10,10,10,0.9) 0%, rgba(20,20,20,0.7) 100%);
  border: 1px solid #2a2a2a;
  border-radius: 28px;
  padding: 1.8rem;
  transition: all 0.35s cubic-bezier(0.2, 0.9, 0.4, 1.1);
  position: relative;
  overflow: hidden;
}

.feature-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(183,0,0,0.1), transparent);
  transition: left 0.6s;
}

.feature-neon:hover::before {
  left: 100%;
}

.feature-neon:hover {
  border-color: #b70000;
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -15px rgba(183,0,0,0.3);
}

.feature-icon {
  font-size: 2.8rem;
  color: #b70000;
  margin-bottom: 1rem;
  display: inline-block;
}

.feature-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.feature-title .tag {
  font-size: 0.65rem;
  background: #b7000022;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  border-left: 2px solid #b70000;
}

.feature-desc {
  color: #b0b0b0;
  line-height: 1.6;
  font-size: 0.9rem;
  margin-bottom: 1.2rem;
}

.code-snip {
  background: #050505;
  border-radius: 16px;
  padding: 0.8rem;
  font-family: 'Fira Code', monospace;
  font-size: 0.7rem;
  border-left: 3px solid #b70000;
  margin-top: 1rem;
  overflow-x: auto;
}

.screenshot-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.screenshot-card {
  background: #0a0a0a;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #2c2c2c;
  transition: 0.2s;
  max-width: 500px;
  cursor: pointer;
}

.screenshot-card img {
  width: 100%;
  display: block;
  transition: transform 0.3s;
}

.screenshot-card:hover {
  border-color: #b70000;
  transform: scale(1.02);
}

.screenshot-card:hover img {
  transform: scale(1.01);
}

.caption {
  padding: 0.8rem;
  text-align: center;
  font-size: 0.75rem;
  font-family: monospace;
  color: #b70000;
}

.vps-card {
  background: radial-gradient(ellipse at 30% 40%, rgba(183,0,0,0.1), transparent);
  border-radius: 32px;
  padding: 2rem;
  border: 1px solid #b7000033;
  text-align: center;
}

.contact-bar {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: #0a0a0a;
  padding: 0.8rem 2rem;
  border-radius: 60px;
  border: 1px solid #b70000;
  margin-top: 1rem;
}

.footer {
  text-align: center;
  padding: 3rem;
  border-top: 1px solid #1a1a1a;
  margin-top: 4rem;
  font-family: monospace;
}

.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.95);
  backdrop-filter: blur(8px);
  justify-content: center;
  align-items: center;
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-image {
  width: 100%;
  height: auto;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid #b70000;
  box-shadow: 0 0 30px rgba(183,0,0,0.3);
}

.modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  font-size: 2.5rem;
  color: #b70000;
  cursor: pointer;
  transition: 0.2s;
  background: none;
  border: none;
}

.modal-close:hover {
  transform: scale(1.1);
  text-shadow: 0 0 10px #b70000;
}

.clickable-img {
  cursor: pointer;
  height: 200px;
  width: auto;
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .glitch-title {
    font-size: 2.5rem;
    letter-spacing: -1px;
  }
  
  .hero {
    padding: 2rem 1rem 3rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .version-header {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .version-badge {
    font-size: 1.5rem;
    align-self: flex-start;
  }
  
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .feature-title {
    font-size: 1.3rem;
  }
  
  .feature-neon {
    padding: 1.2rem;
  }
  
  .screenshot-showcase {
    gap: 1rem;
  }
  
  .screenshot-card {
    max-width: 100%;
  }
  
  .contact-bar {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    flex-wrap: wrap;
  }
  
  .footer {
    padding: 1.5rem;
    font-size: 0.7rem;
  }
  
  .badge-container {
    gap: 0.6rem;
  }
  
  .badge {
    font-size: 0.65rem;
    padding: 0.3rem 0.8rem;
  }
  
  .hero-logo-under img {
    width: 100px;
  }
}

@media (max-width: 480px) {
  .glitch-title {
    font-size: 2rem;
  }
  
  .version-badge {
    font-size: 1.2rem;
  }
  
  .feature-title {
    font-size: 1.1rem;
  }
  
  .code-snip {
    font-size: 0.6rem;
  }
  
  .caption {
    font-size: 0.65rem;
  }
  
  .modal-close {
    top: -30px;
    font-size: 2rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .glitch-title {
    font-size: 3.5rem;
  }
}