/* ─── RESET & VARS ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-dark: #030407;
  --bg-darker: #010103;
  --bg-glass: rgba(20, 22, 30, 0.4);
  --bg-card: rgba(15, 17, 25, 0.7);
  --border: rgba(255, 255, 255, 0.08);
  --text-primary: #ffffff;
  --text-secondary: #9aa0a6;
  --accent: #4f83cf;
  --accent-glow: rgba(79, 131, 207, 0.3);
  --accent-hover: #5d91e0;
  --radius: 16px;
  --transition: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; font-size: 16px; background: var(--bg-dark); }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-primary); line-height: 1.6; position: relative; overflow-x: hidden; }

/* ─── AMBIENT GLOW EFFECTS ─────────────────────────────────────── */
.ambient-glow {
  position: fixed;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.4;
}

.glow-1 { top: -20%; left: -10%; background: radial-gradient(circle, rgba(79,131,207,0.15) 0%, rgba(0,0,0,0) 70%); animation: float-1 20s infinite ease-in-out; }
.glow-2 { bottom: -20%; right: -10%; background: radial-gradient(circle, rgba(131,79,207,0.1) 0%, rgba(0,0,0,0) 70%); animation: float-2 25s infinite ease-in-out reverse; }

@keyframes float-1 { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(50px) scale(1.05); } }
@keyframes float-2 { 0%, 100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-50px) scale(1.05); } }

/* ─── UTILS ────────────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 2rem; }
.w-full { width: 100%; }

/* ─── NAV ──────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(3, 4, 7, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px 24px;
}

.nav-inner { max-width: 800px; margin: 0 auto; display: flex; justify-content: center; }
.logo { font-size: 18px; font-weight: 700; color: var(--text-primary); display: flex; align-items: center; gap: 8px; letter-spacing: -0.02em; }
.logo-icon { height: 32px; width: 32px; flex-shrink: 0; display: block; filter: drop-shadow(0 0 8px rgba(79, 131, 207, 0.35)); }
.logo-project { font-weight: 300; }
.logo-num { font-weight: 800; color: var(--accent); }

/* ─── STORY SECTIONS ───────────────────────────────────────────── */
.story-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 24px 60px 24px;
  position: relative;
}

