/* ============================================
   CryptoMentor – Global Stylesheet
   ============================================ */

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-dark:       #07070f;
  --bg-card:       rgba(255, 255, 255, 0.04);
  --border:        rgba(255, 255, 255, 0.08);
  --purple:        #7c3aed;
  --purple-light:  #a855f7;
  --cyan:          #06b6d4;
  --cyan-light:    #22d3ee;
  --gold:          #f59e0b;
  --gold-light:    #fbbf24;
  --white:         #f8fafc;
  --gray:          #94a3b8;
  --gray-dark:     #475569;
  --success:       #10b981;
  --radius:        12px;
  --radius-lg:     20px;
  --shadow:        0 8px 32px rgba(0, 0, 0, 0.4);
  --transition:    0.25s ease;
  --nav-h:         72px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.4rem); }
p  { color: var(--gray); }

.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gold-text {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Layout ---------- */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: 96px 0; }

/* ---------- Navigation ---------- */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: rgba(7, 7, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo {
  font-size: 1.4rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--white);
  letter-spacing: -0.5px;
}

.logo span { color: var(--cyan); }

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.95rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--white); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }

.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(7, 7, 15, 0.97);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 999;
  flex-direction: column;
  gap: 16px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  color: var(--gray);
  font-size: 1rem;
  font-weight: 500;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  transition: color var(--transition);
}
.mobile-menu a:last-child { border-bottom: none; }
.mobile-menu a:hover { color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  color: var(--white);
  box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.6);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-2px);
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--bg-dark);
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(245, 158, 11, 0.6);
}

.btn-discord {
  background: #5865F2;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.4);
}
.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(88, 101, 242, 0.6);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1.05rem;
}

.btn-sm {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ---------- Cards (Glassmorphism) ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all var(--transition);
}

.card:hover {
  border-color: rgba(124, 58, 237, 0.35);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.card-gold {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.05), rgba(7, 7, 15, 0.8));
}
.card-gold:hover { border-color: rgba(245, 158, 11, 0.6); }

/* ---------- Section Header ---------- */
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}
.section-header .badge {
  display: inline-block;
  margin-bottom: 16px;
}
.section-header p {
  margin-top: 16px;
  font-size: 1.05rem;
}

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.badge-purple {
  background: rgba(124, 58, 237, 0.15);
  border: 1px solid rgba(124, 58, 237, 0.3);
  color: var(--purple-light);
}
.badge-cyan {
  background: rgba(6, 182, 212, 0.15);
  border: 1px solid rgba(6, 182, 212, 0.3);
  color: var(--cyan-light);
}
.badge-gold {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: var(--gold-light);
}

/* ---------- Grid ---------- */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ---------- Icon Box ---------- */
.icon-box {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
  flex-shrink: 0;
}
.icon-box-purple { background: rgba(124, 58, 237, 0.15); }
.icon-box-cyan   { background: rgba(6, 182, 212, 0.15); }
.icon-box-gold   { background: rgba(245, 158, 11, 0.15); }

/* ---------- Glow effects ---------- */
.glow-purple {
  box-shadow: 0 0 80px rgba(124, 58, 237, 0.18);
}
.glow-cyan {
  box-shadow: 0 0 80px rgba(6, 182, 212, 0.18);
}

