/* Dark4More — dark4more.com
   Renkler uygulamanın kendisinden: gece mavisi zemin, parlaklık için kehribar, %6 altı karartma için mor. */

:root {
  color-scheme: dark;
  --night: #100e26;
  --night-hi: #1a1740;
  --ink: #ece9ff;
  --muted: #a19cc4;
  --line: rgba(236, 233, 255, 0.12);
  --amber: #ffb04a;
  --amber-core: #ffedc7;
  --violet: #7a66ff;
  --violet-core: #cfc6ff;

  --halo: var(--amber);
  --core: var(--amber-core);

  --notch-w: clamp(360px, 30vw, 440px);
  --bar-h: calc(var(--notch-w) * 34 / 320);
  --gutter: clamp(16px, 5vw, 72px);
  --measure: 34rem;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber-core); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 50;
  padding: 6px 12px;
  background: var(--ink);
  color: var(--night);
  border-radius: 6px;
}
.skip:focus { top: 64px; }

h1, h2, h3 {
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  font-variation-settings: "wdth" 85;
  max-width: 16ch;
}

h3 { font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.2; }

p { margin: 0; max-width: var(--measure); text-wrap: pretty; }
p + p { margin-top: 1em; }

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 1.9em;
  height: 1.9em;
  padding: 0 0.45em;
  font: 600 0.85em/1 var(--font);
  color: var(--ink);
  background: linear-gradient(#2a2656, #1f1c45);
  border: 1px solid rgba(236, 233, 255, 0.16);
  border-bottom-width: 3px;
  border-radius: 7px;
}

.wrap {
  width: min(100% - 2 * var(--gutter), 1120px);
  margin-inline: auto;
}

/* ───────── Menü çubuğu: sayfanın üstü bir MacBook ekranı gibi davranır ───────── */

.bar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-inline: clamp(16px, 2.5vw, 32px);
  font-size: 0.875rem;
  font-weight: 500;
  /* Çentiğin iki yanı menü çubuğu; zemin kendisi, altta sadece ince bir ışık çizgisi */
  background: linear-gradient(rgba(5, 4, 16, 0.55), rgba(5, 4, 16, 0));
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 26px; height: 26px; border-radius: 23%; box-shadow: 0 0 0 1px rgba(236, 233, 255, 0.18); }

.bar nav { display: flex; align-items: center; gap: clamp(18px, 2.2vw, 30px); }
.bar nav a { text-decoration: none; color: var(--muted); transition: color 0.15s; }
.bar nav a:hover { color: var(--ink); }
.bar nav .bar-cta {
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--amber-core);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(255, 176, 74, 0.55);
  transition: background 0.15s, color 0.15s;
}
.bar nav .bar-cta:hover { background: var(--amber); color: #1b1300; }

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

.hero {
  position: relative;
  min-height: max(100svh, 720px);
  display: flex;
  align-items: center;
  padding: 150px var(--gutter) 96px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(122, 102, 255, 0.16), transparent 70%),
    var(--night);
  overflow: hidden;
  isolation: isolate;
}

.hero.is-dimmed { --halo: var(--violet); --core: var(--violet-core); }

.notch-wrap {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 12;
  width: var(--notch-w);
  transform: translateX(-50%);
  pointer-events: none;
}
.notch { width: 100%; height: auto; overflow: visible; }
.notch-body { fill: #000; }

.arm {
  fill: none;
  stroke-linecap: round;
  stroke-dasharray: 1 1;
  stroke-dashoffset: calc(1 - var(--fill, 0.7));
  transition: stroke-dashoffset 0.45s cubic-bezier(.2, .7, .2, 1), stroke 0.4s;
}
.halo { stroke: var(--halo); stroke-width: 9; opacity: 0.95; }
.core { stroke: var(--core); stroke-width: 2.2; }

.hero-inner {
  width: min(100%, 1120px);
  margin-inline: auto;
  text-align: center;
}

.hero h1 {
  font-size: clamp(2.75rem, 1.2rem + 6vw, 6.75rem);
  font-weight: 760;
  font-variation-settings: "wdth" 92;
  line-height: 0.96;
  letter-spacing: -0.035em;
  text-wrap: initial;
}

.lede {
  margin-top: 28px;
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
  color: var(--muted);
  max-width: 31rem;
  margin-inline: auto;
}

/* Hero'nun kendisini karartan katman; çentik, kaydırıcı ve indirme düğmesi onun üstünde kalır */
.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #000;
  opacity: var(--dim);
  pointer-events: none;
  transition: opacity 0.45s cubic-bezier(.2, .7, .2, 1);
}

