/* ---------- Değişkenler ---------- */
:root {
  --bg: #0b0f1a;
  --surface: #121829;
  --surface-2: #1a2238;
  --text: #e8ecf6;
  --muted: #9aa4bd;
  --border: rgba(255, 255, 255, 0.09);
  --cyan: #22d3ee;
  --violet: #8b5cf6;
  --grad: linear-gradient(90deg, var(--cyan), var(--violet));
  --radius: 16px;
  --header-h: 60px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f8fc;
    --surface: #ffffff;
    --surface-2: #eef2fa;
    --text: #0f172a;
    --muted: #566079;
    --border: rgba(15, 23, 42, 0.1);
    color-scheme: light;
  }
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 750; }
h3 { font-size: 1.25rem; font-weight: 650; }
p { margin: 0 0 1em; }
.container { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 0.5rem 1rem; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.8rem 1.4rem; border-radius: 999px; font-weight: 650; text-decoration: none;
  border: 1px solid transparent; transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn--primary {
  border: none;
  overflow: hidden;
  background-color: var(--violet);
  background-image: var(--grad);
  color: #06101c;
  box-shadow: 0 8px 28px rgba(34, 211, 238, 0.25);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(139, 92, 246, 0.35); }
.btn--ghost { border-color: var(--border); background: transparent; }
.btn--ghost:hover { background: var(--surface); }
.btn--sm { padding: 0.45rem 1rem; font-size: 0.9rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* ---------- Üst bar ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s;
}
.header.is-scrolled { border-bottom-color: var(--border); }
.header__inner { display: flex; align-items: center; gap: 1.25rem; height: 100%; }
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 750; font-size: 1.1rem; text-decoration: none; margin-right: auto; }
.nav { display: flex; gap: 1.5rem; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.lang { display: flex; gap: 0.25rem; }
.lang a {
  padding: 0.2rem 0.55rem; border-radius: 8px; font-size: 0.8rem; font-weight: 650;
  color: var(--muted); text-decoration: none; border: 1px solid var(--border);
}
.lang a[aria-current="true"] { color: var(--text); background: var(--surface-2); }

/* ---------- Hero ---------- */
.hero { padding: clamp(2.5rem, 7vw, 6rem) 0 4rem; }
.hero > .container {
  width: min(1280px, 100% - 2rem);
}
.hero__inner {
  display: grid;
  grid-template-columns: 0.86fr 1.34fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow { color: var(--cyan); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 1rem; }
.hero__sub { font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; margin-bottom: 1rem; width: fit-content; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 34ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.6rem 0 1rem; }
.hero__note { color: var(--muted); font-size: 0.9rem; }
.hero__visual {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #07090d;
}
.hero__visual img,
.hero__embed {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
  background: #07090d;
  pointer-events: none;
}

/* ---------- Bölümler ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head p { color: var(--muted); font-size: 1.1rem; }

/* ---------- Sorun ---------- */
.pain { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 0.9rem; }
.pain li {
  position: relative; padding: 1rem 1.25rem 1rem 3rem; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--muted);
}
.pain li::before { content: "✕"; position: absolute; left: 1.1rem; color: #f87171; font-weight: 700; }
.solution { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-weight: 700; }

/* ---------- Yer tutucu ---------- */
.ph {
  position: relative; width: 100%; display: grid; place-items: center; text-align: center; padding: 0.5rem;
  border: 2px dashed color-mix(in srgb, var(--muted) 55%, transparent); border-radius: var(--radius);
  background: repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--muted) 10%, transparent) 14px 28px);
  color: var(--muted); font: 600 0.8rem/1.2 ui-monospace, Consolas, monospace;
}
.ph::after { content: attr(data-ph); }
.ph--hero { aspect-ratio: 16 / 10; }
.ph--panel { aspect-ratio: 4 / 3; }
.ph--icon { width: 48px; height: 48px; border-radius: 12px; font-size: 0.55rem; margin-bottom: 1rem; }

