/* ==========================================================================
   Rogarji — rogarji.com
   ========================================================================== */

:root {
  --blue: #3C4EEC;
  --blue-deep: #2330B5;
  --blue-night: #161C6B;
  --green: #00D375;
  --green-deep: #00A85D;
  --coral: #F78A7C;
  --pink: #FD51E4;
  --pink-soft: #FF8FEF;
  --yellow: #FFD84D;
  --lilac: #E590F2;
  --steel: #555A69;
  --ink: #141633;
  --ink-soft: #2A2D52;
  --muted: #5B5F7E;
  --cream: #FBF7EF;
  --paper: #FFFFFF;

  --radius: 28px;
  --radius-sm: 16px;
  --shadow: 0 18px 40px -18px rgba(20, 22, 51, .45);
  --shadow-pop: 6px 6px 0 var(--ink);
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, monospace;
}

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

html {
  overflow-x: clip;
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.03em; }
p { margin: 0 0 1em; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); }

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

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  text-decoration: none;
  transition: top .2s;
}
.skip:focus { top: 16px; }

:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
  border-radius: 8px;
}

/* ---------- Buttons ---------- */

.btn {
  --bg: var(--ink);
  --fg: #fff;
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .8em 1.4em;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s var(--ease-bounce), box-shadow .2s var(--ease-out);
  white-space: nowrap;
}
.btn:hover { transform: translate(-2px, -2px) rotate(-1.5deg); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 0 0 0 var(--ink); }
.btn .arrow { display: inline-block; transition: transform .25s var(--ease-bounce); }
.btn:hover .arrow { transform: translateX(4px); }

.btn-green { --bg: var(--green); --fg: var(--ink); }
.btn-ink { --bg: var(--ink); --fg: #fff; }
.btn-ghost { --bg: #fff; --fg: var(--ink); }
.btn-lg { font-size: 1.1rem; padding: .9em 1.6em; }
.btn-sm { font-size: .92rem; padding: .5em 1.05em; box-shadow: 3px 3px 0 var(--ink); border-width: 2px; }
.btn-sm:hover { box-shadow: 5px 5px 0 var(--ink); }

/* ---------- Nav ---------- */

.nav {
  position: fixed;
  top: 12px;
  left: 50%;
  z-index: 50;
  width: min(1200px, 100% - 24px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 10px 8px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 4px 0 var(--ink);
  transition: box-shadow .3s, top .3s;
}
.nav.is-scrolled { top: 8px; box-shadow: 0 6px 0 var(--ink), 0 20px 40px -20px rgba(20, 22, 51, .35); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -.03em;
  text-decoration: none;
}
.brand-icon { width: 36px; height: 36px; transition: transform .5s var(--ease-bounce); }
.brand:hover .brand-icon { transform: rotate(360deg); }

.nav-links {
  display: flex;
  gap: 4px;
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  text-decoration: none;
  transition: background .2s, color .2s;
}
.nav-links a:hover { background: var(--ink); color: #fff; }
.nav-links .nav-buy { display: none; }

.nav-actions { display: flex; align-items: center; gap: 10px; }

.lang {
  display: inline-flex;
  padding: 3px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--cream);
}
.lang button {
  padding: 3px 10px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .78rem;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.lang button[aria-pressed="true"] { background: var(--blue); color: #fff; }

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow);
  cursor: pointer;
  position: relative;
}
.burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2.5px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform .3s var(--ease-bounce), top .3s;
}
.burger span:nth-child(1) { top: 15px; }
.burger span:nth-child(2) { top: 23px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 19px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 19px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: min(100svh, 920px);
  padding: 130px 0 120px;
  background:
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .12), transparent 45%),
    radial-gradient(circle at 10% 90%, rgba(0, 211, 117, .18), transparent 40%),
    var(--blue);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  /* hafif rögar ızgarası dokusu */
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, .13) 1.6px, transparent 1.8px);
  background-size: 26px 26px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
  -webkit-mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 14px;
  border: 2px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: .82rem;
  letter-spacing: .02em;
  animation: fadeUp .8s var(--ease-out) both;
}

