/* ═══════════════════════════════════════════════════
   PayXip Homepage — Premium Dark Landing Page
   ═══════════════════════════════════════════════════ */

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

/* ── Design Tokens ─────────────────────────────── */
:root {
  --bg: #000000;
  --bg-subtle: #0A0A0A;
  --bg-card: #111111;
  --bg-card-hover: #161616;
  --bg-elevated: #1A1A1A;
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(255,255,255,0.15);
  --text: #FFFFFF;
  --text-secondary: rgba(255,255,255,0.6);
  --text-tertiary: rgba(255,255,255,0.35);
  --text-muted: rgba(255,255,255,0.2);
  --accent: #FFFFFF;
  --success: #00D26A;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 250ms cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1200px;
}

/* ── Reset ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Scrollbar ─────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── Container ─────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* ── Navigation ────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 24px;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}
.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-logo svg { width: 32px; height: 32px; }
.nav-logo span { font-size: 20px; font-weight: 800; letter-spacing: -0.04em; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  padding: 10px 24px;
  background: #FFFFFF;
  color: #000000 !important;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(255,255,255,0.15); }
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 4px;
}

/* ── Hero ──────────────────────────────────────── */
.hero {
  position: relative;
  padding: 160px 24px 120px;
  text-align: center;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, transparent 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; max-width: 820px; margin: 0 auto; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 32px;
  animation: fadeUp 0.8s ease-out;
}
.hero-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease-out 0.1s both;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.5) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 40px;
  line-height: 1.6;
  animation: fadeUp 0.8s ease-out 0.2s both;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  animation: fadeUp 0.8s ease-out 0.3s both;
}
.btn-hero {
  padding: 16px 40px;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.15); }
.btn-outline {
  padding: 16px 40px;
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-hover);
  border-radius: 100px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.btn-outline:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.3); }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Grid Lines (decorative) ───────────────────── */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, black, transparent);
}

/* ── Stats Strip ───────────────────────────────── */
.stats {
  padding: 60px 24px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.stat-item h3 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat-item p { font-size: 14px; color: var(--text-secondary); font-weight: 500; }

/* ── Section Common ────────────────────────────── */
.section { padding: 100px 24px; }
.section-label {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.6;
}
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-subtitle { margin: 0 auto; }

/* ── Features Grid ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  padding: 36px 32px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 22px; height: 22px; opacity: 0.8; }
.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.feature-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }

/* ── Savings Section ───────────────────────────── */
.savings { background: var(--bg-subtle); }
.savings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto;
}
.savings-card {
  padding: 40px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  text-align: center;
}
.savings-card.shopify { background: var(--bg-card); }
.savings-card.payxip {
  background: var(--bg-card);
  border-color: rgba(255,255,255,0.2);
  position: relative;
}
.savings-card.payxip::after {
  content: 'RECOMMENDED';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  padding: 4px 16px;
  background: var(--text);
  color: var(--bg);
  border-radius: 100px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.savings-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 24px; opacity: 0.5; }
.savings-card.payxip h3 { opacity: 1; }
.savings-amount {
  font-size: 48px;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.savings-card.shopify .savings-amount { text-decoration: line-through; opacity: 0.3; }
.savings-per { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; }
.savings-list { list-style: none; text-align: left; }
.savings-list li {
  padding: 10px 0;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.savings-list li:last-child { border-bottom: 1px solid var(--border); }
.check { color: var(--success); font-weight: 700; }
.cross { color: rgba(255,255,255,0.2); }

/* ── Pricing ───────────────────────────────────── */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  padding: 48px 44px;
  background: var(--bg-card);
  border: 1px solid var(--border-hover);
  border-radius: var(--radius-xl);
  text-align: center;
  position: relative;
}
.pricing-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0,210,106,0.1);
  border: 1px solid rgba(0,210,106,0.2);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 24px;
}
.pricing-amount {
  font-size: 56px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 4px;
}
.pricing-amount span { font-size: 20px; font-weight: 600; color: var(--text-secondary); }
.pricing-period { font-size: 15px; color: var(--text-secondary); margin-bottom: 32px; }
.pricing-features { list-style: none; text-align: left; margin-bottom: 36px; }
.pricing-features li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing-features li svg { width: 18px; height: 18px; color: var(--success); flex-shrink: 0; }
.pricing-cta {
  width: 100%;
  padding: 16px 32px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
}
.pricing-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.15); }

/* ── CTA / Form Section ────────────────────────── */
.cta-section {
  padding: 100px 24px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
}
.cta-card {
  max-width: 640px;
  margin: 0 auto;
  padding: 56px 48px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  text-align: center;
}
.cta-card h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.cta-card p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 36px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.form-group { display: flex; flex-direction: column; }
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.form-input {
  padding: 14px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  transition: all var(--transition);
  outline: none;
}
.form-input:focus { border-color: rgba(255,255,255,0.3); box-shadow: 0 0 0 3px rgba(255,255,255,0.05); }
.form-input::placeholder { color: var(--text-muted); }
.form-submit {
  grid-column: 1 / -1;
  padding: 16px 32px;
  background: var(--text);
  color: var(--bg);
  border: none;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font);
  transition: all var(--transition);
  margin-top: 8px;
}
.form-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(255,255,255,0.15); }
.form-submit:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.form-success {
  display: none;
  padding: 20px;
  background: rgba(0,210,106,0.08);
  border: 1px solid rgba(0,210,106,0.2);
  border-radius: var(--radius);
  color: var(--success);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}
.form-success.show { display: block; }

/* ── Footer ────────────────────────────────────── */
.footer {
  padding: 48px 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.footer-logo { display: flex; align-items: center; gap: 8px; }
.footer-logo svg { width: 24px; height: 24px; }
.footer-logo span { font-size: 16px; font-weight: 800; letter-spacing: -0.04em; }
.footer p { font-size: 13px; color: var(--text-tertiary); }
.footer-links { display: flex; gap: 24px; }
.footer-links a { font-size: 13px; color: var(--text-tertiary); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }

/* ── Animations (scroll reveal) ────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Mobile Responsive ─────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-mobile-btn { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    border-bottom: 1px solid var(--border);
    gap: 20px;
  }
  .nav-links.open .nav-cta { width: 100%; text-align: center; }
  .hero { padding: 120px 24px 80px; }
  .hero-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn-hero,
  .hero-actions .btn-outline { width: 100%; text-align: center; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-item h3 { font-size: 28px; }
  .features-grid { grid-template-columns: 1fr; }
  .savings-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 24px; }
  .cta-card { padding: 36px 24px; }
  .pricing-card { padding: 36px 28px; }
  .footer-inner { flex-direction: column; gap: 20px; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 32px; }
  .section-title { font-size: 24px; }
  .pricing-amount { font-size: 44px; }
  .savings-amount { font-size: 36px; }
}
