/* ========================================
   WB SPY - PREMIUM LANDING STYLES
   ======================================== */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --primary-light: #818cf8;
  --secondary: #0f172a;
  --accent: #22c55e;
  --accent-red: #ef4444;
  --bg-dark: #0f172a;
  --bg-darker: #020617;
  --bg-card: #1e293b;
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --border: #334155;
  --gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a855f7 100%);
  --glow: 0 0 40px rgba(99, 102, 241, 0.3);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg-darker);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.4rem;
}

.logo-icon { font-size: 1.6rem; }

.logo-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover { color: var(--text-primary); }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  border: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: var(--glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 60px rgba(99, 102, 241, 0.4);
}

.btn-glow { animation: pulse-glow 2s infinite; }

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 40px rgba(99, 102, 241, 0.3); }
  50% { box-shadow: 0 0 60px rgba(99, 102, 241, 0.5); }
}

.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-card);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: 12px 20px;
}

.btn-ghost:hover { color: var(--text-primary); }

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

.btn-large { padding: 16px 32px; font-size: 1.1rem; }
.btn-xl { padding: 20px 48px; font-size: 1.2rem; }
.btn-full { width: 100%; }

.btn-arrow { transition: transform 0.2s; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.play-icon { font-size: 0.8rem; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.3);
  color: var(--primary-light);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .tagline {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  line-height: 1.7;
}

.hero .tagline strong { color: var(--text-primary); }

.cta-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats { display: flex; gap: 48px; }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: 2rem; font-weight: 700; color: var(--text-primary); }
.stat-label { font-size: 0.9rem; color: var(--text-muted); }

/* Browser Mockup */
.hero-image { display: flex; justify-content: center; }

.browser-mockup {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--border), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  max-width: 380px;
  width: 100%;
}

.browser-header {
  background: var(--bg-dark);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--border);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.browser-dots span:first-child { background: #ef4444; }
.browser-dots span:nth-child(2) { background: #eab308; }
.browser-dots span:last-child { background: #22c55e; }

.browser-url {
  flex: 1;
  background: var(--bg-darker);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.75rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.browser-content { padding: 20px; }

.plugin-demo {
  background: var(--bg-dark);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid var(--border);
}

.plugin-header {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.plugin-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 0.95rem; }
.plugin-row .value { font-weight: 600; }
.plugin-row .value.red { color: var(--accent-red); }
.plugin-row .value.green { color: var(--accent); }
.plugin-divider { height: 1px; background: var(--border); margin: 12px 0; }
.plugin-row.profit { font-size: 1.1rem; font-weight: 600; }

/* PROBLEM */
.problem { padding: 100px 0; background: var(--bg-dark); }
.problem h2 { text-align: center; font-size: 2.5rem; margin-bottom: 48px; }
.problem-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; max-width: 800px; margin: 0 auto; }
.problem-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 24px; display: flex; gap: 16px; align-items: flex-start; }
.problem-icon { font-size: 2rem; flex-shrink: 0; }
.problem-card p { color: var(--text-secondary); font-size: 1rem; }

/* SOLUTION */
.solution { padding: 80px 0; text-align: center; background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%); }
.solution-badge { display: inline-block; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); color: var(--accent); padding: 8px 16px; border-radius: 100px; font-size: 0.9rem; font-weight: 500; margin-bottom: 24px; }
.solution h2 { font-size: 2.5rem; max-width: 700px; margin: 0 auto 16px; }
.solution-subtitle { font-size: 1.2rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }

