:root {
  color-scheme: light;
  font-family: Inter, 'Segoe UI', system-ui, sans-serif;
  background: #fbfaf8;
  color: #242421;
  --muted: #585750;
  --line: #d9d7d2;
  --accent: #28634e;
}

* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
a {
  color: var(--accent);
  text-underline-offset: 0.2em;
}
button,
input {
  font: inherit;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.site-header {
  width: min(100% - 40px, 1340px);
  margin: auto;
  border-bottom: 1px solid var(--line);
  padding: 18px 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.brand-mark {
  display: block;
  border-radius: 8px;
}

main {
  width: min(100% - 40px, 1120px);
  margin: auto;
}

.hero {
  text-align: center;
  padding: clamp(42px, 6vw, 76px) 0 clamp(36px, 5vw, 54px);
}

h1 {
  max-width: 1040px;
  margin: 0 auto;
  font-size: clamp(2rem, 5.2vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.hero p {
  max-width: 700px;
  margin: 22px auto 28px;
  color: var(--muted);
  font-size: clamp(1rem, 2.1vw, 1.25rem);
  line-height: 1.5;
  text-wrap: balance;
}

.actions,
.mac-download {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.hero .actions {
  justify-content: center;
  gap: 14px 20px;
}
.mac-download {
  color: var(--muted);
  font-size: 0.9rem;
}
.button {
  min-height: 46px;
  padding: 10px 17px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  font-weight: 650;
}

.button.primary {
  background: #242421;
  border-color: #242421;
  color: white;
  cursor: pointer;
}
.button.primary:hover:not(:disabled) {
  background: #40403a;
}
.button:disabled {
  color: #686660;
  cursor: default;
}
.button.primary:disabled {
  color: #d9d7d2;
}
.demo-link {
  padding: 10px 4px;
  font-weight: 650;
}
.demo-link::before {
  content: '▶';
  margin-right: 0.5em;
  font-size: 0.8em;
}

.demo {
  position: relative;
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #232323;
  color: #f1f1ef;
  scroll-margin-top: 20px;
}

.demo img {
  display: block;
  width: 100%;
  height: clamp(270px, 35vw, 410px);
  object-fit: cover;
  object-position: top left;
}

.notification {
  position: absolute;
  right: clamp(12px, 2vw, 28px);
  bottom: 20px;
  width: min(360px, 45%);
  padding: 15px 17px;
  border: 1px solid #4b4b4b;
  border-radius: 9px;
  background: #2b2b2b;
  font-size: 0.925rem;
  line-height: 1.42;
}

.notification p {
  margin: 6px 0 0;
  color: #dededb;
}
.notification .answer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid #4b4b4b;
}
.installation {
  max-width: 700px;
  padding: 44px 0 54px;
}
.installation ol {
  padding-left: 1.25em;
  line-height: 1.65;
}

dialog {
  width: min(100% - 32px, 470px);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fbfaf8;
  color: inherit;
}

dialog::backdrop {
  background: rgb(24 24 24 / 50%);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.dialog-heading h2 {
  margin: 0;
  font-size: 1.35rem;
}
.dialog-heading button {
  min-width: 36px;
  min-height: 36px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.5rem;
}
dialog p {
  color: var(--muted);
  line-height: 1.5;
}
dialog label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
}
dialog input {
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #807d76;
  border-radius: 6px;
  background: white;
}
dialog .actions {
  margin-top: 18px;
}

@media (max-width: 640px) {
  main,
  .site-header {
    width: calc(100% - 32px);
  }
  .hero .actions {
    flex-direction: column;
    gap: 10px;
  }
  .demo {
    display: grid;
    min-height: 0;
  }
  .demo img {
    height: 150px;
    object-fit: cover;
    object-position: top center;
  }
  .notification {
    position: static;
    width: auto;
    margin: 10px;
  }
}
