/* ============================================================
   Boltie Beaver - boltiebeaver.com v1
   Tek tema: oyunun kendi dünyası (krem / bal-ahşap / usta turuncu /
   petrol teal / pirinç). Koyu tema bilinçli yok - marka dünyası.
   ============================================================ */

@font-face {
  font-family: "Fredoka";
  src: url("../font/Fredoka-Variable.ttf") format("truetype-variations");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --cream: #fbf5e9;
  --paper: #f4e9d4;
  --card: #fffcf4;
  --ink: #3b2a17;
  --ink-soft: #7a6248;
  --wood: #b5793c;
  --wood-deep: #7a4e22;
  --wood-dark: #4a2f14;
  --orange: #e97524;
  --orange-deep: #c85a12;
  --teal: #3fa7a0;
  --teal-deep: #2c7a74;
  --brass: #e5a93f;
  --brick: #d95f43;
  --rose: #c9647a;
  --radius: 22px;
  --shadow: 0 2px 0 rgba(90, 64, 34, 0.08), 0 14px 34px -18px rgba(74, 47, 20, 0.55);
  --maxw: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: "Fredoka", "Segoe UI", system-ui, sans-serif;
  font-weight: 500;
  font-variation-settings: "wght" 500;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  overflow-x: hidden;
}

h1, h2, h3, .display {
  font-weight: 600;
  font-variation-settings: "wght" 620;
  line-height: 1.12;
  text-wrap: balance;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-deep); }
p { max-width: 62ch; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ------------------------------------------------ üst bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 233, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(122, 78, 34, 0.14);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto; padding: 10px 22px;
  display: flex; align-items: center; gap: 20px;
}
/* Rozet + isim kilidi (kullanici karari 2026-08-08: sitede isim YAZILI) */
.topbar-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.topbar-logo img { width: 48px; height: 48px; }
.brand-name {
  font-weight: 600; font-variation-settings: "wght" 640;
  font-size: 21px; color: var(--ink); letter-spacing: 0.005em;
  white-space: nowrap;
}
.topbar nav { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.topbar nav a {
  text-decoration: none; color: var(--ink); font-size: 15.5px;
}
.topbar nav a:hover { color: var(--orange-deep); }
.nav-hide-s { display: none; }
@media (min-width: 640px) { .nav-hide-s { display: inline; } }

/* ------------------------------------------------ CTA butonu */
.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, #f68b3a, var(--orange) 55%, var(--orange-deep));
  color: #fff8ef; text-decoration: none;
  font-weight: 600; font-variation-settings: "wght" 640;
  letter-spacing: 0.04em;
  padding: 13px 26px; border-radius: 999px;
  border: 2px solid rgba(74, 47, 20, 0.35);
  box-shadow: 0 3px 0 var(--wood-dark), 0 12px 22px -10px rgba(200, 90, 18, 0.7);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 5px 0 var(--wood-dark), 0 16px 26px -10px rgba(200, 90, 18, 0.75); }
.cta:active { transform: translateY(1px); box-shadow: 0 1px 0 var(--wood-dark); }
.cta .bolt-ic { width: 22px; transition: transform 0.35s ease; }
.cta:hover .bolt-ic { transform: rotate(180deg); }
.cta.small { padding: 9px 18px; font-size: 14px; }
.cta.big { padding: 16px 34px; font-size: 19px; }

/* ------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; z-index: -2;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 62%;
  transform: scale(1.06);
}
/* W-A panorama: masaustunde kulube solda kalir, yazi sag goge oturur */
@media (min-width: 701px) {
  .hero-bg img { object-position: left center; }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg,
    rgba(59, 42, 23, 0.18) 0%,
    rgba(59, 42, 23, 0.05) 30%,
    rgba(251, 245, 233, 0.42) 74%,
    var(--cream) 100%);
}
.hero-in {
  max-width: var(--maxw); margin: 0 auto; padding: 46px 22px 30px;
  display: grid; gap: 18px; justify-items: center; text-align: center;
}
.hero-logo { width: min(340px, 72vw); filter: drop-shadow(0 10px 18px rgba(40, 24, 8, 0.45)); }
.hero h1 {
  font-size: clamp(26px, 4.6vw, 42px);
  color: #fff8ec;
  text-shadow: 0 2px 0 rgba(59, 42, 23, 0.65), 0 8px 24px rgba(40, 24, 8, 0.5);
  max-width: 17ch;
}
.hero-sub {
  font-size: clamp(15px, 2.2vw, 19px);
  color: #fdf3df;
  text-shadow: 0 1px 0 rgba(59, 42, 23, 0.6), 0 4px 14px rgba(40, 24, 8, 0.45);
}
.hero-stage {
  display: flex; align-items: flex-end; justify-content: center;
  gap: clamp(6px, 4vw, 44px); margin-top: 6px;
}
.hero-mascot { width: clamp(190px, 30vw, 330px); filter: drop-shadow(0 14px 22px rgba(40, 24, 8, 0.4)); }
/* GENIS HERO (kullanici 2026-08-08: "ortaya sikismis" + "baslik 2 satir"):
   icerik SAG goge, maskot+telefon SOLDA kulubenin onune. DIKKAT: bu blok
   temel .hero-in/.hero h1 kurallarindan SONRA durmali (ayni ozgulluk -
   kaynak sirasi kazanir; bir kez onlerine yazilip sessizce ezildi). */
