:root {
  --bg-color: #07090f;
  --surface-color: #111522;
  --surface-border: #1e253c;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --accent-neon: #00ffcc;
  --accent-neon-glow: rgba(0, 255, 204, 0.4);
  --accent-purple: #9d4edd;
  --font-main: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--accent-neon);
  color: var(--bg-color);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-color);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-border);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-neon);
}

h1, h2, h3, h4 {
  font-family: var(--font-mono);
  font-weight: 400;
  letter-spacing: 1px;
}

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

.glow-bg {
  position: fixed;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(157, 78, 221, 0.05) 0%, transparent 40%),
              radial-gradient(circle at 80% 20%, rgba(0, 255, 204, 0.03) 0%, transparent 30%);
  pointer-events: none;
  z-index: -2;
}

.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(30, 37, 60, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 37, 60, 0.3) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -1;
  opacity: 0.5;
}

/* NAVBAR */
.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 5%;
  background: rgba(7, 9, 15, 0.8);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--surface-border);
}

.logo a {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  letter-spacing: 1px;
}

.brand-grey {
  color: var(--text-primary);
}

.brand-node {
  color: var(--accent-neon);
  text-shadow: 0 0 10px rgba(0, 255, 204, 0.4);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

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

.nav-links a::before {
  content: '>';
  position: absolute;
  left: -15px;
  opacity: 0;
  color: var(--accent-neon);
  transition: all 0.3s ease;
}

.nav-links a:hover, .nav-links a.active {
  color: var(--accent-neon);
  text-shadow: 0 0 8px var(--accent-neon-glow);
}

.nav-links a:hover::before, .nav-links a.active::before {
  opacity: 1;
  left: -12px;
}

/* MAIN STRUCTURE */
main {
  flex: 1;
}

/* TYPOGRAPHY UTILS */
.cyber-text {
  font-family: var(--font-mono);
  color: var(--accent-neon);
}

.h1-glitch {
  font-size: 4rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--text-primary);
  text-transform: uppercase;
}

.subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: 2.5rem;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 2rem;
  font-family: var(--font-mono);
  font-size: 1rem;
  background: rgba(0, 255, 204, 0.05);
  color: var(--accent-neon);
  border: 1px solid var(--accent-neon);
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
}

.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 204, 0.2), transparent);
  transition: all 0.5s ease;
}

.btn:hover::before {
  left: 100%;
}

.btn:hover {
  background: rgba(0, 255, 204, 0.15);
  box-shadow: 0 0 20px var(--accent-neon-glow);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--surface-border);
}

.btn-secondary:hover {
  border-color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

/* SECTIONS */
.section {
  padding: 8rem 5%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  margin-bottom: 4rem;
}

.section-label {
  font-family: var(--font-mono);
  color: var(--accent-purple);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: 2.5rem;
  color: var(--text-primary);
}

/* CARDS */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.cyber-card {
  background: var(--surface-color);
  border: 1px solid var(--surface-border);
  padding: 2.5rem;
  position: relative;
  transition: all 0.3s ease;
}

.cyber-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-neon);
  transition: width 0.3s ease;
}

.cyber-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 255, 204, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cyber-card:hover::after {
  width: 100%;
}

.card-icon {
  font-family: var(--font-mono);
  font-size: 2rem;
  color: var(--accent-neon);
  margin-bottom: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

.card-text {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* FOOTER */
footer {
  background: var(--surface-color);
  border-top: 1px solid var(--surface-border);
  padding: 3rem 5%;
  margin-top: auto;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  display: flex;
  font-weight: 700;
  letter-spacing: 1px;
}

.motto {
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.pgp {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1px;
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-up {
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.2s; }
.delay-2 { animation-delay: 0.4s; }
.delay-3 { animation-delay: 0.6s; }

/* Responsive */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }
  .h1-glitch {
    font-size: 2.5rem;
  }
  .section {
    padding: 4rem 5%;
  }
}
