/* ====================================================================
   MAGIC SPIN - PUBLIC WEBSITE STYLES (LUXURY FINTECH EDITION)
   ==================================================================== */

.site-header {
  height: var(--topbar-height);
  background-color: rgba(5, 5, 5, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--white-primary);
}

.brand-logo .brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--red-primary), var(--red-dark));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  box-shadow: var(--red-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-primary);
  transition: color 0.15s ease;
}
.nav-link:hover, .nav-link.active {
  color: var(--white-primary);
}

/* --- HERO SECTION WITH METAVERSE BACKGROUND SLIDER --- */
.hero-section {
  position: relative;
  padding: 5rem 0 4.5rem;
  overflow: hidden;
  background-color: #050505;
}

.hero-bg-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transform: scale(1.0);
  transition: opacity 1.8s cubic-bezier(0.4, 0, 0.2, 1), transform 10s cubic-bezier(0.25, 1, 0.5, 1);
  will-change: opacity, transform;
}

.hero-slide.active {
  opacity: 0.55;
  transform: scale(1.08);
}

.hero-bg-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 30%, rgba(5, 5, 5, 0.45) 0%, rgba(5, 5, 5, 0.85) 60%, #050505 100%),
              linear-gradient(180deg, rgba(5, 5, 5, 0.75) 0%, rgba(5, 5, 5, 0.25) 35%, rgba(5, 5, 5, 0.7) 70%, #050505 100%);
}

.hero-content-layer {
  position: relative;
  z-index: 3;
}

.hero-slider-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.4rem;
  background: rgba(16, 16, 20, 0.8);
  border: 1px solid rgba(255, 45, 45, 0.3);
  border-radius: var(--radius-pill);
  backdrop-filter: blur(14px);
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(225, 6, 0, 0.2);
}

.hero-nav-pill {
  background: transparent;
  border: none;
  color: var(--gray-primary);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.hero-nav-pill:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.hero-nav-pill.active {
  background: linear-gradient(135deg, var(--red-primary) 0%, var(--red-dark) 100%);
  color: #ffffff;
  box-shadow: var(--red-glow);
}

.pill-text-mobile {
  display: none;
}
.pill-text-desktop {
  display: inline;
}

.hero-buttons-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  background: rgba(16, 16, 18, 0.9);
  border: 1px solid var(--red-border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--red-bright);
  font-weight: 600;
  margin-bottom: 1.75rem;
  box-shadow: var(--red-glow);
}

/* --- HERO MOBILE RESPONSIVE TWEAKS --- */
@media (max-width: 768px) {
  .hero-section {
    padding: 3.5rem 0.5rem 2.5rem !important;
  }
  .hero-slider-nav {
    width: 95% !important;
    max-width: 360px !important;
    justify-content: space-between !important;
    padding: 0.25rem 0.35rem !important;
    gap: 0.25rem !important;
    margin-bottom: 1.25rem !important;
  }
  .hero-nav-pill {
    padding: 0.35rem 0.5rem !important;
    font-size: 0.72rem !important;
    flex: 1 1 0 !important;
    justify-content: center !important;
    text-align: center !important;
  }
  .pill-text-desktop {
    display: none !important;
  }
  .pill-text-mobile {
    display: inline !important;
  }
  .hero-badge {
    font-size: 0.72rem !important;
    padding: 0.35rem 0.75rem !important;
    line-height: 1.4 !important;
    margin-bottom: 1.25rem !important;
    max-width: 95% !important;
    display: inline-flex !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .hero-title {
    font-size: 1.95rem !important;
    line-height: 1.15 !important;
    letter-spacing: -0.02em !important;
    margin-bottom: 1rem !important;
    padding: 0 0.5rem !important;
  }
  .hero-subtitle {
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    margin-bottom: 1.75rem !important;
    padding: 0 0.75rem !important;
  }
  .hero-buttons-wrapper {
    flex-direction: column !important;
    width: 100% !important;
    max-width: 340px !important;
    margin: 0 auto !important;
    gap: 0.75rem !important;
    padding: 0 0.5rem !important;
    box-sizing: border-box !important;
  }
  .hero-buttons-wrapper .btn {
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    padding: 0.75rem 1rem !important;
  }
  .hero-preview-wrapper {
    margin-top: 2rem !important;
    padding: 3px !important;
  }
  .hero-preview-inner {
    padding: 1.25rem 1rem !important;
  }
}

.hero-title {
  font-size: 4rem;
  font-weight: 900;
  line-height: 1.08;
  max-width: 900px;
  margin: 0 auto 1.5rem;
  letter-spacing: -0.04em;
  color: #ffffff;
}

.hero-subtitle {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 2.25rem;
  color: var(--gray-primary);
  line-height: 1.6;
}

.hero-preview-wrapper {
  margin-top: 3.5rem;
  border-radius: var(--radius-xl);
  padding: 6px;
  background: linear-gradient(180deg, rgba(255, 45, 45, 0.3) 0%, rgba(41, 41, 46, 0.6) 40%, rgba(16, 16, 18, 0.9) 100%);
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95), 0 0 40px rgba(225, 6, 0, 0.15);
}

