/* PolyWallet — Landing Page */

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

body { margin: 0; background: #08090a; color: #e5e7eb; font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; -webkit-font-smoothing: antialiased; }

/* ── NAV ─────────────────────────────────────────── */
.landing-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 60px;
  background: rgba(8,9,10,0.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  z-index: 200; display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
}
.nav-logo { font-weight: 800; font-size: 18px; color: #f9fafb; letter-spacing: -0.5px; text-decoration: none; }
.nav-logo span { color: var(--green); }
.nav-center { display: flex; gap: 4px; align-items: center; }
.nav-center a { color: #9ca3af; font-size: 13px; font-weight: 500; text-decoration: none; padding: 6px 12px; border-radius: 6px; transition: color 0.15s, background 0.15s; }
.nav-center a:hover { color: #f9fafb; background: rgba(255,255,255,0.06); }
.nav-right { display: flex; gap: 8px; align-items: center; }
.btn-nav { padding: 7px 16px; font-size: 13px; font-weight: 500; border-radius: 8px; text-decoration: none; transition: background 0.15s, border-color 0.15s; cursor: pointer; }
.btn-nav-ghost { color: #9ca3af; background: transparent; border: 1px solid transparent; }
.btn-nav-ghost:hover { color: #f9fafb; background: rgba(255,255,255,0.06); }
.btn-nav-primary { color: #08090a; background: var(--green); border: 1px solid var(--green); }
.btn-nav-primary:hover { color: #08090a; background: var(--green-hover); border-color: var(--green-hover); }

/* ── HERO ─────────────────────────────────────────── */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px; position: relative; overflow: hidden;
}
.hero-bg-glow {
  position: absolute; top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 600px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(0,192,118,0.12) 0%, transparent 70%);
}
.hero-inner { max-width: 720px; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,192,118,0.08); border: 1px solid rgba(0,192,118,0.2);
  border-radius: 99px; padding: 5px 14px; font-size: 12px; font-weight: 500;
  color: #4dd6a4; margin-bottom: 28px;
}
.hero-badge-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  box-shadow: 0 0 0 3px rgba(0,192,118,0.2);
  animation: pulse-ring 2s ease-in-out infinite;
}
/* Distinct from the product's pulse-dot (opacity blink, lives in common.css);
   this is a marketing-only ring expansion on the landing hero badge. */
@keyframes pulse-ring {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0,192,118,0.2); }
  50% { box-shadow: 0 0 0 6px rgba(0,192,118,0.08); }
}
.hero h1 {
  font-size: 56px; font-weight: 800; line-height: 1.1; letter-spacing: -1.5px;
  margin: 0 0 20px; color: #f9fafb;
}
.hero h1 .gradient-text {
  color: var(--green);
}
.hero-sub {
  font-size: 17px; color: #9ca3af; line-height: 1.7; margin: 0 auto 36px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; justify-content: center; margin-bottom: 48px; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green); color: #08090a; font-size: 15px; font-weight: 600;
  padding: 12px 28px; border-radius: 8px; text-decoration: none;
  border: 1px solid var(--green); transition: background 0.15s, transform 0.1s;
}
.btn-hero-primary:hover { background: var(--green-hover); border-color: var(--green-hover); color: #08090a; transform: translateY(-1px); }
.btn-hero-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.04); color: #d1d5db; font-size: 15px; font-weight: 500;
  padding: 12px 28px; border-radius: 8px; text-decoration: none;
  border: 1px solid rgba(255,255,255,0.1); transition: background 0.15s, border-color 0.15s;
}
.btn-hero-ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.15); }