.wordmark {
  display: flex;
  font-size: clamp(4.4rem, 14vw, 10.5rem);
  font-weight: 800;
  letter-spacing: -.055em;
  line-height: .9;
  margin: 0 0 18px -.04em;
  user-select: none;
}
.wordmark span {
  display: inline-block;
  animation: letterDrop .9s var(--ease-bounce) both;
  animation-delay: calc(.15s + var(--i) * .07s);
  transition: color .2s;
  cursor: default;
}
.wordmark.is-ready span { animation: none; }
.wordmark.is-ready span.is-bouncing { animation: letterJump .6s var(--ease-bounce); }
.wordmark span:hover,
.wordmark span.is-bouncing { color: var(--green); }
.wordmark span:nth-child(3n+2):hover,
.wordmark span:nth-child(3n+2).is-bouncing { color: var(--coral); }
.wordmark span:nth-child(3n):hover,
.wordmark span:nth-child(3n).is-bouncing { color: var(--yellow); }

.formula {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-bottom: 20px;
  animation: fadeUp .8s .55s var(--ease-out) both;
}
.chip {
  display: inline-block;
  padding: 4px 14px 5px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(var(--r, 0deg));
}
.chip-steel { background: #C9CCD6; --r: -3deg; }
.chip-yellow { background: var(--yellow); --r: 2deg; }
.chip-green { background: var(--green); --r: -1.5deg; }
.formula .op { font-weight: 800; font-size: 1.4rem; }

.lede {
  max-width: 34ch;
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  color: rgba(255, 255, 255, .92);
  animation: fadeUp .8s .7s var(--ease-out) both;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 26px;
  animation: fadeUp .8s .85s var(--ease-out) both;
}

/* Rögar kapağı → Rogarji çevirme kartı */
.hero-art {
  display: grid;
  justify-items: center;
  gap: 18px;
  animation: popIn 1s .3s var(--ease-bounce) both;
}
.flipper {
  width: min(430px, 78vw);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 50%;
  cursor: pointer;
  perspective: 1200px;
  filter: drop-shadow(0 30px 30px rgba(10, 14, 60, .45));
}
.flip-inner {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 1.1s var(--ease-bounce);
  animation: hover 5s ease-in-out infinite;
}
.flipper.is-flipped .flip-inner { transform: rotateY(540deg); }
.face {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.face svg { width: 100%; height: 100%; overflow: visible; }
.face-back { transform: rotateY(180deg); }

.hero-char { transition: transform .4s var(--ease-out); }
#heroFeatures, #heroGlints { transition: transform .25s var(--ease-out); }
#heroGlasses {
  transform-box: fill-box;
  transform-origin: center;
  animation: browRaise 6s 2s ease-in-out infinite;
}
#heroMouth {
  transform-box: fill-box;
  transform-origin: center;
}
.hero-char.is-talking #heroMouth { animation: mouthOh .9s var(--ease-bounce); }
#heroEars rect {
  transform-box: fill-box;
  transform-origin: center;
  animation: earWiggle 4s ease-in-out infinite;
}
#heroEars rect:last-child { animation-delay: .2s; }

.flip-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--mono);
  font-size: .85rem;
  color: rgba(255, 255, 255, .85);
}
.hint-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0, 211, 117, .7);
  animation: ping 1.6s infinite;
}

/* Uçuşan karakterler */
.floaters {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  --px: 0;
  --py: 0;
}
.floater {
  position: absolute;
  display: block;
  width: var(--w, 80px);
  transform: translate3d(calc(var(--px) * var(--depth) * 1px), calc(var(--py) * var(--depth) * 1px), 0);
  transition: transform .6s var(--ease-out);
}
.floater img {
  width: 100%;
  border-radius: 22%;
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  animation: bob var(--dur, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}
.f1 { --w: 84px; top: 30%; left: 1.2%; --dur: 6.5s; }
.f2 { --w: 70px; top: 76%; left: 7%; --dur: 5.2s; --delay: -2s; }
.f3 { --w: 64px; top: 13%; left: 51%; --dur: 7s; --delay: -1s; }
.f4 { --w: 84px; top: 70%; right: 3%; --dur: 6s; --delay: -3s; }
.f5 { --w: 60px; top: 14%; right: 4%; --dur: 5.6s; --delay: -4s; }
.f6 { --w: 58px; top: 82%; left: 48%; --dur: 6.8s; --delay: -2.5s; }

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  width: 100%;
  height: 90px;
  z-index: 3;
}
.hero-wave path { fill: var(--cream); }

/* ---------- Bantlar ---------- */

