:root {
  --bg: #07080f;
  --bg2: #0f111d;
  --surface: #151727;
  --surface-hover: #1b1e30;
  --border: #2a2e45;
  --border-hover: #3a3f5d;

  --accent: #ff2d55;
  --accent2: #c80f38;
  --accent-blue: #bfc5d2;
  --accent-purple: #6f7788;

  --text: #F8FAFC;
  --text-muted: #9CA3AF;
  --radius: 12px;
  --radius-lg: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* PARTICLES */
.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  border-radius: 50%;
  animation: float linear infinite;
  opacity: 0.2;
}
@keyframes float {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-100px) scale(1.2); opacity: 0; }
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(8, 8, 14, 0.86);
  border-bottom: 1px solid rgba(255, 56, 87, 0.28);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.logo {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo-icon {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
}
.nav-links a {
  color: #CBD5E1;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  text-decoration: none;
  padding: 10px 24px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  transition: box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.34);
}
.btn-nav:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(255, 45, 85, 0.5);
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px 24px 60px;
  background:
    radial-gradient(ellipse 72% 50% at 50% 12%, rgba(255, 52, 88, 0.2) 0%, transparent 62%),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(190, 197, 213, 0.08) 0%, transparent 64%);
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 45, 85, 0.12);
  border: 1px solid rgba(255, 45, 85, 0.38);
  color: #ffd8e2;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease both;
}
.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  color: #FFF;
  animation: fadeUp 0.8s 0.1s ease both;
}
.gradient-text {
  background: linear-gradient(135deg, #f0f3fb, #ff5578, #bfc5d2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 600px;
  margin-bottom: 40px;
  line-height: 1.6;
  animation: fadeUp 0.8s 0.2s ease both;
}
.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.3s ease both;
  margin-bottom: 64px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  text-decoration: none;
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(255, 45, 85, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255, 45, 85, 0.48);
}
.btn-large { padding: 18px 48px; font-size: 1.1rem; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #E2E8F0;
  text-decoration: none;
  padding: 16px 28px;
  border-radius: 10px;
  font-size: 1.05rem;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.btn-ghost:hover {
  background: var(--surface-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
}
.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.8s 0.4s ease both;
  background: rgba(17, 24, 39, 0.6);
  border: 1px solid var(--border);
  padding: 24px 48px;
  border-radius: var(--radius-lg);
  backdrop-filter: blur(10px);
}
.stat { display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.stat-num { font-size: 1.5rem; font-weight: 800; color: var(--text); line-height: 1.2; }
.stat-lbl { font-size: 0.85rem; color: var(--text-muted); font-weight: 500; }
.stat-div { width: 1px; height: 40px; background: var(--border); }

/* SECTIONS */
.section {
  position: relative;
  z-index: 1;
  padding: 120px 0;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-badge {
  display: inline-block;
  background: rgba(255, 45, 85, 0.13);
  border: 1px solid rgba(255, 45, 85, 0.34);
  color: #ffd2de;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #FFF;
}
.section-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 56px;
  max-width: 650px;
  line-height: 1.6;
}

/* CARD */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 12px; color: #FFF; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(255, 45, 85, 0.1);
  border: 1px solid rgba(255, 45, 85, 0.3);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  color: var(--accent-blue);
}

/* PRICING */
.pricing-section {
  background: #0a0b14;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 48px;
}
.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--bg2);
}
.pricing-popular {
  border-color: var(--accent) !important;
  background: linear-gradient(180deg, rgba(255, 45, 85, 0.1) 0%, var(--bg2) 100%) !important;
  transform: scale(1.02);
}
.pricing-popular:hover {
  transform: scale(1.02) translateY(-6px);
  box-shadow: 0 20px 40px rgba(255, 45, 85, 0.22);
}
.popular-badge {
  position: absolute;
  top: -16px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  color: #fff;
  padding: 6px 20px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.plan-label { font-size: 1.1rem; font-weight: 700; color: #E2E8F0; margin-bottom: 16px; display: flex; align-items: center; gap: 8px;}
.plan-price { font-size: 3.5rem; font-weight: 800; letter-spacing: -2px; line-height: 1; color: #FFF; }
.plan-price span { font-size: 1rem; font-weight: 600; color: var(--text-muted); letter-spacing: 0; }
.plan-period { color: var(--text-muted); font-size: 0.9rem; margin: 8px 0 32px; font-weight: 500; }
.plan-features {
  list-style: none;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.plan-features li { 
  font-size: 0.95rem; 
  color: #CBD5E1; 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}
.check-icon {
  color: var(--accent);
  font-weight: bold;
}
.btn-plan {
  display: block;
  text-align: center;
  text-decoration: none;
  padding: 14px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  color: #FFF;
  transition: background 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-plan:hover { background: var(--surface-hover); border-color: var(--border-hover); }
.btn-plan-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none;
  color: #fff;
  box-shadow: 0 4px 16px rgba(255, 45, 85, 0.34);
}
.btn-plan-primary:hover { opacity: 0.9; box-shadow: 0 6px 24px rgba(255, 45, 85, 0.44); border-color: transparent;}
.payment-methods {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.pay-badge {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
}

/* HOW TO */
.steps-grid {
  display: flex;
  align-items: stretch;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}
.step-item {
  flex: 1;
  min-width: 250px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  position: relative;
  text-align: left;
}
.step-num {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 45, 85, 0.12);
  color: #ffe0e8;
  border: 1px solid rgba(255, 45, 85, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 24px;
}
.step-item h3 { font-weight: 800; margin-bottom: 12px; font-size: 1.25rem; }
.step-item p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }
.step-arrow { display: none; } /* Removed arrows for card style */

.download-links { text-align: left; }
.download-links h3 { font-size: 1.25rem; font-weight: 800; margin-bottom: 24px; color: #FFF; }
.download-grid {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.download-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: #E2E8F0;
  text-decoration: none;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.download-btn:hover { background: var(--surface-hover); border-color: var(--border-hover); transform: translateY(-2px); }

/* SUPPORT / TICKETS */
.support-card {
  max-width: 640px;
  margin: 0 auto 24px;
  text-align: center;
}
.support-card .btn-primary { margin-top: 24px; }
.support-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 24px;
  text-align: left;
}
.support-step {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 16px 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.support-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 45, 85, 0.14);
  color: #ffdbe4;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
}
.support-step p { margin: 0; color: var(--text-muted); font-size: 1rem; }
.support-step strong { color: var(--text); }

/* FAQ */
.faq-section {
  background: #0a0b14;
}
.faq-list { display: flex; flex-direction: column; gap: 16px; max-width: 850px; }
.faq-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: var(--border-hover); }
.faq-q {
  padding: 24px 32px;
  font-weight: 700;
  font-size: 1.05rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.2s, background 0.2s;
  color: #E2E8F0;
}
.faq-q:hover { background: var(--surface); }
.faq-arrow {
  color: var(--accent);
  transition: transform 0.3s;
  font-weight: block;
}
.faq-q.open .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 0 32px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.faq-a.open { max-height: 400px; padding: 0 32px 24px; }

/* CTA */
.cta-section { padding: 80px 0 120px; }
.cta-card {
  background: linear-gradient(135deg, rgba(255, 45, 85, 0.14), rgba(187, 196, 212, 0.08));
  border: 1px solid rgba(255, 45, 85, 0.26);
  border-radius: 24px;
  padding: 80px 48px;
  text-align: center;
}
.cta-card h2 { font-size: 3rem; font-weight: 800; letter-spacing: -1px; margin-bottom: 20px; color: #FFF;}
.cta-card p { color: #CBD5E1; font-size: 1.1rem; margin-bottom: 40px; max-width: 600px; margin-inline: auto; }

/* SUBSCRIPTION PAGE */
.sub-page { padding-top: 140px; }
.sub-card { max-width: 960px; margin: 0 auto; }
.sub-row { display: flex; gap: 12px; flex-wrap: wrap; }
.sub-input {
  flex: 1;
  min-width: 260px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
}
.sub-copy { padding: 14px 22px; }
.sub-platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.connect-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 16px;
}
.sub-downloads {
  margin-top: 24px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sub-download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.download-link {
  width: 100%;
  text-align: center;
  justify-content: center;
}
.sub-manual {
  margin-top: 20px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.sub-qr { display: flex; gap: 24px; flex-wrap: wrap; align-items: center; margin-top: 32px; }
.sub-qr-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.sub-qr-title { font-weight: 700; margin-bottom: 12px; }
.sub-qr img { width: 180px; height: 180px; object-fit: contain; }
.sub-hints { display: flex; flex-direction: column; gap: 12px; color: var(--text-muted); }
.sub-hint { background: var(--surface); border: 1px solid var(--border); padding: 12px 14px; border-radius: 10px; }
.sub-links {
  margin-top: 32px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.sub-links-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.sub-links-title { font-weight: 700; }
.sub-links-list { display: flex; flex-direction: column; gap: 12px; }
.sub-link-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  flex-wrap: wrap;
}
.sub-link-label { font-weight: 600; min-width: 110px; }
.sub-link-value { flex: 1; overflow-wrap: anywhere; }
.sub-link-copy {
  background: var(--surface-hover);
  border: 1px solid var(--border-hover);
  color: #fff;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
}
.sub-status {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--text-muted);
}
.sub-error { border-color: #ef4444; color: #fecaca; }
.sub-refresh { padding: 10px 16px; }
.sub-empty { color: var(--text-muted); padding-top: 8px; }
.hidden { display: none !important; }

/* CABINET */
.cabinet-page { padding-top: 140px; }
.cabinet-card { max-width: 1000px; margin: 0 auto; }
.cabinet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}
.cabinet-tile {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
}
.cabinet-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.cabinet-value { font-size: 1.6rem; font-weight: 800; margin-top: 6px; }
.cabinet-sub { color: var(--text-muted); margin-top: 4px; font-size: 0.9rem; }
.cabinet-section { margin-top: 24px; }
.cabinet-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.cabinet-list { display: flex; flex-direction: column; gap: 12px; }
.cabinet-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.cabinet-item-title { font-weight: 700; margin-bottom: 6px; }
.cabinet-item-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 10px; }
.cabinet-code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--accent-blue);
}

/* FOOTER */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 48px 0;
  background: var(--bg);
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.footer-links a:hover { color: #FFF; }
.footer-copy { color: var(--text-muted); font-size: 0.9rem; }

/* CODE */
code {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 0.85em;
  font-family: 'Courier New', Courier, monospace;
  color: var(--accent-blue);
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.animate-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero-title { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 24px; padding: 24px; width: 100%; align-items: center;}
  .stat { align-items: center; text-align: center; }
  .stat-div { width: 100%; height: 1px; }
  .cta-card { padding: 48px 24px; }
  .cta-card h2 { font-size: 2.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .sub-qr { flex-direction: column; align-items: stretch; }
}

/* SAMHAIN SUBSCRIPTION REDESIGN */
.samhain-sub-page {
  min-height: 100vh;
  background:
    radial-gradient(900px 460px at 10% -5%, rgba(255, 49, 82, 0.34), transparent 66%),
    radial-gradient(800px 420px at 85% 16%, rgba(184, 191, 205, 0.08), transparent 68%),
    linear-gradient(180deg, #05060b 0%, #07080f 54%, #040409 100%);
}
.samhain-sub-page .nav {
  border-bottom: 1px solid rgba(255, 66, 94, 0.32);
  background: rgba(8, 8, 14, 0.86);
}
.samhain-sub-page .nav-inner {
  max-width: 1320px;
}
.samhain-sub-page .btn-nav {
  border: 1px solid rgba(255, 80, 108, 0.55);
  background: linear-gradient(135deg, #ff2f56 0%, #cb1238 100%);
  box-shadow: 0 6px 20px rgba(255, 45, 85, 0.38);
}
.samhain-sub-page .btn-nav:hover {
  box-shadow: 0 10px 30px rgba(255, 45, 85, 0.46);
}
.brand-logo-wrap {
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid rgba(255, 96, 118, 0.58);
  box-shadow: 0 0 22px rgba(255, 53, 80, 0.35);
}
.brand-logo-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f6f7ff;
}
.brand-logo-sub {
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: #bbc0d3;
}
.sub-cyber-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 74, 102, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 74, 102, 0.12) 1px, transparent 1px);
  background-size: 48px 48px;
}
.sub-red-glow {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(62px);
  pointer-events: none;
  z-index: 0;
}
.sub-red-glow-a {
  left: -120px;
  top: 180px;
  background: rgba(255, 51, 91, 0.18);
}
.sub-red-glow-b {
  right: -130px;
  top: 320px;
  background: rgba(255, 63, 99, 0.14);
}
.samhain-shell {
  position: relative;
  overflow: hidden;
  max-width: 1220px;
  border-radius: 24px;
  border: 1px solid rgba(255, 95, 117, 0.35);
  background:
    linear-gradient(125deg, rgba(86, 9, 27, 0.52) 0%, rgba(16, 11, 22, 0.92) 38%, rgba(10, 12, 22, 0.92) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 22px 62px rgba(0, 0, 0, 0.62);
}
.samhain-shell:hover {
  transform: none;
  border-color: rgba(255, 108, 129, 0.42);
}
.samhain-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 8%, rgba(255, 66, 97, 0.34), transparent 36%),
    radial-gradient(circle at 88% 18%, rgba(196, 203, 214, 0.13), transparent 32%);
}
.sub-top-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(330px, 1fr) minmax(280px, 420px);
  align-items: stretch;
  gap: 22px;
  margin-bottom: 24px;
}
.sub-head {
  min-width: 0;
}
.samhain-sub-page .section-badge {
  background: rgba(255, 66, 96, 0.18);
  border-color: rgba(255, 76, 104, 0.48);
  color: #ffdce4;
}
.samhain-sub-page .section-title {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  margin-bottom: 14px;
}
.samhain-sub-page .section-sub {
  max-width: none;
  margin-bottom: 18px;
  color: #d6d9e5;
}
.sub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sub-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(22, 17, 30, 0.78);
  border: 1px solid rgba(255, 94, 119, 0.4);
  color: #ffe3e8;
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
.geo-panel {
  position: relative;
  min-height: 280px;
  border-radius: 20px;
  border: 1px solid rgba(197, 206, 220, 0.28);
  background:
    radial-gradient(circle at center, rgba(170, 178, 192, 0.07), rgba(9, 10, 17, 0.88)),
    linear-gradient(160deg, rgba(18, 12, 24, 0.78), rgba(9, 10, 19, 0.88));
  box-shadow: inset 0 0 44px rgba(143, 150, 165, 0.15), 0 0 24px rgba(255, 62, 94, 0.22);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.earth-sphere {
  position: relative;
  width: min(470px, 94%);
  aspect-ratio: 1 / 1;
  display: flex !important;
  align-items: center;
  justify-content: center;
  margin-inline: auto;
}
.earth-canvas-wrap {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  overflow: hidden;
  /* Disable any CSS "outline" / external glow around the canvas. */
  box-shadow: none;
  background: transparent;
  z-index: 2;
  animation: none;
}
.earth-canvas-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 28% 26%, rgba(248, 251, 255, 0.34) 0%, rgba(248, 251, 255, 0) 40%),
    radial-gradient(ellipse at 38% 44%, rgba(238, 244, 255, 0.2) 0%, rgba(238, 244, 255, 0) 45%);
  mix-blend-mode: normal;
  opacity: 0;
  z-index: 3;
}
.earth-canvas-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 82% 72%, rgba(0, 0, 0, 0.98) 0%, rgba(0, 0, 0, 0.9) 48%, rgba(0, 0, 0, 0.1) 78%),
    linear-gradient(132deg, rgba(255, 61, 97, 0.24) 0%, rgba(255, 61, 97, 0) 44%);
  /* убираем черно-красный "контур/кольцо" */
  opacity: 0;
  z-index: 4;
}
.earth-canvas-wrap canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  z-index: 2;
}
.geo-overlay-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9;
}
.earth-sphere::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: transparent;
  filter: none;
  opacity: 0;
  z-index: 0;
}
.earth-sphere::after {
  content: "";
  position: absolute;
  inset: 5%;
  border-radius: 50%;
  border: 0;
  box-shadow: none;
  background: transparent;
  opacity: 0;
  z-index: 1;
}
.geo-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 14% 20%, rgba(255,255,255,0.5) 0 1px, transparent 1px),
    radial-gradient(circle at 80% 16%, rgba(255,255,255,0.38) 0 1px, transparent 1px),
    radial-gradient(circle at 68% 72%, rgba(255,255,255,0.36) 0 1px, transparent 1px),
    radial-gradient(circle at 30% 78%, rgba(255,255,255,0.3) 0 1px, transparent 1px),
    radial-gradient(circle at 52% 10%, rgba(255,255,255,0.28) 0 1px, transparent 1px);
  opacity: 0.38;
  z-index: 1;
}
.geo-panel > * {
  position: relative;
  z-index: 2;
}
.geo-panel .earth-sphere {
  z-index: 3;
}
@keyframes planetFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
.samhain-sub-page .sub-status {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255, 102, 123, 0.44);
  background: rgba(40, 14, 25, 0.66);
  color: #ffd8de;
}
.samhain-sub-page .sub-status-text {
  white-space: normal;
}
.samhain-sub-page .sub-status-link-wrap {
  margin-top: 10px;
}
.samhain-sub-page .sub-status-link-btn {
  width: 100%;
  text-align: left;
  border: 1px dashed rgba(255, 128, 145, 0.62);
  background: rgba(26, 11, 19, 0.72);
  color: #ffdce2;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
  word-break: break-word;
  cursor: pointer;
}
.samhain-sub-page .sub-status-link-btn.copied {
  border-style: solid;
  border-color: rgba(141, 255, 177, 0.75);
  color: #b8ffd0;
}
.samhain-sub-page .sub-ready {
  position: relative;
  z-index: 1;
}
.samhain-sub-page .sub-platform-grid {
  margin-top: 8px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.samhain-sub-page .connect-btn {
  border: 1px solid rgba(255, 108, 128, 0.62);
  background: linear-gradient(135deg, #ff2f56 0%, #db1a44 45%, #a80d30 100%);
  box-shadow: 0 10px 30px rgba(255, 56, 77, 0.35);
}
.samhain-sub-page .connect-btn:hover {
  box-shadow: 0 14px 36px rgba(255, 65, 85, 0.45);
}
.samhain-sub-page .sub-downloads,
.samhain-sub-page .sub-instructions {
  margin-top: 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 92, 112, 0.28);
  background: rgba(10, 13, 23, 0.86);
}
.samhain-sub-page .sub-download-grid {
  margin-top: 10px;
}
.samhain-sub-page .download-link {
  border-color: rgba(255, 101, 123, 0.34);
  background: rgba(18, 16, 28, 0.78);
}
.samhain-sub-page .download-link:hover {
  border-color: rgba(255, 129, 130, 0.56);
  background: rgba(34, 20, 33, 0.86);
}
.samhain-sub-page .sub-links-title {
  color: #f4f6ff;
}
.sub-instructions {
  padding: 20px;
}
.sub-steps {
  margin-top: 10px;
  display: grid;
  gap: 10px;
}
.sub-step {
  display: flex;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(255, 102, 121, 0.24);
  border-radius: 10px;
  background: rgba(23, 17, 31, 0.82);
  color: #e2e7f4;
  padding: 10px 12px;
}
.sub-step span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #ffe1e6;
  border: 1px solid rgba(255, 111, 129, 0.62);
  background: rgba(255, 85, 105, 0.2);
}
.samhain-sub-page .sub-hints {
  margin-top: 18px;
}
.samhain-sub-page .sub-alt-toggle {
  width: 100%;
  margin-top: 18px;
  border-color: rgba(255, 104, 124, 0.36);
  background: rgba(18, 16, 28, 0.82);
  color: #e7ebf8;
}
.samhain-sub-page .sub-alt-toggle:hover {
  border-color: rgba(255, 130, 147, 0.58);
  background: rgba(33, 22, 37, 0.92);
}
.samhain-sub-page .sub-hint {
  background: rgba(20, 17, 29, 0.74);
  border: 1px solid rgba(255, 92, 113, 0.22);
  color: #d4daea;
}
.samhain-sub-page .sub-input {
  background: rgba(7, 9, 15, 0.94);
  border-color: rgba(255, 103, 124, 0.28);
}

