:root {
  --bg: #f6f0e6;
  --bg-deep: #e8dbc8;
  --surface: #fffdf8;
  --surface-soft: #f3ebde;
  --ink: #18212d;
  --muted: #55606f;
  --line: #d8ccb7;
  --brand: #113e63;
  --brand-dark: #0a2f4d;
  --gold: #b78a41;
  --ok: #1f8e58;
  --shadow: 0 14px 30px rgba(12, 26, 39, 0.12);
  --radius: 16px;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  color: var(--ink);
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(1000px 460px at 85% -20%, var(--bg-deep) 0%, transparent 60%),
    linear-gradient(180deg, #f8f4ed 0%, var(--bg) 100%);
}

a {
  color: inherit;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
  background: rgba(248, 244, 237, 0.86);
  border-bottom: 1px solid rgba(216, 204, 183, 0.65);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-weight: 700;
  color: var(--brand);
}

.brand img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #fff;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(17, 62, 99, 0.1);
  color: var(--brand);
}

.menu-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font: inherit;
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border-radius: 12px;
  border: 1px solid #0e3657;
  background: linear-gradient(180deg, #1b5889 0%, var(--brand) 100%);
  color: #fff;
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(11, 44, 71, 0.2);
}

.btn:hover {
  filter: brightness(1.04);
}

.btn-small {
  padding: 0.52rem 0.85rem;
  border-radius: 10px;
}

.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  box-shadow: none;
  color: var(--brand);
}

.hero {
  padding: 3.2rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.15rem;
}

.hero-copy,
.hero-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.45rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.78rem;
  color: var(--gold);
  font-weight: 700;
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.15;
  color: var(--brand);
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  margin-bottom: 0.7rem;
}

.hero-copy p {
  margin: 0 0 1rem;
  color: var(--muted);
  max-width: 62ch;
}

.hero-panel h2 {
  margin-bottom: 0.9rem;
  font-size: 1.25rem;
}

.hero-panel ul {
  margin: 0;
  padding-left: 1rem;
}

.hero-panel li {
  margin: 0.4rem 0;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.hero-note {
  font-size: 0.92rem;
}

.section {
  padding: 2.2rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(17, 62, 99, 0.06) 0%, rgba(17, 62, 99, 0) 100%);
}

.section-title {
  margin-bottom: 1.15rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.info-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem;
}

.info-card h3 {
  margin-bottom: 0.45rem;
}

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

.cta-band {
  background: var(--brand-dark);
  border-radius: calc(var(--radius) + 6px);
  color: #e8f0f8;
  padding: 1.7rem;
  border: 1px solid rgba(232, 240, 248, 0.22);
}

.cta-band h2 {
  color: #fff;
  margin-bottom: 0.45rem;
}

.cta-band p {
  margin: 0 0 1rem;
}

.dashboard-head h1 {
  margin-bottom: 0.45rem;
}

.dashboard-head p {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  margin: 1rem 0 1.2rem;
}

.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
}

.metric-card h2 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
}

.metric-card p {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--ok);
}

.table-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1rem;
}

.table-shell h2 {
  margin-bottom: 0.7rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 660px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.6rem 0.5rem;
  border-bottom: 1px solid #ece1cf;
}

th {
  color: var(--muted);
  font-size: 0.9rem;
}

tr:last-child td {
  border-bottom: none;
}

.empty-state {
  margin: 0;
  color: var(--muted);
}

.prose {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.6rem;
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
}

.prose h2 {
  margin-top: 1.25rem;
  margin-bottom: 0.45rem;
  font-size: 1.3rem;
}

.prose p,
.prose li {
  color: #2f3945;
}

.error-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.5rem;
  max-width: 720px;
}

.error-shell h1 {
  color: #8f2f2f;
  font-size: clamp(1.7rem, 3.8vw, 2.2rem);
}

.site-footer {
  margin-top: 1.4rem;
  border-top: 1px solid rgba(216, 204, 183, 0.8);
  background: rgba(248, 244, 237, 0.92);
}

.footer-wrap {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-wrap p {
  margin: 0;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  gap: 0.25rem;
}

.footer-links a {
  text-decoration: none;
  color: var(--ink);
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
}

.footer-links a:hover {
  background: rgba(17, 62, 99, 0.1);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 {
  transition-delay: 100ms;
}

.reveal-delay-2 {
  transition-delay: 180ms;
}

@media (max-width: 960px) {
  .hero-grid,
  .card-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    width: min(1120px, calc(100% - 1.45rem));
  }

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

  .site-nav {
    position: absolute;
    top: 76px;
    right: 0.75rem;
    left: 0.75rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    background: #fffefc;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 0.45rem;
    box-shadow: var(--shadow);
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    width: 100%;
  }
}
