:root {
  --bg: #0a0a10;
  --bg-elev: #12121c;
  --bg-elev-2: #191927;
  --border: #2a2a3d;
  --text: #e9e9f5;
  --text-muted: #9d9db3;
  --purple: #8a2be2;
  --purple-bright: #b579ff;
  --blue: #00d2ff;
  --blue-bright: #66e5ff;
  --cyan: #00ffff;
  --gradient: linear-gradient(135deg, var(--purple) 0%, var(--blue) 60%, var(--cyan) 100%);
  --radius: 16px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
  position: relative;
}

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

.accent {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Glow backgrounds */
.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.25;
  z-index: -1;
  pointer-events: none;
}
.bg-glow--purple {
  width: 600px;
  height: 600px;
  background: var(--purple);
  top: -200px;
  left: -150px;
}
.bg-glow--blue {
  width: 600px;
  height: 600px;
  background: var(--blue);
  bottom: -250px;
  right: -150px;
}

/* Sticky top stack: offer banner + header */
.top-stack {
  position: sticky;
  top: 0;
  z-index: 30;
}

/* Offer banner */
.offer-banner {
  background: linear-gradient(90deg, var(--purple) 0%, var(--blue) 50%, var(--cyan) 100%);
  background-size: 200% 100%;
  animation: banner-shift 6s ease infinite;
  padding: 10px 16px;
}
.offer-banner__track {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  font-weight: 800;
  color: #0a0a10;
  text-align: center;
}
.offer-banner__track strong { letter-spacing: 0.03em; }
.offer-banner__cta {
  background: rgba(10, 10, 16, 0.85);
  color: var(--cyan);
  border-radius: 999px;
  padding: 5px 16px;
  font-size: 0.8rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.offer-banner__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.5);
}
@keyframes banner-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Header */
.header {
  background: rgba(10, 10, 16, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 800;
}
.logo__icon { font-size: 1.4rem; }
.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 22px;
  row-gap: 6px;
}
.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.nav a:hover { color: var(--purple-bright); }

/* Hero */
.hero { padding: 90px 0 70px; text-align: center; }
.hero__kicker {
  display: inline-block;
  color: var(--blue-bright);
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 16px;
}
.hero__title {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 900;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  max-width: 620px;
  margin: 0 auto 36px;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.hero__cta { font-size: 1.05rem; }

/* Buttons */
.btn {
  display: inline-block;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
  font-size: 0.95rem;
}
.btn--primary {
  background: var(--gradient);
  color: #0a0a10;
  box-shadow: 0 0 24px rgba(138, 43, 226, 0.45);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 32px rgba(0, 210, 255, 0.55);
}
.btn--primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Section titles */
.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 900;
  margin: 0 0 10px;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  margin: 0 0 48px;
}

