/* ============================================================
   SecondLook Systems — Global Style Overrides
   Premium dark theme. Stripe/Linear-inspired.
   ============================================================ */

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

/* ── Reset / Base ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background-color: #080808;
  color: #e2e8f0;
  line-height: 1.6;
}

/* ── Typography Scale ─────────────────────────────────── */
.display-xl {
  font-size: clamp(2.75rem, 6vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.display-lg {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.display-md {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.label-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a78bfa;
  background: rgba(167, 139, 250, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

/* ── Brand Gradient ───────────────────────────────────── */
.gradient-text {
  background: linear-gradient(135deg, #a78bfa 0%, #60a5fa 50%, #34d399 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #fb923c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ──────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.625rem;
  border-radius: 8px;
  border: 1px solid rgba(124, 58, 237, 0.5);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(124, 58, 237, 0);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4), 0 0 0 1px rgba(124, 58, 237, 0.3);
  background: linear-gradient(135deg, #8b5cf6, #6366f1);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  color: #e2e8f0;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.625rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.btn-green {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #059669, #047857);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  padding: 0.75rem 1.625rem;
  border-radius: 8px;
  border: 1px solid rgba(5, 150, 105, 0.4);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-green:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 30px rgba(5, 150, 105, 0.35);
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-lg {
  font-size: 1rem;
  padding: 0.875rem 2rem;
}

/* ── Cards ────────────────────────────────────────────── */
.card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(124, 58, 237, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.card:hover::before { opacity: 1; }
.card:hover {
  border-color: rgba(124, 58, 237, 0.3);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.1), 0 20px 60px rgba(0, 0, 0, 0.4);
  transform: translateY(-2px);
}

.card-green:hover {
  border-color: rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.1), 0 20px 60px rgba(0, 0, 0, 0.4);
}
.card-green:hover::before {
  background: radial-gradient(600px circle at 50% 50%, rgba(16, 185, 129, 0.04), transparent 60%);
}

/* ── Navigation ───────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8, 8, 8, 0.85);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.4rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover {
  color: #f1f5f9;
  background: rgba(255, 255, 255, 0.05);
}

/* ── Sections ─────────────────────────────────────────── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 7rem 1.5rem;
}

.section-sm {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-center {
  text-align: center;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Hero Glow ────────────────────────────────────────── */
.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(124, 58, 237, 0.12) 0%, rgba(79, 70, 229, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-glow-green {
  background: radial-gradient(ellipse at center, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.06) 40%, transparent 70%);
}

/* ── Hero Two-Column Layout ───────────────────────────── */
.hero-two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
  text-align: left;
}

@media (min-width: 1024px) {
  .hero-two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

/* ── Green Gradient Text ──────────────────────────────── */
.gradient-text-green {
  background: linear-gradient(135deg, #34d399 0%, #10b981 50%, #6ee7b7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Recovered Estimate Card ──────────────────────────── */
.recovered-card {
  background: linear-gradient(145deg, #0a1a12 0%, #0d1f17 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 1.75rem;
  text-align: left;
  box-shadow:
    0 0 0 1px rgba(16, 185, 129, 0.08),
    0 0 40px rgba(16, 185, 129, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.recovered-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(ellipse at 50% 0%, rgba(16, 185, 129, 0.06) 0%, transparent 60%);
  pointer-events: none;
}

.recovered-card-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #34d399;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.recovered-card-title::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px #34d399;
  flex-shrink: 0;
}

.recovered-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(16, 185, 129, 0.07);
  opacity: 0;
  transform: translateY(8px);
  animation: card-item-in 0.4s ease forwards;
}

.recovered-card-row:last-of-type {
  border-bottom: none;
}

.recovered-card-row .item-name {
  color: #94a3b8;
  font-variant-numeric: tabular-nums;
  font-family: 'Inter', sans-serif;
}

.recovered-card-row .item-dots {
  flex: 1;
  border-bottom: 1px dotted rgba(100, 116, 139, 0.3);
  margin: 0 0.75rem;
  position: relative;
  top: 1px;
}

.recovered-card-row .item-amount {
  color: #34d399;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
}

.recovered-card-divider {
  margin: 1rem 0;
  border: none;
  border-top: 1px solid rgba(16, 185, 129, 0.18);
}

.recovered-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  opacity: 0;
  transform: translateY(6px);
  animation: card-item-in 0.4s ease 0.7s forwards;
}

.recovered-card-footer .footer-label {
  font-size: 0.78rem;
  color: #475569;
  font-weight: 500;
}

.recovered-card-footer .footer-total {
  font-size: 1.1rem;
  font-weight: 800;
  color: #34d399;
  letter-spacing: -0.02em;
}

/* Staggered animation delays — assumes exactly 3 data rows in the card */
.recovered-card-row:nth-child(1) { animation-delay: 0.15s; }
.recovered-card-row:nth-child(2) { animation-delay: 0.35s; }
.recovered-card-row:nth-child(3) { animation-delay: 0.55s; }

@keyframes card-item-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Stat Chip ────────────────────────────────────────── */
.stat-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
}
.stat-chip .stat-num {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-chip .stat-label {
  font-size: 0.85rem;
  color: #64748b;
  font-weight: 500;
}

/* ── Divider ──────────────────────────────────────────── */
.divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 0;
}

/* ── Trust Bar ────────────────────────────────────────── */
.trust-bar {
  background: #0a0a0a;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Pricing ──────────────────────────────────────────── */
.pricing-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2.25rem;
  position: relative;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s;
}
.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}
.pricing-card.featured {
  border-color: rgba(124, 58, 237, 0.4);
  background: linear-gradient(160deg, #110f1a 0%, #0f0f0f 100%);
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.2), 0 20px 60px rgba(124, 58, 237, 0.1);
}
.pricing-card.featured:hover {
  box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.4), 0 24px 80px rgba(124, 58, 237, 0.2);
}

.price-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #7c3aed, #4f46e5);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 9999px;
  white-space: nowrap;
}

/* ── Before / After ───────────────────────────────────── */
.before-after-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: start;
}
@media (max-width: 768px) {
  .before-after-grid {
    grid-template-columns: 1fr;
  }
  .before-after-arrow { display: none; }
}

.before-panel {
  background: rgba(239, 68, 68, 0.04);
  border: 1px solid rgba(239, 68, 68, 0.15);
  border-radius: 12px;
  padding: 1.75rem;
}

.after-panel {
  background: rgba(16, 185, 129, 0.04);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 12px;
  padding: 1.75rem;
}

.before-after-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 2rem;
  color: #4b5563;
  font-size: 1.5rem;
}

/* ── Step connector ───────────────────────────────────── */
.step-connector {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(124, 58, 237, 0.4), transparent);
  margin: 0 auto;
}

