/* PayForItPro — Modern Dark Frontend (MarketItPro style) */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  --brand: #8b5cf6;
  --brand-light: #a78bfa;
  --brand-dark: #6d28d9;
  --bg: #0d0d1a;
  --bg-surface: #16213e;
  --border: #2d2d44;
  --text: #eaeaea;
  --text-muted: #6c6c80;
  --text-dim: #9ca3af;
  --success: #10b981;
  --danger: #ef4444;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand-light); text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }

img { max-width: 100%; height: auto; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 900px; margin: 0 auto; padding: 0 24px; }
.container-xs { max-width: 480px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(13,13,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar-content {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.navbar .logo img { height: 36px; }
.nav-links {
  display: flex; align-items: center; gap: 8px;
  list-style: none;
}
.nav-links a {
  font-size: 14px; font-weight: 500; color: var(--text-dim);
  padding: 8px 14px; border-radius: 8px; transition: all .15s;
}
.nav-links a:hover { color: #fff; background: rgba(255,255,255,0.05); }
.nav-links .btn-primary {
  background: var(--brand); color: #fff; font-weight: 600;
  border-radius: 10px; padding: 10px 20px;
}
.nav-links .btn-primary:hover { background: var(--brand-dark); }

/* Mobile menu */
.mobile-menu-toggle {
  display: none; flex-direction: column; gap: 5px; background: none;
  border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-toggle span {
  width: 22px; height: 2px; background: var(--text-dim);
  border-radius: 2px; transition: all .3s;
}
.mobile-menu-overlay {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.6);
  z-index: 99; backdrop-filter: blur(4px);
}
.mobile-menu-overlay.active { display: block; }

/* ── Hero ── */
.hero-section {
  position: relative; padding: 80px 0 100px; overflow: hidden;
  text-align: center;
}
.hero-section::before {
  content: ''; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(ellipse at top, rgba(139,92,246,0.12) 0%, transparent 60%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 16px; border-radius: 100px;
  background: rgba(139,92,246,0.1); border: 1px solid rgba(139,92,246,0.3);
  color: var(--brand-light); font-size: 13px; font-weight: 600;
  margin-bottom: 24px;
}
.hero-section h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 800;
  line-height: 1.1; letter-spacing: -0.02em;
  max-width: 800px; margin: 0 auto 24px; position: relative; z-index: 1;
}
.hero-section h1 .accent { color: var(--brand-light); }
.hero-section .lead {
  font-size: 1.15rem; color: var(--text-dim); max-width: 640px;
  margin: 0 auto 40px; line-height: 1.7; position: relative; z-index: 1;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  position: relative; z-index: 1;
}
.hero-sub { font-size: 12px; color: var(--text-muted); margin-top: 16px; position: relative; z-index: 1; }

/* Buttons */
.btn-hero {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 12px; font-size: 16px; font-weight: 600;
  transition: all .2s; border: none; cursor: pointer; text-decoration: none;
}
.btn-hero.primary { background: var(--brand); color: #fff; }
.btn-hero.primary:hover { background: var(--brand-dark); color: #fff; }
.btn-hero.secondary {
  background: transparent; color: var(--text-dim);
  border: 1.5px solid var(--border);
}
.btn-hero.secondary:hover { border-color: #666; color: #fff; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 20px; border-radius: 8px; font-size: 14px; font-weight: 600; transition: all .15s; cursor: pointer; border: none; text-decoration: none; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-ghost { background: transparent; color: var(--text-dim); border: 1.5px solid var(--border); }
.btn-ghost:hover { border-color: #666; color: #fff; }

/* Dashboard preview */
.hero-preview {
  max-width: 960px; margin: 64px auto 0; position: relative; z-index: 1;
}
.hero-preview img {
  width: 100%; border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: 0 32px 64px rgba(0,0,0,0.4), 0 0 0 1px rgba(139,92,246,0.08);
}
.hero-preview .fade { position: absolute; bottom: 0; left: 0; right: 0; height: 120px; background: linear-gradient(to top, var(--bg), transparent); }

/* Floating stat cards */
.floating-stats {
  display: flex; gap: 12px; justify-content: center;
  position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); z-index: 2;
}
.floating-stat {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 20px; text-align: center;
  backdrop-filter: blur(8px); box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}
.floating-stat .num { font-size: 1.5rem; font-weight: 700; }
.floating-stat .label { font-size: 10px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-top: 2px; }
.c-brand { color: var(--brand-light); }
.c-success { color: var(--success); }
.c-warn { color: #f59e0b; }
.c-danger { color: var(--danger); }

/* ── Sections ── */
.section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 {
  font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700;
  margin-bottom: 12px;
}
.section-header h2 .accent { color: var(--brand-light); }
.section-header p { font-size: 1rem; color: var(--text-dim); max-width: 560px; margin: 0 auto; }

/* Feature grid */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px;
  transition: border-color .2s, transform .2s;
}
.feature-card:hover { border-color: rgba(139,92,246,0.4); transform: translateY(-2px); }
.feature-icon {
  width: 48px; height: 48px; border-radius: 12px;
  background: rgba(139,92,246,0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; stroke: var(--brand-light); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--text-dim); line-height: 1.6; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; max-width: 900px; margin: 0 auto; }
.step-card { text-align: center; }
.step-card .step-img {
  position: relative; border-radius: 16px; overflow: hidden; margin-bottom: 20px;
}
.step-card .step-img img { width: 100%; height: 200px; object-fit: cover; display: block; }
.step-card .step-img .overlay { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 10%, transparent 60%); }
.step-number {
  position: absolute; bottom: 12px; left: 50%; transform: translateX(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(139,92,246,0.4);
}
.step-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--text-dim); }

/* Split section */
.split-section { padding: 80px 0; }
.split-content {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
}
.split-content.reverse { direction: rtl; }
.split-content.reverse > * { direction: ltr; }
.split-image img { border-radius: 16px; box-shadow: 0 16px 48px rgba(0,0,0,0.3); }
.split-text h2 { font-size: 2rem; font-weight: 700; margin-bottom: 16px; }
.split-text p { font-size: 1rem; color: var(--text-dim); line-height: 1.7; margin-bottom: 12px; }
.feature-list { list-style: none; padding: 0; margin-top: 16px; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 10px; padding: 6px 0;
  font-size: 14px; color: var(--text-dim);
}
.feature-list li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }

/* Stats */
.stats-section { padding: 64px 0; background: var(--bg-surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stat-item h3 { font-size: 2.5rem; font-weight: 800; color: var(--brand-light); margin-bottom: 4px; }
.stat-item p { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }

/* CTA banner */
.cta-section {
  padding: 80px 0; text-align: center;
}
.cta-banner {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 24px; padding: 48px; position: relative; overflow: hidden;
}
.cta-banner::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(139,92,246,0.08) 0%, transparent 60%);
}
.cta-banner > * { position: relative; z-index: 1; }
.cta-section h2 { font-size: 2rem; font-weight: 700; margin-bottom: 12px; }
.cta-section p { font-size: 1rem; color: var(--text-dim); max-width: 520px; margin: 0 auto 32px; }

/* Trusted strip */
.trusted-section { padding: 32px 0; text-align: center; border-bottom: 1px solid var(--border); }
.trusted-section p { font-size: 12px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px; }
.trusted-logos { display: flex; justify-content: center; gap: 32px; flex-wrap: wrap; }
.trusted-logos span { font-size: 16px; font-weight: 700; color: #444; letter-spacing: 1px; opacity: 0.5; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.price-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 28px; position: relative;
}
.price-card.popular { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.price-badge { display: inline-block; font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 100px; background: var(--brand); color: #fff; margin-bottom: 12px; }
.price-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 8px; }
.price-amount { margin-bottom: 20px; }
.price-amount .num { font-size: 2.5rem; font-weight: 800; color: var(--brand-light); }
.price-amount .period { font-size: 14px; color: var(--text-muted); }
.price-features { list-style: none; padding: 0; margin-bottom: 24px; }
.price-features li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px; color: var(--text-dim); padding: 4px 0;
}
.price-features li::before { content: '✓'; color: var(--success); font-weight: 700; flex-shrink: 0; }
.price-card .btn { width: 100%; justify-content: center; }

/* ── Footer ── */
.site-footer { padding: 48px 0; border-top: 1px solid var(--border); }
.footer-content {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer-brand img { height: 32px; display: block; margin-bottom: 4px; }
.footer-brand .sub { font-size: 11px; color: var(--text-muted); }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: var(--text-dim); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 11px; color: var(--text-muted); }

/* Grid footer (for pages that still use it) */
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 32px; }
.footer-brand p { font-size: 13px; color: var(--text-dim); margin-top: 12px; line-height: 1.6; }
.footer-col h4 { font-size: 13px; font-weight: 700; margin-bottom: 12px; color: var(--text); }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { font-size: 13px; color: var(--text-dim); }
.footer-col a:hover { color: #fff; }
.footer-bottom { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 24px; font-size: 12px; color: var(--text-muted); flex-wrap: wrap; gap: 8px; }

/* ── Forms (login, register, contact) ── */
.form-section { padding: 80px 0; }
.form-card {
  background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 36px; max-width: 440px; margin: 0 auto;
}
.form-card h2 { font-size: 1.5rem; font-weight: 700; margin-bottom: 24px; text-align: center; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12px; color: var(--text-muted); margin-bottom: 6px; font-weight: 600; letter-spacing: 0.5px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 16px; font-size: 14px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-family: inherit; outline: none;
  transition: border-color .2s;
}
.form-group input:focus, .form-group textarea:focus { border-color: var(--brand); }
.form-group textarea { min-height: 120px; resize: vertical; }
.form-card .btn-primary { width: 100%; justify-content: center; padding: 14px; font-size: 15px; margin-top: 8px; }
.form-footer { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-dim); }
.form-footer a { color: var(--brand-light); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .mobile-menu-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: fixed;
    top: 64px; right: 0; bottom: 0; width: 280px;
    background: var(--bg-surface); border-left: 1px solid var(--border);
    padding: 24px; gap: 4px; z-index: 100;
  }
  .nav-links.active { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .hero-section { padding: 48px 0 64px; }
  .hero-section h1 { font-size: 2rem; }
  .hero-preview { margin-top: 40px; }
  .floating-stats { position: static; transform: none; margin-top: 24px; flex-wrap: wrap; }
  .features-grid { grid-template-columns: 1fr; }
  .split-content { grid-template-columns: 1fr; gap: 32px; }
  .split-content.reverse { direction: ltr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-content { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
  .steps-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
}

@media (max-width: 480px) {
  .hero-buttons { flex-direction: column; align-items: stretch; }
  .btn-hero { justify-content: center; }
  .floating-stats { gap: 8px; }
  .floating-stat { padding: 8px 12px; }
  .floating-stat .num { font-size: 1.1rem; }
}