.dial, .cta-row { position: relative; z-index: 3; }

.dial {
  margin: 48px auto 0;
  max-width: 30rem;
  text-align: left;
}

.dial-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 10px;
}
.dial-head label { font-weight: 600; }
.dial-head output {
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  font-variation-settings: "wdth" 80;
  color: var(--core);
  transition: color 0.4s;
}

.track { position: relative; height: 28px; }

/* Kaydırıcının ilk %20'si karartma bölgesi */
.track-dim {
  position: absolute;
  left: 0;
  top: 50%;
  width: 20%;
  height: 6px;
  transform: translateY(-50%);
  border-radius: 3px 0 0 3px;
  background: repeating-linear-gradient(90deg, var(--violet) 0 calc(25% - 2px), transparent calc(25% - 2px) 25%);
  opacity: 0.85;
}

.track input {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  width: 100%;
  height: 28px;
  margin: 0;
  background: transparent;
  cursor: pointer;
}
.track input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 20%, rgba(255, 176, 74, 0.35) 20%, var(--amber));
}
.track input::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent 20%, rgba(255, 176, 74, 0.35) 20%, var(--amber));
}
.track input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  margin-top: -9px;
  border-radius: 50%;
  background: var(--core);
  border: 0;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--halo) 35%, transparent), 0 0 22px var(--halo);
  transition: background 0.4s, box-shadow 0.4s;
}
.track input::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--core);
  border: 0;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--halo) 35%, transparent), 0 0 22px var(--halo);
}
.track input:focus-visible { outline: none; }
.track input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ink); outline-offset: 4px; }
.track input:focus-visible::-moz-range-thumb { outline: 2px solid var(--ink); outline-offset: 4px; }

.hint { margin-top: 8px; font-size: 0.875rem; color: var(--muted); }

.cta-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  margin-top: 40px;
  flex-wrap: wrap;
  text-align: left;
}

.btn {
  display: inline-flex;
  align-items: center;
  height: 52px;
  padding: 0 26px;
  border-radius: 26px;
  background: var(--amber);
  color: #1b1300;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 237, 199, 0.5) inset, 0 10px 40px -10px rgba(255, 176, 74, 0.7);
  transition: transform 0.15s, box-shadow 0.2s;
}
.btn:hover { color: #1b1300; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(255, 237, 199, 0.7) inset, 0 14px 50px -10px rgba(255, 176, 74, 0.9); }
.btn:active { transform: translateY(0); }
.btn.big { height: 60px; padding: 0 34px; border-radius: 30px; font-size: 1.125rem; }

.req { font-size: 0.875rem; line-height: 1.45; color: var(--muted); }
.req.center { margin: 16px auto 0; text-align: center; }

/* ───────── Bölümler ───────── */

.block {
  padding-block: clamp(88px, 12vw, 160px);
  border-top: 1px solid var(--line);
}

.two {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 7vw, 112px);
  align-items: center;
}
.two.flip .copy { order: 2; }

.copy h2 { margin-bottom: 24px; }
.copy p { color: var(--muted); }

.narrow { margin-bottom: 48px; max-width: 20ch; }

/* %6 ölçeği */
.scale { margin: 0; }
.scale-top {
  display: flex;
  height: 14px;
  border-radius: 7px;
  overflow: hidden;
}
.scale-low { width: 6.25%; background: var(--violet); }
.scale-normal { flex: 1; background: linear-gradient(90deg, rgba(255, 176, 74, 0.3), var(--amber)); }

