:root {
  --bg: #F6F4EF;
  --panel: #FFFFFF;
  --panel-alt: #F1EFE8;
  --text: #1F1F1F;
  --muted: #6E6A63;
  --border: #DDD8CF;
  --accent: #8B6F47;
  --accent-dark: #735A39;
  --rhythm: #FFF1B8;
  --strong: #FFD0C7;
  --style: #E7DAF5;
  --technical: #D5E7F6;
  --shadow: 0 18px 45px rgba(72, 57, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(139, 111, 71, 0.35);
  outline-offset: 4px;
  border-radius: 8px;
}

.container {
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 84px 0;
}

.alt-section {
  background: var(--panel-alt);
  border-block: 1px solid var(--border);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 244, 239, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 230px;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.brand-title,
.brand-subtitle {
  display: block;
}

.brand-title {
  font-weight: 700;
  line-height: 1.1;
}

.brand-subtitle {
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.nav a {
  padding: 8px 12px;
  color: var(--muted);
  border-radius: 8px;
  font-size: 15px;
}

.nav a:hover {
  color: var(--text);
  background: rgba(139, 111, 71, 0.08);
}

.hero {
  padding-top: 92px;
}

.hero-grid,
.privacy-grid,
.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: 56px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.14;
  letter-spacing: 0;
}

h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h1 {
  max-width: 760px;
  font-size: clamp(42px, 7vw, 74px);
}

h2 {
  font-size: clamp(31px, 4.2vw, 50px);
}

h3 {
  font-size: 20px;
}

p {
  margin: 16px 0 0;
  color: var(--muted);
}

.lead {
  color: var(--text);
  font-size: 21px;
}

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

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
}

.button.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
}

.button.primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
}

.button.disabled {
  cursor: not-allowed;
  color: #8d877e;
  background: #ebe7de;
  border-color: #d7d0c6;
}

.small-note {
  font-size: 13px;
  color: var(--muted);
}

.hero-preview {
  min-width: 0;
}

.app-window,
.interface-preview {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.window-bar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  background: #eee9df;
  border-bottom: 1px solid var(--border);
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #c9c1b5;
}

.mock-layout {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  min-height: 390px;
}

.mock-editor {
  padding: 26px;
  border-right: 1px solid var(--border);
  background: #fffdf9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.line {
  margin-bottom: 18px;
}

.line span,
.interface-editor span {
  display: inline-block;
  width: 30px;
  color: #9a9287;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

mark {
  padding: 2px 4px;
  border-radius: 4px;
  color: inherit;
}

mark.rhythm {
  background: var(--rhythm);
}

mark.strong,
.strong {
  background: var(--strong);
}

mark.style {
  background: var(--style);
}

mark.technical {
  background: var(--technical);
}

.mock-side {
  padding: 20px;
  background: var(--panel-alt);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 20px;
}

.tabs span {
  padding: 5px 7px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--muted);
  font-size: 12px;
}

.summary-row,
.map-line,
.issue {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px;
  margin-bottom: 14px;
  color: var(--muted);
}

.map-line {
  display: grid;
  grid-template-columns: 28px 1fr 42px;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  font-family: Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
}

.map-line i {
  display: block;
  height: 11px;
  border-radius: 3px;
  background: var(--rhythm);
}

.map-line.danger i {
  background: var(--strong);
}

.map-line em,
.rhythm-map em,
.style-map em {
  color: #9f3e30;
  font-style: normal;
  font-weight: 700;
}

.issue {
  margin-top: 18px;
  padding: 14px;
  color: var(--accent-dark);
  font-size: 14px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.download-grid,
.cards,
.feature-grid {
  display: grid;
  gap: 18px;
}

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

.download-card,
.card,
.feature-block,
.windows-card,
.path-box {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.download-card {
  min-height: 270px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  padding: 28px;
}

.muted-card {
  background: #f8f6f1;
}

.cards.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  padding: 24px;
}

.marker {
  display: block;
  width: 34px;
  height: 8px;
  margin-bottom: 20px;
  border-radius: 999px;
}

.rhythm-dot {
  background: var(--rhythm);
}

.tech-dot {
  background: var(--technical);
}

.style-dot {
  background: var(--style);
}

.decision-dot {
  background: var(--strong);
}

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

.workflow div {
  position: relative;
  min-height: 132px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.workflow span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--accent-dark);
  font-weight: 800;
}

