/* ═══════════════════════════════════════════════════════════
   YHITL Forjal — Download Site
   Design System: Augen Pro · Accent: Lava Orange
   ═══════════════════════════════════════════════════════════ */

:root {
  color-scheme: light;

  /* Colors — Augen Pro tokens */
  --color-off-black: #0f1012;
  --color-pure-black: #020201;
  --color-off-white: #f2f2f4;
  --color-pure-white: #fdfdfd;
  --color-steel-gray: #5e5e5e;
  --color-ash-gray: #8f8f8f;
  --color-lava-orange: #E8590C;

  /* Surfaces */
  --surface-canvas: var(--color-off-white);
  --surface-elevated: var(--color-pure-white);
  --surface-dark: var(--color-off-black);

  /* Borders */
  --border-structural: 0.5px solid rgba(0, 0, 0, 0.06);
  --border-interactive: 0.5px solid var(--color-lava-orange);

  /* Spacing */
  --spacing-section: 94px;
  --spacing-card: 69px;
  --page-max-width: 1200px;

  /* Radii */
  --radius-cards: 54px;
  --radius-buttons: 26px;
  --radius-nav: 10px;
  --radius-pills: 9999px;
  --radius-containers: 63px;
  --radius-sm: 10px;

  /* Motion */
  --motion-micro: 100ms ease-out;
  --motion-standard: 200ms cubic-bezier(.4, 0, .2, 1);
  --motion-emphasis: 350ms cubic-bezier(.4, 0, 0, 1);
  --motion-enter: 400ms cubic-bezier(0, 0, .2, 1);

  /* Typography */
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 350;
  letter-spacing: -0.02em;
  line-height: 1.20;
}

/* ── Reset ──────────────────────────────────────────────── */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--color-off-black);
  background: var(--surface-canvas);
}

a {
  color: inherit;
}

/* ── Page Shell ─────────────────────────────────────────── */

.page-shell {
  width: min(var(--page-max-width), calc(100% - 40px));
  margin: 0 auto;
}

/* ── Navigation ─────────────────────────────────────────── */

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
  font-weight: 350;
  text-decoration: none;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-nav);
  color: var(--color-pure-white);
  background: var(--color-off-black);
  font-size: 14px;
  font-weight: 400;
}

.alpha-pill,
.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: var(--border-interactive);
  border-radius: var(--radius-pills);
  padding: 6px 11px;
  color: var(--color-lava-orange);
  background: transparent;
  font-size: 10px;
  font-weight: 350;
  letter-spacing: 0.04em;
}

/* ── Hero ───────────────────────────────────────────────── */

.hero {
  min-height: 580px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: var(--spacing-card);
  align-items: center;
  padding: var(--spacing-card) 0 var(--spacing-section);
}

.eyebrow,
.card-kicker {
  margin: 0 0 16px;
  color: var(--color-steel-gray);
  font-size: 10px;
  font-weight: 350;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(48px, 7vw, 72px);
  font-weight: 350;
  line-height: 0.96;
  letter-spacing: -0.02em;
}

.lede {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--color-steel-gray);
  font-size: 18px;
  line-height: 1.45;
}

/* ── Download Actions ──────────────────────────────────── */

.download-actions {
  display: grid;
  justify-items: start;
  gap: 12px;
  margin-top: 35px;
}

.download-button {
  width: fit-content;
  min-width: 320px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border: 0.5px solid rgba(0, 0, 0, 0.10);
  border-radius: var(--radius-buttons);
  padding: 16px 22px;
  color: var(--color-pure-black);
  background: rgba(15, 16, 18, 0.04);
  font-size: 16px;
  font-weight: 350;
  text-decoration: none;
  transition: background var(--motion-standard), border-color var(--motion-standard);
}

.download-button:hover {
  background: rgba(15, 16, 18, 0.08);
  border-color: rgba(0, 0, 0, 0.16);
}

.download-button.secondary {
  color: var(--color-lava-orange);
  background: rgba(232, 89, 12, 0.07);
  border-color: rgba(232, 89, 12, 0.22);
}

.download-button.secondary:hover {
  background: rgba(232, 89, 12, 0.11);
  border-color: rgba(232, 89, 12, 0.36);
}

.download-button:focus-visible,
button:focus-visible {
  outline: 2px solid rgba(232, 89, 12, 0.25);
  outline-offset: 3px;
}

.download-button.is-disabled {
  pointer-events: none;
  opacity: 0.4;
}

.button-meta {
  font-size: 10px;
  font-weight: 350;
  color: var(--color-ash-gray);
}

.compatibility {
  margin: 12px 0 0;
  color: var(--color-ash-gray);
  font-size: 10px;
}

