/* === Reset & Base === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --bg: #0a0a0f; --bg2: #12121a; --bg3: #1a1a2e;
  --text: #e8e8f0; --text2: #9494a8; --text3: #6b6b80;
  --primary: #6c5ce7; --primary2: #a855f7; --primary3: #8b5cf6;
  --accent: #00d2ff; --success: #00e676; --danger: #ff4757;
  --glass: rgba(255,255,255,0.04); --glass2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.08); --radius: 16px; --radius-sm: 10px;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; line-height: 1.6; }
a { text-decoration: none; color: inherit; }

/* === Particles === */
.bg-particles { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.particle { position: absolute; width: 3px; height: 3px; background: var(--primary); border-radius: 50%; opacity: 0.3; animation: floatParticle 8s ease-in-out infinite; }
@keyframes floatParticle { 0%,100% { transform: translateY(0) scale(1); opacity: 0.2; } 50% { transform: translateY(-60px) scale(1.5); opacity: 0.5; } }

/* === Gradient Text === */
.gradient-text { background: linear-gradient(135deg, var(--primary), var(--accent)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* === Nav === */
.navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px 0; backdrop-filter: blur(20px); background: rgba(10,10,15,0.7); border-bottom: 1px solid var(--border); transition: all 0.3s; }
.nav-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; display: flex; justify-content: space-between; align-items: center; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.3rem; }
.logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 32px; }
.nav-links a { color: var(--text2); font-size: 0.9rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }

/* === Buttons === */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; border: none; cursor: pointer; transition: all 0.3s; font-family: inherit; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary2)); color: #fff; box-shadow: 0 4px 24px rgba(108,92,231,0.3); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(108,92,231,0.5); }
.btn-secondary { background: var(--glass2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--glass); border-color: var(--primary); }
.btn-full { width: 100%; justify-content: center; padding: 18px; font-size: 1.1rem; }
.btn-lg { padding: 18px 40px; font-size: 1.1rem; }

/* === Section Utilities === */
.section-container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge { display: inline-block; padding: 6px 16px; background: var(--glass2); border: 1px solid var(--border); border-radius: 50px; font-size: 0.8rem; color: var(--primary2); font-weight: 600; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; margin-bottom: 16px; }
.section-subtitle { color: var(--text2); font-size: 1.1rem; max-width: 600px; margin: 0 auto; }

