@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/outfit-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Outfit";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("/fonts/outfit-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Renkler logodan: lacivert yazı + ufuk çizgisi, turuncu güneş, şeftali yansıma.
   Her uygulama bandı kendi renklerini satır içi --bg/--fg/--accent/--muted/--sun-disc ile alır. */
:root {
  --sky: #f7f8fa;
  --ink: #132337;
  --ink-soft: #4c5a6d;
  --rule: #d6dce5;
  --sun: #ec6e2e;
  --peach: #f5a672;
  --sea: #132337;
  --ring: rgba(19, 35, 55, 0.12);
  --glow: 0.16;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --sky: #0e1a29;
    --ink: #eef1f5;
    --ink-soft: #a9b4c3;
    --rule: #26364b;
    --sea: #08111c;
    --ring: rgba(238, 241, 245, 0.16);
    --glow: 0.22;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--sky);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Outfit", system-ui, -apple-system, sans-serif;
  overflow-x: clip;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1; }
img { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:focus-visible, .shots:focus-visible { outline: 3px solid var(--sun); outline-offset: 4px; border-radius: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

.topbar { display: flex; justify-content: flex-end; padding-top: 22px; }
.mark { display: none; }
.lang { font-size: 0.95rem; color: var(--ink-soft); padding: 6px 2px; }
.lang:hover { color: var(--ink); }

/* ---------- Hero: şafak ---------- */
.hero {
  position: relative;
  padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 6vw, 80px);
  background: radial-gradient(55% 45% at 34% 38%, rgba(236, 110, 46, var(--glow)), transparent 70%);
}
/* Ufuk ölçüleri: logo genişliğinden türetilir; hem logo hem ikon sırası aynı değerleri kullanır */
.dawn, .lost {
  --w: clamp(300px, 38vw, 470px);
  --h: calc(var(--w) * 220 / 720);
  --line: calc(var(--h) * 0.618);
  --lw: calc(var(--w) * 0.00526);
}
.dawn { display: flex; align-items: flex-start; gap: clamp(32px, 5vw, 72px); }

/* Logo: ufuk çizgisi iki kenara kadar uzar, yüklenince iki yana çizilir */
.brand {
  position: relative;
  flex: none;
  width: var(--w);
  margin: 0;
  line-height: 0;
}
.brand a, .brand picture, .brand img { display: block; width: 100%; height: auto; position: relative; z-index: 1; }
.brand::before, .brand::after {
  content: "";
  position: absolute;
  top: calc(var(--line) - var(--lw) / 2);
  height: var(--lw);
  background: var(--ink);
  z-index: 3;
  animation: draw 1100ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms backwards;
}
.brand::before { left: -100vw; right: 93.5%; transform-origin: right center; }
.brand::after { left: 93.3%; right: -100vw; transform-origin: left center; }
@keyframes draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Uygulama ikonları aynı ufkun üstünde durur, altında suya yansır */
.horizon {
  --size: clamp(56px, 7vw, 84px);
  --lift: 10px; /* üstüne gelince ikonun yükseleceği pay */
  position: relative;
  z-index: 2;
  list-style: none;
  margin: calc(var(--line) - var(--size) - var(--lift)) 0 0 auto;
  padding: 0;
  display: flex;
  gap: clamp(12px, 2.4vw, 30px);
}
.horizon a { display: grid; justify-items: center; text-decoration: none; }
.horizon .sun, .horizon .mirror { display: block; width: var(--size); overflow: hidden; }
.horizon .sun { height: calc(var(--size) + var(--lift)); padding-top: var(--lift); }
.horizon .mirror { height: calc(var(--size) * 0.55); }
.horizon img {
  display: block;
  width: var(--size);
  height: var(--size);
  border-radius: 22.5%;
  transition: transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.horizon .sun img {
  box-shadow: inset 0 0 0 1px var(--ring);
  animation: rise 800ms cubic-bezier(0.2, 0.75, 0.25, 1) backwards;
  animation-delay: calc(700ms + var(--i) * 90ms);
}
.horizon .mirror img {
  transform: scaleY(-1);
  opacity: 0.32;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 55%);
  mask-image: linear-gradient(to top, #000 0%, transparent 55%);
  animation: sink 800ms cubic-bezier(0.2, 0.75, 0.25, 1) backwards;
  animation-delay: calc(700ms + var(--i) * 90ms);
}
.horizon .label { margin-top: 8px; font-size: 0.9rem; color: var(--ink-soft); white-space: nowrap; }
.horizon a:hover .sun img, .horizon a:focus-visible .sun img { transform: translateY(calc(-1 * var(--lift))); }
.horizon a:hover .mirror img, .horizon a:focus-visible .mirror img { transform: scaleY(-1) translateY(calc(-1 * var(--lift))); }
.horizon a:hover .label { color: var(--ink); }
@keyframes rise { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes sink { from { transform: scaleY(-1) translateY(100%); } to { transform: scaleY(-1) translateY(0); } }

/* Slogan ve tanıtım: ufkun altında ortalı */
.copy { text-align: center; }
.headline {
  margin: clamp(48px, 7vw, 96px) auto 0;
  max-width: 16ch;
  font-size: clamp(2.5rem, 6.4vw, 4.75rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.intro {
  margin: 22px auto 0;
  max-width: 52ch;
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  text-wrap: balance;
}

/* ---------- Neler yapabiliriz şeridi: üç ortalı sütun ---------- */
.how { border-top: 1px solid var(--rule); padding: clamp(32px, 4.5vw, 56px) 0; }
.how-list {
  width: min(900px, 100% - 32px);
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px clamp(24px, 4vw, 56px);
  text-align: center;
}
.how-list li { display: grid; justify-items: center; align-content: start; gap: 8px; }
/* Her sütunun üstünde güneşin yansıması */
.how-list li::before { content: ""; width: 26px; height: 6px; border-radius: 3px; background: var(--peach); margin-bottom: 6px; }
.how-list strong { font-weight: 600; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.01em; }
.how-list span { max-width: 34ch; color: var(--ink-soft); font-size: 0.975rem; text-wrap: balance; }

/* ---------- Uygulama bantları ---------- */
.chapter {
  position: relative;
  background: var(--bg);
  color: var(--fg);
  padding: clamp(64px, 9vw, 128px) 0;
  overflow: hidden;
}
/* Her bandın ufkunda batan bir güneş */
.chapter::before {
  content: "";
  position: absolute;
  width: clamp(380px, 48vw, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--sun-disc);
  opacity: 0.16;
  bottom: -34%;
  right: -6%;
  pointer-events: none;
}
.chapter:nth-of-type(odd)::before { right: auto; left: -6%; }
.chapter-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.chapter:nth-of-type(odd) .chapter-text { order: 2; }
.chapter a:focus-visible, .chapter .shots:focus-visible { outline-color: var(--fg); }

.app-id { display: flex; align-items: center; gap: 18px; }
.app-icon {
  width: 72px;
  height: 72px;
  border-radius: 22.5%;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08), 0 10px 24px -12px rgba(0, 0, 0, 0.5);
  flex: none;
}
.app-id h3 { margin: 0; font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -0.02em; }
.meta { margin: 2px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--muted); font-size: 0.975rem; }
.meta .note { padding: 0 10px; border: 1px solid currentColor; border-radius: 999px; font-size: 0.85rem; line-height: 1.7; }

.tagline {
  margin: clamp(24px, 3vw, 36px) 0 0;
  max-width: 16ch;
  font-size: clamp(1.75rem, 3.4vw, 2.75rem);
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.text { margin: 18px 0 0; max-width: 46ch; color: var(--muted); font-size: 1.0625rem; }
.features {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-weight: 500;
}
.features li { display: flex; align-items: center; gap: 12px; }
.features li::before { content: ""; width: 18px; height: 5px; border-radius: 3px; background: var(--accent); flex: none; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 160ms ease;
}
.btn:active { transform: scale(0.98); }
.btn-store { background: var(--fg); color: var(--bg); }
.btn-store:hover { background: color-mix(in srgb, var(--fg) 85%, var(--bg)); }
.btn-site { border: 1.5px solid var(--fg); color: var(--fg); }
.btn-site:hover { background: color-mix(in srgb, var(--fg) 10%, transparent); }
.btn-icon { width: 16px; height: 19px; margin-top: -2px; flex: none; }

/* Ekran görüntüleri: ortadaki öne çıkar, yanlar aşağıda */
.shots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 20px); align-items: start; }
.shots img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: clamp(12px, 1.6vw, 20px);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 40px 60px -36px rgba(0, 0, 0, 0.55);
}
.shots img:nth-child(odd) { margin-top: 56px; }

/* ---------- Sağ kenarda bant gezintisi ---------- */
.spy {
  position: fixed;
  right: clamp(12px, 2vw, 28px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  display: none;
  flex-direction: column;
  gap: 10px;
  color: #fff;
  mix-blend-mode: difference;
  opacity: 0;
  transition: opacity 300ms ease;
  pointer-events: none;
}
.spy.on { opacity: 1; pointer-events: auto; }
.spy a { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: 0.85rem; text-decoration: none; opacity: 0.6; }
.spy a span { width: 14px; height: 4px; border-radius: 2px; background: currentColor; transition: width 200ms ease; }
.spy a:hover, .spy a[aria-current] { opacity: 1; }
.spy a[aria-current] span { width: 28px; }

/* ---------- Alt bilgi: ufkun altındaki deniz ---------- */
.sea { background: var(--sea); color: #eef1f5; padding: 0 0 44px; }
.reflection { display: grid; justify-items: center; gap: 10px; padding-top: 36px; }
.reflection span { display: block; height: 7px; border-radius: 4px; background: var(--peach); }
.reflection span:nth-child(1) { width: min(300px, 60%); }
.reflection span:nth-child(2) { width: min(210px, 42%); opacity: 0.85; }
.reflection span:nth-child(3) { width: min(110px, 22%); opacity: 0.7; }
.foot {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px clamp(24px, 4vw, 64px);
}
.foot p { margin: 0; }
.foot p + p { margin-top: 8px; }
.foot-title { font-weight: 600; margin-bottom: 10px !important; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--peach); }
.foot .small { grid-column: 1 / -1; margin-top: 24px; font-size: 0.9rem; color: #a9b4c3; }

/* ---------- 404 ---------- */
.lost { padding: clamp(56px, 12vw, 140px) 0; }
.lost { --w: min(480px, 100vw - 32px); }
.lost .brand { margin-bottom: 40px; }
.lost .headline, .lost .intro { margin-inline: 0; }
.lost .headline { font-size: clamp(1.75rem, 4vw, 2.5rem); max-width: 22ch; margin-top: 0; }
.lost .intro + .headline { margin-top: 48px; }

/* ---------- Ekran genişlikleri ---------- */
/* Gezinti yalnızca içeriğin sağında yer kaldığında görünür (1160 px içerik + iki yanda 100 px) */
@media (min-width: 1360px) { .spy { display: flex; } }
@media (max-width: 900px) {
  .chapter-inner { grid-template-columns: minmax(0, 1fr); }
  .chapter:nth-of-type(odd) .chapter-text { order: 0; }
  .chapter::before { bottom: -20%; right: -30%; width: 70vw; }
  .chapter:nth-of-type(odd)::before { left: -30%; }
  .shots {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -16px;
    padding: 4px 16px 24px;
    scrollbar-width: none;
  }
  .shots::-webkit-scrollbar { display: none; }
  .shots img { flex: none; width: min(58vw, 260px); scroll-snap-align: center; }
  .shots img:nth-child(odd) { margin-top: 0; }
}
@media (max-width: 760px) {
  .dawn { flex-direction: column; gap: 0; --w: min(420px, 100vw - 32px); }
  /* Logo ufku telefonda biter; ikonlar kendi ufkuna dizilir */
  .horizon { --size: clamp(48px, 13vw, 64px); --lw: 2px; margin: 44px 0 0; width: 100%; justify-content: space-between; }
  .horizon::before {
    content: "";
    position: absolute;
    left: -100vw;
    right: -100vw;
    top: calc(var(--size) + var(--lift) - var(--lw) / 2);
    height: var(--lw);
    background: var(--ink);
    z-index: 3;
  }
  .horizon .label { display: none; }
  .how-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .app-icon { width: 60px; height: 60px; }
  .app-id h3 { font-size: 1.5rem; }
  .actions .btn { flex: 1 1 100%; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand::before, .brand::after, .horizon .sun img, .horizon .mirror img { animation: none; }
  .horizon img, .btn, .spy, .spy a span { transition: none; }
}