@media (min-width: 701px) {
  /* baslik 17ch'te 4 satira kiriliyordu - genis ekranda ~2 satir */
  .hero h1 { max-width: 30ch; }
}
@media (min-width: 1020px) {
  .hero-in {
    max-width: 1560px;
    grid-template-columns: 1.05fr 1fr;
    grid-template-areas:
      "stage logo"
      "stage h1"
      "stage sub"
      "stage cta"
      "stage pills";
    column-gap: 28px;
    align-content: center;
  }
  .hero-in > picture     { grid-area: logo; align-self: end; }
  .hero-in > h1          { grid-area: h1; max-width: 34ch; font-size: clamp(28px, 2.6vw, 40px); }
  .hero-in > .hero-sub   { grid-area: sub; }
  .hero-in > .cta.big    { grid-area: cta; }
  .hero-in > .follow     { grid-area: pills; align-self: start; }
  .hero-in > .hero-stage { grid-area: stage; align-self: end; }
}

/* CSS telefon çerçevesi - içinde GERÇEK oyun görüntüsü */
.phone {
  width: clamp(150px, 22vw, 226px);
  border-radius: 34px;
  padding: 10px;
  background: linear-gradient(160deg, #4c3a28, #241708);
  box-shadow: 0 24px 44px -18px rgba(30, 18, 6, 0.65), inset 0 1px 2px rgba(255, 240, 214, 0.25);
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 38%; height: 16px; background: #241708; border-radius: 0 0 12px 12px; z-index: 2;
}
.phone img { border-radius: 24px; }

/* ------------------------------------------------ bölümler */
section { padding: 64px 0; }
.sec-title {
  text-align: center; font-size: clamp(24px, 3.6vw, 34px); margin-bottom: 10px;
}
.sec-lead { text-align: center; color: var(--ink-soft); margin: 0 auto 38px; }
.divider {
  display: flex; justify-content: center; gap: 10px; margin: 0 auto 16px;
}
.divider img { width: 26px; }

/* özellik kartları */
.cards { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--card);
  border: 2px solid rgba(181, 121, 60, 0.35);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px 22px 24px;
  text-align: center;
  display: grid; justify-items: center; gap: 12px;
}
.card img { height: 128px; width: auto; }
.card h3 { font-size: 21px; }
.card p { font-size: 15.5px; color: var(--ink-soft); }

/* (Repair Journey + Screenshots bolumleri KALDIRILDI - kullanici 2026-08-08) */

/* ------------------------------------------------ son CTA */
.final-cta {
  background: url("../img/section-bg.webp") center / cover no-repeat,
              linear-gradient(180deg, #eeddba, var(--paper));
  text-align: center;
}
.final-cta .hero-mascot { width: 210px; margin: 0 auto 8px; filter: drop-shadow(0 10px 16px rgba(74, 47, 20, 0.35)); }
.final-cta h2 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 8px; }
.final-cta p { margin: 0 auto 22px; color: var(--ink-soft); }

