:root {
  color-scheme: light;
  --bg: #f4f1e8;
  --paper: #fffaf0;
  --surface: #ffffff;
  --surface-soft: #e7f5ef;
  --ink: #17211f;
  --muted: #66726d;
  --line: #d8d2c3;
  --brand: #1f8a70;
  --brand-deep: #0d5c4b;
  --accent: #d85f3d;
  --gold: #c99a32;
  --shadow: 0 26px 70px rgba(51, 42, 26, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(120deg, rgba(31, 138, 112, 0.14), transparent 34%),
    linear-gradient(300deg, rgba(216, 95, 61, 0.12), transparent 32%),
    repeating-linear-gradient(90deg, rgba(23, 33, 31, 0.035) 0 1px, transparent 1px 72px),
    var(--bg);
  color: var(--ink);
  font-family: Avenir Next, Avenir, Trebuchet MS, Verdana, sans-serif;
  line-height: 1.6;
}

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

a:hover {
  color: var(--brand-deep);
}

code {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--paper);
  padding: 2px 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.94em;
}

.page-shell {
  min-height: 100vh;
  padding: 28px 0 0;
}

.site-header,
.site-footer,
.hero,
.section,
.content-page {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 22px;
  font-weight: 850;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--ink);
  box-shadow: inset 10px 0 0 var(--brand), inset 20px 0 0 var(--gold);
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.language-picker {
  width: 170px;
  flex: 0 0 170px;
}

.language-select {
  width: 100%;
  min-height: 40px;
  appearance: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%),
    var(--paper);
  background-position: calc(100% - 20px) 17px, calc(100% - 14px) 17px, 0 0;
  background-repeat: no-repeat;
  background-size: 6px 6px, 6px 6px, auto;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  padding: 0 42px 0 12px;
}

.language-select:focus {
  border-color: var(--brand);
  outline: 3px solid rgba(31, 138, 112, 0.22);
  outline-offset: 2px;
}

.hero {
  min-height: calc(100vh - 122px);
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
  align-items: center;
  gap: 44px;
  padding: 22px 0 76px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--brand-deep);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(48px, 8vw, 92px);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.25;
}

.lead {
  max-width: 630px;
  color: var(--muted);
  font-size: 20px;
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0 18px;
  font-weight: 850;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #ffffff;
}

.dashboard-preview {
  min-height: 520px;
  display: grid;
  grid-template-columns: 182px 1fr;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 31, 0.16);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.preview-sidebar {
  display: grid;
  align-content: start;
  gap: 12px;
  border-right: 1px solid var(--line);
  background: #f7f2e7;
  padding: 22px 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.preview-sidebar strong {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 20px;
}

.preview-sidebar span {
  border-radius: 8px;
  padding: 9px 10px;
}

.preview-sidebar .active {
  background: var(--surface-soft);
  color: var(--brand-deep);
}

.preview-main {
  padding: 34px;
}

.preview-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--brand-deep);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.preview-main h2 {
  margin-top: 18px;
  font-size: clamp(30px, 4vw, 46px);
}

.preview-search {
  min-height: 50px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #8a948f;
  padding: 0 16px;
}

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

.preview-stats span,
.preview-grid span,
.feature,
.text-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.preview-stats span,
.preview-grid span {
  padding: 14px;
  color: var(--muted);
  font-size: 13px;
}

.preview-stats strong {
  display: block;
  color: var(--ink);
  font-size: 28px;
  line-height: 1;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.preview-grid span {
  min-height: 74px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--ink);
  font-weight: 850;
}

.preview-grid small {
  color: var(--muted);
  font-weight: 650;
}

.section {
  padding: 82px 0;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  padding: 22px;
}

.feature p,
.text-panel p,
.text-panel li,
.check-list p,
.site-footer {
  color: var(--muted);
}

.split-section {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 36px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list p {
  margin: 0;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  background: rgba(255, 250, 240, 0.72);
  padding: 14px 16px;
}

.content-page {
  padding-bottom: 72px;
}

.page-hero {
  padding: 62px 0 26px;
}

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

.text-panel {
  padding: 34px;
  box-shadow: var(--shadow);
}

.text-panel h2 {
  margin: 28px 0 8px;
  font-size: 24px;
}

.text-panel h2:first-child {
  margin-top: 0;
}

.text-panel a {
  color: var(--brand-deep);
  font-weight: 800;
}

.compact-section {
  padding-top: 22px;
}

ul {
  padding-left: 1.2rem;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  font-size: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #111715;
    --paper: #18201d;
    --surface: #1f2925;
    --surface-soft: #15382f;
    --ink: #f5f1e8;
    --muted: #aeb8b2;
    --line: #34423d;
    --brand: #2fb58f;
    --brand-deep: #7bddc1;
    --shadow: 0 26px 70px rgba(0, 0, 0, 0.35);
  }

  .preview-sidebar {
    background: #19211e;
  }

  .check-list p {
    background: rgba(31, 41, 37, 0.82);
  }
}

@media (max-width: 980px) {
  .hero,
  .split-section {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero {
    padding-top: 42px;
  }

  .dashboard-preview {
    grid-template-columns: 1fr;
  }

  .preview-sidebar {
    display: none;
  }

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

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
    gap: 12px;
    font-size: 13px;
  }

  .site-nav a {
    min-width: 0;
  }

  .language-picker {
    width: 100%;
    flex: 0 0 auto;
  }

  h1 {
    font-size: clamp(42px, 15vw, 58px);
    overflow-wrap: anywhere;
  }

  .lead {
    max-width: 100%;
    font-size: 18px;
    overflow-wrap: break-word;
  }

  .actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
    min-width: 0;
    padding: 0 14px;
    text-align: center;
    white-space: normal;
  }

  .site-header,
  .site-footer,
  .hero,
  .section,
  .content-page {
    width: calc(100% - 28px);
    max-width: 1120px;
  }

  .hero,
  .hero-copy,
  .dashboard-preview,
  .preview-main {
    min-width: 0;
    max-width: 100%;
  }

  .feature-grid,
  .feature-grid.three,
  .preview-stats,
  .preview-grid {
    grid-template-columns: 1fr;
  }

  .preview-main,
  .text-panel {
    padding: 22px;
  }

  .preview-toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