/* ── Release Card ──────────────────────────────────────── */

.release-card {
  position: relative;
  overflow: hidden;
  border: var(--border-structural);
  border-radius: var(--radius-cards);
  padding: var(--spacing-card);
  background: var(--surface-elevated);
}

.release-header {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.card-kicker {
  margin-bottom: 8px;
  color: var(--color-ash-gray);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.release-card h2,
.steps h2,
.notice h2 {
  margin: 0;
  font-size: 27px;
  font-weight: 350;
  letter-spacing: -0.02em;
}

.status-dot i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #D97706;
}

/* ── Release Facts ─────────────────────────────────────── */

.release-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 30px 0 22px;
}

.release-facts div {
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-canvas);
}

.release-facts dt,
.checksum span {
  margin-bottom: 5px;
  color: var(--color-ash-gray);
  font-size: 10px;
  font-weight: 350;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.release-facts dd {
  margin: 0;
  font-size: 13px;
  font-weight: 350;
}

/* ── Platform Downloads ───────────────────────────────── */

.platform-downloads {
  display: grid;
  gap: 12px;
}

.platform-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  border: var(--border-structural);
  border-radius: var(--radius-sm);
  padding: 14px;
  background: var(--surface-canvas);
}

.platform-row h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.platform-row p {
  margin: 5px 0 9px;
  color: var(--color-steel-gray);
  font-size: 11px;
  line-height: 1.35;
}

.platform-row code {
  display: block;
  overflow: hidden;
  color: var(--color-steel-gray);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.platform-actions {
  display: grid;
  justify-items: end;
  gap: 7px;
}

.platform-actions a,
.platform-actions button {
  border: 0;
  padding: 0;
  color: var(--color-lava-orange);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  text-decoration: none;
  cursor: pointer;
  transition: opacity var(--motion-micro);
}

.platform-actions a:hover,
.platform-actions button:hover {
  opacity: 0.7;
}

/* ── Checksum ──────────────────────────────────────────── */

.checksum {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  border: var(--border-structural);
  border-radius: var(--radius-sm);
  padding: 14px;
}

.checksum span {
  grid-column: 1 / -1;
  margin: 0;
}

.checksum code {
  overflow: hidden;
  color: var(--color-steel-gray);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.checksum button {
  border: 0;
  padding: 0;
  color: var(--color-lava-orange);
  background: transparent;
  font: inherit;
  font-size: 11px;
  font-weight: 400;
  cursor: pointer;
  transition: opacity var(--motion-micro);
}

.checksum button:hover {
  opacity: 0.7;
}

.checksum button:disabled {
  color: var(--color-ash-gray);
  cursor: default;
}

.checksum a {
  grid-column: 1 / -1;
  width: fit-content;
  color: var(--color-lava-orange);
  font-size: 11px;
  font-weight: 350;
  text-decoration: none;
  transition: opacity var(--motion-micro);
}

.checksum a:hover {
  opacity: 0.7;
}

.checksum a[aria-disabled="true"] {
  color: var(--color-ash-gray);
  pointer-events: none;
}

.release-note {
  margin: 18px 2px 0;
  color: var(--color-steel-gray);
  font-size: 13px;
  line-height: 1.45;
}

/* ── Steps Section ─────────────────────────────────────── */

.steps {
  padding: var(--spacing-section) 0;
}

.section-intro {
  max-width: 620px;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 35px 0 0;
  padding: 0;
  list-style: none;
}

.step-grid li {
  min-height: 200px;
  border: var(--border-structural);
  border-radius: var(--radius-cards);
  padding: 34px;
  background: var(--surface-elevated);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--motion-enter), transform var(--motion-enter);
}

.step-grid li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.step-grid span {
  display: block;
  margin-bottom: 35px;
  color: var(--color-lava-orange);
  font-size: 10px;
  font-weight: 350;
  letter-spacing: 0.04em;
}

.step-grid h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 350;
  letter-spacing: -0.02em;
}

.step-grid p {
  margin: 8px 0 0;
  color: var(--color-steel-gray);
  font-size: 13px;
  line-height: 1.45;
}

/* ── Notice ────────────────────────────────────────────── */

.notice {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: var(--spacing-card);
  align-items: center;
  border: var(--border-structural);
  border-radius: var(--radius-buttons);
  padding: 35px 42px;
  background: var(--surface-elevated);
}

.notice .eyebrow {
  color: var(--color-ash-gray);
}

.notice p:last-child {
  margin: 0;
  color: var(--color-steel-gray);
  font-size: 14px;
  line-height: 1.55;
}

.first-open {
  padding: 88px 0;
}

.first-open-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.first-open-grid article {
  min-height: 220px;
  padding: 32px;
  border: var(--border-structural);
  border-radius: 28px;
  background: var(--surface-elevated);
}

.first-open-grid article > span {
  color: var(--color-lava-orange);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.first-open-grid h3 {
  margin: 34px 0 12px;
  font-size: 20px;
  font-weight: 500;
}

.first-open-grid p {
  margin: 0;
  color: var(--color-steel-gray);
  font-size: 14px;
  line-height: 1.65;
}

.first-open-grid ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
  color: var(--color-steel-gray);
  font-size: 14px;
  line-height: 1.6;
}

.first-open-grid ol strong {
  color: var(--color-off-black);
  font-weight: 500;
}

.first-open-aside {
  margin-top: 16px;
  padding: 28px 32px;
  border: var(--border-structural);
  border-radius: 28px;
  background: var(--surface-elevated);
}

.first-open-aside h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
}

.first-open-aside p {
  max-width: 72ch;
  margin: 0;
  color: var(--color-steel-gray);
  font-size: 14px;
  line-height: 1.65;
}

.first-open-aside pre {
  /* The command is one long line; it scrolls in place rather than widening
     the page on a narrow screen. */
  overflow-x: auto;
  margin: 16px 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-dark);
}

.first-open-aside code {
  color: var(--color-off-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0;
  white-space: pre;
}

/* ── Verify ────────────────────────────────────────────── */

.verify {
  padding: 0 0 88px;
}

.verify-lede {
  max-width: 62ch;
  margin: 28px 0 0;
  color: var(--color-steel-gray);
  font-size: 15px;
  line-height: 1.6;
}

.verify-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.verify-grid article {
  padding: 28px 32px;
  border: var(--border-structural);
  border-radius: 28px;
  background: var(--surface-elevated);
}

.verify-grid article > span {
  color: var(--color-lava-orange);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.12em;
}

.verify-grid pre {
  /* A long artifact name must scroll inside the card, never widen the page. */
  overflow-x: auto;
  margin: 18px 0 0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-dark);
}

.verify-grid code {
  color: var(--color-off-white);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  letter-spacing: 0;
  white-space: pre;
}

/* ── Alpha scope ───────────────────────────────────────── */

.scope {
  padding: 0 0 88px;
}

.scope-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 36px 0 0;
  padding: 0;
}

.scope-list li {
  padding: 30px 32px;
  border: var(--border-structural);
  border-radius: 28px;
  background: var(--surface-elevated);
}

.scope-list h3 {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 500;
}

.scope-list p {
  margin: 0;
  color: var(--color-steel-gray);
  font-size: 14px;
  line-height: 1.65;
}

/* ── Footer ────────────────────────────────────────────── */

footer {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: var(--border-structural);
  color: var(--color-steel-gray);
  font-size: 12px;
}

footer span:first-child {
  color: var(--color-off-black);
  font-weight: 350;
}

/* ── Scroll-triggered visibility ───────────────────────── */

.hero,
.section-intro,
.notice,
.first-open-grid article,
.verify-grid article,
.scope-list li {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity var(--motion-enter), transform var(--motion-enter);
}

.hero.is-visible,
.section-intro.is-visible,
.notice.is-visible,
.first-open-grid article.is-visible,
.verify-grid article.is-visible,
.scope-list li.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive: 900px ─────────────────────────────────── */

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 48px;
  }

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

  .first-open-grid,
  .verify-grid,
  .scope-list {
    grid-template-columns: 1fr;
  }

  .notice {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

/* ── Responsive: 560px ─────────────────────────────────── */

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 28px, var(--page-max-width));
  }

  .nav {
    min-height: 72px;
  }

  .alpha-pill {
    display: none;
  }

  .hero {
    padding: 40px 0 60px;
  }

  h1 {
    font-size: clamp(40px, 14vw, 60px);
  }

  .download-button {
    width: 100%;
    min-width: 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .download-actions {
    justify-items: stretch;
  }

  .platform-row {
    grid-template-columns: 1fr;
  }

  .platform-actions {
    justify-items: start;
  }

  .release-card {
    border-radius: 28px;
    padding: 28px;
  }

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

  .step-grid li {
    min-height: 0;
    border-radius: 28px;
    padding: 24px;
  }

  .first-open {
    padding: 64px 0;
  }

  .first-open-grid article {
    min-height: 0;
    padding: 24px;
  }

  .step-grid span {
    margin-bottom: 22px;
  }

  .notice {
    padding: 24px;
    border-radius: 20px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
  }
}

/* ── Reduced motion ────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero,
  .section-intro,
  .notice,
  .first-open-grid article,
  .step-grid li {
    opacity: 1;
    transform: none;
  }
}