/* Stats */
.stats { padding: 10px 0 60px; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.stat-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.stat-card:hover {
  transform: translateY(-4px);
  border-color: var(--blue);
}
.stat-card__icon { font-size: 1.8rem; margin-bottom: 8px; }
.stat-card__value {
  font-size: 1.5rem;
  font-weight: 900;
  margin: 0 0 4px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat-card__label {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Plans & catalog cards (shared grid/card styles) */
.plans { padding: 40px 0 100px; }
.catalog { padding: 0 0 100px; }
.plans__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.plan-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.plan-card:hover {
  transform: translateY(-6px);
  border-color: var(--purple);
}
.plan-card--featured {
  border-color: var(--purple);
  box-shadow: var(--shadow), 0 0 0 1px rgba(138, 43, 226, 0.3);
}
.plan-card__badge {
  position: absolute;
  top: -12px;
  right: 20px;
  background: var(--gradient);
  color: #0a0a10;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.plan-card__icon { font-size: 2.2rem; margin-bottom: 12px; }
.plan-card__name {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 6px;
}
.plan-card__price {
  font-size: 2rem;
  font-weight: 900;
  margin: 0 0 20px;
}
.plan-card__price span {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
}
.plan-card__perks {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.plan-card__perks li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--text-muted);
  font-size: 0.92rem;
}
.plan-card__perks li::before {
  content: "✓";
  color: var(--blue-bright);
  font-weight: 800;
  flex-shrink: 0;
}
.plan-card__buy { width: 100%; text-align: center; }

/* Catalog filter bar */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 36px;
}
.filter-pill {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 9px 20px;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}
.filter-pill:hover { color: var(--text); border-color: var(--blue); }
.filter-pill.active {
  background: var(--gradient);
  color: #0a0a10;
  border-color: transparent;
}

/* FAQ */
.faq { padding-bottom: 100px; }
.faq__list {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq__item {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
}
.faq__item summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::before {
  content: "▸";
  color: var(--purple-bright);
  margin-right: 10px;
}
.faq__item[open] summary::before { content: "▾"; }
.faq__item p {
  color: var(--text-muted);
  margin: 12px 0 0;
  font-size: 0.92rem;
}

/* Terms */
.terms { padding-bottom: 100px; }
.terms__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.terms-card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.terms-card:hover {
  transform: translateY(-4px);
  border-color: var(--purple);
}
.terms-card__icon { font-size: 1.7rem; margin-bottom: 10px; }
.terms-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.terms-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: 44px 0 28px;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 24px;
}
.footer__brand p { margin: 4px 0; }
.footer__note { font-size: 0.8rem; }
.footer__heading {
  color: var(--text);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer__status {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text);
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 8px #34d399;
  animation: status-pulse 2s ease infinite;
  flex-shrink: 0;
}
@keyframes status-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.ip-copy {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 10px;
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ip-copy:hover {
  border-color: var(--blue);
  box-shadow: 0 0 16px rgba(0, 210, 255, 0.3);
}
.ip-copy__icon { font-size: 0.95rem; }
.ip-copy__toast {
  display: inline-block;
  margin-left: 10px;
  color: #34d399;
  font-weight: 700;
  font-size: 0.82rem;
}
.footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 1.1rem;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.social-icon:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: 0 0 14px rgba(138, 43, 226, 0.5);
}
.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 5, 10, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  width: 100%;
  max-width: 420px;
  position: relative;
  box-shadow: 0 0 60px rgba(138, 43, 226, 0.2);
  animation: modal-in 0.2s ease;
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal h3 { margin: 0 0 4px; font-size: 1.3rem; }
.modal__plan {
  color: var(--purple-bright);
  font-weight: 700;
  margin: 0 0 20px;
}
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
}
.modal__close:hover { color: var(--text); }
#order-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 0.9rem;
}
#discount-form input,
#order-form input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  font-size: 1rem;
  margin-bottom: 6px;
}
#discount-form input:focus,
#order-form input:focus {
  outline: none;
  border-color: var(--purple);
}
.modal__hint {
  color: var(--text-muted);
  font-size: 0.78rem;
  margin: 0 0 20px;
}
.modal__submit { width: 100%; margin-top: 4px; }
.modal__skip {
  width: 100%;
  margin-top: 10px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.modal__skip:hover { color: var(--text); border-color: var(--purple); }
.modal__success, .modal__error {
  text-align: center;
  padding: 12px 0;
}
.modal__success p:first-child { font-size: 1.1rem; font-weight: 700; }
.modal__success-sub { color: var(--text-muted); font-size: 0.9rem; }
.modal__error p { color: #f87171; font-weight: 600; }

@media (max-width: 760px) {
  .footer__grid { grid-template-columns: 1fr; gap: 26px; }
}

@media (max-width: 600px) {
  .nav { gap: 14px; justify-content: center; }
  .nav a { font-size: 0.85rem; }
  .offer-banner__track { font-size: 0.78rem; }
  .footer__bottom { flex-direction: column; }
}
