/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue-primary: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-light: #3b82f6;
  --blue-pale: #eff6ff;
  --navy: #0f172a;
  --navy-mid: #1e293b;
  --navy-soft: #334155;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --white: #ffffff;
  --surface: #f8fafc;
  --border: #e2e8f0;
  --border-soft: #f1f5f9;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.04);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
  --shadow-blue: 0 8px 32px rgba(29, 78, 216, 0.2);
  --font-display: 'Sora', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--surface);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}
@keyframes pulse-orb {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.08); opacity: 0.9; }
}
@keyframes shimmer {
  from { background-position: -400px 0; }
  to   { background-position: 400px 0; }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-16px); }
  to   { opacity: 1; transform: translateX(0); }
}

.animate-fade-up {
  opacity: 0;
  animation: fadeUp 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.delay-1 { animation-delay: 0.12s; }
.delay-2 { animation-delay: 0.24s; }
.delay-3 { animation-delay: 0.36s; }
.delay-4 { animation-delay: 0.5s; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  transition: box-shadow 0.3s;
}
.navbar.scrolled {
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.nav-container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand-icon {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--blue-primary), var(--blue-dark));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 20px;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}
.brand-icon.small { width: 32px; height: 32px; font-size: 16px; border-radius: 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-main { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--text-main); }
.brand-sub  { font-size: 11px; color: var(--text-muted); }
.nav-links  { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 14px; font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--blue-primary); background: var(--blue-pale); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 7px;
  background: linear-gradient(135deg, var(--blue-primary), #1e40af);
  color: white;
  text-decoration: none;
  font-size: 14px; font-weight: 600;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  margin-left: 8px;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-blue);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(29,78,216,0.3); }
.hamburger {
  display: none;
  background: none; border: none;
  font-size: 22px; cursor: pointer;
  color: var(--text-main); padding: 6px;
}
.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 2rem 1.25rem;
  gap: 4px;
  border-top: 1px solid var(--border);
}
.mobile-menu a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 15px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}
.mobile-menu a:hover { background: var(--blue-pale); color: var(--blue-primary); }
.mobile-menu .mobile-cta {
  margin-top: 8px;
  background: var(--blue-primary);
  color: white;
  text-align: center;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  padding: 120px 2rem 80px;
  background: linear-gradient(160deg, #0f172a 0%, #1e3a8a 55%, #1d4ed8 100%);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
}
.hero-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

/* Override: hero needs its own bg */
.hero {
  position: relative;
  background: none;
  padding-top: 120px;
}
.hero::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(160deg, #0a1628 0%, #1a317a 55%, #1d4ed8 100%);
  z-index: -2;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  animation: pulse-orb 6s ease-in-out infinite;
}
.orb-1 { width: 520px; height: 520px; background: rgba(59,130,246,0.22); top: -100px; right: -80px; animation-delay: 0s; }
.orb-2 { width: 340px; height: 340px; background: rgba(99,102,241,0.18); bottom: 60px; left: -60px; animation-delay: 2s; }
.orb-3 { width: 200px; height: 200px; background: rgba(14,165,233,0.15); top: 45%; left: 38%; animation-delay: 4s; }
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50px;
  color: rgba(255,255,255,0.9);
  font-size: 12.5px;
  font-weight: 500;
  padding: 6px 16px;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(8px);
  letter-spacing: 0.03em;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}
.gradient-text {
  background: linear-gradient(90deg, #60a5fa, #a78bfa, #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-desc {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  margin-bottom: 2.25rem;
  max-width: 480px;
}
.hero-desc strong { color: rgba(255,255,255,0.92); font-weight: 600; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-hero-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: white;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 14px; font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 28px rgba(255,255,255,0.2);
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255,255,255,0.25); }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.88);
  border: 1.5px solid rgba(255,255,255,0.22);
  font-size: 14px; font-weight: 500;
  padding: 13px 24px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  backdrop-filter: blur(8px);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.14); transform: translateY(-2px); }

