:root {
  --bg: #0a0a0a;
  --bg2: #140000;
  --red: #ff1a1a;
  --red2: #e00000;
  --text: #eaeaea;
  --green: #00ff00;
  --blue: #00f0ff;
  --purple: #8b00ff;
  --light-purple: #c996ff;
  --orange: #ff6600;
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body {
  background: radial-gradient(1200px 800px at 50% 50%, var(--bg2) 0%, var(--bg) 65%);
  color: var(--text);
  font-family: "Montserrat", system-ui, sans-serif;
  position: relative;
}

/* Matrix Background */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.1;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 255, 0, 0.03) 2px,
    rgba(0, 255, 0, 0.03) 4px
  );
  animation: matrixFlow 20s linear infinite;
  will-change: transform;
}

@keyframes matrixFlow {
  0% { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}

/* Main Container */
.boost-container {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease;
}

.loading-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.loading-content {
  text-align: center;
}

.loading-spinner {
  width: 60px;
  height: 60px;
  border: 3px solid var(--bg2);
  border-top: 3px solid var(--red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loading-text {
  font-family: "Share Tech Mono", monospace;
  font-size: 18px;
  color: var(--red);
  text-shadow: 0 0 10px rgba(255, 26, 26, 0.5);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 20px;
  background: radial-gradient(800px 600px at 50% 50%, rgba(255, 26, 26, 0.1) 0%, transparent 70%);
}

.hero-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.hero-title {
  font-size: clamp(48px, 12vw, 120px);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 30px;
  position: relative;
}

.glitch-text {
  position: relative;
  display: inline-block;
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  text-shadow: 
    0 0 20px rgba(255, 26, 26, 0.5),
    0 0 40px rgba(255, 26, 26, 0.3),
    0 0 60px rgba(255, 26, 26, 0.1);
  animation: glitchPulse 3s ease-in-out infinite;
  will-change: text-shadow;
}

.glitch-text::before,
.glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  color: var(--red);
  mix-blend-mode: screen;
  opacity: 0;
}

.glitch-text::before {
  clip-path: polygon(0 0, 100% 0, 100% 35%, 0 35%);
  animation: glitch1 2s infinite;
}

.glitch-text::after {
  clip-path: polygon(0 65%, 100% 65%, 100% 100%, 0 100%);
  animation: glitch2 2s infinite;
}

@keyframes glitchPulse {
  0%, 100% { 
    text-shadow: 
      0 0 20px rgba(255, 26, 26, 0.5),
      0 0 40px rgba(255, 26, 26, 0.3),
      0 0 60px rgba(255, 26, 26, 0.1);
  }
  50% { 
    text-shadow: 
      0 0 30px rgba(255, 26, 26, 0.8),
      0 0 60px rgba(255, 26, 26, 0.6),
      0 0 90px rgba(255, 26, 26, 0.4);
  }
}

@keyframes glitch1 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(-2px, -1px); }
  40% { transform: translate(2px, 1px); }
  60% { transform: translate(-1px, 2px); }
  80% { transform: translate(1px, -2px); }
}

@keyframes glitch2 {
  0%, 100% { transform: translate(0); }
  20% { transform: translate(2px, 1px); }
  40% { transform: translate(-2px, -1px); }
  60% { transform: translate(1px, -2px); }
  80% { transform: translate(-1px, 2px); }
}

.hero-subtitle {
  font-family: "Share Tech Mono", monospace;
  font-size: clamp(18px, 3vw, 28px);
  margin-bottom: 50px;
  opacity: 0.9;
}

.typewriter {
  display: inline-block;
  white-space: pre-wrap;
  border-right: 2px solid var(--red);
  padding-right: 6px;
  animation: caret 700ms steps(1) infinite;
}

@keyframes caret {
  50% { border-color: transparent; }
}

.hero-cta {
  margin-top: 40px;
}

.btn-boost {
  position: relative;
  background: linear-gradient(135deg, var(--red), var(--red2));
  border: none;
  padding: 20px 40px;
  font-size: 24px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 30px rgba(255, 26, 26, 0.4),
    0 0 60px rgba(255, 26, 26, 0.2);
}

