:root {
  --bg: #f5f8fc;
  --panel: #ffffff;
  --panel-alt: #edf4ff;
  --primary: #0d3b66;
  --primary-strong: #092544;
  --secondary: #17a3b8;
  --accent: #f4b942;
  --text: #19324d;
  --muted: #58718a;
  --border: rgba(13, 59, 102, 0.12);
  --shadow: 0 18px 48px rgba(11, 41, 72, 0.12);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

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

.container {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(245, 248, 252, 0.86);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 80px;
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  font-weight: 800;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.brand-tag {
  font-size: 0.7rem;
  color: var(--muted);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--muted);
  font-weight: 600;
}

.main-nav a:hover {
  color: var(--primary);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.9rem 1.4rem;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  box-shadow: 0 12px 30px rgba(23, 163, 184, 0.28);
}

.button-secondary {
  background: white;
  border: 1px solid var(--border);
  color: var(--primary);
}

.hero {
  padding: 88px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--secondary);
}

h1, h2, h3 {
  margin: 0 0 16px;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

h1 {
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  max-width: 630px;
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  max-width: 700px;
}

h3 {
  font-size: 1.35rem;
}

.lede {
  max-width: 620px;
  font-size: 1.08rem;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 30px;
}

.mini-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  padding: 0;
  margin: 0;
}

.mini-stats li {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 130px;
}

.mini-stats strong {
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.mini-stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-panel {
  background: linear-gradient(180deg, #fefefe, #eaf3ff);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-header {
  display: flex;
  gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot.red { background: #ff5f57; }
.dot.amber { background: #ffbd2e; }
.dot.green { background: #28c840; }

.panel-body {
  padding: 24px;
}

.stat-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--panel);
  padding: 18px 18px 14px;
  border: 1px solid var(--border);
  border-radius: 18px;
  margin-bottom: 18px;
}

.stat-card .label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.stat-card strong {
  font-size: 2rem;
  line-height: 1;
}

.stat-card small {
  color: #1c8d5f;
  font-weight: 700;
}

.bars {
  height: 145px;
  display: flex;
  align-items: end;
  gap: 12px;
  padding: 0 4px 4px;
}

.bars span {
  flex: 1;
  background: linear-gradient(180deg, rgba(23, 163, 184, 0.9), rgba(13, 59, 102, 0.9));
  border-radius: 10px 10px 0 0;
}

.trend-line {
  position: relative;
  height: 90px;
  margin-top: 16px;
  border-radius: 16px;
  background:
    linear-gradient(180deg, rgba(23,163,184,0.08), rgba(23,163,184,0)),
    linear-gradient(90deg, rgba(13,59,102,0.08) 1px, transparent 1px);
  background-size: auto, 30px 100%;
}

.trend-line::before {
  content: "";
  position: absolute;
  inset: 16px 12px 18px 8px;
  background: linear-gradient(90deg, transparent 0%, rgba(13,59,102,0.92) 10%, rgba(23,163,184,0.85) 40%, rgba(13,59,102,0.95) 100%);
  clip-path: polygon(0% 75%, 12% 68%, 24% 72%, 38% 40%, 52% 58%, 66% 26%, 78% 46%, 88% 16%, 100% 34%, 100% 100%, 0% 100%);
  border-radius: 12px;
}

.logo-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(237, 244, 255, 0.7);
}

.logo-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: rgba(237, 244, 255, 0.7);
}

.section-heading {
  margin-bottom: 32px;
}

.section-heading.narrow {
  max-width: 760px;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.three-up {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 12px 32px rgba(13, 59, 102, 0.06);
}

.card-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: rgba(23, 163, 184, 0.1);
  color: var(--primary);
  font-weight: 800;
  margin-bottom: 16px;
}

.info-card p {
  margin: 0;
  color: var(--muted);
}

.two-column {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 30px;
  align-items: start;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 16px;
}

.feature-list li {
  position: relative;
  padding-left: 26px;
  color: var(--muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--secondary), var(--primary));
}

.callout-box {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  color: white;
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: var(--shadow);
}

.callout-kicker {
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 14px;
  color: rgba(255,255,255,0.72);
}

.callout-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.callout-box li {
  position: relative;
  padding-left: 18px;
}

.callout-box li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.chart-card {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 12px 32px rgba(13, 59, 102, 0.04);
}

.chart-card h3 {
  margin-bottom: 12px;
}

.chart-card-wide {
  width: 100%;
}

.plotly-embed {
  display: block;
  width: 100%;
  height: 680px;
  border: 0;
}

.chart {
  width: 100%;
  min-height: 300px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.step-grid article {
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
}

.step-grid span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(13, 59, 102, 0.08);
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: var(--primary);
}

.step-grid p {
  margin: 0;
  color: var(--muted);
}

.cta-section {
  padding-top: 0;
}

.cta-box {
  background: linear-gradient(135deg, rgba(13,59,102,0.96), rgba(23,163,184,0.88));
  border-radius: 28px;
  padding: 36px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: white;
  box-shadow: var(--shadow);
}

.cta-box h2 {
  margin: 0;
  max-width: 640px;
}

.site-footer {
  padding: 22px 0 48px;
}

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

@media (max-width: 900px) {
  .hero-grid,
  .two-column,
  .three-up,
  .chart-grid,
  .step-grid {
    grid-template-columns: 1fr;
  }

  .nav-wrap {
    flex-wrap: wrap;
    justify-content: center;
    padding: 18px 0;
  }

  .main-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .cta-box,
  .footer-wrap {
    flex-direction: column;
    text-align: center;
  }
}