.workflow p {
  color: var(--text);
  font-weight: 700;
}

.principle {
  margin-top: 28px;
  padding: 22px 26px;
  border-left: 3px solid var(--accent);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

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

.feature-block {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 22px;
  align-items: center;
  padding: 28px;
}

.feature-block.compact {
  display: block;
  min-height: 210px;
}

.mono,
code {
  font-family: Menlo, Monaco, Consolas, monospace;
}

.rhythm-map,
.style-map {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fffdf9;
  font-size: 13px;
}

.rhythm-map p,
.style-map p {
  margin: 8px 0;
  color: var(--text);
}

.rhythm-map b {
  display: inline-block;
  height: 13px;
  vertical-align: -2px;
  border-radius: 3px;
  background: var(--rhythm);
}

.style-map mark {
  background: var(--style);
  font-weight: 800;
}

.legend {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 12px;
}

.privacy-grid,
.install-grid {
  grid-template-columns: 0.9fr 1.1fr;
}

.path-box {
  padding: 26px;
  background: #fffdf9;
}

.path-box span,
.path-box code {
  display: block;
}

.path-box code {
  margin-top: 14px;
  padding: 16px;
  overflow-wrap: anywhere;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel-alt);
  color: var(--accent-dark);
}

.interface-preview {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 430px;
}

.interface-editor {
  padding: 30px;
  border-right: 1px solid var(--border);
  background: #fffdf9;
}

.interface-editor h3,
.interface-panel h3 {
  margin-bottom: 20px;
}

.interface-editor p {
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.interface-panel {
  padding: 26px;
  background: var(--panel-alt);
}

.mini-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 22px;
}

.mini-cards span {
  padding: 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.mini-map {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

.mini-map i {
  display: block;
  height: 13px;
  margin: 12px 0;
  border-radius: 3px;
  background: var(--rhythm);
}

.mini-map .warn {
  background: var(--style);
}

.mini-map .stop {
  background: var(--strong);
}

.issue-list {
  margin-top: 20px;
}

.issue-list p {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  margin: 0;
  border-bottom: 1px solid var(--border);
}

.issue-list span {
  color: var(--muted);
}

.centered {
  text-align: center;
}

.steps {
  margin: 0;
  padding: 0;
  counter-reset: steps;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 48px;
  padding: 12px 0 12px 58px;
  border-bottom: 1px solid var(--border);
}

.steps li::before {
  counter-increment: steps;
  content: counter(steps);
  position: absolute;
  top: 9px;
  left: 0;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--panel-alt);
  color: var(--accent-dark);
  font-weight: 800;
}

.windows {
  padding-top: 0;
}

.windows-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  padding: 32px;
  background: #fffdf9;
}

.windows-card p {
  max-width: 680px;
}

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

details {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--text);
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 20px;
}

.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  background: #eeeae1;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
}

.footer p {
  margin-top: 4px;
}

.footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.footer a:hover {
  color: var(--text);
}

.copyright {
  color: var(--muted);
}

@media (max-width: 980px) {
  .hero-grid,
  .privacy-grid,
  .install-grid,
  .interface-preview {
    grid-template-columns: 1fr;
  }

  .cards.four,
  .workflow,
  .feature-grid,
  .download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-block {
    grid-template-columns: 1fr;
  }

  .interface-editor {
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
}

@media (max-width: 720px) {
  .container {
    width: min(100% - 28px, 1140px);
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    padding-top: 56px;
  }

  .site-header {
    position: static;
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
    gap: 12px;
  }

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

  .nav a {
    padding: 7px 9px;
    font-size: 14px;
  }

  h1 {
    font-size: 42px;
  }

  .lead {
    font-size: 19px;
  }

  .mock-layout,
  .cards.four,
  .workflow,
  .feature-grid,
  .download-grid,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .mock-editor {
    border-right: 0;
    border-bottom: 1px solid var(--border);
    font-size: 16px;
  }

  .download-card,
  .card,
  .feature-block,
  .windows-card,
  .path-box {
    padding: 22px;
  }

  .windows-card {
    align-items: flex-start;
    flex-direction: column;
  }

  .mini-cards {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: start;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 30px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .line span,
  .interface-editor span {
    width: 24px;
  }

  .mock-editor,
  .interface-editor,
  .interface-panel {
    padding: 18px;
  }
}