/* HOW IT WORKS */
.how-it-works { padding: 100px 0; }
.how-it-works h2 { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.steps { display: flex; justify-content: center; align-items: flex-start; gap: 24px; }
.step { text-align: center; max-width: 280px; position: relative; }
.step-number { position: absolute; top: -10px; right: 50%; transform: translateX(70px); width: 28px; height: 28px; background: var(--primary); color: white; border-radius: 50%; font-size: 0.85rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.step-icon { width: 80px; height: 80px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; display: flex; align-items: center; justify-content: center; font-size: 2rem; margin: 0 auto 20px; }
.step h3 { font-size: 1.2rem; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: 0.95rem; }
.step-arrow { font-size: 2rem; color: var(--text-muted); margin-top: 40px; }

/* DEMO */
.demo { padding: 80px 0; background: var(--bg-dark); }
.demo h2 { text-align: center; font-size: 2rem; margin-bottom: 40px; }
.demo-video { max-width: 800px; margin: 0 auto; }
.video-placeholder { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; aspect-ratio: 16/9; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; }
.video-placeholder:hover { border-color: var(--primary); box-shadow: var(--glow); }
.play-button { width: 80px; height: 80px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: white; margin-bottom: 16px; }
.video-placeholder p { color: var(--text-muted); }

/* SPY FEATURES */
.spy-features { padding: 100px 0; }
.spy-badge { display: inline-block; background: rgba(99, 102, 241, 0.1); border: 1px solid rgba(99, 102, 241, 0.3); color: var(--primary-light); padding: 8px 16px; border-radius: 100px; font-size: 0.9rem; font-weight: 500; margin-bottom: 16px; }
.spy-features h2 { font-size: 2.5rem; margin-bottom: 60px; }
.spy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.spy-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: all 0.3s; }
.spy-card:hover { border-color: var(--primary); transform: translateY(-4px); }
.spy-card.main-card { grid-column: span 3; background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.05) 100%); border-color: rgba(99, 102, 241, 0.3); }
.spy-icon { font-size: 2rem; margin-bottom: 16px; }
.spy-card h3 { font-size: 1.2rem; margin-bottom: 12px; }
.spy-card p { color: var(--text-secondary); font-size: 0.95rem; }
.spy-example { margin-top: 20px; padding: 16px; background: var(--bg-dark); border-radius: 10px; font-size: 0.9rem; }
.example-label { color: var(--text-muted); display: block; margin-bottom: 8px; }
.green { color: var(--accent); }

/* USE CASES */
.use-cases { padding: 100px 0; background: var(--bg-dark); }
.use-cases h2 { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.cases-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.case-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; text-align: center; transition: all 0.3s; }
.case-card:hover { border-color: var(--primary); }
.case-icon { font-size: 2.5rem; margin-bottom: 16px; }
.case-card h3 { font-size: 1.1rem; margin-bottom: 12px; }
.case-card p { color: var(--text-secondary); font-size: 0.9rem; }

/* TESTIMONIALS */
.testimonials { padding: 100px 0; }
.testimonials h2 { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 16px; padding: 28px; }
.testimonial-stars { font-size: 1.2rem; margin-bottom: 16px; }
.testimonial-text { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; margin-bottom: 20px; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.author-avatar { width: 44px; height: 44px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; color: white; }
.author-info { display: flex; flex-direction: column; }
.author-name { font-weight: 600; }
.author-role { font-size: 0.85rem; color: var(--text-muted); }

/* PRICING */
.pricing { padding: 100px 0; background: var(--bg-dark); text-align: center; }
.pricing h2 { font-size: 2.5rem; margin-bottom: 16px; }
.pricing-subtitle { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 60px; }
.pricing-cards { display: flex; justify-content: center; }
.pricing-card { background: var(--bg-card); border: 2px solid var(--primary); border-radius: 20px; padding: 40px; max-width: 400px; width: 100%; position: relative; }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gradient); color: white; padding: 6px 20px; border-radius: 100px; font-size: 0.85rem; font-weight: 600; }
.pricing-header h3 { font-size: 1.3rem; margin-bottom: 16px; }
.price-big { margin-bottom: 8px; }
.price-big .amount { font-size: 4rem; font-weight: 800; }
.price-big .currency { font-size: 2rem; font-weight: 600; color: var(--text-secondary); }
.billing { color: var(--text-muted); margin-bottom: 32px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 32px; }
.pricing-features li { padding: 12px 0; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--border); }
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--accent); font-weight: 600; }
.pricing-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 16px; }
.guarantee { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 48px; padding: 24px; background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: 12px; max-width: 500px; margin-left: auto; margin-right: auto; }
.guarantee-icon { font-size: 2rem; }
.guarantee-text { text-align: left; }
.guarantee-text strong { display: block; color: var(--accent); }
.guarantee-text p { color: var(--text-secondary); font-size: 0.9rem; margin-top: 4px; }

/* FAQ */
.faq { padding: 100px 0; }
.faq h2 { text-align: center; font-size: 2.5rem; margin-bottom: 60px; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; max-width: 900px; margin: 0 auto; }
.faq-item h4 { font-size: 1.1rem; margin-bottom: 12px; color: var(--text-primary); }
.faq-item p { color: var(--text-secondary); font-size: 0.95rem; }

