:root {
  color-scheme: light;
  --ink: #17201b;
  --muted: #5f6d65;
  --line: #d9e1dc;
  --paper: #f7faf8;
  --panel: #ffffff;
  --green: #1f6b4a;
  --green-dark: #12422e;
  --gold: #b8862f;
  --blue: #315f8f;
  --shadow: 0 18px 45px rgba(23, 32, 27, 0.12);
}

* {
  box-sizing: border-box;
}

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

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

.siteHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(247, 250, 248, 0.92);
  backdrop-filter: blur(14px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand {
  font-weight: 800;
}

.mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--green-dark);
  color: white;
  font-size: 13px;
  letter-spacing: 0;
}

nav {
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.loginLink,
.primaryButton,
.secondaryButton {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.loginLink,
.primaryButton {
  background: var(--green-dark);
  border-color: var(--green-dark);
  color: white;
}

main {
  padding: 0 clamp(18px, 5vw, 64px) 56px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.7fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: 56px 0;
}

.heroText {
  max-width: 820px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  max-width: 860px;
  font-size: clamp(44px, 7vw, 86px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.heroText > p:not(.eyebrow) {
  max-width: 690px;
  font-size: 20px;
}

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

.secondaryButton {
  background: white;
}

.heroPanel,
.productGrid article,
.dashboardCard {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.heroPanel {
  padding: 22px;
}

.panelTop {
  display: flex;
  gap: 7px;
  margin-bottom: 22px;
}

.panelTop span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.metricRow {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.metricRow strong {
  color: var(--blue);
  font-size: 34px;
}

.metricRow span {
  color: var(--muted);
  line-height: 1.45;
}

.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.sectionHead {
  max-width: 720px;
  margin-bottom: 28px;
}

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

.productGrid article,
.dashboardCard {
  padding: 24px;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
}

footer {
  display: flex;
  justify-content: space-between;
  padding: 24px clamp(18px, 5vw, 64px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.portal {
  max-width: 1200px;
  margin: 0 auto;
}

.portalHead {
  padding: 64px 0 28px;
  max-width: 760px;
}

.portalHead h1 {
  font-size: clamp(42px, 6vw, 72px);
}

.dashboardCard {
  display: block;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.dashboardCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 55px rgba(23, 32, 27, 0.16);
}

.dashboardCard span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.dashboardCard h2 {
  font-size: 28px;
  line-height: 1.08;
}

@media (max-width: 820px) {
  .siteHeader,
  nav {
    align-items: flex-start;
  }

  .siteHeader {
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .hero,
  .split,
  .productGrid,
  .dashboardList {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}