.tapes {
  position: relative;
  z-index: 4;
  height: 190px;
  margin-top: -64px;
  overflow-x: clip;
}
.tape {
  position: absolute;
  left: -5%;
  width: 110%;
  padding: 12px 0;
  border-block: 3px solid var(--ink);
  overflow: hidden;
}
.tape-a { top: 46px; background: var(--green); transform: rotate(-3deg); z-index: 2; }
.tape-b { top: 94px; background: var(--pink); transform: rotate(2.2deg); }
.tape-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.tape-track.reverse { animation-direction: reverse; animation-duration: 38s; }
.tape-track span {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.tape-track img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  animation: spin 8s linear infinite;
}

/* ---------- Sections ---------- */

.section { position: relative; padding: clamp(80px, 11vw, 140px) 0; overflow-x: clip; }

.kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--yellow);
  font-family: var(--mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
}
.kicker-dark { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 #fff; border-color: var(--ink); }
.kicker-light { background: #fff; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.kicker-green { background: var(--green); box-shadow: 3px 3px 0 #fff; }

h2 {
  font-size: clamp(2.3rem, 5.2vw, 4.2rem);
  font-weight: 800;
  margin-bottom: 22px;
  text-wrap: balance;
}
.lead { font-size: clamp(1.08rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 56ch; }
.section-head { max-width: 760px; margin-bottom: 48px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hikaye ---------- */

.story { padding-top: clamp(40px, 6vw, 70px); }
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.story-copy p:not(.kicker) { font-size: 1.15rem; color: var(--ink-soft); max-width: 52ch; }

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}
.stats li {
  display: grid;
  flex: 1 1 0;
  min-width: 96px;
  max-width: 160px;
  padding: 14px 18px;
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-sm);
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .3s var(--ease-bounce);
}
.stats li:nth-child(1) { background: var(--lilac); }
.stats li:nth-child(2) { background: var(--yellow); }
.stats li:nth-child(3) { background: var(--green); }
.stats li:hover { transform: translateY(-6px) rotate(-3deg); }
.stats b { font-size: 2.2rem; line-height: 1; font-weight: 900; letter-spacing: -.04em; }
.stats span { font-weight: 600; font-size: .95rem; }

.equation {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  padding: clamp(22px, 3vw, 36px);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 8px 8px 0 var(--ink);
}
.eq-item { margin: 0; display: grid; justify-items: center; gap: 10px; }
.eq-item svg, .eq-item img { width: 100%; aspect-ratio: 1; }
.eq-item img { border-radius: 22%; border: 2.5px solid var(--ink); }
.eq-item figcaption {
  font-weight: 800;
  font-size: clamp(.9rem, 1.4vw, 1.05rem);
  text-align: center;
  line-height: 1.2;
}
.eq-op { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 900; color: var(--blue); }

.equation.is-in .eq-1 { animation: rollIn 1s var(--ease-bounce) both; }
.equation.is-in .eq-op-1 { animation: popIn .5s .6s var(--ease-bounce) both; }
.equation.is-in .eq-2 { animation: dropIn .8s .8s var(--ease-bounce) both; }
.equation.is-in .eq-op-2 { animation: popIn .5s 1.2s var(--ease-bounce) both; }
.equation.is-in .eq-3 { animation: flipIn 1s 1.4s var(--ease-bounce) both; }
.eq-1 svg { transition: transform .8s var(--ease-bounce); }
.eq-1:hover svg { transform: rotate(180deg); }
.eq-2:hover svg { animation: wobble .6s; }
.eq-3:hover img { animation: letterJump .6s var(--ease-bounce); }

/* ---------- Karakterler ---------- */

.chars { background: #fff; border-block: 3px solid var(--ink); }
.chars::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(20, 22, 51, .07) 1.6px, transparent 1.8px);
  background-size: 24px 24px;
  pointer-events: none;
}
.chars .wrap { position: relative; }

.char-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(14px, 2.2vw, 26px);
}
.tile {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  opacity: 0;
  transform: translateY(30px) scale(.9);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-bounce);
  transition-delay: calc(var(--i) * 45ms);
}
.char-grid.is-in .tile { opacity: 1; transform: none; }
.tile-img {
  position: relative;
  border: 3px solid var(--ink);
  border-radius: 24%;
  overflow: hidden;
  box-shadow: 5px 5px 0 var(--ink);
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease-out), border-radius .35s var(--ease-out);
}
.tile-img img { width: 100%; aspect-ratio: 1; transition: transform .6s var(--ease-bounce); }
.tile:hover .tile-img,
.tile:focus-visible .tile-img {
  transform: translate(-3px, -5px) rotate(var(--tilt, -4deg));
  box-shadow: 9px 10px 0 var(--ink);
  border-radius: 50%;
}
.tile:hover .tile-img img,
.tile:focus-visible .tile-img img { transform: scale(1.12) rotate(calc(var(--tilt, -4deg) * -2)); }
.tile:nth-child(even) { --tilt: 4deg; }
.tile.is-jiggling .tile-img { animation: jiggle .7s var(--ease-bounce); }