/* ---------- Hero Section ---------- */
.hero {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 100px;
  position: relative;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 60% at 20% 50%, rgba(124, 58, 237, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 50% at 80% 30%, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero-grid {
  position: absolute;
  inset: 0;
  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: 60px 60px;
  pointer-events: none;
}

.hero .container {
  position: relative;
  text-align: center;
}

.hero .badge { margin-bottom: 24px; }
.hero h1 { margin-bottom: 24px; }
.hero > .container > p {
  max-width: 580px;
  margin: 0 auto 40px;
  font-size: 1.15rem;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

/* Stats row */
.stats-row {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-value {
  font-size: 2rem;
  font-weight: 800;
  display: block;
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label { font-size: 0.85rem; color: var(--gray-dark); }

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding-top: calc(var(--nav-h) + 60px);
  padding-bottom: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero .hero-bg { opacity: 0.7; }
.page-hero .container { position: relative; }
.page-hero .badge { margin-bottom: 16px; }
.page-hero h1 { margin-bottom: 16px; }
.page-hero p { max-width: 560px; margin: 0 auto; font-size: 1.05rem; }

/* ---------- Feature list ---------- */
.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--gray);
}
.feature-list li .check {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--success);
  flex-shrink: 0;
}

/* ---------- Pricing Card ---------- */
.pricing-card {
  position: relative;
  overflow: hidden;
}
.pricing-card .price {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}
.pricing-card .price-period {
  font-size: 0.9rem;
  color: var(--gray-dark);
  margin-bottom: 24px;
}
.pricing-card .divider {
  height: 1px;
  background: var(--border);
  margin: 24px 0;
}

/* Popular ribbon */
.ribbon {
  position: absolute;
  top: 20px; right: -30px;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--bg-dark);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(35deg);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- FAQ / Accordion ---------- */
.accordion { display: flex; flex-direction: column; gap: 12px; }
.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  gap: 16px;
}
.accordion-icon {
  font-size: 1.2rem;
  transition: transform var(--transition);
  color: var(--cyan);
  flex-shrink: 0;
}
.accordion-item.open .accordion-icon { transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 24px 20px;
  color: var(--gray);
  font-size: 0.95rem;
}
.accordion-item.open .accordion-body { display: block; }

/* ---------- Contact form ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--white);
}
.form-control {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--white);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color var(--transition);
  outline: none;
}
.form-control::placeholder { color: var(--gray-dark); }
.form-control:focus { border-color: var(--cyan); }
textarea.form-control { resize: vertical; min-height: 140px; }

/* ---------- CTA Banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 16px; }
.cta-banner p { max-width: 500px; margin: 0 auto 32px; }
.cta-banner .btn-group { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p {
  margin-top: 12px;
  font-size: 0.9rem;
  max-width: 240px;
}
.footer-col h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  text-decoration: none;
  color: var(--gray);
  font-size: 0.9rem;
  transition: color var(--transition);
}
.footer-col ul a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: var(--gray-dark);
}
.social-links { display: flex; gap: 16px; }
.social-links a {
  text-decoration: none;
  color: var(--gray-dark);
  font-size: 1.1rem;
  transition: color var(--transition);
}
.social-links a:hover { color: var(--cyan); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-4  { margin-top: 16px; }
.mt-8  { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.mb-4  { margin-bottom: 16px; }
.mb-8  { margin-bottom: 32px; }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(124, 58, 237, 0.3); }
  50%       { box-shadow: 0 0 40px rgba(124, 58, 237, 0.6); }
}

.animate-in { animation: fadeUp 0.6s ease forwards; }
.delay-1 { animation-delay: 0.1s; opacity: 0; }
.delay-2 { animation-delay: 0.2s; opacity: 0; }
.delay-3 { animation-delay: 0.3s; opacity: 0; }
.delay-4 { animation-delay: 0.4s; opacity: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 64px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .stats-row { gap: 32px; }
  .cta-banner { padding: 40px 24px; }
}

@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
  .stats-row { flex-direction: column; gap: 24px; }
}

/* ---------- Discord Widget ---------- */
.widget-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.discord-widget-iframe {
  width: 100%;
  max-width: 420px;
  height: 500px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
  background: #1e1f22;
  color-scheme: dark;
}

.widget-placeholder {
  width: 100%;
  max-width: 420px;
  min-height: 280px;
  background: var(--bg-card);
  border: 1px dashed rgba(88, 101, 242, 0.35);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 40px 24px;
}
.widget-placeholder .widget-icon { font-size: 2.5rem; }
.widget-placeholder p { font-size: 0.88rem; max-width: 280px; }
.widget-config-steps {
  background: rgba(88, 101, 242, 0.06);
  border: 1px solid rgba(88, 101, 242, 0.15);
  border-radius: var(--radius);
  padding: 20px 24px;
  max-width: 480px;
  width: 100%;
}
.widget-config-steps ol {
  list-style: decimal;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.widget-config-steps li {
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.5;
}
.widget-config-steps li strong { color: var(--white); }
.widget-config-steps code {
  background: rgba(255,255,255,0.07);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--cyan-light);
  font-family: 'Courier New', monospace;
}

/* ---------- Premium Access Encart ---------- */
.premium-access-encart {
  background: linear-gradient(135deg, rgba(245,158,11,0.08), rgba(124,58,237,0.06));
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
}
.premium-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 32px 0;
}
.premium-step {
  text-align: center;
  padding: 20px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  position: relative;
}
.premium-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #d97706);
  color: var(--bg-dark);
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}
.premium-step p { font-size: 0.83rem; margin-top: 4px; }

@media (max-width: 768px) {
  .premium-steps { grid-template-columns: repeat(2, 1fr); }
  .premium-access-encart { padding: 28px 20px; }
  .discord-widget-iframe { height: 420px; }
}
