:root {
  --bg-dark: #07090e;
  --bg-card: rgba(17, 22, 34, 0.72);
  --bg-card-hover: rgba(26, 33, 50, 0.88);
  --primary-accent: #00e5ff;
  --secondary-accent: #7c3aed;
  --telegram-blue: #24A1DE;
  --emerald-accent: #10b981;
  --warning-accent: #f59e0b;
  --danger-accent: #ef4444;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border-glass: rgba(255, 255, 255, 0.09);
  --glow-cyan: 0 0 30px rgba(0, 229, 255, 0.35);
  --glow-purple: 0 0 35px rgba(124, 58, 237, 0.35);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #06080d;
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--primary-accent), var(--secondary-accent));
  border-radius: 4px;
}

/* Ambient Background & Mesh Gradients */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 229, 255, 0.12) 0%, transparent 40%),
    radial-gradient(circle at 85% 25%, rgba(124, 58, 237, 0.14) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(16, 185, 129, 0.08) 0%, transparent 50%),
    var(--bg-dark);
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 90%);
  pointer-events: none;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

/* Navbar Glass */
.navbar-glass {
  background: rgba(7, 9, 14, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border-glass);
  transition: all 0.3s ease;
}

.navbar-glass.scrolled {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
  background: rgba(7, 9, 14, 0.93);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  color: #fff;
  text-decoration: none;
}

.brand-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #05070b;
  font-size: 1.25rem;
  box-shadow: var(--glow-cyan);
  position: relative;
}

.brand-icon-wrap::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  z-index: -1;
  filter: blur(8px);
  opacity: 0.6;
}

.nav-link {
  color: var(--text-muted) !important;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease, transform 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-accent) !important;
  transform: translateY(-1px);
}

/* Typography & Gradients */
.text-gradient {
  background: linear-gradient(135deg, #ffffff 0%, var(--primary-accent) 55%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
  background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #ef4444 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-pill-glow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  border: 1px solid rgba(0, 229, 255, 0.3);
  color: var(--primary-accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.15);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-accent);
  box-shadow: 0 0 12px var(--emerald-accent);
  animation: pulseDot 1.6s infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.55; }
}

/* Motto Box */
.motto-banner {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.1), rgba(124, 58, 237, 0.15));
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-left: 4px solid var(--primary-accent);
  border-radius: 16px;
  padding: 1.15rem 1.4rem;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(12px);
}

