/* Windows Codex Cleanup — dexa.art/clean */

.brand-mark {
  display: block;
  object-fit: contain;
}

.clean-shell {
  width: min(1180px, calc(100% - 80px));
  margin: 0 auto;
  padding: 48px 0 96px;
}

.download-panel {
  position: relative;
  overflow: hidden;
  min-height: 640px;
  padding: clamp(34px, 6vw, 76px);
  border-radius: 18px;
  background:
    radial-gradient(circle at 82% 12%, rgba(94, 231, 243, 0.12), transparent 32%),
    var(--ink);
  color: #f7fafc;
}

.download-panel::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -24%;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  border: 1px solid var(--ink-key2);
  border-radius: 50%;
  box-shadow:
    0 0 0 40px rgba(42, 43, 46, 0.35),
    0 0 0 80px rgba(42, 43, 46, 0.18);
  pointer-events: none;
}

.panel-status {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: clamp(44px, 8vw, 88px);
  color: var(--ink-text);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.status-ok {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--cyan);
}

.status-ok i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(94, 231, 243, 0.7);
}

.utility-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  margin-bottom: 28px;
  padding: 11px 14px;
  border: 1px solid var(--ink-key2);
  border-radius: 7px;
  background: var(--ink-display);
  color: var(--cyan);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.download-panel h1 {
  position: relative;
  z-index: 1;
  max-width: 870px;
  margin: 0;
  font-size: clamp(42px, 7vw, 88px);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
}

.download-panel h1 span {
  color: var(--cyan);
}

.lead {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 28px 0 0;
  color: #a3a6ad;
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 500;
  line-height: 1.75;
}

.download-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 44px;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: min(100%, 390px);
  padding: 18px 22px;
  border: 2px solid var(--orange);
  border-radius: 10px;
  background: var(--orange);
  color: var(--ink);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.download-button:hover {
  transform: translateY(-2px);
  border-color: #ff7440;
  background: #ff7440;
}

.download-button:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

.download-icon {
  display: grid;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  place-items: center;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 25px;
  line-height: 1;
}

.download-button strong,
.download-button small {
  display: block;
}

.download-button strong {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.download-button small {
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  opacity: 0.68;
}

.download-note {
  max-width: 190px;
  margin: 0;
  color: var(--ink-text);
  font-size: 12px;
  line-height: 1.6;
}

.steps {
  padding: 80px 0 72px;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin: -4px 0 4px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.step-grid li {
  min-height: 240px;
  padding: 28px;
  background: var(--paper);
}

.step-number {
  color: var(--orange);
  font-size: 11px;
  letter-spacing: 0.08em;
}

.step-grid h3 {
  margin: 56px 0 12px;
  font-size: 21px;
  letter-spacing: -0.025em;
}

.step-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.step-grid strong {
  color: var(--ink);
}

.step-grid code,
.scope-grid code {
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.scope-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding-top: 72px;
  border-top: 1px solid var(--line);
}

.scope-grid article {
  min-height: 300px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
}

.scope-grid article:first-child {
  background: var(--ink);
  color: #f7fafc;
}

.scope-grid article:first-child .dx-kicker {
  color: var(--cyan);
}

.scope-grid h2 {
  margin: 18px 0 22px;
  font-size: clamp(22px, 3vw, 30px);
  letter-spacing: -0.025em;
}

.scope-grid ul {
  margin: 0;
  padding-left: 20px;
}

.scope-grid li {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.scope-grid article:first-child li {
  color: #a3a6ad;
}

.scope-grid article:first-child code {
  border-color: var(--ink-key2);
  background: var(--ink-display);
  color: var(--cyan);
}

.integrity {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  margin-top: 20px;
  padding: 24px 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.integrity strong {
  display: block;
  margin-top: 5px;
  font-size: 16px;
}

.integrity code {
  overflow-wrap: anywhere;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.035em;
}

.dx-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-link {
  color: var(--orange);
  font-size: 10px;
  letter-spacing: 0.06em;
}

@media (max-width: 700px) {
  .clean-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 20px;
  }

  .download-panel {
    min-height: 0;
    padding: 32px 24px 38px;
    border-radius: 12px;
  }

  .panel-status {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 46px;
  }

  .download-panel h1 {
    font-size: clamp(39px, 13vw, 58px);
  }

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

  .download-button {
    width: 100%;
    min-width: 0;
  }

  .download-note {
    max-width: none;
  }

  .steps {
    padding: 60px 0;
  }

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

  .step-grid li {
    min-height: 210px;
  }

  .integrity {
    grid-template-columns: 1fr;
  }

  .dx-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button {
    transition: none;
  }
}