.btn-boost:hover {
  transform: translateY(-3px);
  box-shadow: 
    0 0 40px rgba(255, 26, 26, 0.6),
    0 0 80px rgba(255, 26, 26, 0.4);
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-boost:hover .btn-glow {
  left: 100%;
}

/* Floating Elements */
.floating-elements {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-item {
  position: absolute;
  width: 20px;
  height: 20px;
  background: var(--red);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 6s ease-in-out infinite;
  will-change: transform;
}

.float-1 {
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.float-2 {
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.float-3 {
  bottom: 30%;
  left: 20%;
  animation-delay: 4s;
}

.float-4 {
  top: 40%;
  right: 30%;
  animation-delay: 1s;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

/* Section Styles */
section {
  padding: 80px 20px;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-title {
  font-size: clamp(32px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: 0.1em;
  margin-bottom: 20px;
  position: relative;
}

.glitch-out {
  position: relative;
  color: var(--red);
  text-shadow: 0 0 20px rgba(255, 26, 26, 0.5);
}

.glitch-out::before,
.glitch-out::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
}

.glitch-out::before {
  color: #f33;
  mix-blend-mode: screen;
  clip-path: polygon(0 0, 100% 0, 100% 38%, 0 38%);
  animation: gOut1 2s infinite;
}

.glitch-out::after {
  color: #3ff;
  mix-blend-mode: screen;
  clip-path: polygon(0 62%, 100% 62%, 100% 100%, 0 100%);
  animation: gOut2 2s infinite;
}

@keyframes gOut1 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(-2px, -1px); }
}

@keyframes gOut2 {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(2px, 1px); }
}

.section-line {
  width: 100px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--red), transparent);
  margin: 0 auto;
}

/* Why Boost Section */
.why-boost {
  background: radial-gradient(600px 400px at 50% 50%, rgba(255, 26, 26, 0.05) 0%, transparent 70%);
}

.why-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.why-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 0, 0, 0.9));
  border: 2px solid var(--red);
  border-radius: 16px;
  padding: 30px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.why-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 26, 26, 0.1), transparent);
  transition: left 0.5s ease;
}

.why-card:hover::before {
  left: 100%;
}

.why-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(255, 26, 26, 0.2);
}

.card-icon {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(255, 26, 26, 0.5));
}

.card-content {
  flex: 1;
}

.card-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--red);
}

.card-text {
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.9;
}

/* What Get Section */
.what-get {
  background: radial-gradient(600px 400px at 50% 50%, rgba(0, 240, 255, 0.05) 0%, transparent 70%);
}

.benefits-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.benefit-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(0, 0, 20, 0.9));
  border: 2px solid var(--blue);
  border-radius: 16px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.benefit-card:hover::before {
  left: 100%;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 240, 255, 0.2);
}

.benefit-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.benefit-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.5));
}

.benefit-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 15px;
  color: var(--blue);
}

.benefit-desc {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.9;
}

/* How Boost Section */
.how-boost {
  background: radial-gradient(600px 400px at 50% 50%, rgba(139, 0, 255, 0.05) 0%, transparent 70%);
}

.boost-methods {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 40px;
}

.method-card {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.8), rgba(20, 0, 40, 0.9));
  border: 2px solid var(--purple);
  border-radius: 16px;
  padding: 30px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.method-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(139, 0, 255, 0.1), transparent);
  transition: left 0.5s ease;
}

.method-card:hover::before {
  left: 100%;
}

.method-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(139, 0, 255, 0.2);
}

.method-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}

.method-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.method-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 10px rgba(139, 0, 255, 0.5));
}

.method-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--purple);
}

.method-content {
  margin-top: 20px;
}

.method-desc {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0.9;
}

.method-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.feature-tag {
  background: rgba(139, 0, 255, 0.2);
  border: 1px solid var(--purple);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  color: var(--light-purple);
}

.levels {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.level {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background: rgba(139, 0, 255, 0.1);
  border: 1px solid var(--purple);
  border-radius: 8px;
}

.level-name {
  font-weight: 600;
  color: var(--purple);
}

.level-price {
  font-family: "Share Tech Mono", monospace;
  color: var(--text);
}

/* Telegram Section */
.telegram-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(800px 600px at 50% 50%, rgba(255, 26, 26, 0.15) 0%, transparent 70%);
  overflow: hidden;
}

.telegram-content {
  text-align: center;
  z-index: 2;
  position: relative;
}