.tile-cap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-inline: 4px;
}
.tile-mood { font-weight: 700; font-size: 1.05rem; }
.tile-num { font-family: var(--mono); font-size: .78rem; color: var(--muted); }
.grid-hint {
  margin: 34px 0 0;
  text-align: center;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--muted);
}

/* ---------- Ruh hali ---------- */

.mood {
  background: var(--pink);
  overflow: hidden;
}
.mood::before, .mood::after {
  content: "";
  position: absolute;
  width: 520px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, .16);
  pointer-events: none;
}
.mood::before { left: -220px; top: -260px; }
.mood::after { right: -200px; bottom: -300px; border-color: rgba(20, 22, 51, .08); }
.mood-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
.mood .lead { color: var(--ink); }
.mood-copy .btn { margin-top: 10px; }

.mood-machine { display: grid; justify-items: center; gap: 22px; }
.mood-window {
  position: relative;
  width: min(380px, 76vw);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 18px;
  background: var(--ink);
  box-shadow: 10px 10px 0 rgba(20, 22, 51, .35);
}
.mood-window::after {
  /* rögar kasnağı */
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 3px dashed rgba(255, 255, 255, .25);
  pointer-events: none;
}
.mood-window img,
.mood-cover {
  position: absolute;
  inset: 18px;
  width: calc(100% - 36px);
  height: calc(100% - 36px);
  border-radius: 50%;
  object-fit: cover;
}
.mood-window img { opacity: 0; transform: scale(.6); transition: opacity .15s, transform .15s; }
.mood-window.has-result img,
.mood-window.is-spinning img { opacity: 1; transform: none; }
.mood-cover { transition: transform .6s var(--ease-bounce), opacity .3s; }
.mood-window.has-result .mood-cover,
.mood-window.is-spinning .mood-cover { opacity: 0; transform: rotate(180deg) scale(1.2); }
.mood-window.is-spinning { animation: machineShake .12s linear infinite; }
.mood-window.is-landed { animation: landed .6s var(--ease-bounce); }

.mood-result {
  min-height: 2.6em;
  margin: 0;
  padding: 10px 22px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  font-size: 1.15rem;
  font-weight: 600;
  text-align: center;
}
.mood-result b { color: var(--blue); font-weight: 900; }
.mood-result.is-pop { animation: popIn .5s var(--ease-bounce); }

/* ---------- Kitap ---------- */

