:root {
  color-scheme: light;
  --ink: #16213d;
  --muted: #617087;
  --line: #d9e4ea;
  --panel: #ffffff;
  --soft: #f4f9fb;
  --brand: #1bc6dd;
  --brand-dark: #109db2;
  --brand-soft: #e6f9fc;
  --cyan: #1bc6dd;
  --green: #10b981;
  --amber: #f59e0b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--soft);
  color: var(--ink);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(229, 231, 235, 0.92);
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  box-shadow: 0 10px 30px rgba(22, 33, 61, 0.06);
}

.top-row {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.shell {
  width: min(100% - clamp(24px, 4vw, 72px), 1600px);
  margin: 0 auto;
}

.nav-row {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-top: 1px solid rgba(229, 231, 235, 0.92);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  flex: 0 0 auto;
}

.brand img {
  width: 250px;
  max-width: min(42vw, 250px);
  height: auto;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 4px;
  width: 100%;
}

.nav-item {
  position: relative;
}

.nav-link,
.nav-button {
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  min-height: 42px;
  padding: 0 10px;
  white-space: nowrap;
}

.nav-link:hover,
.nav-button:hover,
.nav-link.active,
.nav-button.active {
  color: var(--brand);
}

.dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: 292px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: 0.18s ease;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 7px;
  color: #334155;
  font-size: 14px;
  font-weight: 600;
  padding: 10px;
}

.dropdown a:hover,
.dropdown a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.header-ctas {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
}

.btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 7px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 13px;
  font-weight: 750;
  padding: 0 14px;
  transition: 0.18s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 24px rgba(27, 198, 221, 0.26);
}

.btn-primary:hover {
  background: var(--brand-dark);
}

.btn-secondary {
  border-color: #b8ebf1;
  background: #fff;
  color: var(--brand);
}

.btn-secondary:hover {
  background: var(--brand-soft);
}

.btn-quiet {
  border-color: var(--line);
  background: #fff;
  color: #334155;
}

.btn-quiet:hover {
  border-color: #b8ebf1;
  color: var(--brand);
}

.mobile-toggle {
  display: none;
  width: 42px;
  min-width: 42px;
  padding: 0;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  padding: 12px 0 18px;
}

.mobile-panel.open {
  display: block;
}

.mobile-panel a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 7px;
  color: #334155;
  font-weight: 650;
  padding: 10px 8px;
}

.mobile-panel a:hover,
.mobile-panel a.active {
  background: var(--brand-soft);
  color: var(--brand);
}

.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 28, 52, 0.94), rgba(17, 137, 154, 0.78)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.hero .shell {
  display: grid;
  min-height: 620px;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: center;
  padding: 84px 0 70px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #8ef4ff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 16px 0 0;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero p,
.page-hero p {
  max-width: 720px;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.7;
}

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

.hero-actions .btn-secondary,
.hero-actions .btn-quiet {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

.metrics-board {
  display: grid;
  gap: 14px;
  align-self: stretch;
}

.metric-card,
.content-card,
.chart-card,
.form-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.08);
}

.metric-card {
  color: var(--ink);
  padding: 20px;
}

.metric-value {
  color: var(--brand);
  font-size: 32px;
  font-weight: 850;
}

.metric-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.chart-card {
  min-height: 328px;
  padding: 20px;
}

.chart-card-home {
  padding: 18px 18px 12px;
  overflow: hidden;
}

.chart-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.chart-kicker {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.chart-title {
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.chart-pill {
  border: 1px solid #b8ebf1;
  border-radius: 999px;
  background: var(--brand-soft);
  color: #0f6f80;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 12px;
  white-space: nowrap;
}

.chart-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: 16px;
  align-items: start;
}

.chart-main,
.chart-side {
  min-width: 0;
}

.chart-main {
  overflow: hidden;
}

.chart-side {
  display: grid;
  gap: 14px;
  align-content: start;
}

.chart-mini-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fcfd);
  padding: 12px 12px 8px;
  overflow: hidden;
}

.mini-title {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

#homeChart,
#homeMixChart,
#homeRegionChart {
  min-width: 0;
}

.chart-tooltip {
  min-width: 150px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 30px rgba(22, 33, 61, 0.14);
  padding: 10px 12px;
}

.chart-tooltip-title {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  margin-bottom: 8px;
}

.chart-tooltip-row {
  display: grid;
  grid-template-columns: 10px 1fr auto;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.chart-tooltip-row strong {
  color: var(--ink);
  font-size: 12px;
}

.chart-tooltip-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.chart-card-home .apexcharts-canvas,
.chart-card-home .apexcharts-svg,
.chart-card-home foreignObject {
  max-width: 100% !important;
}

.section {
  padding: 88px 0;
}

.section-tight {
  padding: 64px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

.section-head p,
.muted {
  color: var(--muted);
  line-height: 1.65;
}

.grid {
  display: grid;
  gap: 18px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.content-card {
  min-height: 100%;
  padding: 22px;
}

.content-card i {
  color: var(--brand);
  font-size: 22px;
}

.content-card h3 {
  margin: 16px 0 8px;
  color: #111827;
  font-size: 19px;
}

.content-card p,
.content-card li {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.62;
}

.content-card ul {
  padding-left: 18px;
}

.band {
  background: #fff;
  border-block: 1px solid var(--line);
}

.page-hero {
  background:
    linear-gradient(135deg, rgba(15, 28, 52, 0.92), rgba(20, 171, 191, 0.72)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

.page-hero .shell {
  padding: 92px 0 82px;
}

.page-hero h1 {
  color: #fff;
}

.page-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: clamp(20px, 3vw, 32px);
  align-items: start;
}

.side-panel {
  position: sticky;
  top: 96px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 11px 13px;
}

textarea {
  min-height: 128px;
  resize: vertical;
}

label {
  display: grid;
  gap: 7px;
  color: #334155;
  font-size: 13px;
  font-weight: 750;
}

.span-2 {
  grid-column: span 2;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #0f172a;
  color: #cbd5e1;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(4, minmax(160px, 1fr));
  gap: 28px;
  padding: 56px 0;
}

.site-footer img {
  width: 220px;
}

.site-footer h3 {
  color: #fff;
  font-size: 14px;
  margin: 0 0 12px;
}

.site-footer a {
  display: block;
  color: #cbd5e1;
  font-size: 14px;
  margin: 9px 0;
}

.site-footer a:hover {
  color: #8ef4ff;
}

.footer-bottom {
  border-top: 1px solid rgba(203, 213, 225, 0.16);
  color: #94a3b8;
  font-size: 13px;
  padding: 18px 0;
}

@media (max-width: 1100px) {
  .top-row {
    min-height: 72px;
  }

  .main-nav,
  .header-ctas {
    display: none;
  }

  .mobile-toggle {
    display: inline-flex;
  }

  .nav-row {
    display: none;
  }

  .hero .shell,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .chart-layout {
    grid-template-columns: 1fr;
  }

  .chart-side {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .side-panel {
    position: static;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 20px, 1600px);
  }

  .hero .shell {
    min-height: auto;
    padding: 54px 0 40px;
  }

  h1 {
    font-size: clamp(34px, 9vw, 42px);
  }

  .footer-grid,
  .contact-grid,
  .page-layout {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .chart-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand img {
    width: min(190px, 54vw);
  }

  .hero p,
  .page-hero p {
    font-size: 16px;
  }
}
