:root {
  /* Backgrounds */
  --bg-main: #050505;
  --bg-secondary: #0A0F0D;
  --bg-soft: #0F1A17;
  --card-bg: rgba(12, 20, 18, 0.6);

  /* Brand */
  --primary: #7FFFE1;
  --primary-soft: #6CF2D5;
  --glow: #9FFFF0;
  --accent-teal: #00C9A7;
  --accent-cyan: #0BBCD6;
  --accent-blue: #00E5FF;

  /* Text */
  --text-main: #EFFFFA;
  --text-secondary: #A6E5D6;
  --text-muted: #7FAFA3;
  --disabled: #4A6F66;

  /* Glass */
  --glass-bg: rgba(15, 26, 23, 0.6);
  --glass-border: rgba(127, 255, 225, 0.18);
  --glass-glow: rgba(127, 255, 225, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: default;
  user-select: none;
}

a {
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  background-image: linear-gradient(180deg, #050505 0%, #0F1A17 100%);
}

/* Noise overlay */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* SEO & a11y: visually hidden, available to screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================
   Header
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  backdrop-filter: blur(14px);
  background: rgba(5, 5, 5, 0.7);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo — glow, hover, pulsation, breathing */
.logo-link {
  display: inline-flex;
  align-items: center;
  transition: transform 0.3s ease;
}

.logo-img {
  height: 44px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(127, 255, 225, 0.35))
          drop-shadow(0 0 25px rgba(127, 255, 225, 0.25));
  animation: logo-breathing 4s ease-in-out infinite;
}

.logo-link:hover .logo-img {
  filter: drop-shadow(0 0 15px rgba(127, 255, 225, 0.5))
          drop-shadow(0 0 40px rgba(159, 255, 240, 0.4))
          drop-shadow(0 0 60px rgba(127, 255, 225, 0.2));
  animation: logo-pulse 1.5s ease-in-out infinite;
}

.logo-link:hover {
  transform: scale(1.03);
}

@keyframes logo-breathing {
  0%, 100% { opacity: 0.95; filter: drop-shadow(0 0 10px rgba(127, 255, 225, 0.35)) drop-shadow(0 0 25px rgba(127, 255, 225, 0.25)); }
  50% { opacity: 1; filter: drop-shadow(0 0 15px rgba(127, 255, 225, 0.45)) drop-shadow(0 0 35px rgba(159, 255, 240, 0.3)); }
}

@keyframes logo-pulse {
  0%, 100% { filter: drop-shadow(0 0 15px rgba(127, 255, 225, 0.5)) drop-shadow(0 0 40px rgba(159, 255, 240, 0.4)); }
  50% { filter: drop-shadow(0 0 25px rgba(127, 255, 225, 0.6)) drop-shadow(0 0 50px rgba(159, 255, 240, 0.5)); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--primary);
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  transition: color 0.2s;
}

.lang-btn:hover,
.lang-btn.active {
  color: var(--primary);
}

.lang-divider {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  color: var(--bg-main);
  box-shadow: 0 0 25px rgba(127, 255, 225, 0.45);
}

.btn-primary:hover {
  box-shadow: 0 0 35px rgba(127, 255, 225, 0.6),
              0 0 50px rgba(127, 255, 225, 0.3);
  transform: translateY(-2px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--glass-glow);
  color: var(--primary);
}

.btn-secondary:hover {
  box-shadow: 0 0 20px rgba(127, 255, 225, 0.35);
  border-color: var(--primary);
}

.btn-telegram {
  background: transparent;
  border: 1px solid var(--glass-glow);
  color: var(--primary);
}

.btn-telegram:hover {
  box-shadow: 0 0 20px rgba(127, 255, 225, 0.35);
  color: var(--glow);
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 0 4rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cyber-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(127, 255, 225, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 255, 225, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.soft-fog {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 20%,
    rgba(15, 26, 23, 0.8) 0%,
    transparent 60%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Hero logo — particles, neon aura, glow */
.hero-logo-wrap {
  position: relative;
  display: inline-block;
  margin-bottom: 1.5rem;
}

.hero-logo-wrap::before,
.hero-logo-wrap::after {
  content: '';
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(159, 255, 240, 0.15) 0%, transparent 70%);
  animation: aura-pulse 3s ease-in-out infinite;
  pointer-events: none;
}

.hero-logo-wrap::after {
  inset: -50px;
  background: radial-gradient(circle, rgba(127, 255, 225, 0.08) 0%, transparent 60%);
  animation-delay: -1.5s;
}

.hero-logo {
  height: 120px;
  width: auto;
  filter: drop-shadow(0 0 20px rgba(127, 255, 225, 0.4))
          drop-shadow(0 0 50px rgba(159, 255, 240, 0.3));
  animation: logo-breathing 4s ease-in-out infinite;
}

.hero-logo-wrap:hover .hero-logo {
  filter: drop-shadow(0 0 30px rgba(127, 255, 225, 0.6))
          drop-shadow(0 0 70px rgba(159, 255, 240, 0.5));
  animation: logo-pulse 1.5s ease-in-out infinite;
}

@keyframes aura-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.95); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

.hero-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  letter-spacing: 0.15em;
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent-teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.hero-subtitle {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.hero-tagline {
  font-family: 'Oxanium', sans-serif;
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================
   Blocks (Cards)
   ============================================ */
.blocks {
  padding: 5rem 0;
}

.blocks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.block-card {
  backdrop-filter: blur(12px);
  background: var(--card-bg);
  border: 1px solid rgba(127, 255, 225, 0.15);
  border-radius: 16px;
  padding: 2rem;
  box-shadow: 0 0 30px rgba(127, 255, 225, 0.08);
  transition: all 0.3s ease;
}

.block-card:hover {
  border-color: rgba(127, 255, 225, 0.35);
  box-shadow: 0 0 40px rgba(127, 255, 225, 0.15),
              0 0 60px rgba(127, 255, 225, 0.08);
  transform: translateY(-4px);
}

.block-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 10px rgba(127, 255, 225, 0.3));
}

.block-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

.block-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  position: relative;
  padding: 3rem 0;
  border-top: 1px solid var(--glass-border);
}

.footer-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 5, 0.9) 100%);
}