@media (max-width: 1100px) {
  .sub-top-grid {
    grid-template-columns: 1fr;
  }
  .geo-panel {
    min-height: 230px;
  }
}

@media (max-width: 980px) {
  .samhain-sub-page .nav-links {
    display: none;
  }
  .samhain-sub-page .nav-inner {
    justify-content: space-between;
    gap: 10px;
    padding: 0 12px;
  }
  .samhain-sub-page .section-title {
    font-size: clamp(1.55rem, 6.6vw, 2rem);
    line-height: 1.25;
  }
  .samhain-sub-page .section-sub {
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 14px;
  }
  .samhain-sub-page .sub-chip {
    font-size: 0.7rem;
    padding: 6px 10px;
  }
  .geo-panel {
    display: none;
  }
}

@media (max-width: 760px) {
  .brand-logo-title {
    font-size: 0.82rem;
    letter-spacing: 0.08em;
  }
  .brand-logo-sub {
    font-size: 0.68rem;
  }
  .samhain-shell {
    border-radius: 18px;
    padding: 22px;
  }
  .geo-panel {
    min-height: 210px;
  }
  .earth-sphere {
    width: min(340px, 92%);
  }
}

@media (max-width: 640px) {
  .nav-inner {
    height: 64px;
    gap: 12px;
    padding: 0 12px;
  }
  .logo {
    font-size: 1rem;
  }
  .btn-nav {
    padding: 8px 12px;
    font-size: 0.82rem;
    border-radius: 8px;
  }
  .section {
    padding: 80px 0;
  }
  .container {
    padding: 0 14px;
  }
  .hero {
    padding: 104px 16px 46px;
  }
  .hero-title {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    margin-bottom: 14px;
  }
  .hero-sub {
    font-size: 0.98rem;
    margin-bottom: 24px;
  }
  .hero-cta {
    width: 100%;
    gap: 10px;
    margin-bottom: 32px;
  }
  .hero-cta .btn-primary,
  .hero-cta .btn-ghost {
    width: 100%;
    padding: 13px 16px;
    font-size: 0.95rem;
  }
  .hero-stats {
    gap: 14px;
    padding: 14px;
  }
  .features-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .card {
    padding: 20px;
    border-radius: 14px;
  }
  .plan-price {
    font-size: 2.5rem;
  }
  .steps-grid {
    gap: 12px;
    margin-bottom: 30px;
  }
  .step-item {
    min-width: 100%;
    padding: 20px;
  }
  .download-grid {
    gap: 10px;
  }
  .download-btn {
    width: 100%;
    justify-content: center;
  }
  .payment-methods {
    padding: 14px;
    gap: 8px;
  }
  .pay-badge {
    font-size: 0.75rem;
    padding: 5px 10px;
  }
  .faq-q {
    padding: 16px;
    font-size: 0.95rem;
  }
  .faq-a {
    font-size: 0.9rem;
    padding: 0 16px;
  }
  .faq-a.open {
    padding: 0 16px 16px;
  }
  .cta-card {
    padding: 34px 18px;
  }
  .cta-card h2 {
    font-size: 1.9rem;
  }
  .footer-inner {
    gap: 14px;
  }
  .footer-links {
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
  }
  .sub-page {
    padding-top: 104px;
  }
  .earth-sphere {
    width: min(315px, 96%);
  }
  .earth-canvas-wrap {
    width: 100%;
    height: 100%;
  }
  .sub-platform-grid {
    grid-template-columns: 1fr;
  }
  .sub-row {
    flex-direction: column;
  }
  .sub-input {
    min-width: 100%;
  }
  .sub-copy {
    width: 100%;
  }
  .sub-download-grid {
    grid-template-columns: 1fr;
  }
  .cabinet-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cabinet-value {
    font-size: 1.35rem;
  }
  .cabinet-item,
  .cabinet-tile {
    padding: 14px;
  }
}