.telegram-button-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.telegram-bot-button {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 30px 50px;
  background: linear-gradient(135deg, var(--red), var(--red2));
  border: 2px solid var(--red);
  border-radius: 16px;
  text-decoration: none;
  color: white;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: 0.05em;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 
    0 0 30px rgba(255, 26, 26, 0.4),
    0 0 60px rgba(255, 26, 26, 0.2);
  min-width: 400px;
  justify-content: center;
}

.telegram-bot-button:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 0 40px rgba(255, 26, 26, 0.6),
    0 0 80px rgba(255, 26, 26, 0.4);
}

.button-icon {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.telegram-icon {
  width: 100%;
  height: 100%;
  color: white;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
}

.button-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px;
}

.button-title {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.button-subtitle {
  font-size: 16px;
  font-weight: 400;
  opacity: 0.9;
  font-family: "Share Tech Mono", monospace;
}

.button-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.telegram-bot-button:hover .button-glow {
  left: 100%;
}

/* Utility: grayscale */
.grayscale {
  filter: grayscale(1) contrast(0.9) brightness(0.9);
}

.grayscale:hover {
  filter: grayscale(1) contrast(0.95) brightness(1);
}

.telegram-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.bg-element {
  position: absolute;
  border-radius: 50%;
  animation: bgFloat 8s ease-in-out infinite;
  will-change: transform;
}

.bg-1 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 26, 26, 0.1), transparent);
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}

.bg-2 {
  width: 150px;
  height: 150px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1), transparent);
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}

.bg-3 {
  width: 100px;
  height: 100px;
  background: radial-gradient(circle, rgba(139, 0, 255, 0.1), transparent);
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}

@keyframes bgFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(180deg); }
}

/* Popup (similar to main.html) */
.dim-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  pointer-events: none;
  transition: background 400ms ease;
  z-index: 9990;
}

.dim-overlay.active {
  background: rgba(0, 0, 0, 0.85);
  pointer-events: auto;
}

.popup {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 10000;
}

.popup.hidden {
  display: none;
}

.popup .popup-card {
  pointer-events: auto;
  max-width: min(92vw, 520px);
  background: #0f0b0b;
  color: var(--text);
  border: 2px solid var(--red);
  box-shadow: 0 0 24px rgba(255, 26, 26, 0.6), 0 0 48px rgba(255, 26, 26, 0.35);
  border-radius: 10px;
  padding: 20px 22px;
  text-align: center;
}

.popup .popup-title {
  margin: 0 0 8px 0;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.popup .popup-message {
  margin: 0 0 16px 0;
  line-height: 1.5;
}

.popup .popup-actions {
  display: flex;
  justify-content: center;
}

.popup .btn {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--red);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 26, 26, 0.4) inset;
}

.popup .btn:hover {
  background: rgba(255, 26, 26, 0.08);
}

/* Success Modal */
.success-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  transition: opacity 0.3s ease;
}

.success-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-content {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.9), rgba(20, 0, 0, 0.95));
  border: 2px solid var(--green);
  border-radius: 16px;
  padding: 40px;
  text-align: center;
  max-width: 500px;
  width: 90%;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 255, 0, 0.2);
}

.modal-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-icon svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 20px rgba(0, 255, 0, 0.5));
}

.modal-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 15px;
}

.modal-text {
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 30px;
  opacity: 0.9;
}

.modal-close {
  background: linear-gradient(135deg, var(--green), #00cc00);
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  font-weight: 600;
  color: white;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 255, 0, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(32px, 8vw, 64px);
  }
  
  .section-title {
    font-size: clamp(24px, 5vw, 48px);
  }
  
  .why-content,
  .benefits-grid,
  .boost-methods {
    grid-template-columns: 1fr;
  }
  
  .telegram-bot-button {
    min-width: 300px;
    padding: 25px 40px;
    flex-direction: column;
    gap: 15px;
  }
  
  .button-text {
    align-items: center;
    text-align: center;
  }
  
  .button-title {
    font-size: 20px;
  }
  
  .button-subtitle {
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  section {
    padding: 40px 15px;
  }
  
  .why-card,
  .benefit-card,
  .method-card {
    padding: 20px;
  }
  
  .modal-content {
    padding: 30px 20px;
  }
}