/* ------------------------------------------------ footer */
footer {
  background: var(--wood-dark);
  color: #efe0c8;
  padding: 40px 0 30px;
  font-size: 14.5px;
}
.foot-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 22px;
  display: grid; gap: 18px;
}
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: #f6e8cd; text-decoration: none; }
.foot-links a:hover { color: var(--brass); }
.foot-social { display: flex; gap: 16px; }
.foot-social a {
  color: #f6e8cd; text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.foot-social svg { width: 20px; height: 20px; fill: currentColor; }
.foot-note { color: #c9b08a; font-size: 13px; }

/* ------------------------------------------------ alt sayfalar */
.page { padding: 46px 0 70px; }
.page .wrap { max-width: 760px; }
.page h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 6px; }
.page h2 { font-size: 21px; margin: 30px 0 8px; }
.page p, .page li { color: var(--ink); font-size: 16px; }
.page ul { padding-left: 22px; }
.page .meta { color: var(--ink-soft); font-size: 14.5px; margin-bottom: 22px; }
.press-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); margin: 14px 0 6px; }
@media (min-width: 640px) { .press-grid { grid-template-columns: repeat(3, 1fr); } }
.press-grid a { display: grid; gap: 6px; text-decoration: none; color: var(--ink-soft); font-size: 13.5px; text-align: center; }
.press-grid img { background: var(--card); border: 1.5px solid rgba(181, 121, 60, 0.4); border-radius: 12px; padding: 10px; }
.err { text-align: center; padding: 70px 0; }
.err img { width: 240px; margin: 0 auto 14px; }