.footer-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

/* Footer logo — glow, hover, breathing */
.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.footer-logo {
  height: 48px;
  width: auto;
  filter: drop-shadow(0 0 10px rgba(127, 255, 225, 0.35))
          drop-shadow(0 0 25px rgba(127, 255, 225, 0.2));
  animation: logo-breathing 4s ease-in-out infinite;
}

.footer-logo-link:hover .footer-logo {
  filter: drop-shadow(0 0 20px rgba(127, 255, 225, 0.55))
          drop-shadow(0 0 45px rgba(159, 255, 240, 0.4));
  animation: logo-pulse 1.5s ease-in-out infinite;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.footer-telegram {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s, text-shadow 0.2s;
}

.footer-telegram:hover {
  color: var(--glow);
  text-shadow: 0 0 15px rgba(127, 255, 225, 0.5);
}

/* ============================================
   Particles (background)
   ============================================ */
.particles-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float-particle 15s infinite;
}

@keyframes float-particle {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.2;
  }
  25% {
    transform: translate(20px, -30px) scale(1.2);
    opacity: 0.4;
  }
  50% {
    transform: translate(-15px, -60px) scale(0.8);
    opacity: 0.2;
  }
  75% {
    transform: translate(25px, -90px) scale(1);
    opacity: 0.3;
  }
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    gap: 1rem;
  }

  .nav-links a:not(.btn-telegram) {
    display: none;
  }

  .hero-logo {
    height: 90px;
  }

  .hero-title {
    letter-spacing: 0.1em;
  }
}
