:root {
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-strong: #e2e8f0;
  --text-primary: #0f172a;
  --text-muted: #64748b;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-card: 0 12px 30px rgba(15, 23, 42, 0.08);
}

html, body { height: 100%; }

body.bg-light {
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 35%, #f8fafc 100%);
}

.topbar {
  background-color: var(--surface);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04);
}

.brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  background-image: linear-gradient(120deg, #2563eb, #38bdf8);
}

.app-main {
  max-width: 1080px;
}

.alert { border-radius: var(--radius-md); }

.card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-card);
}

.card-title { font-weight: 600; }

.section { margin-bottom: 2.5rem; }
.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.section-heading span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}
.stat-card {
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
}
.stat-card .value { font-size: 1.6rem; font-weight: 600; }
.stat-card .label { color: var(--text-muted); font-size: 0.9rem; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
}
.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}
.btn-outline-primary {
  color: var(--accent);
  border-color: rgba(37, 99, 235, 0.4);
}
.btn-outline-primary:hover { background: rgba(37, 99, 235, 0.08); border-color: var(--accent); }

.form-floating>.form-control,
.form-floating>.form-select {
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
}
.form-control:focus,
.form-select:focus {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 0.2rem rgba(37, 99, 235, 0.15);
}

.table {
  border-radius: var(--radius-md);
  overflow: hidden;
}
.table thead th {
  background: var(--surface-soft);
  border-bottom: 1px solid rgba(203, 213, 225, 0.7);
}
.table tbody td { vertical-align: middle; }
.table-hover tbody tr:hover { background: rgba(148, 163, 184, 0.12); }

/* Landing */
.hero-minimal {
  display: grid;
  gap: 2.5rem;
  padding: 4rem 0 5rem;
}
.hero-minimal .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(37, 99, 235, 0.08);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}
.hero-minimal h1 {
  font-size: clamp(2.4rem, 3vw, 3rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.hero-minimal p {
  color: var(--text-muted);
  max-width: 540px;
}

.hero-wrapper {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.hero-copy ul {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.75rem;
}
.hero-copy li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  color: var(--text-muted);
}
.icon-circle {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}

.hero-card {
  max-width: 520px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.hero-card form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.hero-card input {
  flex: 1 1 220px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 0.65rem 0.9rem;
  font-size: 1rem;
}
.hero-card button { flex: 0 0 auto; padding-inline: 1.4rem; }

.hero-links { display: flex; gap: 1rem; }
.hero-links .btn { padding-inline: 1.3rem; }

.features-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.feature-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1.4rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}
.feature-card .title { font-weight: 600; margin-bottom: 0.4rem; }
.feature-card .desc { color: var(--text-muted); font-size: 0.95rem; }

.stepper {
  display: grid;
  gap: 1rem;
  position: relative;
}
.stepper-item {
  padding: 1rem 1.2rem;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  gap: 1rem;
  align-items: center;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}
.stepper-item span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.1);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 600;
}
.stepper-item p { margin: 0; color: var(--text-muted); }
.stepper-item strong { display: block; color: var(--text-primary); margin-bottom: 0.25rem; }

.cta-card {
  border-radius: var(--radius-lg);
  background: linear-gradient(120deg, rgba(37, 99, 235, 0.12), rgba(59, 130, 246, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 2rem;
  display: grid;
  gap: 1rem;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.12);
}
.cta-card p { margin: 0; color: var(--text-muted); }
.cta-card .actions { display: flex; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero-card form { flex-direction: column; }
  .topbar { padding-block: 0.75rem; }
  .hero-links { flex-direction: column; }
  .cta-card .actions { flex-direction: column; }
}

@media (max-width: 768px) {
  .hero-minimal { gap: 2rem; }
}
