/* =============================================
   CloudBill Pro — Marketing CSS
   ============================================= */

:root {
  --primary: #6366f1;
  --primary-dark: #4f46e5;
  --bg-dark: #0d0c1a;
  --bg-card: #13111f;
  --bg-darker: #090812;
  --border: rgba(255,255,255,.07);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg-dark);
  color: #e2e8f0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  margin: 0;
}

/* ── Navbar ── */
#mainNav {
  background: rgba(13,12,26,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  transition: background .3s;
}
#mainNav.scrolled { background: rgba(13,12,26,.98); }
#mainNav .navbar-brand { color: #fff !important; letter-spacing: -.02em; }
#mainNav .nav-link { color: rgba(255,255,255,.65) !important; font-size: .9rem; transition: color .15s; }
#mainNav .nav-link:hover { color: #fff !important; }

.btn-glass {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff !important;
  backdrop-filter: blur(8px);
  transition: background .2s;
}
.btn-glass:hover { background: rgba(255,255,255,.18); color: #fff; }

/* ── Hero ── */
.hero-section {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(145deg, #0d0c1a 0%, #1a1040 50%, #2d1b6e 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 120px 0 80px;
}
.hero-content { position: relative; z-index: 2; }

.badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(99,102,241,.15);
  border: 1px solid rgba(99,102,241,.3);
  color: #a5b4fc;
  border-radius: 100px;
  padding: 6px 16px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
}

.text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #a78bfa 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 1.25rem; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: .72rem; color: rgba(255,255,255,.45); text-transform: uppercase; letter-spacing: .06em; }
.hero-stat-divider { width: 1px; height: 32px; background: rgba(255,255,255,.12); }

/* Orbs */
.hero-gradient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .25;
  pointer-events: none;
}
.orb1 { width: 500px; height: 500px; background: #6366f1; top: -150px; right: -100px; z-index: 0; }
.orb2 { width: 350px; height: 350px; background: #a855f7; bottom: -100px; left: 10%; z-index: 0; }

/* ── Dashboard Mockup ── */
.dashboard-mockup {
  background: #1a1535;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,.25);
  box-shadow: 0 32px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(99,102,241,.1);
  width: 100%;
  max-width: 520px;
  transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
  transition: transform .4s;
}
.dashboard-mockup:hover { transform: perspective(1200px) rotateY(-2deg) rotateX(1deg); }

.mockup-bar {
  background: #251e45;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mockup-dots { display: flex; gap: 5px; }
.mockup-dots span { width: 11px; height: 11px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #10b981; }
.mockup-address {
  flex: 1; text-align: center;
  background: rgba(255,255,255,.07); border-radius: 4px;
  padding: 3px 12px; font-size: 11px; color: rgba(255,255,255,.4);
}

.mockup-ui { display: flex; height: 360px; }

.mockup-sidebar {
  width: 52px;
  background: #1a1535;
  border-right: 1px solid rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 12px 6px;
  gap: 4px;
}
.mockup-logo-bar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #6366f1, #a78bfa);
  border-radius: 7px;
  margin-bottom: 12px;
}
.mockup-nav {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.3);
  font-size: 14px;
  transition: all .15s;
  cursor: default;
}
.mockup-nav.active { background: rgba(99,102,241,.25); color: #818cf8; }
.mockup-nav:hover { background: rgba(255,255,255,.05); color: rgba(255,255,255,.6); }

.mockup-main {
  flex: 1;
  background: #0f0d1e;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.mockup-topbar {
  background: #13111f;
  border-bottom: 1px solid rgba(255,255,255,.05);
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-search { flex: 1; height: 22px; background: rgba(255,255,255,.06); border-radius: 4px; }
.mockup-avatar { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #6366f1, #a78bfa); }

.mockup-stats-row { display: flex; gap: 6px; padding: 10px 10px 0; }
.mockup-stat-card {
  flex: 1; border-radius: 8px; padding: 8px;
  display: flex; align-items: center; gap: 6px;
}
.mockup-stat-card.blue  { background: rgba(99,102,241,.15); }
.mockup-stat-card.green { background: rgba(16,185,129,.15); }
.mockup-stat-card.orange{ background: rgba(245,158,11,.15); }
.mockup-stat-card.red   { background: rgba(239,68,68,.15); }
.mockup-stat-icon { font-size: 12px; }
.mockup-stat-card.blue .mockup-stat-icon   { color: #818cf8; }
.mockup-stat-card.green .mockup-stat-icon  { color: #34d399; }
.mockup-stat-card.orange .mockup-stat-icon { color: #fbbf24; }
.mockup-stat-card.red .mockup-stat-icon    { color: #f87171; }
.mockup-stat-val { font-size: 11px; font-weight: 700; color: #fff; }
.mockup-stat-lbl { font-size: 8px; color: rgba(255,255,255,.35); }

.mockup-chart-area {
  margin: 8px 10px 0;
  background: rgba(99,102,241,.06);
  border: 1px solid rgba(99,102,241,.12);
  border-radius: 8px;
  padding: 8px 10px;
  flex-shrink: 0;
}
.mockup-chart-label { font-size: 8px; color: rgba(255,255,255,.35); margin-bottom: 6px; }
.mockup-chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 50px; }
.mockup-bar-wrap { flex: 1; height: 100%; display: flex; align-items: flex-end; }
.mockup-bar-fill { width: 100%; border-radius: 2px 2px 0 0; background: rgba(99,102,241,.4); transition: height .3s; }
.mockup-bar-fill.active { background: #6366f1; }

.mockup-table-area { padding: 8px 10px; flex: 1; }
.mockup-table-row {
  display: flex; gap: 6px; align-items: center;
  padding: 5px 0; border-bottom: 1px solid rgba(255,255,255,.04);
}
.mockup-table-row.header { margin-bottom: 2px; }
.mockup-table-row.header span { font-size: 7px; color: rgba(255,255,255,.3); flex: 1; text-transform: uppercase; }
.mockup-text { flex: 1; height: 7px; background: rgba(255,255,255,.1); border-radius: 3px; }
.mockup-text.xs { max-width: 50px; }
.mockup-badge { width: 40px; height: 14px; border-radius: 100px; }
.mockup-badge.green  { background: rgba(16,185,129,.25); }
.mockup-badge.blue   { background: rgba(99,102,241,.25); }
.mockup-badge.orange { background: rgba(245,158,11,.25); }

/* ── Trusted By ── */
.trusted-section {
  background: #090812;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0;
}
.trusted-label { text-align: center; font-size: .65rem; letter-spacing: .12em; color: rgba(255,255,255,.2); margin-bottom: 12px; }
.trusted-logos { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.trusted-logos span { font-weight: 800; font-size: .75rem; letter-spacing: .1em; color: rgba(255,255,255,.18); }

/* ── Section Basics ── */
.section-dark   { background: #13111f; padding: 96px 0; }
.section-darker { background: #090812; padding: 96px 0; }
.section-header { text-align: center; margin-bottom: 56px; }
.section-title  { font-size: 2.2rem; font-weight: 800; line-height: 1.2; margin-bottom: .75rem; }
.section-sub    { color: rgba(255,255,255,.45); font-size: 1.05rem; margin: 0; }

/* ── Feature Cards ── */
.feature-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 16px;
  padding: 28px;
  height: 100%;
  transition: border-color .25s, background .25s, transform .25s;
}
.feature-card:hover {
  background: rgba(99,102,241,.07);
  border-color: rgba(99,102,241,.3);
  transform: translateY(-4px);
}
.feature-icon-wrap {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}

/* ── 50+ Feature Grid ── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}
.feature-item {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: .85rem;
  color: rgba(255,255,255,.75);
  display: flex;
  align-items: center;
  transition: background .2s, border-color .2s;
}
.feature-item:hover { background: rgba(99,102,241,.08); border-color: rgba(99,102,241,.2); }

/* ── Screenshot Cards ── */
.screenshot-card { margin-bottom: 8px; }
.screenshot-preview {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(99,102,241,.2);
  background: #1a1535;
  margin-bottom: 10px;
  box-shadow: 0 8px 32px rgba(0,0,0,.4);
  transition: transform .25s, box-shadow .25s;
}
.screenshot-preview:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(99,102,241,.2); }
.screenshot-label { text-align: center; color: rgba(255,255,255,.4); font-size: .8rem; }
.sp-header {
  background: #251e45;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.sp-dot { width: 9px; height: 9px; border-radius: 50%; }
.sp-dot.r { background: #ef4444; } .sp-dot.y { background: #f59e0b; } .sp-dot.g { background: #10b981; }
.sp-url { font-size: 9px; color: rgba(255,255,255,.3); margin-left: 8px; }
.sp-body { padding: 12px; height: 160px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.sp-stat-row { display: flex; gap: 6px; }
.sp-stat { flex: 1; height: 36px; border-radius: 6px; opacity: .7; }
.sp-greeting { font-size: 10px; color: #fff; font-weight: 600; }
.sp-filter-row { display: flex; gap: 5px; }
.sp-pill { height: 18px; width: 50px; border-radius: 100px; background: rgba(255,255,255,.08); }
.sp-pill.active { background: rgba(99,102,241,.3); }
.sp-table-header { display: flex; gap: 4px; }
.sp-table-header div { flex: 1; height: 10px; background: rgba(255,255,255,.1); border-radius: 2px; }
.sp-rows { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sp-rows div { height: 10px; background: rgba(255,255,255,.06); border-radius: 4px; }
.sp-rows.sm div { height: 8px; }
/* Chat preview */
.sp-chat { display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sp-bubble { border-radius: 12px; height: 28px; }
.sp-bubble.client { background: rgba(99,102,241,.35); align-self: flex-end; width: 75%; }
.sp-bubble.support { background: rgba(255,255,255,.08); align-self: flex-start; width: 65%; }
.sp-bubble.sm { height: 18px; }
/* Product cards preview */
.sp-product-cards { display: flex; gap: 6px; height: 100%; }
.sp-product-card { flex: 1; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.07); border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 5px; }
.sp-price { height: 16px; background: rgba(99,102,241,.3); border-radius: 4px; width: 60%; }
.sp-btn { height: 16px; border-radius: 4px; background: rgba(255,255,255,.08); margin-top: auto; }
.sp-btn.active { background: rgba(99,102,241,.4); }
/* Big chart preview */
.sp-big-chart { flex: 1; background: rgba(99,102,241,.07); border: 1px solid rgba(99,102,241,.12); border-radius: 8px; padding: 8px; }
.sp-chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.sp-chart-bars div { flex: 1; background: rgba(99,102,241,.4); border-radius: 2px 2px 0 0; }
.sp-chart-bars div:last-child { background: #6366f1; }
.sp-legend { display: flex; gap: 8px; }
.sp-legend div { flex: 1; height: 8px; border-radius: 4px; background: rgba(255,255,255,.06); }

/* ── Pricing ── */
.pricing-card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.pricing-featured {
  background: linear-gradient(145deg, rgba(99,102,241,.12), rgba(167,139,250,.08));
  border-color: rgba(99,102,241,.35);
}
.pricing-best-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: #f59e0b;
  color: #000;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  padding: 4px 16px;
  border-radius: 100px;
}
.pricing-header { margin-bottom: 24px; }
.pricing-price { font-size: 3rem; font-weight: 900; color: #6366f1; line-height: 1.1; margin-top: 8px; }
.pricing-period { color: rgba(255,255,255,.35); font-size: .82rem; }
.pricing-features { list-style: none; padding: 0; margin: 0 0 28px; display: flex; flex-direction: column; gap: 10px; }
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: rgba(255,255,255,.8); }
.pricing-features li i { font-size: 1rem; flex-shrink: 0; }
.pricing-guarantee {
  text-align: center;
  color: rgba(255,255,255,.35);
  font-size: .82rem;
  margin-top: 32px;
}

/* ── FAQ ── */
.faq-item {
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.faq-btn {
  width: 100%;
  background: transparent;
  border: none;
  color: rgba(255,255,255,.85);
  font-size: .95rem;
  font-weight: 500;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: color .15s;
}
.faq-btn:hover { color: #fff; }
.faq-btn:not(.collapsed) { color: #a5b4fc; }
.faq-chevron { font-size: .8rem; transition: transform .25s; flex-shrink: 0; }
.faq-btn:not(.collapsed) .faq-chevron { transform: rotate(180deg); }
.faq-body { padding: 0 0 18px; color: rgba(255,255,255,.55); font-size: .9rem; line-height: 1.7; }

/* ── CTA ── */
.cta-section {
  background: linear-gradient(145deg, #1e1b4b 0%, #4338ca 50%, #6d28d9 100%);
  padding: 100px 0;
  position: relative;
  overflow: hidden;
}
.cta-badge {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.9);
  border-radius: 100px;
  padding: 5px 16px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .04em;
}

/* ── Footer ── */
.site-footer {
  background: #05040d;
  border-top: 1px solid var(--border);
  padding: 32px 0;
}
.footer-link { color: rgba(255,255,255,.4); font-size: .85rem; text-decoration: none; transition: color .15s; }
.footer-link:hover { color: rgba(255,255,255,.8); }

/* ── Responsive ── */
@media (max-width: 991px) {
  .hero-section { padding: 100px 0 60px; min-height: auto; }
  .dashboard-mockup { transform: none; max-width: 100%; }
  .section-dark, .section-darker { padding: 64px 0; }
  .section-title { font-size: 1.8rem; }
  .feature-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 575px) {
  .hero-stats { gap: 12px; }
  .hero-stat-num { font-size: 1rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .mockup-stats-row .mockup-stat-lbl { display: none; }
}
