@font-face { font-family: Modak; src: url(/fonts/modak.woff2) format("woff2"); font-display: swap; }
@font-face { font-family: Nunito; src: url(/fonts/nunito.woff2) format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --night: #0c1a4a;
  --deep: #081236;
  --cobalt: #1f46ab;
  --orange: #f58d1d;
  --amber: #ffc45e;
  --snow: #f6faff;
  --shade: #b9cbee;
  --ink: #e7eefc;
  --dim: #a9bbdf;
  --body: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--deep); color: var(--ink); font: 400 clamp(17px, 1.05vw + 13px, 20px)/1.6 var(--body); overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--amber); text-underline-offset: .18em; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
h1, h2 { margin: 0; }
h2 { font: 400 clamp(38px, 5vw, 68px)/1.05 Modak, var(--body); color: var(--amber); letter-spacing: .01em; }
p { margin: 0; max-width: 34em; }
#snow { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 30; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* Karşılama: tam ekran duvar kâğıdı, altta kamyonun yolu. */
.hero { position: relative; min-height: max(100svh, 680px); isolation: isolate; overflow: clip; display: flex; flex-direction: column; }
.hero-art { position: absolute; inset: 0; z-index: -2; }
.hero-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; opacity: 0; }
.hero-art.ready img { transition: opacity 1.1s ease; }
.hero-art img.on { opacity: 1; }
.hero-art::after { content: ""; position: absolute; inset: 0 0 auto; height: 62%; background: linear-gradient(rgba(8, 18, 54, .62), rgba(8, 18, 54, .34) 60%, rgba(8, 18, 54, 0)); }
.hero-text { padding-top: clamp(30px, 6vh, 70px); text-align: center; }
.wordmark { display: block; width: min(600px, 86vw); margin-inline: auto; filter: drop-shadow(0 6px 14px rgba(6, 14, 50, .55)); }
.lede { margin: 10px auto 0; color: #fff; font-size: clamp(19px, 1.5vw + 12px, 26px); line-height: 1.35; text-shadow: 0 1px 12px rgba(6, 14, 50, .85); max-width: 30em; }
.soon { margin: 14px auto 0; color: #fff; font-weight: 700; text-shadow: 0 1px 10px rgba(6, 14, 50, .9); }
.soon span { font-weight: 400; opacity: .9; }

/* Uygulamanın paneli gibi: sayfadaki karı yöneten tek küçük kutu. */
.panel { margin: auto auto 0; width: fit-content; max-width: calc(100% - 32px); padding: 12px 14px 13px; border-radius: 22px; background: rgba(8, 18, 54, .68); border: 1px solid rgba(255, 255, 255, .2); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); color: #fff; text-align: center; }
.controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.controls button, .seg button { font: 700 .86em/1 var(--body); color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: .72em 1.05em; cursor: pointer; }
.controls > button:hover { background: rgba(255, 255, 255, .22); }
.controls .act { background: var(--orange); border-color: #ffb45e; color: #2a1200; }
.controls .act:hover { background: var(--amber); }
.seg { display: inline-flex; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px; }
.seg button { border: 0; background: none; padding: .66em .9em; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--night); }
.hint { margin: 9px auto 0; font-size: .8em; line-height: 1.3; }
.hint .touch { display: none; }
@media (hover: none) { .hint .mouse { display: none; } .hint .touch { display: inline; } }

.road { height: clamp(112px, 16vh, 150px); position: relative; }
#truck { position: absolute; left: 0; bottom: 0; width: clamp(170px, 18vw, 240px); visibility: hidden; transform-origin: 50% 100%; z-index: 40; pointer-events: none; }

/* Bölümler: düz metin ve gerçek çizimler; bloklar birbirinin tersine oturur. */
section { padding-block: clamp(70px, 10vw, 130px); position: relative; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 90px); align-items: center; }
.split > div > p { margin-top: 16px; }
.split.flip > :first-child { order: 2; }
.windows { background: linear-gradient(var(--deep), var(--night)); }
.truckband { background: var(--night); }
.toysband { background: linear-gradient(var(--night), #122a73); }
.wallband { background: #122a73; }
.quiet { background: linear-gradient(#122a73, var(--deep)); }

/* Sayfanın içindeki pencere: kar gerçekten bunun üstünde birikir. */
.macwin { position: relative; background: #eef3fc; color: #24355f; border-radius: 14px; box-shadow: 0 26px 60px rgba(2, 6, 30, .55); overflow: hidden; }
.macwin.held { z-index: 20; box-shadow: 0 36px 80px rgba(2, 6, 30, .7); }
.macwin .bar { position: relative; display: flex; gap: 8px; padding: 12px 14px; background: #dbe4f5; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.macwin.held .bar { cursor: grabbing; }
.macwin .bar i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; }
.macwin .bar i:nth-child(2) { background: #febc2e; }
.macwin .bar i:nth-child(3) { background: #28c840; }
.macwin .bar span { position: absolute; inset: 0; display: grid; place-items: center; font-size: .78em; font-weight: 700; color: #51638e; }
.macwin > img { width: 100%; aspect-ratio: 1400 / 800; object-fit: cover; pointer-events: none; }
.hang { padding-top: 40px; }

.truckart { width: min(100%, 460px); margin-inline: auto; }
.toys { display: flex; justify-content: center; align-items: flex-end; gap: clamp(26px, 6vw, 70px); }
.toys img { height: clamp(190px, 26vw, 300px); width: auto; }

/* Galeri: tek resim, saati kaydırınca ışık değişir. */
.lead { margin-top: 16px; }
.gallery { margin-top: 30px; }
.stage { position: relative; width: min(100%, calc(66svh * 1.538)); margin-inline: auto; aspect-ratio: 1400 / 910; border-radius: 14px; overflow: hidden; background: var(--night); box-shadow: 0 26px 60px rgba(2, 6, 30, .5); }
.stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clock { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 14px auto 0; width: min(100%, calc(66svh * 1.538)); }
.clock input { width: 100%; accent-color: var(--orange); height: 28px; margin: 0; }
.clock .marks { display: flex; justify-content: space-between; font-size: .84em; color: var(--dim); }
.themes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.themes button { font: 700 .88em/1 var(--body); color: var(--ink); background: none; border: 1px solid rgba(255, 255, 255, .28); border-radius: 999px; padding: .68em 1em; cursor: pointer; }
.themes button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: #2a1200; }
.quiet .wrap { display: grid; gap: clamp(32px, 5vw, 56px); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.quiet h3 { margin: 0 0 8px; font: 700 1.2em/1.25 var(--body); color: #fff; }
.final { grid-column: 1 / -1; text-align: center; padding-top: clamp(20px, 4vw, 40px); }
.final img { width: 128px; margin: 0 auto 16px; }
.final p { margin: 6px auto 0; }

footer { background: var(--deep); padding: 26px 0 40px; font-size: .86em; color: var(--dim); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* Metin sayfaları: gizlilik, destek. */
.doc { padding-block: 48px 90px; min-height: 80svh; background: linear-gradient(var(--night), var(--deep)); }
.doc .back img { width: 190px; }
.doc h1 { margin-top: 30px; font: 400 clamp(38px, 6vw, 60px)/1.05 Modak, var(--body); color: var(--amber); }
.doc h2 { font: 700 1.2em/1.3 var(--body); color: #fff; margin-top: 32px; letter-spacing: 0; }
.doc p, .doc ul { margin: 10px 0 0; max-width: 40em; }
.doc li { margin-top: 6px; }

@media (max-width: 760px) {
  .split, .quiet .wrap { grid-template-columns: 1fr; }
  .split.flip > :first-child { order: 0; }
  .hero-text { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { transition: none; }
}
