:root {
  color-scheme: dark;
  --bg: #0e0f10;
  --bg-soft: #17191b;
  --text: #f2eee7;
  --muted: #b8ae9f;
  --line: #2f2a24;
  --primary: #d4682f;
  --primary-strong: #b75322;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
}

.page {
  width: min(1120px, 100%);
  margin: 0 auto;
  min-height: 100vh;
  padding: 2rem 1.25rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.topbar {
  margin-bottom: 4.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  margin: 0;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #dccfbd;
}

.hero {
  max-width: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-size: 0.74rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.2vw, 4rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
}

.value-prop {
  margin: 1.25rem 0 0;
  font-size: clamp(1.04rem, 2vw, 1.2rem);
  line-height: 1.62;
  color: #dfd5c8;
  max-width: 58ch;
}

.proof {
  margin: 1.1rem 0 0;
  color: #d6c4b1;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
}

.top-proof {
  margin: 0;
  text-align: right;
  max-width: 36ch;
}

.actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0.72rem;
  padding: 0.8rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background-color 0.14s ease, border-color 0.14s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #1b110b;
  background: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  color: var(--text);
  border-color: var(--line);
  background: rgba(26, 23, 20, 0.72);
}

.btn-secondary:hover {
  border-color: #5a4b3f;
}

.support {
  margin-top: 6rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 1rem;
  flex-direction: column;
}

.note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  max-width: 66ch;
}

.modal.hidden {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 14, 0.72);
}

.modal-panel {
  position: relative;
  width: min(900px, calc(100% - 2rem));
  margin: 4vh auto 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.4rem;
  background: #161312;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.42);
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.7rem;
  border: none;
  border-radius: 0.45rem;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--text);
}

.modal-panel h2 {
  margin: 0;
}

.config-subtitle {
  margin: 0.45rem 0 1rem;
  color: var(--muted);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.tab {
  border: 1px solid var(--line);
  background: #221d1a;
  color: #e8ddd0;
  padding: 0.45rem 0.78rem;
  border-radius: 0.6rem;
  cursor: pointer;
}

.tab.is-active {
  background: #37281f;
  border-color: #85563f;
}

.tab-panel {
  display: none;
}

.tab-panel.is-active {
  display: block;
}

pre {
  margin: 0;
  overflow: auto;
  border: 1px solid #44362e;
  background: #12100f;
  border-radius: 0.75rem;
  padding: 0.85rem;
  color: #f0e5d8;
  line-height: 1.52;
}

.copy-btn {
  margin-top: 0.6rem;
  border: 1px solid var(--line);
  background: #2d241f;
  color: #f2e7da;
  padding: 0.42rem 0.75rem;
  border-radius: 0.5rem;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: #7f5b47;
}

@media (max-width: 700px) {
  .page {
    padding-top: 1.5rem;
  }

  .topbar {
    margin-bottom: 3rem;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .top-proof {
    text-align: center;
  }

  .modal-panel {
    margin-top: 2vh;
    padding: 1rem;
  }

  .support {
    margin-top: 4rem;
    align-items: center;
  }
}