/* ── Footer ───────────────────────────────────────────── */
.footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  background: #080808;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 2rem;
}

/* ── Testimonial ──────────────────────────────────────── */
.testimonial-card {
  background: #0f0f0f;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 2rem;
  transition: border-color 0.25s, transform 0.25s;
}
.testimonial-card:hover {
  border-color: rgba(124, 58, 237, 0.25);
  transform: translateY(-2px);
}

/* ── Animated check / bullet ──────────────────────────── */
.check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #94a3b8;
  line-height: 1.5;
}
.check-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
  font-size: 0.6rem;
  color: #34d399;
}

/* ── Mobile nav ───────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-cta-desktop { display: none; }
}

/* ── Utilities ────────────────────────────────────────── */
.text-muted { color: #64748b; }
.text-subtle { color: #475569; }
.text-green  { color: #34d399; }
.text-red    { color: #f87171; }
.text-purple { color: #a78bfa; }
.text-blue   { color: #60a5fa; }

.font-mono {
  font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 0.85em;
}

.rounded-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
}

.tag-green {
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.2);
}
.tag-purple {
  background: rgba(124, 58, 237, 0.1);
  color: #a78bfa;
  border: 1px solid rgba(124, 58, 237, 0.2);
}
.tag-blue {
  background: rgba(96, 165, 250, 0.1);
  color: #60a5fa;
  border: 1px solid rgba(96, 165, 250, 0.2);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.icon-box-purple {
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.2);
  color: #a78bfa;
}
.icon-box-green {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.2);
  color: #34d399;
}
.icon-box-blue {
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.2);
  color: #60a5fa;
}
.icon-box-gold {
  background: rgba(251, 191, 36, 0.1);
  border: 1px solid rgba(251, 191, 36, 0.2);
  color: #fbbf24;
}