/* Dashboard preview */
.hero-preview {
  background: #0f1012; border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px; padding: 20px; max-width: 700px; margin: 0 auto;
  box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,192,118,0.05);
}
.preview-topbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.preview-dot { width: 10px; height: 10px; border-radius: 50%; }
.preview-dot:nth-child(1) { background: var(--red); }
.preview-dot:nth-child(2) { background: #f59e0b; }
.preview-dot:nth-child(3) { background: var(--green); }
.preview-url { flex: 1; background: rgba(255,255,255,0.04); border-radius: 4px; height: 22px; margin: 0 8px; }
.preview-body { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.preview-card {
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
  border-radius: 8px; padding: 14px;
}
.preview-card-label { font-size: 10px; color: #9ca3af; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 6px; }
.preview-card-val { font-size: 18px; font-weight: 700; color: #f9fafb; }
.preview-card-val.green { color: var(--green); }
.preview-card-val.red { color: var(--red); }
.preview-card-sub { font-size: 10px; color: #9ca3af; margin-top: 3px; }
.preview-bar { height: 4px; border-radius: 2px; background: rgba(255,255,255,0.06); margin-top: 10px; overflow: hidden; }
.preview-bar-fill { height: 100%; border-radius: 2px; background: var(--green); }

/* ── SECTIONS COMMON ─────────────────────────────── */
.section-inner { max-width: 1060px; margin: 0 auto; padding: 0 32px; }
.section-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 1px; color: var(--green); text-align: center; margin-bottom: 10px; }
.section-title { font-size: 34px; font-weight: 800; text-align: center; margin: 0 0 12px; letter-spacing: -0.8px; color: #f9fafb; }
.section-sub { font-size: 15px; color: #9ca3af; text-align: center; margin: 0 auto 52px; max-width: 500px; line-height: 1.6; }
.section-sub-link { color: #4dd6a4; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.section-sub-link:hover { color: #6ce0b3; text-decoration-thickness: 2px; }

/* ── FEATURES ─────────────────────────────────────── */
.features-section { padding: 100px 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card {
  background: #0f1012; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 28px; transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: rgba(0,192,118,0.25); transform: translateY(-2px); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 8px;
  background: rgba(0,192,118,0.1); color: var(--green);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; margin-bottom: 16px;
}
.feature-card h3 { font-size: 15px; font-weight: 700; margin: 0 0 8px; color: #f9fafb; }
.feature-card p { font-size: 13px; color: #9ca3af; line-height: 1.6; margin: 0; }
/* Lead feature: breaks the identical-card-grid pattern by promoting the
   differentiator (Live PnL) to full-width horizontal layout. */
.feature-card.lead {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
  background: linear-gradient(160deg, rgba(0,192,118,0.06) 0%, #0f1012 60%);
  border-color: rgba(0,192,118,0.2);
}
.feature-card.lead .feature-icon { width: 56px; height: 56px; font-size: 24px; margin-bottom: 0; }
.feature-card.lead h3 { font-size: 20px; margin-bottom: 10px; letter-spacing: -0.3px; }
.feature-card.lead p { font-size: 15px; line-height: 1.7; max-width: 60ch; }
.feature-card.lead .lead-tag {
  display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.8px;
  text-transform: uppercase; color: var(--green); margin-bottom: 8px;
}

/* ── HOW IT WORKS ─────────────────────────────────── */
.how-section { padding: 100px 0; background: rgba(255,255,255,0.015); border-top: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step-card {
  background: #0f1012; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 32px; text-align: center; position: relative;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,192,118,0.1); border: 1px solid rgba(0,192,118,0.25);
  color: var(--green); font-size: 16px; font-weight: 800; margin-bottom: 20px;
}
.step-connector {
  position: absolute; top: 50%; right: -28px; width: 32px; height: 2px;
  background: linear-gradient(90deg, rgba(0,192,118,0.3), transparent);
  display: none;
}
.step-card h3 { font-size: 16px; font-weight: 700; margin: 0 0 10px; color: #f9fafb; }
.step-card p { font-size: 13px; color: #9ca3af; line-height: 1.6; margin: 0; }

/* ── STATS BANNER ─────────────────────────────────── */
.stats-section { padding: 80px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat-card {
  background: #0f1012; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px; padding: 28px 24px; text-align: center;
}
.stat-card-val { font-size: 32px; font-weight: 800; color: var(--green); letter-spacing: -1px; margin-bottom: 6px; }
.stat-card-label { font-size: 12px; color: #9ca3af; }

/* ── PRICING ─────────────────────────────────────── */
/* .plan-card and friends live in common.css (shared with /billing). */
.pricing-section { padding: 100px 0; }

/* ── FAQ ─────────────────────────────────────────── */
.faq-section { padding: 100px 0; background: rgba(255,255,255,0.015); border-top: 1px solid rgba(255,255,255,0.05); }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #0f1012; border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px; padding: 20px 22px;
}
.faq-item h3 { font-size: 14px; font-weight: 600; color: #f9fafb; margin: 0 0 8px; }
.faq-item p { font-size: 13px; color: #9ca3af; line-height: 1.65; margin: 0; }

/* ── CTA BANNER ─────────────────────────────────── */
.cta-section { padding: 100px 0; }
.cta-inner {
  background: linear-gradient(135deg, rgba(0,192,118,0.08) 0%, rgba(0,192,118,0.03) 100%);
  border: 1px solid rgba(0,192,118,0.2); border-radius: 12px;
  padding: 64px 40px; text-align: center; max-width: 700px; margin: 0 auto;
  position: relative; overflow: hidden;
}
.cta-glow {
  position: absolute; top: -80px; left: 50%; transform: translateX(-50%);
  width: 400px; height: 300px; pointer-events: none;
  background: radial-gradient(ellipse, rgba(0,192,118,0.12) 0%, transparent 70%);
}
.cta-inner h2 { font-size: 34px; font-weight: 800; letter-spacing: -0.8px; margin: 0 0 14px; color: #f9fafb; position: relative; }
.cta-inner p { font-size: 15px; color: #9ca3af; margin: 0 auto 32px; max-width: 440px; line-height: 1.6; position: relative; }
.cta-actions { display: flex; gap: 12px; justify-content: center; position: relative; }
.cta-note { font-size: 11px; color: #9ca3af; margin-top: 16px; position: relative; }

/* ── FOOTER ─────────────────────────────────────── */
.landing-footer {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 48px 32px 36px;
}
.footer-inner { max-width: 1060px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 200px 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .footer-logo { font-size: 18px; font-weight: 800; color: #f9fafb; letter-spacing: -0.5px; margin-bottom: 10px; }
.footer-brand .footer-logo span { color: var(--green); }
.footer-brand p { font-size: 12px; color: #9ca3af; line-height: 1.6; margin: 0; }
.footer-col h3.footer-col-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; color: #9ca3af; margin: 0 0 14px; }
.footer-col a { display: block; font-size: 13px; color: #9ca3af; text-decoration: none; margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: #d1d5db; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.05); }
.footer-copy { font-size: 11px; color: #9ca3af; }
.footer-socials { display: flex; gap: 12px; }
.footer-social-link { color: #9ca3af; font-size: 14px; text-decoration: none; transition: color 0.15s; }
.footer-social-link:hover { color: #9ca3af; }

/* ── SHARED BUTTONS ─────────────────────────────── */
.btn-sm { padding: 6px 14px; font-size: 12px; border-radius: 6px; }
.btn-primary { background: var(--green); color: #fff; border: 1px solid var(--green); }
.btn-primary:hover { background: var(--green-hover); border-color: var(--green-hover); }
.btn { text-decoration: none; display: inline-block; font-weight: 500; transition: background 0.15s; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 960px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .landing-nav { padding: 0 16px; gap: 6px; }
  .nav-center { gap: 0; min-width: 0; flex: 1 1 auto; overflow: hidden; justify-content: center; }
  .nav-center a { font-size: 11px; padding: 4px 6px; white-space: nowrap; }
  .btn-nav { padding: 5px 10px; font-size: 11px; }
  .hero h1 { font-size: 36px; }
  .hero-sub { font-size: 15px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .preview-body { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.lead { grid-template-columns: 1fr; padding: 28px; gap: 16px; }
  .feature-card.lead h3 { font-size: 17px; }
  .feature-card.lead p { font-size: 14px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .section-title { font-size: 26px; }
  .cta-inner h2 { font-size: 26px; }
  .cta-inner { padding: 48px 24px; }
}

@media (max-width: 480px) {
  .landing-nav { padding: 0 12px; gap: 4px; }
  /* Below 480px there's not room for both anchor links AND auth buttons;
     keep the auth path visible (sign-up is the primary conversion). */
  .nav-center { display: none; }
  .hero h1 { font-size: 28px; letter-spacing: -0.8px; }
  .features-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
