:root {
  --bg: #f5f7fb;
  --bg-alt: #ffffff;
  --text: #13141a;
  --muted: #5b6473;
  --accent: #0066ff;
  --accent-soft: rgba(0, 102, 255, 0.08);
  --border: rgba(15, 23, 42, 0.08);
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
}

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

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* HEADER */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(245, 247, 251, 0.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.logo-square {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: radial-gradient(circle at 20% 20%, #4f9cff, #0040ff);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.45);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 1.02rem;
}

.brand-tagline {
  font-size: 0.82rem;
  color: var(--muted);
}

/* NAV */

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.main-nav a {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
}

.main-nav a:hover {
  background: rgba(15, 23, 42, 0.04);
  color: var(--text);
}

.main-nav .nav-cta {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
}

.main-nav .nav-cta:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

/* MAIN LAYOUT */

.main {
  padding: 32px 20px 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 26px;
  align-items: center;
  margin-bottom: 28px;
}

.hero-text h1 {
  font-size: clamp(2.1rem, 2.2rem + 0.6vw, 3rem);
  line-height: 1.15;
  margin: 10px 0 12px;
}

.hero-lead {
  font-size: 1.05rem;
  color: #283042;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.8);
  font-size: 0.84rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

/* CARDS / SECTIONS */

.card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  padding: 22px 22px 20px;
  margin-bottom: 22px;
}

.card h2 {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.4rem;
}

.card h3 {
  margin-top: 12px;
  margin-bottom: 6px;
  font-size: 1.1rem;
}

/* GRIDS */

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.stack {
  display: grid;
  gap: 12px;
}

/* KPI */

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
  margin-bottom: 8px;
}

.kpi {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  padding: 12px 10px;
  text-align: center;
}

.kpi-number {
  font-size: 1.4rem;
  font-weight: 800;
}

.kpi-label {
  font-size: 0.86rem;
  color: var(--muted);
}

/* BUTTONS */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: 10px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.42);
}

.btn-primary:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
}

.btn-outline:hover {
  text-decoration: none;
  background: rgba(0, 102, 255, 0.03);
}

/* LISTS */

.list-clean {
  margin: 0;
  padding-left: 18px;
}

.list-clean li + li {
  margin-top: 8px;
}

/* CALLOUT */

.callout {
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--accent-soft);
  padding: 14px 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.96rem;
}

/* META TEXT */

.meta-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  color: var(--muted);
}

/* PAGE HEADINGS */

.page-heading {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 1.8rem;
}

.page-intro {
  margin-top: 2px;
  font-size: 1rem;
  color: var(--muted);
}

/* FORMS */

.form-grid {
  display: grid;
  gap: 14px;
  max-width: 520px;
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-row label {
  font-size: 0.92rem;
  font-weight: 600;
}

.form-row input,
.form-row textarea {
  font: inherit;
  padding: 9px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
}

.form-row textarea {
  min-height: 140px;
  resize: vertical;
}

/* FOOTER */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 16px 20px 24px;
  background: #ffffff;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-links a {
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--text);
}

/* RESPONSIVE */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main {
    padding-top: 24px;
  }

  .grid-two {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .kpi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