/* ------------------------------------------------ scroll reveal */
.rv { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.on { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  .cta, .cta .bolt-ic { transition: none; }
}


/* (Meet Boltie duygu seridi KALDIRILDI - kullanici 2026-08-08:
   maskotun tum gorselleri sitede sergilenmesin) */

/* Son CTA altindaki sosyal yonlendirme seridi (cikis oncesi tek kanal) */
.follow { margin-top: 26px; }
.follow-lead { color: var(--ink-soft); font-size: 15.5px; margin-bottom: 12px; }
.follow-row { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.soc-pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--card); color: var(--wood-deep);
  border: 2px solid rgba(181, 121, 60, 0.45);
  box-shadow: var(--shadow);
  text-decoration: none; font-weight: 600; font-size: 15.5px;
  font-variation-settings: "wght" 620;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.soc-pill svg { width: 20px; height: 20px; fill: currentColor; }
.soc-pill:hover { transform: translateY(-2px); border-color: var(--brass); }
/* hero varyanti: gok ustunde okunakli, biraz daha kompakt */
.follow-hero { margin-top: 2px; }
.follow-hero .follow-lead {
  color: #fdf3df; font-size: 15px; margin-bottom: 10px;
  text-shadow: 0 1px 0 rgba(59, 42, 23, 0.6), 0 4px 14px rgba(40, 24, 8, 0.45);
}
.follow-hero .soc-pill { padding: 8px 15px; font-size: 14.5px; }
.follow-hero .soc-pill svg { width: 18px; height: 18px; }

/* Son CTA altindaki notify satiri */
.notify { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }
.notify a { color: var(--teal-deep); font-weight: 600; }
/* Yapiskan topbar altina kacan capa basliklari icin */
section[id] { scroll-margin-top: 120px; }

/* ============================================================
   ANIMASYON TURU - 2026-08-07 (dengeli ton: cozy temel + juice)
   Kural: yalniz transform/opacity/filter; hepsi reduced-motion kapili;
   scroll-timeline yalniz destekleyen tarayicida (aksi: statik, kayip yok).
   ============================================================ */

/* Hero icerigi civatalarin USTUNDE dursun */
.hero-in { position: relative; z-index: 1; }

/* Telefon cercevesi: ust uste kareler (JS crossfade; JS'siz ilk kare) */
.ph-frames { position: relative; }
.ph-shot { display: block; opacity: 0; transition: opacity 0.9s ease; }
.ph-shot.cur { opacity: 1; }
.ph-shot + .ph-shot { position: absolute; inset: 0; }

/* Havada suzulen civatalar (dekor) */
.hero-bolts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hb { position: absolute; opacity: 0.9; filter: drop-shadow(0 6px 8px rgba(40, 24, 8, 0.35)); }
.hb1 { left: 5%;  top: 16%; }
.hb2 { left: 11%; top: 58%; }
.hb3 { right: 6%; top: 22%; }
.hb4 { right: 12%; top: 64%; }
.hb5 { left: 47%; top: 7%; }

/* Ilerleme bari varsayilan gizli (yalniz scroll-timeline varsa acilir) */
.progress { display: none; }

@media (prefers-reduced-motion: no-preference) {

  /* ---------- A. HERO ACILIS ORKESTRASYONU (tek sefer) ---------- */
  @keyframes h-drop {
    0%   { opacity: 0; transform: translateY(-36px) scale(0.92); }
    65%  { opacity: 1; transform: translateY(5px) scale(1.02); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes h-rise  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  @keyframes h-pop   {
    0%   { opacity: 0; transform: scale(0.7); }
    70%  { opacity: 1; transform: scale(1.06); }
    100% { opacity: 1; transform: none; }
  }
  @keyframes h-slide { from { opacity: 0; transform: translateX(-44px) rotate(-4deg); } to { opacity: 1; transform: none; } }
  @keyframes h-phone { from { opacity: 0; transform: translateY(56px) rotate(2deg); } to { opacity: 1; transform: none; } }
  @keyframes bob {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-7px) rotate(-1.2deg); }
  }

  .hero-logo            { animation: h-drop 0.65s ease-out both; }
  .hero h1              { animation: h-rise 0.6s 0.18s ease-out both; }
  .hero-sub             { animation: h-rise 0.6s 0.3s ease-out both; }
  .hero-in > .cta.big   { animation: h-pop 0.5s 0.45s cubic-bezier(0.3, 1.4, 0.5, 1) both; }
  .hero-in > .follow    { animation: h-rise 0.6s 0.58s ease-out both; }
  .hero-stage .hero-mascot {
    animation: h-slide 0.7s 0.55s ease-out both,
               bob 5.5s 2.2s ease-in-out infinite;
  }
  .phone                { animation: h-phone 0.7s 0.7s ease-out both; }
  .final-cta .hero-mascot { animation: bob 6s ease-in-out infinite; }

  /* ---------- A. SUZULEN CIVATALAR ---------- */
  @keyframes floaty  { from { transform: translateY(0) rotate(0deg); }  to { transform: translateY(-16px) rotate(14deg); } }
  @keyframes floaty2 { from { transform: translateY(0) rotate(0deg); }  to { transform: translateY(13px) rotate(-12deg); } }
  .hb  { animation: floaty 8s ease-in-out infinite alternate; }
  .hb2 { animation: floaty2 9.5s 0.8s ease-in-out infinite alternate; }
  .hb3 { animation: floaty 7s 1.6s ease-in-out infinite alternate; }
  .hb4 { animation: floaty2 10.5s 0.4s ease-in-out infinite alternate; }
  .hb5 { animation: floaty 11s 2.2s ease-in-out infinite alternate; }

  /* ---------- B. TAMIR ILERLEME BARI (scroll-timeline) ---------- */
  @supports (animation-timeline: scroll()) {
    .progress {
      display: block; position: absolute; left: 0; right: 0; bottom: -3px;
      height: 6px; pointer-events: none;
    }
    .progress-fill {
      position: relative; height: 100%; width: 100%;
      background: linear-gradient(90deg, var(--brass), var(--orange));
      border-radius: 0 3px 3px 0;
      box-shadow: 0 1px 3px rgba(74, 47, 20, 0.3);
      transform: translateX(-100%);
      animation: fill-x linear both;
      animation-timeline: scroll(root);
    }
    .progress-fill img {
      position: absolute; right: -7px; top: -4px; width: 14px; height: 14px;
      animation: bolt-spin linear both;
      animation-timeline: scroll(root);
    }
  }
  @keyframes fill-x    { from { transform: translateX(-100%); } to { transform: translateX(0); } }
  @keyframes bolt-spin { from { transform: rotate(0deg); }      to { transform: rotate(900deg); } }

  /* ---------- C. CTA parilti supurmesi + juicy basim ---------- */
  .cta { position: relative; overflow: hidden; }
  .cta.big::after {
    content: ""; position: absolute; top: -20%; bottom: -20%; left: -30%; width: 36%;
    background: linear-gradient(105deg, transparent, rgba(255, 248, 230, 0.55), transparent);
    transform: translateX(-140%) skewX(-18deg);
    animation: shine 5.6s ease-in-out 2.4s infinite;
    pointer-events: none;
  }
  @keyframes shine {
    0%   { transform: translateX(-140%) skewX(-18deg); }
    14%  { transform: translateX(480%) skewX(-18deg); }
    100% { transform: translateX(480%) skewX(-18deg); }
  }
  .cta:active { transform: translateY(1px) scale(0.96, 0.93); }

  /* ---------- C. Kart/mood/shot mikro-etkilesimleri ---------- */
  @keyframes wobble {
    0% { transform: none; } 25% { transform: rotate(-5deg); }
    55% { transform: rotate(4deg); } 80% { transform: rotate(-2deg); } 100% { transform: none; }
  }
  @media (hover: hover) {
    .card:hover img { animation: wobble 0.6s ease; }
    .card { transition: border-color 0.25s ease, box-shadow 0.6s ease; }
    .card:hover { border-color: var(--brass); }
  }
}