:root {
  --primary:      #4f46e5;
  --primary-dark: #3730a3;
  --accent:       #f59e0b;
  --dark:         #0f172a;
  --dark-2:       #1e293b;
  --dark-3:       #334155;
  --muted:        #64748b;
  --bg-light:     #f8fafc;
  --bg-card:      #ffffff;
  --radius:       14px;
}

/* ── Base ────────────────────────────────── */
body {
  background-color: var(--bg-light);
  color: #1e293b;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }

/* override bootstrap primary */
.btn-primary        { background-color: var(--primary); border-color: var(--primary); }
.btn-primary:hover  { background-color: var(--primary-dark); border-color: var(--primary-dark); }
.btn-outline-primary { color: var(--primary); border-color: var(--primary); }
.btn-outline-primary:hover { background-color: var(--primary); border-color: var(--primary); }

/* ── Navbar ──────────────────────────────── */
.navbar {
  background-color: var(--dark) !important;
}
.navbar-brand {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #fff !important;
}

/* ── Cards ───────────────────────────────── */
.card {
  border-radius: var(--radius);
}
.progress {
  border-radius: 4px;
}
.badge {
  font-weight: 500;
}

/* ── Hero ────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 60%, #312e81 100%);
  padding: 80px 0 60px;
  overflow: hidden;
}
.hero-section .badge-beta {
  background: rgba(245,158,11,.15);
  color: var(--accent);
  border: 1px solid rgba(245,158,11,.3);
  font-size: .8rem;
  padding: .4em 1em;
  border-radius: 999px;
}
.hero-section h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.15;
}
.hero-section .lead {
  color: #cbd5e1;
  max-width: 560px;
  margin: 0 auto;
}
.hero-section .btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 600;
}
.hero-section .btn-primary:hover {
  background: #d97706;
  border-color: #d97706;
  color: #000;
}

/* hero mock preview */
.hero-preview {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 3rem;
  backdrop-filter: blur(4px);
  text-align: left;
}
.hero-preview .preview-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1rem;
  color: #94a3b8;
  font-size: .78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.hero-preview table {
  width: 100%;
  font-size: .82rem;
  color: #e2e8f0;
  border-collapse: collapse;
}
.hero-preview table th {
  color: #64748b;
  font-weight: 600;
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: .3rem .6rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.hero-preview table td {
  padding: .5rem .6rem;
  border-bottom: 1px solid rgba(255,255,255,.04);
}
.hero-preview .dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

/* ── Sections ────────────────────────────── */
.section-white  { background: #fff;           padding: 72px 0; }
.section-light  { background: var(--bg-light); padding: 72px 0; }
.section-dark   { background: var(--dark-2);   padding: 72px 0; color: #fff; }

.section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--primary);
  margin-bottom: .75rem;
}

/* ── Feature cards ───────────────────────── */
.feature-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.75rem;
  height: 100%;
  border-left: 4px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 24px rgba(79,70,229,.12);
}
.feature-card .icon {
  font-size: 1.6rem;
  margin-bottom: .75rem;
}

/* ── Steps ───────────────────────────────── */
.step-number {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  flex-shrink: 0;
}

/* ── Pricing ─────────────────────────────── */
.pricing-card {
  border-radius: var(--radius);
  padding: 2rem;
  background: var(--bg-card);
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
  transition: transform .15s ease;
}
.pricing-card:hover { transform: translateY(-2px); }
.pricing-card.featured {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 32px rgba(79,70,229,.35);
}
.pricing-card.featured .text-muted { color: #c7d2fe !important; }
.pricing-card.featured .btn {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
  font-weight: 600;
}
.pricing-card.featured .btn:hover {
  background: #e0e7ff;
  border-color: #e0e7ff;
}

/* ── App pages ───────────────────────────── */
.app-header {
  background: linear-gradient(135deg, var(--dark) 0%, #1e1b4b 100%);
  padding: 28px 0 24px;
  margin-bottom: 2rem;
}
.app-header h4 {
  color: #fff;
  font-weight: 700;
  margin: 0;
}
.app-header .text-muted { color: #94a3b8 !important; }

.app-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,.05);
  margin-bottom: 1.25rem;
}
.app-card .app-card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.app-card .app-card-header h6 {
  font-weight: 700;
  margin: 0;
  color: var(--dark);
}
.app-card .app-card-body { padding: 1.5rem; }

/* list cards */
.list-card {
  border-radius: var(--radius);
  border: 1px solid #e2e8f0;
  background: var(--bg-card);
  padding: 1.25rem 1.5rem;
  height: 100%;
  border-left: 4px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: transform .15s ease, box-shadow .15s ease;
}
.list-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(79,70,229,.1);
}

/* table overrides for app pages */
.app-table thead th {
  background: var(--dark);
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  border: none;
  padding: .75rem 1rem;
}
.app-table tbody td { padding: .65rem 1rem; vertical-align: middle; }
.app-table tbody tr:hover { background: #f8fafc; }

/* credits pill */
.credits-pill {
  background: rgba(79,70,229,.1);
  color: var(--primary);
  border: 1px solid rgba(79,70,229,.2);
  border-radius: 999px;
  padding: .25em .85em;
  font-size: .78rem;
  font-weight: 600;
}

/* section divider label */
.section-divider {
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--muted);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #e2e8f0;
}

/* ── Footer ──────────────────────────────── */
.site-footer {
  background: var(--dark);
  color: #64748b;
  padding: 1.5rem 0;
  font-size: .85rem;
  margin-top: auto;
}
