/* ============================================================
   Redrock Studio — style.css
   Açık, eğlenceli, animasyonlu tema
   ============================================================ */

:root {
  --bg: #fff7f0;
  --bg-tint: #fff0e6;
  --ink: #241a2e;
  --ink-soft: #5c5266;
  --card: #ffffff;
  --line: #f0e1d6;

  --red: #ff5a3c;
  --orange: #ff9f1c;
  --pink: #ff6fa5;
  --purple: #7c4dff;
  --blue: #2ec5ff;
  --green: #2bd97a;
  --gold: #ffd23f;

  --grad-warm: linear-gradient(120deg, #ff5a3c 0%, #ff9f1c 100%);
  --grad-fun: linear-gradient(120deg, #7c4dff 0%, #2ec5ff 50%, #2bd97a 100%);

  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 18px 50px -18px rgba(124, 77, 255, .28);
  --shadow-sm: 0 10px 30px -12px rgba(36, 26, 46, .18);
  --container: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-weight: 600;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: "Fredoka", "Nunito", sans-serif;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.01em;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.grad-text {
  background: var(--grad-warm);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* ---------- Animated background orbs ---------- */
.bg-orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: .5;
  animation: drift 22s var(--ease) infinite alternate;
}
.orb--1 { width: 420px; height: 420px; background: #ffb38a; top: -120px; left: -100px; }
.orb--2 { width: 380px; height: 380px; background: #b6a3ff; top: 30%; right: -140px; animation-delay: -6s; }
.orb--3 { width: 340px; height: 340px; background: #9be7c8; bottom: -120px; left: 10%; animation-delay: -12s; }
.orb--4 { width: 300px; height: 300px; background: #ffd98a; top: 55%; left: 40%; animation-delay: -3s; }

@keyframes drift {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(40px,-50px,0) scale(1.15); }
}

/* ---------- Scroll progress ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 4px; width: 0%;
  background: var(--grad-fun);
  z-index: 100; border-radius: 0 4px 4px 0;
  transition: width .1s linear;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky; top: 0; z-index: 90;
  padding: 14px 0;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), padding .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(255, 247, 240, .82);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px -18px rgba(36,26,46,.35);
  padding: 8px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.nav__logo {
  height: 46px; width: auto; border-radius: 12px;
  transition: transform .3s var(--ease);
  mix-blend-mode: multiply;
}
.nav__brand:hover .nav__logo { transform: rotate(-4deg) scale(1.05); }

.nav__links { display: flex; align-items: center; gap: 26px; }
.nav__links a { font-weight: 700; font-size: .98rem; color: var(--ink-soft); transition: color .2s; }
.nav__links a:hover { color: var(--red); }
.nav__links a.btn { color: #fff; }

.nav__toggle {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav__toggle span {
  width: 26px; height: 3px; border-radius: 3px; background: var(--ink);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  --pad: 14px 26px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: var(--pad);
  border-radius: 999px;
  font-family: "Fredoka", sans-serif;
  font-weight: 600; font-size: 1rem;
  cursor: pointer; border: 0;
  transition: transform .2s var(--ease), box-shadow .3s var(--ease), filter .2s;
  white-space: nowrap;
}
.btn--sm { --pad: 10px 20px; font-size: .92rem; }
.btn--lg { --pad: 17px 34px; font-size: 1.08rem; }
.btn--primary { background: var(--grad-warm); color: #fff; box-shadow: 0 14px 30px -10px rgba(255,90,60,.6); }
.btn--primary:hover { transform: translateY(-3px) scale(1.03); box-shadow: 0 20px 40px -10px rgba(255,90,60,.7); }
.btn--ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { transform: translateY(-3px); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--dark:hover { transform: translateY(-3px) scale(1.03); filter: brightness(1.15); }

/* ---------- Pills / section heads ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 16px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 800; font-size: .82rem; letter-spacing: .02em;
  text-transform: uppercase; color: var(--ink-soft);
}
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section--tint { background: var(--bg-tint); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto clamp(40px, 6vw, 70px); }
.section__head h2 { font-size: clamp(2rem, 5vw, 3.1rem); margin: 18px 0 12px; }
.section__head p { color: var(--ink-soft); font-size: 1.12rem; }

/* ---------- Hero ---------- */
.hero { padding: clamp(40px, 7vw, 90px) 0 0; position: relative; }
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 50px; align-items: center;
}
.hero__title { font-size: clamp(2.6rem, 6.5vw, 4.6rem); margin: 22px 0; }
.hero__lead { font-size: clamp(1.05rem, 2.3vw, 1.28rem); color: var(--ink-soft); max-width: 33ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }

.hero__stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.stat b {
  font-family: "Fredoka", sans-serif; font-size: 2.2rem; font-weight: 600;
  display: block; line-height: 1;
  background: var(--grad-fun); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat span { font-size: .9rem; color: var(--ink-soft); font-weight: 700; }

/* Hero art */
.hero__art { position: relative; display: grid; place-items: center; min-height: 460px; }
.phone {
  width: 260px; aspect-ratio: 9 / 18.5;
  background: #1a1330; border-radius: 44px;
  padding: 12px;
  box-shadow: 0 40px 80px -24px rgba(124,77,255,.5), inset 0 0 0 3px rgba(255,255,255,.15);
  position: relative;
  animation: bob 5s ease-in-out infinite;
}
.phone__screen { width: 100%; height: 100%; border-radius: 32px; overflow: hidden; background: #000; }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; }
.phone__notch {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 90px; height: 20px; background: #1a1330; border-radius: 0 0 14px 14px;
}
@keyframes bob { 0%,100% { transform: translateY(-10px); } 50% { transform: translateY(10px); } }

.float-icon {
  position: absolute; width: 92px; height: 92px; border-radius: 24px;
  box-shadow: var(--shadow); border: 4px solid #fff;
}
.float-icon--a { top: 8%; right: 4%; animation: bob 4.2s ease-in-out infinite; }
.float-icon--b { bottom: 6%; left: 0%; width: 76px; height: 76px; animation: bob 3.6s ease-in-out infinite reverse; }

.spark { position: absolute; color: var(--gold); font-size: 1.4rem; animation: twinkle 2.4s ease-in-out infinite; }
.spark--1 { top: 12%; left: 14%; }
.spark--2 { bottom: 22%; right: 10%; animation-delay: .8s; }
.spark--3 { top: 46%; right: 30%; animation-delay: 1.5s; font-size: 1rem; }
@keyframes twinkle { 0%,100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }

/* ---------- Marquee ---------- */
.marquee {
  margin-top: clamp(50px, 8vw, 90px);
  background: var(--ink); color: #fff;
  padding: 16px 0; overflow: hidden;
  transform: rotate(-1.5deg) scale(1.03);
}
.marquee__track { display: flex; width: max-content; animation: scroll-x 24s linear infinite; }
.marquee__track span {
  font-family: "Fredoka", sans-serif; font-size: 1.1rem; letter-spacing: .08em;
  padding-right: 10px; white-space: nowrap;
}
@keyframes scroll-x { to { transform: translateX(-50%); } }

/* ---------- Games ---------- */
.game {
  display: grid; grid-template-columns: 1fr 1fr; gap: 46px; align-items: center;
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 34px);
  box-shadow: var(--shadow);
  margin-bottom: 40px;
}
.game--rev { direction: rtl; }
.game--rev > * { direction: ltr; }

.game__media {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 5; background: #120a26;
}
.game__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.game:hover .game__media img { transform: scale(1.05); }
.game__media--forest { display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #1f3a24, #0c1a10); }
.game__media--forest img { object-fit: contain; padding: 10%; }

.game__badge {
  position: absolute; top: 16px; left: 16px;
  background: var(--grad-warm); color: #fff;
  padding: 6px 14px; border-radius: 999px;
  font-family: "Fredoka", sans-serif; font-size: .82rem; font-weight: 600;
  box-shadow: 0 10px 20px -8px rgba(255,90,60,.7);
}

.game__title { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.game__icon { width: 64px; height: 64px; border-radius: 16px; border: 3px solid #fff; box-shadow: var(--shadow-sm); }
.game__title h3 { font-size: 1.9rem; }
.game__tag { color: var(--ink-soft); font-size: .95rem; font-weight: 700; }
.game__desc { color: var(--ink-soft); margin-bottom: 18px; font-size: 1.05rem; }
.game__feats { list-style: none; display: grid; gap: 8px; margin-bottom: 24px; }
.game__feats li { font-weight: 700; }

.store-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff;
  padding: 10px 20px; border-radius: 14px;
  transition: transform .2s var(--ease), filter .2s;
}
.store-btn:hover { transform: translateY(-3px); filter: brightness(1.2); }
.store-btn svg { width: 26px; height: 26px; fill: #fff; flex-shrink: 0; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; }
.store-btn small { font-size: .68rem; opacity: .8; text-transform: uppercase; letter-spacing: .05em; }
.store-btn strong { font-family: "Fredoka", sans-serif; font-size: 1.05rem; font-weight: 600; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.studio__art {
  background: #fff; border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow); display: grid; place-items: center;
  animation: bob 6s ease-in-out infinite;
}
.studio__copy h2 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 16px 0 16px; }
.studio__copy p { color: var(--ink-soft); margin-bottom: 14px; font-size: 1.08rem; }
.studio__pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.studio__pills span {
  background: #fff; box-shadow: var(--shadow-sm);
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: .9rem;
}

/* ---------- Value cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow); }
.card__ico {
  width: 62px; height: 62px; display: grid; place-items: center;
  font-size: 1.7rem; border-radius: 18px; margin-bottom: 18px;
  background: var(--grad-fun);
}
.card h3 { font-size: 1.35rem; margin-bottom: 10px; }
.card p { color: var(--ink-soft); }

/* ---------- CTA ---------- */
.cta { padding: clamp(70px, 10vw, 120px) 0; text-align: center; }
.cta__inner {
  background: var(--grad-warm); color: #fff;
  border-radius: var(--radius-lg); padding: clamp(44px, 7vw, 80px) 24px;
  box-shadow: 0 40px 80px -30px rgba(255,90,60,.7);
  position: relative; overflow: hidden;
}
.cta__inner::after {
  content: ""; position: absolute; inset: -50% -10% auto auto;
  width: 340px; height: 340px; background: rgba(255,255,255,.16); border-radius: 50%;
}
.cta__inner h2 { font-size: clamp(1.9rem, 5vw, 3rem); margin-bottom: 12px; position: relative; }
.cta__inner p { font-size: 1.15rem; opacity: .95; margin-bottom: 28px; position: relative; }
.cta__inner .hero__cta { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #cfc6d8; padding: 70px 0 30px; }
.footer__inner {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 40px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__brand img { height: 52px; width: auto; border-radius: 12px; margin-bottom: 14px; background:#fff; padding:4px; }
.footer__brand p { max-width: 30ch; font-size: .95rem; }
.footer__col h4 { color: #fff; font-size: 1rem; margin-bottom: 14px; }
.footer__col a { display: block; margin-bottom: 9px; font-weight: 700; font-size: .95rem; transition: color .2s; }
.footer__col a:hover { color: var(--orange); }
.footer__muted { font-size: .82rem; opacity: .6; }
.footer__bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px;
  padding-top: 24px; font-size: .88rem; opacity: .8;
}

/* ---------- Reveal animation ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { max-width: 46ch; }
  .hero__cta, .hero__stats { justify-content: center; }
  .hero__art { order: -1; min-height: 380px; }
  .game, .game--rev { grid-template-columns: 1fr; direction: ltr; }
  .game__media { max-width: 380px; margin: 0 auto; }
  .studio { grid-template-columns: 1fr; text-align: center; }
  .studio__pills { justify-content: center; }
  .cards { grid-template-columns: 1fr; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav__links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    background: var(--bg); flex-direction: column; align-items: flex-start;
    padding: 90px 30px 30px; gap: 22px;
    transform: translateX(100%); transition: transform .35s var(--ease);
    box-shadow: -20px 0 60px -20px rgba(36,26,46,.35);
  }
  .nav__links.is-open { transform: none; }
  .nav__toggle { display: flex; }
  .footer__inner { grid-template-columns: 1fr; }
  .hero__stats { gap: 22px; }
  .stat b { font-size: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
