:root {
  --brand-900: #0f172a;
  --brand-800: #1d4ed8;
  --brand-700: #2563eb;
  --brand-500: #39a0ff;
  --brand-soft: #edf5ff;
  --brand-soft-strong: #dfeefe;
  --mint-600: #19b26a;
  --mint-500: #35d39b;
  --mint-soft: #eafaf4;
  --primary: #1d4ed8;
  --primary-deep: #1239a4;
  --primary-soft: #edf5ff;
  --green: #19b26a;
  --green-soft: #eafaf4;
  --ink: #101828;
  --muted: #53627d;
  --muted-strong: #374151;
  --border: #e5ebf5;
  --panel: #f5f8fd;
  --surface: #ffffff;
  --surface-alt: #f5f9ff;
  --shadow: 0 22px 48px rgba(15, 23, 42, 0.09);
  --shadow-soft: 0 12px 30px rgba(37, 99, 235, 0.08);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 12px;
  --container: min(1180px, calc(100% - 32px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, "Segoe UI", sans-serif;
  background: #f7f9fc;
  color: var(--ink);
  line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148,163,184,0.2);
}
.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
}
.brand-mark {
  width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: white;
  font-size: 0.9rem;
  box-shadow: var(--shadow);
}
.desktop-nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-weight: 600;
}
.desktop-nav a.active,
.desktop-nav a:hover { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; padding: 0.8rem 1.3rem; border: 1px solid transparent; font-weight: 700;
  transition: 0.2s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--green));
  color: white; box-shadow: 0 12px 24px rgba(29,78,216,0.2);
}
.btn-secondary {
  background: white; border-color: var(--border); color: var(--ink);
}
.btn-tertiary {
  background: var(--primary-soft); color: var(--primary-deep);
}
.mobile-toggle { display: none; }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--border);
  background: white;
}
.mobile-nav-stack { display: flex; flex-direction: column; gap: 0.8rem; padding: 1rem 0 1.5rem; }

.hero-section {
  padding: 82px 0 60px;
  background: linear-gradient(180deg, #edf6ff 0%, #f9fbff 100%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 48px;
}
.eyebrow {
  display: inline-block; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--primary); font-weight: 800; margin-bottom: 12px;
}
h1, h2, h3, h4, p { margin-top: 0; }
h1 {
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 1.04; letter-spacing: -0.05em; max-width: 560px;
  margin-bottom: 18px;
}
.lead {
  color: var(--muted); font-size: 1.1rem; max-width: 560px;
}
.hero-actions { display: flex; gap: 16px; margin: 30px 0 18px; flex-wrap: wrap; }
.trust-list {
  display: flex; gap: 24px; flex-wrap: wrap; list-style: none; padding: 0; margin: 0; color: var(--muted);
  font-weight: 600;
}
.trust-list li::before {
  content: "•"; color: var(--green); margin-right: 8px;
}
.hero-visual { display: flex; justify-content: center; }
.panel-demo {
  width: min(100%, 520px);
  background: linear-gradient(180deg, white, #eff5ff);
  border: 1px solid rgba(148,163,184,0.25);
  border-radius: 24px; box-shadow: var(--shadow); padding: 20px;
}
.mini-header { display: flex; gap: 8px; margin-bottom: 18px; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; }
.dot.green { background: var(--green); }
.dot.blue { background: var(--primary); }
.dot.slate { background: #94a3b8; }
.dashboard-preview { display: grid; gap: 18px; }
.preview-card {
  background: white; border: 1px solid var(--border); border-radius: 18px; padding: 18px; 
}
.preview-card.large { min-height: 150px; display: flex; flex-direction: column; justify-content: center; }
.preview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.preview-card .label { display: block; color: var(--muted); font-size: 0.78rem; margin-bottom: 4px; }
.preview-card strong { font-size: 1.8rem; }
.progress {
  height: 10px; border-radius: 999px; background: #e2e8f0; margin-top: 18px; overflow: hidden;
}
.progress span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--primary), var(--green)); }

.section-block { padding: 82px 0; }
.value-section { padding-top: 16px; }
.section-head { margin-bottom: 30px; }
.section-head.center { text-align: center; }
.section-head h2 { font-size: clamp(2rem, 3vw, 3rem); letter-spacing: -0.04em; }
.value-layout {
  display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px;
}
.value-card {
  background: white; border: 1px solid var(--border); border-radius: 22px; padding: 24px 18px; display: flex; gap: 14px; align-items: flex-start; min-height: 190px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}
