:root {
  --bg: #f3f1ea;
  --surface: rgba(255, 255, 255, 0.88);
  --ink: #172033;
  --muted: #5d677b;
  --line: rgba(23, 32, 51, 0.12);
  --brand: #c45a2d;
  --brand-deep: #8b3d1f;
  --accent: #2f7d62;
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Georgia, Cambria, "Times New Roman", serif;
  background:
    radial-gradient(circle at top left, rgba(196, 90, 45, 0.12), transparent 34%),
    radial-gradient(circle at top right, rgba(47, 125, 98, 0.12), transparent 24%),
    linear-gradient(180deg, #f7f4ed 0%, #efe8da 100%);
}

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

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

.site-header,
.section-header,
.section-header-inline,
.card-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.site-header {
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

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

.brand-mark {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 22px;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 20px;
}

.brand-copy small,
.muted {
  color: var(--muted);
}

.site-nav {
  display: flex;
  gap: 18px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.site-main {
  padding-top: 34px;
}

.hero,
.split-layout {
  display: grid;
  gap: 24px;
}

.hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
}

.hero-copy,
.panel-card,
.section-card,
.metric-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy,
.panel-card,
.section-card,
.metric-card {
  padding: 28px;
}

.hero-copy {
  padding: 42px;
}

.hero-copy h1,
.section-header h1,
.auth-card h1 {
  margin: 0 0 16px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 0.98;
}

.hero-copy .lede {
  font-size: 22px;
  line-height: 1.5;
  max-width: 46rem;
}

.hero-panel,
.auth-layout {
  display: flex;
}

.section,
.section-header,
.cards-grid,
.split-layout {
  margin-top: 24px;
}

.eyebrow,
.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 125, 98, 0.12);
  color: var(--accent);
  font: 700 13px/1 "Trebuchet MS", "Segoe UI", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pill {
  background: rgba(196, 90, 45, 0.12);
  color: var(--brand-deep);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 700 15px/1 "Trebuchet MS", "Segoe UI", sans-serif;
}

.button-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.7);
  border-color: var(--line);
}

.plain-list {
  margin: 16px 0 0;
  padding-left: 18px;
  line-height: 1.8;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

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

.metric-card h2,
.section-card h2,
.panel-card h2 {
  margin: 12px 0 18px;
  font-size: 28px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 22px;
}

.metrics div {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.metrics dt {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 6px;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.metrics dd {
  margin: 0;
  font-size: 18px;
}

.split-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.link-box {
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(47, 125, 98, 0.08);
  word-break: break-word;
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

.auth-layout {
  justify-content: center;
  padding-top: 36px;
}

.auth-card {
  max-width: 560px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 24px;
}

.auth-form label {
  font: 700 14px/1.2 "Trebuchet MS", "Segoe UI", sans-serif;
}

.auth-form input {
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  font: 16px/1.2 "Trebuchet MS", "Segoe UI", sans-serif;
}

.alert {
  margin-top: 20px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(196, 90, 45, 0.12);
  color: var(--brand-deep);
  font-family: "Trebuchet MS", "Segoe UI", sans-serif;
}

@media (max-width: 860px) {
  .site-header,
  .section-header,
  .section-header-inline,
  .card-topline {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .hero-copy,
  .panel-card,
  .section-card,
  .metric-card {
    padding: 22px;
  }

  .hero-copy h1,
  .section-header h1,
  .auth-card h1 {
    font-size: 36px;
  }

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