.bg-glass {
  background: var(--bg-glass);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.story-container { max-width: 720px; width: 100%; margin: 0 auto; }

.story-headline {
  font-size: clamp(36px, 6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin-bottom: 32px;
}

.story-headline.c-large { font-size: clamp(48px, 8vw, 72px); }

.story-text {
  font-size: clamp(18px, 3.5vw, 24px);
  color: var(--text-secondary);
  margin-bottom: 24px;
  line-height: 1.6;
  font-weight: 400;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 0%, #a0a0a0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-box {
  background: rgba(255, 255, 255, 0.03);
  border-left: 4px solid var(--accent);
  border-radius: 4px 16px 16px 4px;
  padding: 32px;
  font-size: clamp(20px, 4vw, 24px);
  font-weight: 600;
  color: #fff;
  margin: 48px 0;
  line-height: 1.5;
  box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

/* ─── SCROLL INDICATOR ─────────────────────────────────────────── */
.scroll-wrapper { margin-top: 60px; height: 50px; display: flex; justify-content: center; }
.scroll-indicator {
  font-size: 24px;
  color: var(--text-secondary);
  animation: bounce 2s infinite ease-in-out;
  opacity: 0.6;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(15px); }
}

/* ─── HOW IT WORKS (STEPS GRID) ────────────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: left;
  transition: transform var(--transition), box-shadow var(--transition);
  position: relative;
  overflow: hidden;
}

.step-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border-color: rgba(255,255,255,0.15);
}

.step-card::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent) 0%, transparent 100%);
  opacity: 0.5;
}

.step-icon { font-size: 32px; margin-bottom: 24px; }
.step-card h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); letter-spacing: -0.01em; }
.step-card p { font-size: 15px; color: var(--text-secondary); line-height: 1.6; }

/* ─── ANIMATIONS ────────────────────────────────────────────────── */
.fade-in-up { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--transition), transform 1s var(--transition); }
.fade-in-up.visible { opacity: 1; transform: translateY(0); }
.fade-in-up > * { transition: opacity 0.8s var(--transition); opacity: 0; }
.fade-in-up.visible > * { opacity: 1; }

.delay-1 { transition-delay: 0.2s !important; }
.delay-2 { transition-delay: 0.4s !important; }
.delay-3 { transition-delay: 0.6s !important; }

/* ─── BUTTONS ───────────────────────────────────────────────────── */
.btn-primary {
  background: var(--text-primary);
  color: var(--bg-darker);
  border: none;
  border-radius: var(--radius);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-primary:active { transform: scale(0.98); }

.btn-massive {
  font-size: 22px;
  padding: 24px 48px;
  box-shadow: 0 0 40px rgba(255,255,255,0.1);
  border-radius: 100px;
}

.btn-massive:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 40px rgba(255,255,255,0.2);
  background: #f0f0f0;
}

.btn-large { font-size: 16px; padding: 18px 24px; width: 100%; border-radius: 12px; }
.btn-arrow { transition: transform 0.2s ease; }
.btn-primary:hover .btn-arrow { transform: translateX(6px); }

.cta-wrapper { margin-top: 64px; }

/* ─── FUNNEL MODAL ──────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; padding: 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.funnel-modal {
  background: var(--bg-darker);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%;
  max-width: 480px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.05);
  animation: modal-pop 0.5s var(--transition);
}

@keyframes modal-pop { from { opacity: 0; transform: scale(0.95) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }

.modal-close {
  position: absolute; top: 20px; right: 20px;
  background: rgba(255,255,255,0.05); border: none; color: var(--text-secondary);
  width: 36px; height: 36px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; z-index: 10;
}

.modal-close:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

.funnel-step { display: none; padding: 48px 40px; animation: fade-in 0.4s var(--transition); }
.funnel-step.active { display: block; }
@keyframes fade-in { from { opacity: 0; transform: translateX(10px); } to { opacity: 1; transform: translateX(0); } }

.modal-icon { font-size: 48px; margin-bottom: 24px; }
.funnel-step h2 { font-size: 28px; font-weight: 800; margin-bottom: 12px; letter-spacing: -0.03em; }
.funnel-step p { color: var(--text-secondary); margin-bottom: 32px; font-size: 16px; }

.modal-form { display: flex; flex-direction: column; gap: 16px; }
.modal-form input, .modal-form select {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  color: var(--text-primary);
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
}

.modal-form select {
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23ffffff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 20px top 50%;
  background-size: 12px auto;
}

.modal-form input:focus, .modal-form select:focus { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.06); }

/* ─── LOADING SPINNER ───────────────────────────────────────────── */
.spinner { width: 56px; height: 56px; border: 3px solid rgba(255,255,255,0.05); border-top-color: var(--text-primary); border-radius: 50%; animation: spin 1s infinite cubic-bezier(0.6, 0.2, 0.4, 0.8); margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── CHECKOUT STEP ─────────────────────────────────────────────── */
.checkout-box { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 16px; padding: 24px; text-align: left; }
.checkout-price { text-align: center; margin-bottom: 24px; }
.checkout-price .currency { font-size: 16px; color: var(--text-secondary); vertical-align: super; font-weight: 600; }
.checkout-price { font-size: 56px; font-weight: 800; letter-spacing: -0.04em; }
.checkout-price .period { font-size: 16px; color: var(--text-secondary); font-weight: 600; }
.features-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.features-list li { font-size: 15px; color: var(--text-secondary); display: flex; align-items: center; gap: 10px; }
.features-list strong { color: var(--text-primary); }
.crypto-note { font-size: 13px; color: var(--text-secondary); text-align: center; opacity: 0.7; }

/* ─── FOOTER ─────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--border); padding: 48px 24px; text-align: center; background: var(--bg-darker); }
.footer-inner { display: flex; flex-direction: column; gap: 16px; }
.footer-brand { font-weight: 700; letter-spacing: -0.02em; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 15px; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { font-size: 14px; color: #555; margin-top: 16px; }

/* ─── RESPONSIVE ─────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .story-section { padding: 100px 24px 60px 24px; }
  .funnel-step { padding: 40px 24px; }
  .btn-massive { font-size: 18px; padding: 20px 32px; width: 100%; }
}

/* ─── TIER CARDS ─────────────────────────────────────────────────── */
.tier-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.tier-card { background: var(--bg-darker); border: 2px solid var(--border); border-radius: 12px; padding: 24px; cursor: pointer; transition: border-color 0.2s ease; }
.tier-card:hover { border-color: #4a7fcb; }
.tier-card.selected { border-color: var(--accent); }
.tier-card-pro { background: rgba(58,107,191,0.08); }
.tier-badge { font-size: 13px; font-weight: 700; color: var(--text-secondary); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.tier-badge-pro { color: #7EB2FF; }
.tier-price { font-size: 28px; font-weight: 800; margin-bottom: 16px; }
.tier-price .currency { font-size: 14px; font-weight: 600; color: var(--text-secondary); vertical-align: top; margin-top: 6px; display: inline-block; }
.tier-price .period { font-size: 14px; color: var(--text-secondary); font-weight: 600; }
.tier-features { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 4px; }
.tier-features li { font-size: 13px; color: var(--text-secondary); }
.tier-features li::before { content: "✓ "; color: #4caf50; font-weight: 700; }
.btn-secondary { background: transparent; border: 1px solid var(--border); color: var(--text-primary); padding: 12px 20px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 15px; width: 100%; transition: border-color 0.2s ease; }
.btn-secondary:hover { border-color: var(--text-secondary); }
@media (max-width: 520px) { .tier-cards { grid-template-columns: 1fr; } }
