/* ─── Apex Closings — Main Stylesheet ─── */

/* Design tokens */
:root {
  --bg: #0c1b33;
  --surface: #132544;
  --surface-2: #1a3254;
  --border: rgba(255,255,255,0.08);
  --text: #f0f4f8;
  --text-muted: #8aa3c1;
  --accent: #f97316; /* vivid orange */
  --accent-light: #fb923c;
  --green: #10b981;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ─── Typography ─── */
h1, h2, h3 { line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.5rem, 6vw, 4rem); }
h2 { font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { font-size: 1.25rem; }
p { color: var(--text-muted); }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; display: block; }

/* ─── Layout ─── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* ─── Navigation ─── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 27, 51, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.nav-logo {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-logo span { color: var(--accent); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent) !important;
  color: #fff !important;
  padding: 0.5rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s !important;
}
.btn-nav:hover { background: var(--accent-light) !important; color: #fff !important; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.2);
  background: var(--surface);
  color: var(--text);
}
.btn-lg { padding: 1rem 2.25rem; font-size: 1.125rem; border-radius: 10px; }

/* ─── Hero ─── */
.hero {
  padding: 7rem 0 5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(249,115,22,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}
.hero-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.hero h1 { margin-bottom: 1.5rem; }
.hero h1 .highlight { color: var(--accent); }
.hero-sub {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto 2.5rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 1rem; font-size: 0.8rem; color: var(--text-muted); }

/* ─── How It Works ─── */
.how-it-works { background: var(--surface); }
.section-label {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.section-title { text-align: center; margin-bottom: 0.75rem; }
.section-sub {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.step {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  position: relative;
}
.step-number {
  font-size: 3rem;
  font-weight: 800;
  color: var(--surface-2);
  line-height: 1;
  margin-bottom: 1rem;
}
.step h3 { margin-bottom: 0.75rem; }
.step p { font-size: 0.9rem; }

/* ─── Differentiators ─── */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.diff-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  gap: 1.25rem;
}
.diff-icon {
  flex-shrink: 0;
  width: 48px; height: 48px;
  background: rgba(249,115,22,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.diff-card h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.diff-card p { font-size: 0.875rem; }

/* ─── Social Proof ─── */
.social-proof { background: var(--surface); }
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 4rem;
}
.stat { text-align: center; }
.stat-value {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.stat-label { font-size: 0.9rem; color: var(--text-muted); }
.testimonial-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.testimonial {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
}
.testimonial-stars { color: #fbbf24; font-size: 1rem; margin-bottom: 0.75rem; letter-spacing: 2px; }
.testimonial p { font-size: 0.9rem; color: var(--text); margin-bottom: 1rem; line-height: 1.6; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface-2);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem; color: var(--accent);
  flex-shrink: 0;
}
.testimonial-meta { font-size: 0.8rem; }
.testimonial-meta .name { color: var(--text); font-weight: 600; }
.testimonial-meta .role { color: var(--text-muted); }

/* ─── Pricing ─── */
.pricing { background: var(--bg); }
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2rem;
  position: relative;
}
.pricing-card.featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 20px 60px rgba(249,115,22,0.15);
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 1rem;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.pricing-card .desc { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1.5rem; }
.pricing-price { margin-bottom: 0.5rem; }
.pricing-price .amount { font-size: 2.25rem; font-weight: 800; color: var(--text); }
.pricing-price .per { font-size: 0.85rem; color: var(--text-muted); }
.pricing-card .intro { font-size: 0.8rem; color: var(--accent); font-weight: 600; margin-bottom: 1.5rem; }
.pricing-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.pricing-features { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; margin-bottom: 1.75rem; }
.pricing-features li {
  display: flex; align-items: center; gap: 0.6rem;
  font-size: 0.875rem; color: var(--text-muted);
}
.pricing-features li .check { color: var(--green); font-weight: 700; }
.pricing-card .btn { width: 100%; justify-content: center; }

/* ─── FAQ ─── */
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; max-width: 960px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--border); padding-bottom: 1.25rem; }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.5rem; color: var(--text); }
.faq-item p { font-size: 0.875rem; }

/* ─── CTA Banner ─── */
.cta-banner {
  background: linear-gradient(135deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 4rem;
  text-align: center;
}
.cta-banner h2 { margin-bottom: 1rem; }
.cta-banner p { max-width: 480px; margin: 0 auto 2.5rem; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0;
  margin-top: 2rem;
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-logo { font-weight: 700; font-size: 1rem; }
.footer-logo span { color: var(--accent); }
.footer-copy { font-size: 0.8rem; color: var(--text-muted); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 0.8rem; color: var(--text-muted); }
.footer-links a:hover { color: var(--text); }

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .steps-grid, .diff-grid, .stats-row, .testimonial-grid, .faq-grid {
    grid-template-columns: 1fr;
  }
  .pricing-cards { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 5rem 0 3rem; }
  .section { padding: 3.5rem 0; }
  .cta-banner { padding: 2.5rem 1.5rem; }
  .diff-card { flex-direction: column; }
}

/* ─── Utility ─── */
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }