/* Leave It Running — beta indirme sayfasi.
   Renkler uygulama ikonundan: gece lacivert zemin, sicak sari vurgu.
   Hicbir anlam yalniz renkle tasinmaz: durumlar metin ve simgeyle birlikte. */

:root {
  color-scheme: dark;

  --bg: oklch(0.19 0.06 268);
  --bg-deep: oklch(0.15 0.05 268);
  --surface: oklch(1 0 0 / 0.045);
  --surface-strong: oklch(1 0 0 / 0.07);
  --ring: 0 0 0 1px oklch(1 0 0 / 0.08);
  --ring-hover: 0 0 0 1px oklch(1 0 0 / 0.14);

  --text: oklch(0.96 0.01 268);
  --text-2: oklch(0.80 0.025 268);
  --text-3: oklch(0.70 0.03 268);

  --accent: oklch(0.86 0.15 88);
  --accent-hover: oklch(0.90 0.14 90);
  --on-accent: oklch(0.20 0.06 268);

  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, monospace;

  /* tip olcegi */
  --t-caption: 0.8125rem; /* 13 */
  --t-small: 0.9375rem;   /* 15 */
  --t-body: 1.0625rem;    /* 17 */
  --t-title: 1.25rem;     /* 20 */
  --t-display: clamp(2.5rem, 1.6rem + 4vw, 3.5rem);

  --ease-out: cubic-bezier(0.2, 0, 0, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  font-size: var(--t-body);
  line-height: 1.55;
  color: var(--text);
  background:
    radial-gradient(60rem 28rem at 50% -8rem, oklch(0.86 0.15 88 / 0.10), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

::selection {
  background: oklch(0.86 0.15 88 / 0.35);
  color: var(--text);
}

h1, h2, h3, p, ol, ul, dl, dd {
  margin: 0;
}

a {
  color: var(--accent);
  text-decoration-line: underline;
  text-decoration-thickness: from-font;
  text-underline-offset: 0.18em;
  text-decoration-skip-ink: auto;
  transition: color 150ms ease-out;
}

a:hover {
  color: var(--accent-hover);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

q {
  quotes: "“" "”";
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.muted {
  color: var(--text-3);
}

/* --- yerlesim ----------------------------------------------------------- */

.page {
  width: min(100% - 2.5rem, 40rem);
  margin-inline: auto;
  padding-block: clamp(3rem, 8vh, 5.5rem) 3rem;
  display: grid;
  gap: 1.25rem;
}

/* --- giris -------------------------------------------------------------- */

.hero {
  text-align: center;
  padding-bottom: 1rem;
}

.hero-icon {
  display: block;
  width: 112px;
  height: 112px;
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 12px 28px oklch(0.08 0.04 268 / 0.6));
}

.eyebrow {
  font-size: var(--t-caption);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.75rem;
}

h1 {
  font-family: var(--font-serif);
  font-size: var(--t-display);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.badge {
  display: inline-block;
  vertical-align: 0.55em;
  margin-inline-start: 0.15em;
  padding: 0.3em 0.6em 0.32em;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: var(--t-caption);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  box-shadow: inset 0 0 0 1px oklch(0.86 0.15 88 / 0.45);
  white-space: nowrap;
}

.lede {
  max-width: 30rem;
  margin: 1rem auto 0;
  font-size: var(--t-title);
  line-height: 1.45;
  color: var(--text-2);
  text-wrap: pretty;
}

/* --- not ---------------------------------------------------------------- */

.note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.125rem;
  border-radius: 16px;
  background: oklch(0.86 0.15 88 / 0.08);
  box-shadow: inset 0 0 0 1px oklch(0.86 0.15 88 / 0.22);
  font-size: var(--t-small);
  line-height: 1.5;
  color: var(--text-2);
  text-wrap: pretty;
}

.note strong {
  color: var(--text);
  font-weight: 600;
}

.note-icon {
  flex: none;
  margin-top: 0.05rem;
  color: var(--accent);
}

/* --- indirme ------------------------------------------------------------ */

.download {
  display: grid;
  gap: 0.875rem;
  justify-items: center;
  padding-block: 0.75rem 0.5rem;
}

.download-button {
  display: inline-flex;
  align-items: center;
  gap: 0.875rem;
  min-height: 4rem;
  padding: 0.875rem 1.75rem 0.875rem 1.5rem; /* ikon tarafi optik olarak dar */
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
  text-decoration: none;
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.35) inset,
    0 10px 30px -8px oklch(0.86 0.15 88 / 0.45),
    0 2px 6px oklch(0.08 0.04 268 / 0.5);
  transition-property: transform, background-color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.download-button:hover {
  background: var(--accent-hover);
  color: var(--on-accent);
  box-shadow:
    0 1px 0 0 oklch(1 0 0 / 0.4) inset,
    0 14px 36px -8px oklch(0.86 0.15 88 / 0.55),
    0 2px 6px oklch(0.08 0.04 268 / 0.5);
}

.download-button:active {
  transform: scale(0.96);
}

.download-button:focus-visible {
  outline-color: var(--text);
  outline-offset: 4px;
}

.download-button svg {
  flex: none;
}

.download-text {
  display: grid;
  text-align: start;
}

.download-label {
  font-size: var(--t-title);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.download-meta {
  font-size: var(--t-caption);
  font-weight: 500;
  line-height: 1.35;
  opacity: 0.78;
  font-variant-numeric: tabular-nums;
}

.requirements {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 0.85rem;
  font-size: var(--t-small);
  color: var(--text-2);
  text-align: center;
}

.requirements li {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
}

.requirements li + li::before {
  content: "·";
  margin-inline-end: 0.85rem;
  color: var(--text-3);
}

/* --- kartlar ------------------------------------------------------------ */

.card {
  padding: clamp(1.375rem, 1rem + 2vw, 2rem);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--ring);
}

.card > h2 {
  font-size: var(--t-title);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}

/* --- adimlar ------------------------------------------------------------ */

.steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 1.25rem;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 2rem 1fr;
  column-gap: 0.875rem;
}

.steps li::before {
  content: counter(step);
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: var(--surface-strong);
  box-shadow: var(--ring);
  font-size: var(--t-small);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.steps h3 {
  font-size: var(--t-body);
  font-weight: 600;
  line-height: 1.3;
  padding-top: 0.25rem;
}

.steps p {
  margin-top: 0.25rem;
  font-size: var(--t-small);
  line-height: 1.55;
  color: var(--text-2);
  text-wrap: pretty;
}

.steps strong {
  color: var(--text);
  font-weight: 600;
}

.file {
  font-family: var(--font-mono);
  font-size: 0.875em;
  color: var(--text);
  overflow-wrap: anywhere;
}

/* --- surum bilgisi ------------------------------------------------------ */

.facts {
  display: grid;
}

.facts > div {
  display: grid;
  grid-template-columns: 8.5rem 1fr;
  gap: 1rem;
  padding-block: 0.625rem;
  border-top: 1px solid oklch(1 0 0 / 0.07);
  font-size: var(--t-small);
}

.facts > div:first-child {
  border-top: 0;
  padding-top: 0;
}

.facts dt {
  color: var(--text-3);
}

.facts dd {
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.verified svg {
  flex: none;
  color: var(--accent);
}

.hash {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: oklch(0.12 0.04 268 / 0.55);
  box-shadow: var(--ring);
}

.hash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.hash-head h3 {
  font-size: var(--t-caption);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hash-value {
  display: block;
  font-size: var(--t-small);
  line-height: 1.6;
  color: var(--text);
  overflow-wrap: anywhere;
  word-break: break-all;
}

.hash-help {
  margin-top: 1rem;
  font-size: var(--t-caption);
  color: var(--text-3);
}

.command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.5rem;
  padding: 0.375rem 0.375rem 0.375rem 0.75rem;
  border-radius: 14px; /* 8 (dugme) + 6 (bosluk) */
  background: oklch(1 0 0 / 0.04);
  box-shadow: var(--ring);
}

.command code {
  font-size: var(--t-caption);
  color: var(--text-2);
  overflow-wrap: anywhere;
}

.alt-file {
  margin-top: 1rem;
  font-size: var(--t-caption);
  color: var(--text-3);
  overflow-wrap: anywhere;
}

/* --- kopyala dugmesi ---------------------------------------------------- */

.copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0.25rem 0.625rem 0.25rem 0.5rem;
  border: 0;
  border-radius: 8px;
  background: var(--surface-strong);
  box-shadow: var(--ring);
  color: var(--text-2);
  font: inherit;
  font-size: var(--t-caption);
  font-weight: 500;
  cursor: pointer;
  transition-property: transform, color, box-shadow;
  transition-duration: 150ms;
  transition-timing-function: ease-out;
}

.copy:hover {
  color: var(--text);
  box-shadow: var(--ring-hover);
}

.copy:active {
  transform: scale(0.96);
}

.copy-icons {
  position: relative;
  display: inline-grid;
  width: 16px;
  height: 16px;
}

.copy-icons svg {
  grid-area: 1 / 1;
  transition-property: opacity, scale, filter;
  transition-duration: 200ms;
  transition-timing-function: var(--ease-out);
}

.copy .i-check {
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}

.copy[data-copied] {
  color: var(--text);
}

.copy[data-copied] .i-copy {
  opacity: 0;
  scale: 0.25;
  filter: blur(4px);
}

.copy[data-copied] .i-check {
  opacity: 1;
  scale: 1;
  filter: blur(0);
  color: var(--accent);
}

/* --- yardim ------------------------------------------------------------- */

.help {
  padding: 1.75rem 0.5rem 0.25rem;
  text-align: center;
}

.help h2 {
  font-family: var(--font-serif);
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

.help p {
  max-width: 28rem;
  margin: 0.625rem auto 0;
  font-size: var(--t-small);
  color: var(--text-2);
  text-wrap: pretty;
}

.footer {
  padding-top: 1.5rem;
  border-top: 1px solid oklch(1 0 0 / 0.07);
  text-align: center;
  font-size: var(--t-caption);
  color: var(--text-3);
}

/* --- giris hareketi: sayfa basina bir kez ------------------------------- */

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    animation: reveal 500ms var(--ease-out) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }

  @keyframes reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
  }
}

@media (prefers-reduced-motion: reduce) {
  .download-button:active,
  .copy:active {
    transform: none;
  }

  .copy-icons svg {
    transition-property: opacity;
    scale: 1 !important;
    filter: none !important;
  }
}

/* --- dar ekran ---------------------------------------------------------- */

@media (max-width: 30rem) {
  .requirements {
    flex-direction: column;
    align-items: center;
  }

  .requirements li + li::before {
    content: none;
  }

  .facts > div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }

  .download-button {
    width: 100%;
    justify-content: center;
  }
}