.book {
  background:
    radial-gradient(circle at 20% 40%, rgba(255, 255, 255, .1), transparent 45%),
    var(--blue-deep);
  color: #fff;
  overflow: hidden;
}
.book .lead { color: rgba(255, 255, 255, .85); }
.book-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.book-stage {
  display: grid;
  place-items: center;
  min-height: 460px;
}
.book3d-scene {
  --bw: min(300px, 64vw);
  --bt: calc(var(--bw) * .17);
  position: relative;
  perspective: 1400px;
  animation: hover 6s ease-in-out infinite;
}
.book3d {
  position: relative;
  width: var(--bw);
  height: var(--bw);
  transform-style: preserve-3d;
  transform: rotateX(var(--rx, 12deg)) rotateY(var(--ry, -32deg));
  transition: transform .5s var(--ease-out);
}
.b-face { position: absolute; }
.b-front, .b-back { inset: 0; border-radius: 3px 8px 8px 3px; }
.b-front {
  transform: translateZ(calc(var(--bt) / 2));
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .18) 0%, transparent 35%),
    var(--blue);
  box-shadow: inset 6px 0 10px -6px rgba(0, 0, 0, .45);
  overflow: hidden;
}
.b-title {
  position: absolute;
  left: 11%;
  top: 9%;
  font-weight: 700;
  font-size: calc(var(--bw) * .135);
  letter-spacing: -.02em;
  line-height: 1;
}
.b-author {
  position: absolute;
  right: 10%;
  top: 12.5%;
  font-weight: 600;
  font-size: calc(var(--bw) * .045);
  color: var(--green);
}
.b-char {
  position: absolute;
  left: 50%;
  top: 58%;
  width: 66%;
  transform: translate(-50%, -50%);
}
.b-back {
  transform: rotateY(180deg) translateZ(calc(var(--bt) / 2));
  background: var(--blue);
  display: grid;
  place-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
}
.b-back-line { font-weight: 800; font-size: calc(var(--bw) * .06); }
.b-back-pub { font-family: var(--mono); font-size: calc(var(--bw) * .04); color: var(--green); }
.b-spine {
  width: var(--bt);
  height: 100%;
  left: calc(50% - var(--bt) / 2);
  transform: rotateY(-90deg) translateZ(calc(var(--bw) / 2));
  background: linear-gradient(90deg, #2E3CC9, var(--blue) 45%, #2E3CC9);
  display: grid;
  place-items: center;
  border-radius: 4px;
}
.b-spine span {
  writing-mode: vertical-rl;
  font-weight: 700;
  font-size: calc(var(--bw) * .045);
  white-space: nowrap;
}
.b-pages { background: #F3EFE6; }
.b-right {
  width: calc(var(--bt) - 4px);
  height: calc(100% - 8px);
  top: 4px;
  left: calc(50% - var(--bt) / 2 + 2px);
  transform: rotateY(90deg) translateZ(calc(var(--bw) / 2 - 4px));
  background: repeating-linear-gradient(90deg, #F6F2EA 0 2px, #DCD6C8 2px 3px);
}
.b-top, .b-bottom {
  width: calc(100% - 6px);
  height: calc(var(--bt) - 4px);
  left: 2px;
  top: calc(50% - var(--bt) / 2 + 2px);
  background: repeating-linear-gradient(0deg, #F6F2EA 0 2px, #DCD6C8 2px 3px);
}
.b-top { transform: rotateX(90deg) translateZ(calc(var(--bw) / 2 - 4px)); }
.b-bottom { transform: rotateX(-90deg) translateZ(calc(var(--bw) / 2 - 4px)); }
.book-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -70px;
  height: 30px;
  border-radius: 50%;
  background: rgba(8, 10, 50, .45);
  filter: blur(14px);
  animation: shadowPulse 6s ease-in-out infinite;
}

.specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 30px 0 0;
}
.specs div {
  padding: 12px 16px;
  border: 2px solid rgba(255, 255, 255, .28);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06);
  transition: background .2s, border-color .2s, transform .3s var(--ease-bounce);
}
.specs div:hover { background: rgba(255, 255, 255, .14); border-color: var(--green); transform: translateY(-3px); }
.specs dt {
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--green);
}
.specs dt small { font-size: 1em; text-transform: none; letter-spacing: 0; }
.specs dd { margin: 2px 0 0; font-weight: 700; font-size: 1.05rem; }
.specs dd.mono { font-size: .92rem; }

.deck-wrap {
  display: grid;
  justify-items: center;
  gap: 14px;
  margin-top: clamp(60px, 8vw, 100px);
}
.deck {
  position: relative;
  width: min(300px, 64vw);
  aspect-ratio: 10 / 11;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.deck-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 10px 10px 0;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .5);
  overflow: hidden;
  transition: transform .6s var(--ease-bounce), opacity .3s;
}
.deck-card img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  background: #D9D9D9;
  transform: scale(var(--z, 1));
  clip-path: inset(calc((1 - 1 / var(--z, 1)) * 50%));
}
.deck-card { isolation: isolate; }
.deck-cap {
  padding: 8px 4px 10px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: .9rem;
  color: var(--blue);
  text-align: center;
}
.deck-card[data-pos="0"] { z-index: 3; transform: rotate(-3deg); }
.deck-card[data-pos="1"] { z-index: 2; transform: translateX(46%) rotate(8deg) scale(.94); }
.deck-card[data-pos="2"] { z-index: 1; transform: translateX(-46%) rotate(-10deg) scale(.9); }
.deck-card.is-flying { transform: translateY(-40%) rotate(-25deg) scale(1.05) !important; z-index: 4; }
.deck:hover .deck-card[data-pos="0"] { transform: rotate(0deg) translateY(-8px); }
.deck-hint { font-family: var(--mono); font-size: .85rem; color: rgba(255, 255, 255, .75); margin: 12px 0 0; }

/* ---------- Yazar ---------- */