.scale-ticks {
  position: relative;
  height: 22px;
  margin-top: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.scale-ticks span { position: absolute; top: 0; }
.scale-ticks span:nth-child(2) { left: 6.25%; }
.scale-ticks span:nth-child(3) { right: 0; }

.scale-zoom { width: 100%; height: 56px; margin-top: 2px; }
.scale-zoom path { fill: none; stroke: var(--violet); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-dasharray: 3 4; opacity: 0.7; }

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.steps li {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 132px;
  padding: 14px;
  border-radius: 10px;
  background:
    linear-gradient(rgba(0, 0, 0, var(--s)), rgba(0, 0, 0, var(--s))),
    linear-gradient(160deg, #6f5cf5, #3d2fa8);
}
.steps b { font-size: 2rem; font-weight: 700; font-variation-settings: "wdth" 80; line-height: 1; color: var(--violet-core); }
.steps span { font-size: 0.875rem; line-height: 1.3; color: var(--ink); }
.steps li:last-child { outline: 1px solid rgba(207, 198, 255, 0.25); outline-offset: -1px; }

.scale figcaption { margin-top: 14px; font-size: 0.875rem; color: var(--muted); }

/* Klavye */
.keys { min-width: 0; }
.keyrow {
  display: flex;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(#0b0a1c, #141233);
  border: 1px solid var(--line);
  margin-bottom: 28px;
}
.keyrow .gap { flex: 1; }
.cap {
  flex: 0 1 76px;
  height: auto;
  aspect-ratio: 1.15;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  border-radius: 10px;
  border-bottom-width: 4px;
  display: flex;
  justify-content: center;
}
.cap svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.combos, .shortcuts { margin: 0; }
.combos div, .shortcuts div {
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
}
.combos div:first-child, .shortcuts div:first-child { border-top: 1px solid var(--line); }
.combos dt, .shortcuts dt { display: flex; gap: 4px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 0.9375rem; }
.combos dd, .shortcuts dd { margin: 0; }

.shortcuts div { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); padding-block: 20px; }
.shortcuts dd { font-size: 1.25rem; font-weight: 600; }

/* Gün boyu */
.day { margin: 0 0 56px; }
.day-curve { width: 100%; height: clamp(100px, 14vw, 150px); }
.day-line { fill: none; stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.day-marks {
  position: relative;
  height: 24px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  padding-top: 8px;
  font-size: 0.8125rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.day-marks span { position: absolute; left: calc(var(--x) * 100%); transform: translateX(-50%); }
.day-marks span:first-child { transform: none; }
.day-marks span:last-child { transform: translateX(-100%); }
.day-marks .sunset { color: var(--amber-core); top: -48px; font-weight: 600; transform: none; padding-left: 8px; border-left: 1px solid var(--amber); }

.trio {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 56px);
}
.trio h3 { margin-bottom: 10px; }
.trio p { color: var(--muted); font-size: 1rem; }

/* Göstergeler */
.indicators {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.indicators figure { margin: 0; }
.indicators figcaption { margin-top: 14px; font-size: 0.9375rem; color: var(--muted); line-height: 1.45; }
.indicators figcaption b { display: block; color: var(--ink); font-size: 1.0625rem; margin-bottom: 2px; }

.mini {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(80% 70% at 30% 110%, rgba(122, 102, 255, 0.35), transparent),
    linear-gradient(#1d1a45, #120f2c);
  border: 1px solid var(--line);
}
.m-notch, .m-island {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34%;
  height: 11%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 0 0 8px 8px;
}
.m-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 34%;
  height: 11%;
  transform: translateX(-50%);
  border-radius: 0 0 8px 8px;
  border: 2px solid var(--amber-core);
  border-top: 0;
  box-shadow: 0 2px 14px 2px var(--amber), inset 0 -2px 8px rgba(255, 176, 74, 0.5);
  -webkit-mask: linear-gradient(90deg, #000 32%, transparent 32% 68%, #000 68%);
  mask: linear-gradient(90deg, #000 32%, transparent 32% 68%, #000 68%);
}
.m-island {
  width: 52%;
  height: 20%;
  border-radius: 0 0 22px 22px;
  display: flex;
  align-items: center;
  gap: 8%;
  padding: 0 9%;
}
.m-island i { flex: 1; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--amber) 60%, rgba(255, 255, 255, 0.18) 60%); }
.m-island em, .m-dial em { font-style: normal; font-size: 0.6875rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.m-dial {
  position: absolute;
  top: 18%;
  left: 50%;
  width: 30%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.7);
  border-radius: 50%;
}
.m-dial svg { position: absolute; inset: 10%; width: 80%; height: 80%; }
.m-dial path { fill: none; stroke-width: 3.2; stroke-linecap: round; }
.m-dial .d-bg { stroke: rgba(255, 255, 255, 0.15); }
.m-dial .d-fg { stroke: var(--violet); stroke-dasharray: 70.7 200; }
.m-dial em { color: var(--violet-core); }
.m-apple {
  position: absolute;
  bottom: 14%;
  left: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translateX(-50%);
  border-radius: 18%;
  background: rgba(60, 58, 90, 0.75);
}
.m-apple i { position: absolute; left: 14%; right: 14%; bottom: 18%; height: 4px; border-radius: 2px; background: linear-gradient(90deg, #fff 55%, rgba(255, 255, 255, 0.25) 55%); }

.note { margin-top: 32px; color: var(--muted); font-size: 0.9375rem; }

/* İndir */
.download {
  padding-block: clamp(96px, 13vw, 176px);
  text-align: center;
  border-top: 1px solid var(--line);
  background: radial-gradient(50% 60% at 50% 0%, rgba(255, 176, 74, 0.1), transparent 70%);
}
.dl-icon { width: 128px; height: 128px; margin: 0 auto 28px; filter: drop-shadow(0 20px 40px rgba(255, 176, 74, 0.25)); }
.download h2 { margin: 0 auto 36px; font-size: clamp(2.5rem, 1.5rem + 4vw, 4.5rem); font-variation-settings: "wdth" 78; }

.install {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  max-width: 920px;
  margin: 72px auto 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  text-align: left;
}
.install li { counter-increment: step; padding-top: 18px; border-top: 1px solid var(--line); }
.install li::before { content: counter(step); display: block; font-size: 0.875rem; font-weight: 700; color: var(--amber); margin-bottom: 6px; }
.install b { display: block; margin-bottom: 4px; }
.install span { color: var(--muted); font-size: 0.9375rem; }

.early {
  max-width: 40rem;
  margin: 64px auto 0;
  padding: 22px 24px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 0.9375rem;
  color: var(--muted);
}
.early b { color: var(--ink); }

.foot { border-top: 1px solid var(--line); padding-block: 36px; font-size: 0.875rem; color: var(--muted); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot p { max-width: none; margin: 0; }

/* ───────── Dar ekranlar ───────── */

@media (max-width: 900px) {
  .two { grid-template-columns: 1fr; }
  .two.flip .copy { order: 0; }
  .indicators { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trio, .install { grid-template-columns: 1fr; }
}

@media (max-width: 1180px) {
  .bar nav a:not(.bar-cta) { display: none; }
}

@media (max-width: 640px) {
  :root { --notch-w: 190px; --bar-h: 52px; }
  .brand span { display: none; }
  .hero { padding-top: 120px; align-items: flex-start; }
  .steps li { min-height: 104px; padding: 10px; }
  .steps b { font-size: 1.5rem; }
  .combos div, .shortcuts div { grid-template-columns: 1fr; gap: 8px; }
  .day-marks span:nth-child(2), .day-marks span:nth-child(5) { display: none; }
  .keyrow { gap: 6px; padding: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .arm, .hero-shade, .btn { transition: none; }
}
