:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-soft: #fbfaf7;
  --text: #17202a;
  --muted: #687381;
  --border: #e5e0d7;
  --accent: #1f4d3a;
  --accent-dark: #153728;
  --accent-soft: #e8f0ea;
  --shadow: 0 24px 70px rgba(23, 32, 42, 0.09);
  --radius-lg: 28px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 240, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
}

.brand-text {
  font-size: 1.1rem;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.main-nav a {
  text-decoration: none;
  font-size: 0.94rem;
  color: var(--muted);
  padding: 10px 12px;
  border-radius: 999px;
  transition: background 180ms ease, color 180ms ease;
}

.main-nav a:hover,
.main-nav a.active {
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.hero,
.page-hero {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 86px 0 42px;
}

.hero-content {
  max-width: 780px;
}

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

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

h1 {
  font-size: clamp(2.6rem, 8vw, 6.6rem);
  line-height: 0.96;
  letter-spacing: -0.075em;
  margin-bottom: 24px;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
  margin-bottom: 16px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-bottom: 10px;
}

.hero-text,
.page-hero p,
.section-heading p,
.tool-card p,
.note-box p,
.report-header p,
.powerbi-placeholder p,
.site-footer p,
.disclaimer {
  color: var(--muted);
}

.hero-text {
  font-size: clamp(1.1rem, 2vw, 1.32rem);
  max-width: 660px;
  margin-bottom: 30px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.95rem;
}

.button.primary {
  background: var(--accent);
  color: white;
}

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

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0;
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

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

.tool-card,
.note-box,
.report-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.tool-card {
  padding: 26px;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.tool-card a,
.tool-card span {
  margin-top: auto;
  font-weight: 800;
  color: var(--accent);
  text-decoration: none;
}

.tool-card a:hover {
  text-decoration: underline;
}

.tool-card.muted {
  background: var(--surface-soft);
  box-shadow: none;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  margin-bottom: 22px;
  font-weight: 900;
}

.note-section {
  padding-top: 10px;
}

.note-box {
  padding: clamp(26px, 5vw, 46px);
  background:
    radial-gradient(circle at top right, rgba(31, 77, 58, 0.16), transparent 32%),
    var(--surface);
}

.page-hero {
  padding: 72px 0 24px;
  max-width: 1180px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  font-size: 1.16rem;
}

.report-section {
  padding-top: 26px;
}

.report-shell {
  overflow: hidden;
}

.report-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
}

.report-header h2 {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.powerbi-placeholder {
  min-height: 680px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 32px;
  background:
    linear-gradient(135deg, rgba(31, 77, 58, 0.07) 25%, transparent 25%) -16px 0 / 32px 32px,
    linear-gradient(225deg, rgba(31, 77, 58, 0.07) 25%, transparent 25%) -16px 0 / 32px 32px,
    var(--surface-soft);
}

.powerbi-placeholder div {
  max-width: 460px;
  padding: 32px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--border);
}

.powerbi-placeholder h3 {
  margin-bottom: 8px;
}

iframe {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 0;
}

.site-footer {
  margin-top: 46px;
  border-top: 1px solid var(--border);
  background: #f0ede6;
  padding: 34px 0;
}

.footer-inner,
.disclaimer {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  margin-bottom: 22px;
}

.footer-inner p,
.disclaimer {
  margin-bottom: 0;
  font-size: 0.92rem;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links a {
  color: var(--accent-dark);
  font-weight: 800;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

@media (max-width: 860px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 0;
  }

  .main-nav {
    width: 100%;
  }

  .main-nav a {
    padding-left: 0;
    padding-right: 10px;
    background: transparent !important;
  }

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

  .hero {
    padding-top: 54px;
  }

  .footer-inner {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .powerbi-placeholder {
    min-height: 520px;
  }
}