.hero-preview-inner {
  border-radius: calc(var(--radius-xl) - 4px);
  overflow: hidden;
  border: 1px solid var(--border-dark);
  background-color: var(--surface-primary);
}

/* --- LIVE PROTOCOL TICKER STRIP --- */
.protocol-ticker-strip {
  background: var(--surface-secondary);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 1rem 0;
  font-size: 0.85rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--gray-primary);
}
.ticker-item strong {
  color: var(--white-primary);
  font-family: var(--font-mono);
}

/* --- RISK TICKER --- */
.risk-ticker {
  background-color: rgba(16, 16, 18, 0.95);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  padding: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--gray-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}

/* --- SECTION GENERAL --- */
.section {
  padding: 6rem 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 3.75rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 0.85rem;
}

.section-header p {
  font-size: 1.05rem;
  color: var(--gray-primary);
  line-height: 1.6;
}

/* --- LUXURY FEATURE PILLAR CARDS --- */
.pillar-card {
  background: linear-gradient(145deg, rgba(22, 22, 25, 0.9) 0%, rgba(14, 14, 16, 0.95) 100%);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xl);
  padding: 2rem;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--border-dark), transparent);
}

.pillar-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 45, 45, 0.35);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 25px rgba(225, 6, 0, 0.12);
}

.pillar-card:hover::before {
  background: linear-gradient(90deg, transparent, var(--red-bright), transparent);
}

.pillar-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(225, 6, 0, 0.12);
  border: 1px solid rgba(255, 45, 45, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.25rem;
}

/* --- INTERACTIVE ROI CALCULATOR WIDGET --- */
.calculator-box {
  background: linear-gradient(145deg, rgba(24, 24, 28, 0.95) 0%, rgba(14, 14, 16, 0.95) 100%);
  border: 1px solid rgba(255, 45, 45, 0.3);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  box-shadow: 0 15px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(225, 6, 0, 0.1);
}

.calc-slider {
  width: 100%;
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--surface-elevated);
  outline: none;
  -webkit-appearance: none;
}
.calc-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--red-bright);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(255, 45, 45, 0.8);
  border: 2px solid #ffffff;
}

/* --- 9-WALLET VISUAL MATRIX --- */
.wallet-grid-box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.wallet-mini-card {
  background: var(--surface-secondary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: all 0.2s ease;
}
.wallet-mini-card:hover {
  border-color: var(--red-border);
  background: var(--surface-elevated);
}

/* --- COMPARISON TABLE --- */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-dark);
}
.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-dark);
}
.comparison-table th {
  background: var(--surface-secondary);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- FAQ ACCORDION --- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 840px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface-primary);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item:hover {
  border-color: var(--red-border);
}

.faq-question {
  padding: 1.35rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--white-primary);
}

.faq-answer {
  padding: 0 1.75rem 1.35rem;
  font-size: 0.9rem;
  color: var(--gray-primary);
  line-height: 1.6;
  display: none;
}
.faq-item.active .faq-answer {
  display: block;
}

/* --- CALL TO ACTION LUXURY BANNER --- */
.cta-luxury-banner {
  background: linear-gradient(135deg, rgba(225, 6, 0, 0.2) 0%, rgba(20, 10, 12, 0.95) 50%, rgba(5, 5, 5, 0.95) 100%);
  border: 1px solid rgba(255, 45, 45, 0.35);
  border-radius: var(--radius-xl);
  padding: 4rem 3rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8), 0 0 35px rgba(225, 6, 0, 0.15);
}

/* --- FOOTER --- */
.site-footer {
  background-color: var(--black-primary);
  border-top: 1px solid var(--border-dark);
  padding: 4.5rem 0 2.5rem;
  margin-top: auto;
}

/* ====================================================================
   CINZEL LUXURY TYPOGRAPHY EXTENSIONS
   ==================================================================== */
.brand-logo span,
.hero-title,
.section-header h2,
.section-header .badge,
.cta-luxury-banner h2,
.site-footer h4,
.site-footer h5,
.stat-card .stat-label,
.wallet-mini-card .font-bold,
.nav-links .nav-link,
.btn {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}

.hero-title {
  font-family: var(--font-heading);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.section-header h2 {
  font-family: var(--font-heading);
  letter-spacing: 0.04em;
}