/* ---------- Scrollytelling (masaüstü) ---------- */
.scrolly { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: start; }
.scrolly__stage {
  position: sticky; top: var(--header-h); height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; justify-content: center; gap: 1rem;
}
.scrolly__frame {
  position: relative; margin-inline: auto; aspect-ratio: 4 / 3;
  width: min(100%, calc((100svh - var(--header-h) - 6rem) * 1.3333));
}
.scrolly__frame:has(.scrolly__embed) {
  aspect-ratio: 16 / 10;
  width: min(100%, calc((100svh - var(--header-h) - 6rem) * 1.6));
}
.scrolly__panel {
  position: absolute; inset: 0; opacity: 0; transform: scale(0.97); pointer-events: none;
  overflow: hidden; border-radius: var(--radius);
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.scrolly__panel.is-active { opacity: 1; transform: none; }
.scrolly__panel .ph { height: 100%; aspect-ratio: auto; }
.scrolly__panel img { width: 100%; height: 100%; object-fit: contain; }
.scrolly__embed {
  width: 100%; height: 100%; border: 0; display: block; background: #07090d;
}
.scrolly__dots { display: flex; justify-content: center; gap: 0.5rem; }
.scrolly__dots span {
  width: 8px; height: 8px; border-radius: 99px; transition: width 0.3s, background 0.3s;
  background: color-mix(in srgb, var(--muted) 40%, transparent);
}
.scrolly__dots span.is-active {
  width: 26px;
  overflow: hidden;
  background-color: var(--violet);
  background-image: var(--grad);
}
.scrolly__steps { list-style: none; margin: 0; padding: 0; }
.scrolly__step {
  min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  opacity: 0.35; transition: opacity 0.35s;
}
.scrolly__step.is-active { opacity: 1; }
.scrolly__step p { color: var(--muted); font-size: 1.1rem; max-width: 44ch; }
.step__num { font: 700 0.9rem ui-monospace, Consolas, monospace; color: var(--cyan); margin-bottom: 0.8rem; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; margin: 0.5rem 0 0; }
.chips li { padding: 0.3rem 0.8rem; border: 1px solid var(--border); border-radius: 99px; font-size: 0.85rem; background: var(--surface); }
.no-js .scrolly__step { opacity: 1; }

/* ---------- Küçük özellikler ızgarası ---------- */
.grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.card--wide { grid-column: span 2; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.4rem; }
.card:hover { border-color: color-mix(in srgb, var(--cyan) 50%, transparent); }
.card__illust {
  width: 100%;
  max-width: 160px;
  height: auto;
  aspect-ratio: 4 / 3;
  margin-bottom: 1.1rem;
  border-radius: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card--wide .card__illust { max-width: 188px; }
.card:hover .card__illust { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(34, 211, 238, 0.12); }
.card h3 { font-size: 1.05rem; }
.card p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.card .chips { margin-top: 0.9rem; }

/* ---------- İndirme ---------- */
.download { background: radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--violet) 22%, transparent), transparent 60%); }
.badge { display: inline-block; padding: 0.25rem 0.8rem; border-radius: 99px; border: 1px solid var(--border); color: var(--cyan); font-weight: 650; font-size: 0.85rem; margin-bottom: 1rem; }
.download .btn { margin-top: 0.5rem; }
.mobile-note { display: none; color: var(--muted); font-size: 0.9rem; margin-top: 1rem; }
.facts { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; margin: 2rem 0 1rem; }
.facts dt { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.facts dd { margin: 0.2rem 0 0; font-weight: 650; }
.hash { color: var(--muted); font-size: 0.8rem; word-break: break-all; }
.hash code { font-family: ui-monospace, Consolas, monospace; }
.compat { color: var(--muted); margin-top: 1.5rem; }

/* ---------- Alt bilgi ---------- */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; color: var(--muted); font-size: 0.9rem; }
.footer__inner { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }

/* ---------- Belirme animasyonu ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Duyarlı ---------- */
@media (max-width: 1000px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .hero__inner { grid-template-columns: 1fr; gap: 2rem; }
  /* Mobilde .scrolly blok olmalı; yoksa sticky çalışmaz */
  .scrolly { display: block; }
  .scrolly__stage { height: 44svh; z-index: 5; background: var(--bg); padding-top: 0.5rem; }
  .scrolly__frame { width: min(100%, calc((44svh - 2rem) * 1.3333)); }
  .scrolly__frame:has(.scrolly__embed) { width: min(100%, calc((44svh - 2rem) * 1.6)); }
  .scrolly__step { min-height: 70svh; padding: 1rem 0; }
}
@media (max-width: 700px) {
  .mobile-note { display: block; }
}
@media (max-width: 520px) {
  .grid { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .header__inner { gap: 0.6rem; }
}

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
