﻿:root {
  --navy: #050716;
  --navy2: #090e29;
  --accent: #5865f2;
  --accent-glow: rgba(88, 101, 242, 0.5);
  --text: #f8fafc;
  --muted: #94a3b8;
  --card: rgba(11, 16, 42, 0.72);
  --line: rgba(142, 162, 255, 0.13);
  --line-hover: rgba(142, 162, 255, 0.32);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: linear-gradient(180deg, #050716 0%, #090f2c 45%, #040714 100%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* BG & Vibrant Aurora */
.bg-wrap {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.58;
  animation: floatAurora 14s infinite alternate ease-in-out;
}

.a1 {
  width: 1150px;
  height: 700px;
  top: -12%;
  left: 14%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.52) 0%, transparent 70%);
}

.a2 {
  width: 900px;
  height: 620px;
  top: 5%;
  right: 70%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
}

.a3 {
  width: 1050px;
  height: 800px;
  bottom: -18%;
  left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(67, 56, 202, 0.4) 0%, transparent 70%);
}

@keyframes floatAurora {
  0% { transform: translateY(0) scale(1); }
  100% { transform: translateY(22px) scale(1.04); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(142, 162, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 162, 255, 0.045) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(circle at 50% 25%, black 35%, transparent 85%);
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 7, 22, 0.78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.4px;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #5865f2, #7983f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.5);
}

.nav-links {
  display: flex;
  gap: 34px;
  font-size: 15px;
  color: var(--muted);
  font-weight: 500;
}

.nav-links a {
  transition: color 0.2s;
}

.nav-links a:hover {
  color: #fff;
}

.nav-cta {
  background: linear-gradient(135deg, #5865f2, #4752c4);
  color: #fff;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
  transition: all 0.2s;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.nav-cta:hover {
  background: linear-gradient(135deg, #6571f5, #4f5bd5);
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.6);
}

/* Hero (Безупречно чистый центр без лишних тегов вокруг кнопки) */
.hero {
  padding: 64px 0 80px;
  text-align: center;
  position: relative;
  z-index: 1;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.42);
  padding: 7px 18px;
  border-radius: 100px;
  font-size: 13px;
  color: #c7d2fe;
  font-weight: 600;
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 25px rgba(88, 101, 242, 0.18);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 10px #23a55a;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.65; }
}

.hero h1 {
  font-size: clamp(42px, 7.2vw, 72px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -2.4px;
  margin-bottom: 18px;
}

.hero h1 .grad {
  background: linear-gradient(180deg, #ffffff 20%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lede {
  font-size: 18.5px;
  color: var(--muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-actions {
  margin-bottom: 56px;
}

.dl-hero {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #5865f2 0%, #404eed 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  padding: 19px 44px;
  border-radius: 15px;
  box-shadow:
    0 20px 55px rgba(88, 101, 242, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.dl-hero:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #6672f7 0%, #4a58f2 100%);
  box-shadow:
    0 26px 75px rgba(88, 101, 242, 0.72),
    0 0 0 1px rgba(255, 255, 255, 0.38);
}

.dl-hero:active {
  transform: translateY(0);
}

.dl-shine {
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: skewX(-25deg);
  animation: shine 4.5s infinite;
}

@keyframes shine {
  0% { left: -120%; }
  30%, 100% { left: 160%; }
}

.dl-hero svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
}

/* Mockup (Премиальное окно Discord) */
.mockup {
  max-width: 820px;
  margin: 0 auto;
  background: rgba(10, 14, 38, 0.85);
  border: 1px solid rgba(142, 162, 255, 0.24);
  border-radius: 20px;
  overflow: hidden;
  box-shadow:
    0 35px 100px rgba(0, 0, 0, 0.75),
    0 0 65px rgba(88, 101, 242, 0.16);
  text-align: left;
  backdrop-filter: blur(18px);
}

.mockup-header {
  background: rgba(0, 0, 0, 0.38);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.win-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.red { background: #ed4245; }
.yellow { background: #faa81a; }
.green { background: #23a55a; }

.mockup-title {
  font-size: 13px;
  color: #cbd5e1;
  font-weight: 600;
}

.mockup-pill {
  font-size: 11.5px;
  font-weight: 700;
  color: #4ade80;
  background: rgba(35, 165, 90, 0.16);
  border: 1px solid rgba(35, 165, 90, 0.38);
  padding: 3px 10px;
  border-radius: 100px;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 235px 1fr;
}

.mockup-sidebar {
  background: rgba(5, 8, 22, 0.55);
  border-right: 1px solid var(--line);
  padding: 18px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.ch-category {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 8px;
  padding: 0 6px;
}

.ch-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(88, 101, 242, 0.18);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}

.ch-users {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 10px;
  margin-bottom: 18px;
}

.ch-user {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #cbd5e1;
}

.u-ava {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #5865f2;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 800;
  color: #fff;
}

.ch-user.speaking .u-ava {
  box-shadow: 0 0 0 2px #23a55a;
}

.u-ava.alt {
  background: #334155;
}

.u-live {
  margin-left: auto;
  background: #ed4245;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 4px;
}

.rtc-status {
  background: rgba(35, 165, 90, 0.1);
  border: 1px solid rgba(35, 165, 90, 0.28);
  border-radius: 10px;
  padding: 10px 12px;
}

.rtc-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #4ade80;
  margin-bottom: 2px;
}

.rtc-bar {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #23a55a;
  box-shadow: 0 0 8px #23a55a;
}

.rtc-status p {
  font-size: 11px;
  color: var(--muted);
}

.mockup-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.chat-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.chat-row.user {
  justify-content: flex-end;
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, #5865f2, #4752c4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
  color: #fff;
  box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.msg {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid var(--line);
  padding: 12px 16px;
  border-radius: 14px;
  max-width: 84%;
}

.user-msg {
  background: rgba(88, 101, 242, 0.22);
  border-color: rgba(88, 101, 242, 0.45);
}

.msg-meta {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 4px;
}

.msg b {
  font-size: 14px;
  color: #fff;
}

.app-tag {
  background: #5865f2;
  color: #fff;
  font-size: 9.5px;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: 4px;
}

.time {
  font-size: 11px;
  color: var(--muted);
}

.msg p {
  font-size: 14.5px;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Section Headings */
.section-head {
  text-align: center;
  margin-bottom: 48px;
}

.section-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #818cf8;
  margin-bottom: 8px;
}

/* Features */
.features {
  padding: 90px 0;
}

.features h2,
.guide h2,
.faq h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
  text-align: center;
  letter-spacing: -1.4px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 36px 30px;
  border-radius: 20px;
  transition: all 0.25s ease;
  backdrop-filter: blur(12px);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(88, 101, 242, 0.55);
  box-shadow: 0 18px 45px rgba(88, 101, 242, 0.16);
}

.card-glow {
  background: linear-gradient(160deg, rgba(88, 101, 242, 0.16), rgba(11, 16, 42, 0.85));
  border-color: rgba(88, 101, 242, 0.38);
}

.card-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.35);
  color: #a5b4fc;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  color: #fff;
}

.card p {
  font-size: 15px;
  color: var(--muted);
}

/* Guide */
.guide {
  padding: 50px 0 90px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.step {
  background: var(--card);
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 20px;
  position: relative;
  transition: border-color 0.2s;
}

.step:hover {
  border-color: var(--line-hover);
}

.step-num {
  font-size: 36px;
  font-weight: 900;
  color: rgba(88, 101, 242, 0.45);
  margin-bottom: 14px;
  letter-spacing: -2px;
}

.step h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
  color: #fff;
}

.step p {
  font-size: 14.5px;
  color: var(--muted);
}

.code-tag {
  background: rgba(88, 101, 242, 0.16);
  border: 1px solid rgba(88, 101, 242, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 13px;
  color: #c7d2fe;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(88, 101, 242, 0.28), rgba(11, 17, 45, 0.92));
  border: 1px solid rgba(88, 101, 242, 0.48);
  border-radius: 22px;
  padding: 40px 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  box-shadow: 0 20px 60px rgba(88, 101, 242, 0.22);
}

.cta-banner h3 {
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  margin-bottom: 6px;
}

.cta-banner p {
  color: var(--muted);
  font-size: 15px;
}

.dl-compact {
  padding: 15px 34px;
  font-size: 16px;
}

/* FAQ */
.faq {
  padding: 40px 0 90px;
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px 26px;
  transition: 0.2s;
  cursor: pointer;
}

details[open] {
  border-color: rgba(88, 101, 242, 0.52);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

summary {
  font-weight: 700;
  font-size: 17px;
  color: #fff;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  font-size: 22px;
  color: #818cf8;
  font-weight: 400;
}

details[open] summary::after {
  content: "−";
}

details p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

/* Footer */
.footer {
  background: rgba(4, 6, 18, 0.96);
  border-top: 1px solid var(--line);
  padding: 70px 0 40px;
  color: var(--muted);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-brand {
  margin-bottom: 14px;
  color: #fff;
}

.footer-desc {
  max-width: 340px;
  font-size: 14px;
}

.f-col h4 {
  color: #fff;
  font-weight: 700;
  margin-bottom: 18px;
  font-size: 15px;
}

.f-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.f-col a:hover {
  color: #fff;
}

.copyright {
  border-top: 1px solid var(--line);
  padding-top: 30px;
  text-align: center;
  font-size: 13px;
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }
  .mockup-grid {
    grid-template-columns: 1fr;
  }
  .mockup-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* Defender Modal */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(3, 5, 15, 0.88);
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-card {
  background: #0b1130;
  border: 1px solid rgba(88, 101, 242, 0.45);
  border-radius: 20px;
  max-width: 520px; width: 100%;
  padding: 32px;
  box-shadow: 0 25px 70px rgba(0,0,0,0.85), 0 0 50px rgba(88,101,242,0.25);
  text-align: left;
}
.modal-icon {
  font-size: 38px; margin-bottom: 12px; text-align: center;
}
.modal-card h3 {
  font-size: 19px; font-weight: 800; color: #fff;
  margin-bottom: 20px; text-align: center; line-height: 1.35;
}
.defender-steps {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  margin-bottom: 28px; font-size: 14.5px; color: #cbd5e1;
}
.defender-steps li {
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(142,162,255,0.09);
  padding: 10px 14px; border-radius: 10px;
}
.modal-buttons {
  display: flex; gap: 14px; justify-content: center;
}
.btn-cancel {
  background: rgba(255,255,255,0.08); color: #fff;
  border: none; padding: 12px 24px; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: 0.2s;
}
.btn-cancel:hover { background: rgba(255,255,255,0.15); }
.btn-confirm {
  background: #5865f2; color: #fff;
  border: none; padding: 12px 28px; border-radius: 12px;
  font-weight: 700; font-size: 15px; cursor: pointer; transition: 0.2s;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(88,101,242,0.4);
}
.btn-confirm:hover { background: #4752c4; transform: translateY(-1px); }