/* === Hero === */
.hero { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; max-width: 1200px; margin: 0 auto; padding: 120px 24px 80px; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: 8px 18px; background: var(--glass2); border: 1px solid var(--border); border-radius: 50px; font-size: 0.85rem; color: var(--text2); margin-bottom: 24px; }
.badge-dot { width: 8px; height: 8px; background: var(--success); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero-title { font-size: clamp(2.5rem, 5vw, 3.8rem); font-weight: 900; line-height: 1.1; margin-bottom: 24px; }
.hero-subtitle { color: var(--text2); font-size: 1.15rem; line-height: 1.7; margin-bottom: 36px; max-width: 540px; }
.hero-actions { display: flex; gap: 16px; margin-bottom: 48px; flex-wrap: wrap; }
.hero-trust { display: flex; align-items: center; gap: 24px; }
.trust-item { text-align: center; }
.trust-number { display: block; font-size: 1.4rem; font-weight: 800; }
.trust-label { font-size: 0.8rem; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; }
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* === Terminal === */
.terminal-window { background: #0d1117; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.1); overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.terminal-header { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.06); }
.terminal-dots { display: flex; gap: 7px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.terminal-title { color: var(--text3); font-size: 0.8rem; font-family: 'JetBrains Mono', monospace; }
.terminal-body { padding: 20px; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; line-height: 1.8; }
.terminal-line { opacity: 0; animation: typeLine 0.4s forwards; animation-delay: calc(var(--delay) * 0.6s); }
@keyframes typeLine { to { opacity: 1; } }
.term-time { color: var(--text3); } .term-info { color: #58a6ff; margin: 0 6px; } .term-success { color: var(--success); margin: 0 6px; }
.term-text { color: var(--text2); } .term-highlight { color: var(--success); font-weight: 600; }
.term-cursor { color: var(--success); animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* === Features === */
.features { padding: 120px 0; position: relative; z-index: 1; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.feature-card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; transition: all 0.4s; }
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); background: var(--glass2); box-shadow: 0 12px 40px rgba(108,92,231,0.15); }
.feature-icon { font-size: 2.2rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: 10px; font-weight: 700; }
.feature-card p { color: var(--text2); font-size: 0.95rem; line-height: 1.6; }

/* === Stats === */
.stats { padding: 120px 0; background: var(--bg2); position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.stat-card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; text-align: center; }
.stat-chart { display: flex; justify-content: center; align-items: flex-end; gap: 24px; height: 160px; margin-bottom: 24px; }
.stat-bar { width: 60px; border-radius: 8px 8px 0 0; position: relative; height: var(--height); transition: height 1s ease; }
.stat-bar.before { background: linear-gradient(to top, rgba(255,71,87,0.3), rgba(255,71,87,0.6)); border: 1px solid rgba(255,71,87,0.3); }
.stat-bar.after { background: linear-gradient(to top, rgba(0,230,118,0.3), rgba(0,230,118,0.6)); border: 1px solid rgba(0,230,118,0.3); }
.bar-label { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-size: 0.7rem; color: var(--text3); white-space: nowrap; }
.stat-info h3 { font-size: 1.1rem; margin-bottom: 8px; }
.stat-comparison { display: flex; align-items: center; justify-content: center; gap: 12px; font-size: 1.3rem; font-weight: 700; }
.stat-old { color: var(--danger); } .stat-arrow { color: var(--text3); } .stat-new { color: var(--success); }

/* === Testimonials === */
.testimonials { padding: 120px 0; position: relative; z-index: 1; }
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.testimonial-card { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; }
.testimonial-stars { color: #fbbf24; font-size: 1.2rem; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card p { color: var(--text2); font-size: 0.95rem; line-height: 1.7; margin-bottom: 20px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; border-radius: 10px; background: var(--glass2); }
.testimonial-author strong { display: block; font-size: 0.9rem; }
.testimonial-author span { font-size: 0.8rem; color: var(--text3); }

/* === Pricing === */
.pricing { padding: 120px 0; background: var(--bg2); position: relative; z-index: 1; }
.pricing-card { max-width: 440px; margin: 0 auto; background: linear-gradient(145deg, var(--glass2), var(--glass)); border: 1px solid var(--primary); border-radius: 24px; padding: 48px 40px; position: relative; text-align: center; box-shadow: 0 20px 60px rgba(108,92,231,0.2); }
.pricing-popular { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 20px; background: linear-gradient(135deg, var(--primary), var(--primary2)); border-radius: 50px; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.pricing-header { margin-bottom: 32px; }
.pricing-header h3 { font-size: 1.3rem; margin-bottom: 16px; color: var(--text2); }
.pricing-amount { display: flex; align-items: flex-start; justify-content: center; gap: 2px; }
.pricing-currency { font-size: 1.8rem; font-weight: 700; margin-top: 8px; }
.pricing-value { font-size: 5rem; font-weight: 900; line-height: 1; }
.pricing-decimal { font-size: 1.8rem; font-weight: 700; margin-top: 8px; }
.pricing-period { color: var(--text3); font-size: 0.9rem; margin-top: 8px; display: block; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 10px 0; color: var(--text2); font-size: 0.95rem; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border: none; }
.check { color: var(--success); font-weight: 700; font-size: 1.1rem; }
.pricing-guarantee { color: var(--text3); font-size: 0.85rem; margin-top: 16px; }

/* === FAQ === */
.faq { padding: 120px 0; position: relative; z-index: 1; }
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 12px; overflow: hidden; background: var(--glass); }
.faq-question { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; background: none; border: none; color: var(--text); font-size: 1rem; font-weight: 600; cursor: pointer; font-family: inherit; text-align: left; }
.faq-icon { font-size: 1.4rem; color: var(--primary2); transition: transform 0.3s; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; }
.faq-answer p { padding: 0 24px 20px; color: var(--text2); font-size: 0.95rem; line-height: 1.7; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-item.open .faq-answer { max-height: 300px; }

/* === CTA === */
.cta { padding: 120px 0; position: relative; z-index: 1; }
.cta-content { text-align: center; padding: 80px 40px; background: linear-gradient(145deg, rgba(108,92,231,0.15), rgba(168,85,247,0.08)); border: 1px solid rgba(108,92,231,0.3); border-radius: 24px; }
.cta-content h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px; }
.cta-content p { color: var(--text2); font-size: 1.1rem; margin-bottom: 32px; }

/* === Footer === */
.footer { padding: 40px 0; border-top: 1px solid var(--border); position: relative; z-index: 1; }
.footer-content { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.1rem; }
.footer-copy { color: var(--text3); font-size: 0.85rem; }

/* === Error Page === */
.error-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 120px 24px 80px; position: relative; z-index: 1; }
.error-container { max-width: 560px; width: 100%; text-align: center; }
.error-icon-wrapper { position: relative; margin-bottom: 32px; display: inline-block; }
.error-icon-bg { position: absolute; inset: -20px; background: radial-gradient(circle, rgba(255,71,87,0.15), transparent 70%); border-radius: 50%; animation: pulseGlow 3s ease-in-out infinite; }
@keyframes pulseGlow { 0%,100% { transform: scale(1); opacity: 0.5; } 50% { transform: scale(1.2); opacity: 1; } }
.error-icon { position: relative; animation: shakeIcon 0.6s ease-in-out; }
@keyframes shakeIcon { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }
.error-title { font-size: 2.2rem; font-weight: 800; color: var(--danger); margin-bottom: 8px; }
.error-code { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text3); margin-bottom: 32px; }
.error-message-box { display: flex; gap: 16px; text-align: left; padding: 24px; background: rgba(255,71,87,0.08); border: 1px solid rgba(255,71,87,0.2); border-radius: var(--radius-sm); margin-bottom: 28px; }
.error-message-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: 2px; }
.error-message-content h3 { font-size: 1.05rem; color: var(--danger); margin-bottom: 8px; }
.error-message-content p { color: var(--text2); font-size: 0.9rem; line-height: 1.6; }
.error-details { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 20px 24px; margin-bottom: 28px; text-align: left; }
.error-detail-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.error-detail-row:last-child { border: none; }
.error-detail-label { color: var(--text3); }
.error-detail-value { font-weight: 600; font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; }
.status-failed { color: var(--danger); }
.error-suggestions { text-align: left; margin-bottom: 32px; }
.error-suggestions h4 { font-size: 0.95rem; margin-bottom: 12px; }
.error-suggestions ul { list-style: none; }
.error-suggestions li { padding: 6px 0; color: var(--text2); font-size: 0.9rem; }
.error-suggestions li::before { content: '•'; color: var(--primary2); margin-right: 10px; }
.error-actions { display: flex; gap: 16px; justify-content: center; margin-bottom: 24px; }
.error-support { color: var(--text3); font-size: 0.85rem; }
.error-support a { color: var(--primary2); text-decoration: underline; }

/* === CTA Buttons === */
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* === Modal === */
.modal-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.7); backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; padding: 24px; }
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal-card { background: var(--bg2); border: 1px solid var(--border); border-radius: 20px; padding: 48px 40px; max-width: 440px; width: 100%; text-align: center; position: relative; transform: translateY(20px) scale(0.95); transition: transform 0.3s ease; }
.modal-overlay.active .modal-card { transform: translateY(0) scale(1); }
.modal-close { position: absolute; top: 16px; right: 20px; background: none; border: none; color: var(--text3); font-size: 1.8rem; cursor: pointer; transition: color 0.2s; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-icon { font-size: 3rem; margin-bottom: 20px; }
.modal-title { font-size: 1.5rem; font-weight: 800; margin-bottom: 10px; }
.modal-subtitle { color: var(--text2); font-size: 0.95rem; margin-bottom: 28px; line-height: 1.6; }
.modal-input-group { margin-bottom: 20px; }
.modal-input { width: 100%; padding: 16px 20px; background: var(--glass); border: 2px solid var(--border); border-radius: var(--radius-sm); color: var(--text); font-size: 1.1rem; font-family: 'JetBrains Mono', monospace; text-align: center; letter-spacing: 3px; text-transform: uppercase; outline: none; transition: border-color 0.3s; }
.modal-input:focus { border-color: var(--primary); }
.modal-input::placeholder { letter-spacing: 1px; text-transform: none; font-size: 0.9rem; color: var(--text3); }
.modal-error { color: var(--danger); font-size: 0.85rem; margin-top: 10px; min-height: 20px; }

/* === Success Modal === */
.success-icon { animation: successBounce 0.6s ease; }
@keyframes successBounce { 0% { transform: scale(0); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.download-progress { width: 100%; height: 8px; background: var(--glass2); border-radius: 10px; overflow: hidden; margin: 24px 0 12px; }
.download-bar { height: 100%; width: 0%; background: linear-gradient(90deg, var(--primary), var(--success)); border-radius: 10px; transition: width 0.3s linear; }
.download-status { color: var(--text2); font-size: 0.85rem; font-family: 'JetBrains Mono', monospace; }

/* === Checkout Loading === */
.phase { display: none; transition: opacity 0.4s, transform 0.4s; }
.phase.active { display: block; opacity: 1; transform: translateY(0); }
.loading-spinner-wrap { margin-bottom: 32px; }
.loading-spinner { width: 56px; height: 56px; border: 3px solid var(--glass2); border-top-color: var(--primary); border-radius: 50%; animation: spin 1s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; transition: color 0.3s; }
.loading-subtitle { color: var(--text2); font-size: 0.95rem; margin-bottom: 32px; transition: all 0.3s; }
.loading-steps { text-align: left; max-width: 340px; margin: 0 auto; }
.load-step { display: flex; align-items: center; gap: 14px; padding: 12px 0; color: var(--text3); font-size: 0.9rem; border-bottom: 1px solid var(--border); transition: color 0.3s; }
.load-step:last-child { border: none; }
.load-step.completed { color: var(--success); }
.load-step.failed-step { color: var(--danger); }
.step-icon { font-size: 1.1rem; width: 20px; text-align: center; }
.step-icon.done { color: var(--success); }
.step-icon.failed { color: var(--danger); }
.step-icon.active { color: var(--primary2); animation: pulse 1s infinite; }

/* === Email Contact Form === */
.error-contact-box { background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; text-align: left; }
.error-contact-box h3 { font-size: 1.05rem; margin-bottom: 10px; }
.error-contact-box > p { color: var(--text2); font-size: 0.9rem; line-height: 1.6; margin-bottom: 20px; }
.email-form { display: flex; gap: 12px; }
.email-form .modal-input { text-align: left; letter-spacing: 0; text-transform: none; font-family: 'Inter', sans-serif; font-size: 0.95rem; flex: 1; }
.email-form .btn { white-space: nowrap; }
.email-success { display: none; align-items: center; gap: 12px; padding: 16px; background: rgba(0,230,118,0.08); border: 1px solid rgba(0,230,118,0.2); border-radius: var(--radius-sm); }
.email-success.show { display: flex; }
.email-success-icon { font-size: 1.3rem; }
.email-success p { color: var(--success); font-size: 0.9rem; margin: 0; }

/* === Responsive === */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 100px; }
  .hero-subtitle { margin: 0 auto 36px; }
  .hero-actions { justify-content: center; }
  .hero-trust { justify-content: center; }
  .nav-links { display: none; }
  .features-grid, .stats-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-card { padding: 40px 24px; }
  .error-actions { flex-direction: column; }
  .email-form { flex-direction: column; }
  .modal-card { padding: 36px 24px; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-content { flex-direction: column; text-align: center; }
}
