:root {
  --bg: #ebe8e3;
  --text: #1c1c1c;
  --muted: #6a6762;
  --border: #d3cfc8;
  --btn-bg: #f7f5f1;
  --btn-soon-bg: #e3e0da;
  --ink: #1a1a1a;
  --link: #0b57d0;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: rgba(235, 232, 227, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

.site-header-inner {
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.site-brand img {
  width: 3.25rem;
  height: 3.25rem;
  flex-shrink: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.mobile-menu {
  display: none;
}

.site-nav a {
  padding: 0.45rem 0.65rem;
  border-radius: 7px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.site-nav a:hover {
  background: var(--btn-bg);
  color: var(--text);
}

.site-nav a.nav-download {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  border-radius: 8px;
  background: var(--ink);
  color: #f7f5f1;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(26, 26, 26, 0.18);
  transition: background 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.site-nav a.nav-download .nav-download-icon {
  width: 1rem;
  height: 1rem;
  fill: currentColor;
  flex-shrink: 0;
}

.site-nav a.nav-download:hover {
  background: #2c2c2c;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(26, 26, 26, 0.22);
}

main {
  width: 100%;
  max-width: 46rem;
  margin: 3.5rem auto 4.5rem;
  padding: 0 1.5rem 2rem;
  flex: 1 0 auto;
}

.page-home {
  max-width: 72rem;
}

.page-download {
  max-width: 52rem;
}

h1 {
  margin: 0 0 1.25rem;
  font-size: 2rem;
  letter-spacing: -0.03em;
  font-weight: 650;
}

h2 {
  margin: 2rem 0 0.6rem;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  font-weight: 650;
}

h3 {
  margin: 1.4rem 0 0.4rem;
  font-size: 1.02rem;
  font-weight: 650;
}

a {
  color: var(--link);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--border);
}

.home-hero {
  --hero-title-size: clamp(3rem, 5.2vw, 4.25rem);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  column-gap: clamp(2rem, 5vw, 4.5rem);
  row-gap: 0.85rem;
}

.home-hero h1 {
  margin: 0;
  font-size: var(--hero-title-size);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.home-demo {
  grid-column: 1;
}

.home-download {
  grid-column: 2;
}

.home-demo,
.home-download {
  justify-self: center;
  justify-content: center;
  width: calc(100% * 820 / 960);
}

.product-media {
  position: relative;
  aspect-ratio: 4 / 3;
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
}

.product-media img {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
}

.product-media-animation img {
  object-fit: contain;
}

.product-media-animation {
  border: 0;
  aspect-ratio: 960 / 580;
  margin-top: calc(var(--hero-title-size) * 0.36);
}

.step-media {
  aspect-ratio: auto;
}

.step-media img {
  height: auto;
}

.steps {
  margin: clamp(4rem, 8vw, 7rem) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(3.5rem, 7vw, 6rem);
  list-style: none;
  counter-reset: guide-step;
}

.step {
  counter-increment: guide-step;
  display: grid;
  grid-template-columns: minmax(18rem, 0.85fr) minmax(24rem, 1.15fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}

.step:nth-child(even):not(.step-final) .step-copy {
  order: 2;
}

.step-copy {
  font-size: 1.4rem;
}

.step-copy::before {
  content: counter(guide-step);
  float: left;
  width: 2.4rem;
  height: 2.4rem;
  margin: 0.15rem 0.9rem 0.35rem 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #f7f5f1;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
}

.step-copy p {
  margin: 0;
}

.step-final {
  grid-template-columns: 1fr;
}

.downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 0 0 2rem;
}

.btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 4.5rem;
  padding: 1rem 1.5rem;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
  color: var(--text);
  text-decoration: none;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 0.4rem 1.2rem rgba(26, 26, 26, 0.08);
  transition: box-shadow 160ms ease, transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  background: #fff;
  box-shadow: 0 0.6rem 1.5rem rgba(26, 26, 26, 0.12);
  transform: translateY(-2px);
}

.btn-icon {
  display: flex;
  width: 1.6rem;
  height: 1.6rem;
  fill: currentColor;
  flex-shrink: 0;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.12rem;
  min-width: 0;
}

.btn-label {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.btn-note {
  font-size: 0.72rem;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.btn-soon {
  background: var(--btn-soon-bg);
  color: #6e6b66;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-soon:hover {
  background: var(--btn-soon-bg);
  box-shadow: none;
  transform: none;
}

.btn-soon .btn-note {
  color: #8a8680;
}

.home-demo-mobile {
  display: none;
}

.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: #f7f5f1;
  box-shadow: 0 0.6rem 1.5rem rgba(26, 26, 26, 0.2);
}

.btn-primary .btn-note {
  color: rgba(247, 245, 241, 0.72);
}

.btn-primary:hover {
  background: #2c2c2c;
  border-color: #2c2c2c;
  box-shadow: 0 0.8rem 1.8rem rgba(26, 26, 26, 0.26);
}

.btn-notify:hover {
  background: #fff;
}

.crumb {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.crumb a {
  color: var(--muted);
  text-decoration: none;
}

.crumb a:hover {
  color: var(--text);
  text-decoration: underline;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin: 1.5rem 0 2rem;
}

.release-version {
  margin: -0.75rem 0 1.5rem;
  color: var(--muted);
}

.download-platforms {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.download-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 1.15rem 1rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--btn-bg);
}

.download-platform-icon {
  width: 1.35rem;
  height: 1.35rem;
  fill: currentColor;
  flex-shrink: 0;
}

.download-card h2 {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 1.1rem;
  margin: 0 0 1rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}

.download-options {
  display: grid;
  gap: 0.55rem;
}

.download-options a {
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}

.download-options a:hover {
  border-color: var(--ink);
}

.download-coming-soon {
  margin: 0;
  color: var(--muted);
}

.price-card {
  display: flex;
  flex-direction: column;
  padding: 1.15rem 1.2rem 1.25rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--btn-bg);
}

.price-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.price-card p {
  margin: 0;
}

.price-card .price {
  margin: 0 0 0.55rem;
}

.price-card .amount {
  font-size: 2rem;
  font-weight: 650;
  letter-spacing: -0.03em;
}

.price-card .period {
  color: var(--muted);
}

.price-card .purchase-button {
  align-self: flex-start;
  margin-top: auto;
}

.purchase-button,
.license-form button {
  margin-top: 0.9rem;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #f7f5f1;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.purchase-button:disabled,
.license-form button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.license-form {
  display: grid;
  gap: 0.6rem;
  max-width: 28rem;
  margin: 1.25rem 0;
}

.license-form input {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: var(--btn-bg);
  color: var(--text);
  font: inherit;
}

.form-status {
  min-height: 1.65rem;
  color: var(--muted);
}

.pricing-details {
  margin-top: 1.5rem;
}

.info-panel {
  padding: 1.2rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: rgba(247, 245, 241, 0.55);
}

.info-panel h2 {
  margin-top: 0;
}

.info-panel p:last-child {
  margin-bottom: 0;
}

.policy-section {
  margin-top: 3.5rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.policy-section > h2:first-child {
  margin-top: 0;
  font-size: 1.5rem;
}

.purchase-dialog {
  width: min(30rem, calc(100% - 2rem));
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--text);
  box-shadow: 0 1rem 3rem rgba(28, 28, 28, 0.25);
}

.purchase-dialog::backdrop {
  background: rgba(28, 28, 28, 0.55);
}

.purchase-dialog h2 {
  margin-top: 0;
  font-size: 1.5rem;
}

.purchase-dialog p {
  margin: 0 0 1.25rem;
}

.purchase-dialog label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
}

.license-key-row {
  display: flex;
  gap: 0.6rem;
}

.license-key-row input {
  min-width: 0;
  flex: 1;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
  background: #fff;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 0.9rem;
}

.purchase-dialog .license-key-note {
  margin: 0.75rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.purchase-dialog form {
  display: flex;
  justify-content: flex-end;
}

.purchase-dialog button {
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: #f7f5f1;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.site-footer {
  width: min(72rem, calc(100% - 3rem));
  margin: 0 auto 2.5rem;
  padding-top: 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.25rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: underline;
}

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

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

  .home-hero {
    row-gap: 1.25rem;
  }

  .product-media-animation {
    margin-top: 0;
  }

  .home-download,
  .home-demo {
    grid-column: 1;
  }

  .step {
    gap: 2rem;
  }

  .step:nth-child(even):not(.step-final) .step-copy {
    order: initial;
  }

  .step-copy {
    max-width: 40rem;
    font-size: 1.25rem;
  }
}

@media (max-width: 760px) {
  .site-header-inner > .site-nav,
  a.home-demo {
    display: none;
  }

  .home-demo-mobile {
    display: flex;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    cursor: pointer;
    border-radius: 7px;
    list-style: none;
  }

  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }

  .mobile-menu[open] summary {
    background: var(--btn-bg);
  }

  .mobile-menu .site-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 11rem;
    padding: 0.5rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--btn-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: 0 0.6rem 1.5rem rgba(26, 26, 26, 0.12);
  }
}

@media (max-width: 640px) {
  .site-header {
    position: static;
    background: transparent;
    border-bottom: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    padding: 1.25rem 0 0;
  }

  .site-header-inner {
    width: calc(100% - 2.3rem);
    gap: 0.5rem;
  }

  .site-brand {
    gap: 0.5rem;
    font-size: 1.15rem;
  }

  .site-brand img {
    width: 2.25rem;
    height: 2.25rem;
  }

  .site-nav {
    gap: 0.2rem;
  }

  .site-nav a {
    padding: 0.35rem 0.5rem;
    font-size: 0.85rem;
  }

  .site-nav a.nav-download {
    padding: 0.35rem 0.65rem;
    gap: 0.3rem;
  }

  .site-nav a.nav-download .nav-download-icon {
    width: 0.85rem;
    height: 0.85rem;
  }

  main {
    margin: 2rem auto 3rem;
    padding: 0 1.15rem 1.5rem;
  }

  .downloads,
  .download-platforms,
  .pricing {
    grid-template-columns: 1fr;
  }

  .home-hero h1 {
    font-size: 2.25rem;
  }

  .purchase-button {
    width: 100%;
  }

  .price-card .purchase-button {
    align-self: stretch;
  }
}