.motto-banner::before {
  content: '“';
  position: absolute;
  right: 16px;
  top: -18px;
  font-size: 6rem;
  font-family: Georgia, serif;
  color: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

/* Buttons */
.btn-telegram {
  background: linear-gradient(135deg, #24A1DE 0%, #167ac6 100%);
  color: #fff !important;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 8px 25px rgba(36, 161, 222, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.btn-telegram:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 32px rgba(36, 161, 222, 0.6);
}

.btn-telegram i {
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.btn-telegram:hover i {
  transform: translate(3px, -3px) rotate(-8deg);
}

.btn-cyber {
  background: linear-gradient(135deg, var(--primary-accent) 0%, #3b82f6 50%, var(--secondary-accent) 100%);
  color: #04070d !important;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  padding: 0.85rem 1.65rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--glow-cyan);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-cyber:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0, 229, 255, 0.5);
  filter: brightness(1.08);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main) !important;
  border: 1px solid var(--border-glass);
  border-radius: 14px;
  padding: 0.85rem 1.5rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(0, 229, 255, 0.4);
  transform: translateY(-2px);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: 22px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(0, 229, 255, 0.32);
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45), 0 0 25px rgba(0, 229, 255, 0.12);
}

/* Hero Visual & Phone Simulator */
.hero-section {
  padding-top: 7.5rem;
  padding-bottom: 5rem;
  position: relative;
}

.phone-mockup {
  background: #0c101a;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  padding: 1.15rem;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.75), 0 0 40px rgba(0, 229, 255, 0.18);
  position: relative;
}

.phone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 20px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.avatar-antonino {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #00e5ff, #7c3aed);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  color: #05070c;
  position: relative;
}

.avatar-antonino::after {
  content: '';
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #10b981;
  border: 2px solid #0c101a;
}

.chat-stream {
  height: 365px;
  overflow-y: auto;
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.chat-bubble {
  padding: 0.75rem 1rem;
  border-radius: 16px;
  font-size: 0.88rem;
  line-height: 1.45;
  max-width: 92%;
  animation: popIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

@keyframes popIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-bubble.incoming {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.08);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-bubble.forwarded {
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(124, 58, 237, 0.22));
  border: 1px solid rgba(0, 229, 255, 0.35);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.forwarded-tag {
  font-size: 0.72rem;
  color: var(--primary-accent);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.25rem;
  font-style: italic;
}

.recipient-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  margin-top: 0.4rem;
  margin-right: 0.25rem;
  font-weight: 600;
}

.recipient-direct {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.recipient-random {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
}

.recipient-chaos {
  background: rgba(239, 68, 68, 0.2);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

/* Marquee Ticker */
.ticker-wrap {
  background: rgba(0, 229, 255, 0.05);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  overflow: hidden;
  white-space: nowrap;
  padding: 0.85rem 0;
}

.ticker-move {
  display: inline-block;
  animation: tickerScroll 32s linear infinite;
}

.ticker-move:hover {
  animation-play-state: paused;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 2rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Feature Icons */
.icon-box {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  background: rgba(0, 229, 255, 0.1);
  color: var(--primary-accent);
  border: 1px solid rgba(0, 229, 255, 0.25);
  margin-bottom: 1.25rem;
}

.icon-box.purple {
  background: rgba(124, 58, 237, 0.12);
  color: #c084fc;
  border-color: rgba(124, 58, 237, 0.3);
}

.icon-box.amber {
  background: rgba(245, 158, 11, 0.12);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.icon-box.emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #34d399;
  border-color: rgba(16, 185, 129, 0.3);
}

/* Interactive Forwarder Console */
.console-box {
  background: linear-gradient(180deg, rgba(15, 20, 32, 0.92), rgba(9, 12, 20, 0.96));
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: 26px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 40px rgba(0, 229, 255, 0.1);
}

.target-node {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.target-node.hit {
  background: rgba(0, 229, 255, 0.14);
  border-color: var(--primary-accent);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.25);
  transform: scale(1.03);
}

/* Pricing */
.pricing-popular {
  border-color: var(--primary-accent) !important;
  box-shadow: 0 0 35px rgba(0, 229, 255, 0.18);
}

.popular-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  background: linear-gradient(135deg, var(--primary-accent), var(--secondary-accent));
  color: #05080f;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
}

/* Floating Telegram CTA */
.floating-telegram {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 1040;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: linear-gradient(135deg, #24A1DE, #1565c0);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  box-shadow: 0 10px 30px rgba(36, 161, 222, 0.55);
  text-decoration: none;
  transition: all 0.3s ease;
}

.floating-telegram:hover {
  transform: scale(1.1) rotate(-8deg);
  color: #fff;
  box-shadow: 0 14px 40px rgba(36, 161, 222, 0.8);
}

.floating-telegram-tooltip {
  position: absolute;
  right: 74px;
  background: #0e1422;
  color: #fff;
  border: 1px solid rgba(36, 161, 222, 0.45);
  padding: 0.4rem 0.85rem;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 8px 20px rgba(0,0,0,0.4);
}

/* Cookie Banner */
.cookie-banner {
  position: fixed;
  bottom: 20px;
  left: 20px;
  max-width: 430px;
  z-index: 1050;
  background: rgba(12, 16, 26, 0.96);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(16px);
  transition: all 0.4s ease;
}

.cookie-banner.hidden {
  opacity: 0;
  transform: translateY(30px);
  pointer-events: none;
}

/* Footer */
.footer-modern {
  background: #04060a;
  border-top: 1px solid var(--border-glass);
  padding-top: 4.5rem;
  padding-bottom: 2.5rem;
}

.social-btn {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  transition: all 0.25s ease;
  text-decoration: none;
}

.social-btn:hover {
  background: var(--primary-accent);
  color: #05070c;
  transform: translateY(-3px);
  box-shadow: var(--glow-cyan);
}

.accordion-button {
  background: rgba(17, 22, 34, 0.8) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: none !important;
}

.accordion-button:not(.collapsed) {
  color: var(--primary-accent) !important;
  border-bottom: 1px solid var(--border-glass);
}

.accordion-item {
  background: rgba(17, 22, 34, 0.6);
  border: 1px solid var(--border-glass);
  border-radius: 16px !important;
  overflow: hidden;
  margin-bottom: 0.85rem;
}

.accordion-button::after {
  filter: invert(1);
}

/* =========================================
   RESPONSIVE & MOBILE LAYOUT ADJUSTMENTS
   ========================================= */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: rgba(10, 14, 24, 0.98);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 1rem;
    margin-top: 0.75rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  }

  .hero-section {
    padding-top: 6.25rem;
    padding-bottom: 3.5rem;
  }
}

@media (max-width: 767.98px) {
  .brand-logo {
    font-size: 1.15rem;
    gap: 0.5rem;
  }

  .brand-icon-wrap {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.05rem;
  }

  .hero-section {
    padding-top: 5.5rem;
    padding-bottom: 2.75rem;
  }

  .hero-section h1.display-4 {
    font-size: 2rem;
    line-height: 1.25;
  }

  .hero-section .lead {
    font-size: 1rem;
  }

  .badge-pill-glow {
    font-size: 0.72rem;
    padding: 0.4rem 0.85rem;
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }

  .motto-banner {
    padding: 1rem 1.1rem;
  }

  .motto-banner .motto-text {
    font-size: 1.02rem !important;
  }

  .btn-telegram,
  .btn-cyber,
  .btn-glass {
    padding: 0.75rem 1.15rem;
    font-size: 0.93rem;
  }

  .hero-stats-row .stat-number {
    font-size: 1.15rem;
  }

  .hero-stats-row .stat-label {
    font-size: 0.72rem;
    line-height: 1.2;
  }

  .phone-mockup {
    border-radius: 24px;
    padding: 0.85rem;
  }

  .phone-header {
    padding: 0.6rem 0.75rem;
    border-radius: 16px;
    gap: 0.5rem;
  }

  .avatar-antonino {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  .chat-stream {
    height: 310px;
  }

  .chat-bubble {
    font-size: 0.82rem;
    padding: 0.65rem 0.85rem;
    max-width: 96%;
  }

  .recipient-pill {
    font-size: 0.66rem;
    padding: 0.15rem 0.45rem;
  }

  .pricing-popular {
    padding-top: 3.25rem !important;
  }

  .popular-ribbon {
    top: 12px;
    right: 12px;
    font-size: 0.66rem;
    padding: 0.25rem 0.65rem;
  }

  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
    max-width: none;
    padding: 1rem;
    border-radius: 16px;
  }

  .floating-telegram {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
    font-size: 1.45rem;
  }

  .footer-modern {
    padding-top: 3rem;
    padding-bottom: 5rem;
  }
}

@media (max-width: 400px) {
  .brand-logo {
    font-size: 1.02rem;
  }

  .hero-section h1.display-4 {
    font-size: 1.75rem;
  }

  .hero-stats-row .stat-number {
    font-size: 1rem;
  }

  .hero-stats-row .stat-label {
    font-size: 0.66rem;
  }

  .cookie-banner .d-flex.flex-wrap button {
    width: 100%;
    text-align: center;
  }
}