.value-card.wide { grid-column: span 2; }
.card-icon {
  width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; color: white; font-weight: 700;
}
.card-icon.blue { background: var(--primary); }
.card-icon.green { background: var(--green); }
.card-icon.slate { background: #475569; }

.service-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.service-card {
  background: white; border: 1px solid var(--border); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.04);
}
.service-topline { display: flex; justify-content: space-between; align-items: center; }
.pill {
  display: inline-flex; border-radius: 999px; background: var(--primary-soft); color: var(--primary-deep);
  padding: 0.45rem 0.75rem; font-size: 0.72rem; font-weight: 700;
}
.price { font-weight: 800; color: var(--primary-deep); }
.service-card ul, .pricing-card ul { margin: 0; padding-left: 18px; color: var(--muted); }
.text-link { color: var(--primary); font-weight: 700; }
.alt-block { background: #eef5ff; }
.split-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: center; }
.step-list { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 16px; }
.step-list li {
  display: grid; gap: 6px; background: white; border: 1px solid var(--border); border-radius: 18px; padding: 18px 20px;
  position: relative; padding-left: 58px;
}
.step-list li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 18px; top: 16px; width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary-soft); color: var(--primary); display: inline-flex; align-items: center; justify-content: center; font-weight: 800;
}
.chart-box { background: white; border: 1px solid var(--border); border-radius: 24px; padding: 26px; }
.timeline { display: flex; flex-wrap: wrap; gap: 14px; }
.timeline span {
  display: inline-flex; align-items: center; justify-content: center; padding: 12px 14px; border-radius: 999px; background: var(--panel); border: 1px solid var(--border); color: var(--muted); font-weight: 700;
}

.page-shell { padding-bottom: 72px; }
.page-hero {
  padding: 72px 0 30px; background: linear-gradient(180deg, #f4f8ff 0%, #ffffff 100%);
}
.page-hero.compact { padding-top: 60px; }
.narrow { max-width: 740px; }
.page-hero h1 { margin-bottom: 0; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 24px; }
.pricing-card {
  background: white; border: 1px solid var(--border); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 18px;
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.04);
}
.price-top { display: flex; justify-content: space-between; align-items: center; }
.price-top strong { font-size: 2rem; }
.price-label { font-weight: 700; }

.auth-shell {
  padding: 72px 0;
}
.auth-card {
  max-width: 540px; margin: 0 auto; background: white; border: 1px solid var(--border); border-radius: 26px; padding: 30px; box-shadow: var(--shadow);
}
.form-grid { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 700; color: var(--ink); }
.field input,
.field textarea,
.field select {
  width: 100%; border: 1px solid var(--border); background: #f8fafc; border-radius: 12px; padding: 0.9rem 1rem;
}
.field textarea { min-height: 120px; resize: vertical; }
.auth-actions { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.form-subtle { color: var(--muted); font-size: 0.95rem; }

.dashboard-shell { padding: 54px 0 80px; }
.dashboard-grid {
  display: grid; grid-template-columns: 250px 1fr; gap: 28px;
}
.side-nav {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px; height: fit-content; box-shadow: var(--shadow-soft);
}
.side-nav a {
  display: block; padding: 0.7rem 0.9rem; border-radius: 10px; color: var(--muted); font-weight: 600; margin-bottom: 6px;
}
.side-nav a.active,
.side-nav a:hover { background: var(--brand-soft); color: var(--brand-700); }
.content-panel {
  background: white; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-soft);
}
.dashboard-card {
  background: linear-gradient(180deg, rgba(247, 250, 255, 0.9), rgba(255,255,255,1));
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-soft);
}
.metric-row { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; margin-bottom: 20px; }
.metric-card {
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 100%); border: 1px solid var(--border); border-radius: 18px; padding: 18px;
  box-shadow: var(--shadow-soft);
}
.metric-card strong { display: block; font-size: 2rem; margin-top: 8px; }
.table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.table th, .table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.badge {
  display: inline-flex; align-items: center; padding: 0.38rem 0.7rem; border-radius: 999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.02em;
}
.badge.success { background: var(--green-soft); color: #166534; }
.badge.info { background: var(--primary-soft); color: var(--primary-deep); }
.badge.warn { background: #fff7ed; color: #9a5b00; }

.site-footer {
  background: #0f172a; color: rgba(255,255,255,0.82); padding-top: 44px; padding-bottom: 18px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px;
}
.site-footer h4 { color: white; margin-bottom: 12px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 28px; padding-top: 18px; }

.flash-banner {
  width: min(1180px, calc(100% - 32px)); margin: 22px auto 0; padding: 0.9rem 1rem; border-radius: 12px; font-weight: 600;
}
.flash-success { background: var(--green-soft); color: #166534; }
.flash-error { background: #fee2e2; color: #991b1b; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-toggle { display: inline-block; }
  .hero-grid, .service-grid, .pricing-grid, .split-grid, .footer-grid, .metric-row, .dashboard-grid { grid-template-columns: 1fr; }
  .value-layout { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .value-card.wide { grid-column: auto; }
}
@media (max-width: 560px) {
  .value-layout, .service-grid, .pricing-grid { grid-template-columns: 1fr; }
  .nav-actions .btn { display: none; }
  h1 { font-size: 2.4rem; }
  .auth-card { padding: 18px; }
}
