:root {
  color-scheme: light;
  --bg: #f7f4ed;
  --surface: #fffdf8;
  --surface-strong: #fff8ea;
  --ink: #1f2933;
  --muted: #667085;
  --line: #e7dcc9;
  --accent: #9b4f20;
  --accent-dark: #703715;
  --accent-soft: #f2d3b5;
  --green: #2f6f5e;
  --shadow: 0 24px 60px rgba(49, 39, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(155, 79, 32, 0.16), transparent 32rem),
    linear-gradient(180deg, #fbf6eb 0%, var(--bg) 42rem);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
}

a {
  color: var(--accent-dark);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

code {
  border: 1px solid var(--line);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.74);
  color: #6d3214;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.92em;
  padding: 0.08rem 0.35rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(231, 220, 201, 0.8);
  background: rgba(255, 253, 248, 0.86);
  backdrop-filter: blur(18px);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.85rem 0;
}

.brand {
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.95rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-links a {
  color: var(--muted);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.language-picker select {
  min-height: 2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.9);
  color: var(--ink);
  font: inherit;
  padding: 0.25rem 1.9rem 0.25rem 0.75rem;
}

.language-content[hidden] {
  display: none;
}

.section-shell {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 4.6rem 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 74vh;
  gap: 3rem;
}

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  line-height: 1.12;
}

h1 {
  max-width: 760px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  letter-spacing: -0.075em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  letter-spacing: -0.055em;
}

h3 {
  font-size: 1.15rem;
  letter-spacing: -0.025em;
}

.hero-copy,
.section-heading p,
.feature-card p,
.timeline p,
.settings-grid p,
.detail-panel p,
.detail-panel li,
.callout p,
.split-section p,
.footer p {
  color: var(--muted);
}

.hero-copy {
  max-width: 700px;
  margin: 1.5rem 0 0;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.62rem 1.05rem;
  font-weight: 760;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 32px rgba(155, 79, 32, 0.24);
}

.button.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.7);
  color: var(--accent-dark);
}

.feature-card,
.timeline article,
.settings-grid article,
.detail-panel,
.callout {
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  background: rgba(255, 253, 248, 0.86);
  box-shadow: var(--shadow);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 2rem;
}

.section-heading p {
  margin: 1rem 0 0;
  font-size: 1.06rem;
}

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

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

.feature-card,
.settings-grid article,
.detail-panel,
.callout {
  padding: 1.25rem;
}

.feature-card p,
.settings-grid p,
.detail-panel p,
.callout p {
  margin: 0.7rem 0 0;
}

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

.callout {
  margin-top: 1rem;
  border-left: 0.38rem solid var(--accent);
  background: var(--surface-strong);
}

.code-sample pre {
  overflow-x: auto;
  margin: 1rem 0 0;
  border-radius: 1rem;
  background: #24160f;
  color: #fff8ea;
  padding: 1rem;
  line-height: 1.55;
}

.code-sample pre code {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}

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

.timeline article {
  position: relative;
  overflow: hidden;
  padding: 1.25rem;
}

.timeline span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-weight: 800;
}

.timeline p {
  margin: 0.7rem 0 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

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

th,
td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  text-align: left;
}

th {
  background: var(--surface-strong);
  color: #523823;
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

td:first-child {
  color: var(--ink);
  font-weight: 760;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  border-top: 1px solid var(--line);
}

.steps {
  margin: 1.25rem 0 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.steps li + li {
  margin-top: 0.55rem;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 1rem;
  text-align: center;
}

.footer p {
  margin: 0;
}

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

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

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

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

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

  .section-shell {
    padding: 3.2rem 0;
  }

  .feature-grid,
  .settings-grid,
  .detail-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