/* HERO VISUAL / DASHBOARD MOCKUP */
.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  animation: floatY 6s ease-in-out infinite;
}
.dashboard-preview {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.12);
}
.preview-bar {
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red    { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green  { background: #22c55e; }
.preview-title { font-size: 12px; color: rgba(255,255,255,0.55); margin-left: 8px; font-family: var(--font-display); }
.preview-body { padding: 18px; }
.preview-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.pstat {
  border-radius: 10px;
  padding: 12px;
  border: 1px solid rgba(255,255,255,0.1);
}
.pstat.blue   { background: rgba(59,130,246,0.18); }
.pstat.purple { background: rgba(139,92,246,0.18); }
.pstat.green  { background: rgba(34,197,94,0.18); }
.pstat.red    { background: rgba(239,68,68,0.18); }
.pstat-val { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: white; }
.pstat-lbl { font-size: 11px; color: rgba(255,255,255,0.55); margin-top: 2px; }
.preview-table { border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); }
.pt-head, .pt-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1.2fr;
  padding: 9px 12px;
  font-size: 12px;
}
.pt-head { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.45); font-weight: 600; letter-spacing: 0.04em; font-size: 11px; text-transform: uppercase; }
.pt-row { color: rgba(255,255,255,0.82); border-top: 1px solid rgba(255,255,255,0.05); }
.pt-row:hover { background: rgba(255,255,255,0.04); }
.badge-paid    { color: #4ade80; font-weight: 600; font-size: 11px; }
.badge-pending { color: #fb923c; font-weight: 600; font-size: 11px; }

/* ===== STATS BAR ===== */
.stats-bar {
  background: var(--navy);
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.stat-item {
  padding: 1.4rem 3rem;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  transition: background 0.2s;
}
.stat-item:last-child { border-right: none; }
.stat-item:hover { background: rgba(255,255,255,0.04); }
.stat-val {
  font-family: var(--font-display);
  font-size: 26px; font-weight: 700;
  color: white;
  background: linear-gradient(90deg, #60a5fa, #a78bfa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.07em; margin-top: 4px; }

/* ===== SHARED SECTION STYLES ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px; font-weight: 600;
  color: var(--blue-primary);
  background: var(--blue-pale);
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  padding: 5px 14px;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.section-sub { font-size: 16px; color: var(--text-muted); max-width: 520px; margin: 0 auto; line-height: 1.7; }

/* ===== FEATURES ===== */
.features-section { padding: 7rem 0; background: white; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  cursor: default;
  opacity: 0;
  animation: fadeUp 0.6s cubic-bezier(0.22,1,0.36,1) forwards;
  animation-delay: var(--delay);
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(29,78,216,0.03) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #bfdbfe; }
.feature-card:hover::before { opacity: 1; }
.feat-icon-wrap {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--accent) 12%, white);
  color: var(--accent);
  font-size: 24px;
  transition: transform 0.3s;
}
.feature-card:hover .feat-icon-wrap { transform: scale(1.08) rotate(-4deg); }
.feat-title {
  font-family: var(--font-display);
  font-size: 16px; font-weight: 600;
  color: var(--text-main);
}
.feat-desc { font-size: 14px; color: var(--text-muted); line-height: 1.7; flex: 1; }
.feat-arrow {
  color: var(--text-light);
  font-size: 18px;
  transition: color 0.2s, transform 0.2s;
  align-self: flex-start;
}
.feature-card:hover .feat-arrow { color: var(--blue-primary); transform: translateX(4px); }

/* ===== HOW IT WORKS ===== */
.how-section { padding: 7rem 0; background: var(--surface); }
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; }
.step-card {
  position: relative;
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.step-card::after {
  content: '';
  position: absolute;
  top: 42px;
  right: -1px;
  width: 2px;
  height: calc(100% - 84px);
  background: var(--border);
}
.step-card:last-child::after { display: none; }
.step-num {
  font-family: var(--font-display);
  font-size: 13px; font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--blue-primary), #7c3aed);
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(29,78,216,0.3);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-content h3 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}
.step-content p { font-size: 13.5px; color: var(--text-muted); line-height: 1.7; }

/* ===== CTA SECTION ===== */
.cta-section {
  padding: 5rem 2rem;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-inner { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; }
.cta-glow {
  position: absolute;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(59,130,246,0.25) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.cta-icon {
  font-size: 3rem;
  color: rgba(255,255,255,0.25);
  margin-bottom: 1.25rem;
  display: block;
}
.cta-section h2 {
  font-family: var(--font-display);
  font-size: 2rem; font-weight: 700;
  color: white; margin-bottom: 0.9rem;
  letter-spacing: -0.02em;
}
.cta-section p { color: rgba(255,255,255,0.65); font-size: 16px; line-height: 1.7; margin-bottom: 2rem; }
.btn-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: white;
  color: var(--blue-dark);
  font-family: var(--font-display);
  font-size: 15px; font-weight: 700;
  padding: 14px 32px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 8px 28px rgba(255,255,255,0.2);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 14px 40px rgba(255,255,255,0.28); }

/* ===== CONTACT ===== */
.contact-section { padding: 7rem 0; background: white; }
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 1rem;
}
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.contact-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bfdbfe; }
.contact-card i {
  font-size: 2rem;
  color: var(--blue-primary);
  margin-bottom: 1rem;
  display: block;
}
.contact-card h4 {
  font-family: var(--font-display);
  font-size: 15px; font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.contact-card p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ===== FOOTER ===== */
.footer {
  background: var(--navy);
  padding: 2rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: white;
  font-family: var(--font-display);
  font-size: 14px; font-weight: 500;
}
.footer-copy { font-size: 13px; color: rgba(255,255,255,0.4); }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 100px;
    padding-bottom: 60px;
    gap: 3rem;
  }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { display: none; }
  .step-card::after { display: none; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
  .stat-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); width: 50%; }
  .footer-inner { flex-direction: column; text-align: center; }
}