.author-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(40px, 6vw, 90px);
  align-items: center;
}
.author-copy p:not(.kicker):not(.role) { color: var(--ink-soft); max-width: 56ch; }
.role {
  margin-top: -10px;
  font-family: var(--mono);
  font-size: .95rem;
  color: var(--blue);
}
.author-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.pill {
  display: inline-flex;
  gap: 6px;
  padding: 8px 16px;
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s var(--ease-bounce), box-shadow .2s, background .2s;
}
.pill:hover { background: var(--yellow); transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 5px 5px 0 var(--ink); }

.orbit {
  --size: min(440px, 84vw);
  --r: calc(var(--size) * .4);
  position: relative;
  width: var(--size);
  aspect-ratio: 1;
  margin-inline: auto;
}
.orbit::before {
  content: "";
  position: absolute;
  inset: 10%;
  border: 3px dashed rgba(20, 22, 51, .25);
  border-radius: 50%;
}
.orbit-ring {
  position: absolute;
  inset: 0;
  animation: spin 36s linear infinite;
}
.orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--size) * .2);
  margin: calc(var(--size) * -.1) 0 0 calc(var(--size) * -.1);
  transform: rotate(calc(var(--i) * 60deg)) translate(var(--r)) rotate(calc(var(--i) * -60deg));
}
.orb img {
  width: 100%;
  border-radius: 50%;
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  animation: spin 36s linear infinite reverse;
}
.orbit-center {
  position: absolute;
  inset: 27%;
  display: grid;
  place-items: center;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  box-shadow: 8px 8px 0 var(--ink);
  text-align: center;
  animation: breathe 5s ease-in-out infinite;
}
.oc-name { font-weight: 800; font-size: calc(var(--size) * .075); line-height: 1; letter-spacing: -.03em; }

/* ---------- Satın al ---------- */