/* FINAL CTA */
.final-cta { padding: 120px 0; text-align: center; background: radial-gradient(ellipse at 50% 50%, rgba(99, 102, 241, 0.15) 0%, transparent 60%), var(--bg-dark); }
.final-cta h2 { font-size: 3rem; margin-bottom: 20px; }
.final-cta > .container > p { color: var(--text-secondary); font-size: 1.2rem; margin-bottom: 40px; }
.cta-note { color: var(--text-muted); font-size: 0.9rem; margin-top: 20px; }

/* MODAL */
.modal { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.8); backdrop-filter: blur(8px); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: 20px; padding: 40px; max-width: 440px; width: 90%; position: relative; }
.close { position: absolute; top: 16px; right: 20px; font-size: 1.8rem; color: var(--text-muted); cursor: pointer; transition: color 0.2s; }
.close:hover { color: var(--text-primary); }
.auth-form h2 { font-size: 1.6rem; margin-bottom: 8px; text-align: center; }
.form-subtitle { color: var(--text-secondary); text-align: center; margin-bottom: 32px; }
.auth-form input { width: 100%; padding: 14px 16px; background: var(--bg-dark); border: 1px solid var(--border); border-radius: 10px; color: var(--text-primary); font-size: 1rem; margin-bottom: 16px; transition: border-color 0.2s; }
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-form input::placeholder { color: var(--text-muted); }
.form-switch { text-align: center; margin-top: 20px; color: var(--text-muted); }
.form-switch a { color: var(--primary-light); text-decoration: none; }
.form-switch a:hover { text-decoration: underline; }
.error-message { color: var(--accent-red); text-align: center; margin-top: 16px; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s; }
.error-message.show { opacity: 1; }
.success-message { color: #28a745; background: #d4edda; border: 1px solid #c3e6cb; padding: 12px 16px; border-radius: 8px; text-align: center; margin-top: 16px; font-size: 0.9rem; opacity: 0; transition: opacity 0.3s; }
.success-message.show { opacity: 1; }
.success-form { text-align: center; }
.success-icon { font-size: 4rem; margin-bottom: 16px; }
.success-form h2 { margin-bottom: 16px; }
.success-form p { color: var(--text-secondary); margin-bottom: 24px; }

/* FOOTER */
footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-content { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 1.1rem; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-primary); }
.footer-copy { text-align: center; color: var(--text-muted); font-size: 0.85rem; }

/* LEGAL PAGES */
.legal-page {
  padding-top: 120px;
  padding-bottom: 80px;
  min-height: 100vh;
  background: var(--bg-darker);
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
}

.legal-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.legal-subtitle {
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.legal-meta {
  display: grid;
  gap: 6px;
  color: var(--text-secondary);
  background: var(--bg-dark);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 20px;
}

.legal-h2 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-top: 18px;
  margin-bottom: 10px;
}

.legal-p {
  color: var(--text-secondary);
  margin-bottom: 10px;
}

.legal-note {
  margin-top: 18px;
  padding: 16px;
  border-radius: 12px;
  border: 1px solid rgba(99, 102, 241, 0.3);
  background: rgba(99, 102, 241, 0.08);
}

/* USER NAV */
.user-avatar-btn { width: 40px; height: 40px; background: var(--gradient); border-radius: 50%; display: flex; align-items: center; justify-content: center; text-decoration: none; transition: transform 0.2s; }
.user-avatar-btn:hover { transform: scale(1.1); }
.avatar-icon { font-size: 1.2rem; }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 2.8rem; }
  .cta-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-image { order: -1; margin-bottom: 40px; }
  .spy-grid { grid-template-columns: 1fr; }
  .spy-card.main-card { grid-column: span 1; }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav { gap: 16px; }
  .nav-link { display: none; }
  .hero h1 { font-size: 2.2rem; }
  .hero .tagline { font-size: 1.1rem; }
  .cta-buttons { flex-direction: column; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .problem-grid { grid-template-columns: 1fr; }
  .steps { flex-direction: column; gap: 32px; }
  .step-arrow { transform: rotate(90deg); margin: 0; }
  .cases-grid { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .final-cta h2 { font-size: 2rem; }
  .footer-content { flex-direction: column; gap: 24px; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}