.buy { background: var(--ink); color: #fff; }
.buy .lead { color: rgba(255, 255, 255, .78); }
.buy .section-head { margin-bottom: 28px; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 70px; }
.filter {
  padding: 8px 18px;
  border: 2.5px solid #fff;
  border-radius: 999px;
  background: transparent;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .2s, color .2s, transform .2s var(--ease-bounce);
}
.filter:hover { transform: translateY(-2px); }
.filter.is-active { background: #fff; color: var(--ink); }

.shops {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 70px 22px;
}
.shop {
  --fg: var(--ink);
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 6px;
  min-height: 210px;
  padding: 26px 24px 22px;
  border: 3px solid #fff;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--fg);
  text-decoration: none;
  box-shadow: 7px 7px 0 rgba(255, 255, 255, .9);
  transition: transform .35s var(--ease-bounce), box-shadow .35s var(--ease-out), opacity .6s var(--ease-out);
}
.shop.is-hidden { display: none; }
.shop:hover { transform: translate(-3px, -6px) rotate(-1.2deg); box-shadow: 11px 13px 0 #fff; }
.c-blue { --bg: var(--blue); --fg: #fff; }
.c-green { --bg: var(--green); }
.c-coral { --bg: var(--coral); }
.c-pink { --bg: var(--pink-soft); }
.c-yellow { --bg: var(--yellow); }
.c-lilac { --bg: var(--lilac); }
.c-white { --bg: #fff; }

.shop-type {
  font-family: var(--mono);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .8;
}
.shop-name { font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.shop-ed {
  justify-self: start;
  align-self: start;
  padding: 2px 10px;
  border: 2px solid currentColor;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 700;
}
.shop-go {
  display: inline-flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 2px dashed currentColor;
  font-weight: 800;
}
.shop-go span:last-child { transition: transform .3s var(--ease-bounce); }
.shop:hover .shop-go span:last-child { transform: translateX(6px) rotate(-10deg); }

/* kartın üst kenarındaki "rögardan" fırlayan karakter */
.peek {
  position: absolute;
  top: -58px;
  right: 22px;
  width: 64px;
  height: 58px;
  overflow: hidden;
  pointer-events: none;
}
.peek img {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid #fff;
  transform: translateY(105%);
  transition: transform .45s var(--ease-bounce);
}
.shop:hover .peek img,
.shop:focus-visible .peek img { transform: translateY(8px); }

.buy-note { margin: 50px 0 0; font-family: var(--mono); font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* ---------- Footer ---------- */

.footer {
  padding: 70px 0 40px;
  background: var(--blue);
  color: #fff;
  overflow: hidden;
}
.footer-mark {
  margin: 0 0 34px;
  font-size: clamp(5rem, 21vw, 16rem);
  font-weight: 900;
  letter-spacing: -.055em;
  line-height: 1;
  color: #fff;
  text-shadow: .035em .035em 0 var(--ink);
  white-space: nowrap;
  user-select: none;
  transition: color .3s, text-shadow .3s var(--ease-bounce);
}
.footer-mark:hover { color: var(--green); text-shadow: .05em .05em 0 var(--ink); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-top: 26px;
  border-top: 2px solid rgba(255, 255, 255, .3);
}
.footer-tag { margin: 0; font-size: 1.15rem; max-width: 40ch; }
.footer-tag b { color: var(--green); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; }
.footer-links a:hover { border-color: var(--green); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 24px;
  margin-top: 30px;
  padding-right: 80px;
}
.footer-legal { margin: 0; font-family: var(--mono); font-size: .8rem; color: rgba(255, 255, 255, .7); }
.footer-credits {
  display: flex;
  gap: 8px;
  margin: 0;
  font-family: var(--mono);
  font-size: .7rem;
  color: rgba(255, 255, 255, .4);
}
.footer-credits a { text-decoration: none; transition: color .2s; }
.footer-credits a:hover { color: rgba(255, 255, 255, .85); }

/* ---------- Başa dön ---------- */

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  width: 60px;
  height: 60px;
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--ink);
  cursor: pointer;
  box-shadow: 4px 4px 0 rgba(20, 22, 51, .35);
  opacity: 0;
  transform: translateY(20px) scale(.6);
  pointer-events: none;
  transition: opacity .3s, transform .4s var(--ease-bounce);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 100%; height: 100%; transform: rotate(var(--rot, 0deg)); }
.to-top:hover { transform: translateY(-4px) scale(1.06); }

/* ---------- Modal ---------- */

.modal {
  width: min(560px, calc(100% - 32px));
  padding: 0;
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--cream);
  color: var(--ink);
  box-shadow: 10px 10px 0 var(--ink);
  overflow: visible;
}
.modal::backdrop { background: rgba(20, 22, 51, .7); backdrop-filter: blur(4px); }
.modal[open] { animation: modalIn .5s var(--ease-bounce); }
.modal-body { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; padding: 26px 14px; }
.modal-fig { margin: 0; display: grid; gap: 16px; justify-items: center; text-align: center; }
.modal-fig img {
  width: min(320px, 60vw);
  border: 3px solid var(--ink);
  border-radius: 24%;
  box-shadow: 6px 6px 0 var(--ink);
}
.modal-fig img.is-swap { animation: swapIn .45s var(--ease-bounce); }
.modal-fig figcaption { display: grid; gap: 6px; justify-items: center; }
.modal-num { font-size: .85rem; color: var(--muted); }
.modal-mood { font-size: 2.2rem; font-weight: 900; letter-spacing: -.03em; line-height: 1; }
.modal-more { color: var(--muted); margin-bottom: 10px; }
.modal-nav, .modal-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2.5px solid var(--ink);
  border-radius: 50%;
  background: #fff;
  font-size: 1.2rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform .2s var(--ease-bounce), background .2s;
}
.modal-nav:hover { background: var(--yellow); transform: scale(1.1); }
.modal-close { position: absolute; top: -18px; right: -18px; background: var(--coral); font-size: 1.6rem; line-height: 1; }
.modal-close:hover { transform: rotate(90deg); }

/* ---------- Burst ---------- */

.burst {
  position: fixed;
  z-index: 60;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  pointer-events: none;
}

/* ---------- Keyframes ---------- */

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes popIn { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes letterDrop {
  0% { opacity: 0; transform: translateY(-120%) rotate(-20deg); }
  100% { opacity: 1; transform: none; }
}
@keyframes letterJump {
  0%, 100% { transform: none; }
  40% { transform: translateY(-22%) rotate(-8deg) scale(1.08); }
  70% { transform: translateY(4%) scaleY(.92); }
}
@keyframes hover { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-18px) rotate(6deg); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(0, 211, 117, .7); }
  100% { box-shadow: 0 0 0 14px rgba(0, 211, 117, 0); }
}
@keyframes browRaise {
  0%, 84%, 100% { transform: none; }
  88% { transform: translateY(-7px); }
  92% { transform: translateY(-7px); }
  96% { transform: translateY(1px); }
}
@keyframes mouthOh {
  0% { transform: none; }
  30% { transform: scale(.7, 1.45); }
  60% { transform: scale(1.15, .8); }
  100% { transform: none; }
}
@keyframes earWiggle {
  0%, 80%, 100% { transform: none; }
  85% { transform: rotate(-12deg); }
  90% { transform: rotate(10deg); }
  95% { transform: rotate(-4deg); }
}
@keyframes rollIn { from { opacity: 0; transform: translateX(-60px) rotate(-360deg); } to { opacity: 1; transform: none; } }
@keyframes dropIn { from { opacity: 0; transform: translateY(-80px) scale(.8); } to { opacity: 1; transform: none; } }
@keyframes flipIn { from { opacity: 0; transform: perspective(600px) rotateY(-180deg) scale(.7); } to { opacity: 1; transform: none; } }
@keyframes wobble {
  0%, 100% { transform: none; }
  25% { transform: rotate(-12deg) scale(1.05); }
  50% { transform: rotate(10deg); }
  75% { transform: rotate(-5deg); }
}
@keyframes jiggle {
  0%, 100% { transform: none; }
  20% { transform: rotate(-8deg) scale(1.05); }
  45% { transform: rotate(6deg); }
  70% { transform: rotate(-3deg); }
}
@keyframes machineShake {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-2px, 1px) rotate(-1deg); }
  50% { transform: translate(2px, -1px) rotate(1deg); }
  75% { transform: translate(-1px, -2px) rotate(0); }
}
@keyframes landed {
  0% { transform: scale(1); }
  35% { transform: scale(1.1) rotate(-4deg); }
  65% { transform: scale(.96) rotate(2deg); }
  100% { transform: none; }
}
@keyframes shadowPulse { 0%, 100% { transform: scaleX(1); opacity: .9; } 50% { transform: scaleX(.8); opacity: .6; } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes modalIn { from { opacity: 0; transform: scale(.7) rotate(-4deg); } to { opacity: 1; transform: none; } }
@keyframes swapIn { from { transform: rotate(-90deg) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Responsive ---------- */

@media (max-width: 1320px) {
  .f1 { display: none; }
}

@media (max-width: 980px) {
  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    border: 2.5px solid var(--ink);
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 6px 0 var(--ink);
    opacity: 0;
    transform: translateY(-10px) scale(.97);
    pointer-events: none;
    transition: opacity .25s, transform .3s var(--ease-bounce);
  }
  .nav-links.is-open { opacity: 1; transform: none; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; font-size: 1.1rem; }
  .nav-actions { margin-left: auto; }
  .burger { display: block; }

  .hero-inner { grid-template-columns: 1fr; text-align: left; gap: 30px; }
  .hero-art { order: -1; }
  .flipper { width: min(320px, 70vw); }
  .story-grid, .mood-grid, .book-grid, .author-grid { grid-template-columns: 1fr; }
  .char-grid { grid-template-columns: repeat(3, 1fr); }
  .book-stage { min-height: 380px; }
  .f3, .f6 { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 17px; }
  .nav { padding: 6px 6px 6px 12px; gap: 8px; }
  .nav .btn-sm { display: none; }
  .nav-links .nav-buy { display: block; background: var(--green); border: 2px solid var(--ink); }
  .brand { font-size: 1.2rem; }
  .brand-icon { width: 30px; height: 30px; }
  .hero { padding: 110px 0 110px; }
  .floater { --w: 54px !important; }
  .f2, .f5 { display: none; }
  .f1 { display: block; top: 12%; left: 2%; }
  .f4 { top: 22%; right: 2%; }
  .hero-ctas .btn { flex: 1 1 auto; justify-content: center; }
  .tapes { height: 170px; }
  .tape-track span { font-size: 1.15rem; }
  .tape-track img { width: 34px; height: 34px; }
  .char-grid { grid-template-columns: repeat(2, 1fr); }
  .equation { gap: 4px; padding: 16px; }
  .specs { grid-template-columns: 1fr; }
  .modal-body { grid-template-columns: 1fr 1fr; padding: 24px 16px; }
  .modal-fig { grid-column: 1 / -1; grid-row: 1; }
  .modal-nav.prev { justify-self: end; }
  .modal-nav { grid-row: 2; }
  .modal-close { right: -8px; }
  .shop-name { font-size: 1.7rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .tile { opacity: 1; transform: none; }
}
