/* Project Center — tanıtım sayfası
   Palet, Ayhan Bey'e sunulan simülasyondan alındı; iki materyal yan yana
   geldiğinde aynı markanın parçası gibi durması için. */

:root {
  --bg: #0c1424;
  --bg-2: #0f1a30;
  --panel: #121e38;
  --ink: #eef2f9;
  --muted: #8fa0bd;
  --line: #26344f;
  --accent: #60a5fa;
  --accent-2: #93c5fd;
  --ok: #34d399;
  --radius: 16px;
  --wrap: 1180px;
  --spring: cubic-bezier(.34, 1.3, .64, 1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #04101f; padding: .8rem 1.2rem; border-radius: 0 0 10px 0;
}
.skip:focus { left: 0; }

/* ── Görünürlük animasyonu ─────────────────────────────────────────── */
/* İçerik VARSAYILAN OLARAK GÖRÜNÜR. Gizleme yalnızca `.js` sınıfı varken
   uygulanır; böylece JS çalışmazsa sayfa animasyonsuz ama eksiksiz görünür.
   Aksi kurgu, tek bir script hatasında tüm sayfayı boşaltır. */
.js .reveal { opacity: 0; transform: translateY(22px); }
.reveal { transition: opacity .7s ease, transform .7s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: .08s } .d2 { transition-delay: .16s } .d3 { transition-delay: .24s }
.d4 { transition-delay: .32s } .d5 { transition-delay: .4s }

/* ── Navigasyon ────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(12, 20, 36, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.nav.stuck { border-bottom-color: var(--line); background: rgba(12, 20, 36, .92); }
.nav-in { min-height: 78px; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; font-size: 1.15rem; letter-spacing: .01em; }
.brand svg { width: 30px; height: 30px; color: var(--accent); flex: none; }
.brand b { font-weight: 800; }

.nav-links { display: flex; gap: 1.4rem; margin-left: auto; font-size: .96rem; }
.nav-links a { text-decoration: none; color: var(--muted); transition: color .2s; white-space: nowrap; }
.nav-links a:hover { color: var(--ink); }

.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: .5rem; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); margin: 4px 0; transition: .3s; }

/* ── Butonlar ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 1.6rem;
  background: var(--accent); color: #05101f;
  border: 0; border-radius: 999px;
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--spring), box-shadow .2s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(96, 165, 250, .28); }
.btn:active { transform: translateY(0); }
.btn-sm { min-height: 40px; padding: 0 1.1rem; font-size: .92rem; }
.btn-lg { min-height: 56px; padding: 0 2rem; font-size: 1.05rem; }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--accent); box-shadow: none; }

/* ── Hero ──────────────────────────────────────────────────────────── */
.hero { position: relative; padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 9vw, 7rem); overflow: hidden; }
.hero-bg {
  position: absolute; inset: -20% -10% auto; height: 130%;
  background:
    radial-gradient(60% 50% at 20% 10%, rgba(96, 165, 250, .16), transparent 70%),
    radial-gradient(50% 45% at 85% 25%, rgba(147, 197, 253, .10), transparent 70%);
  pointer-events: none;
}
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }

.eyebrow {
  display: inline-block; margin: 0 0 1rem;
  font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--accent);
}
.eyebrow::before { content: ''; display: inline-block; width: 26px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: .7rem; }

h1 { margin: 0 0 1.2rem; font-size: clamp(2.2rem, 5.2vw, 3.7rem); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; }
h1 em { font-style: normal; color: var(--accent); }

.lead { margin: 0 0 2rem; font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--muted); max-width: 46ch; }

.countdown { margin-bottom: 2rem; }
.cd-label { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: .6rem; }
.cd-boxes { display: flex; gap: .7rem; flex-wrap: wrap; }
.cd-box { min-width: 76px; padding: .7rem .5rem; text-align: center; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.cd-box b { display: block; font-size: 1.7rem; font-weight: 800; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-box span { font-size: .74rem; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.cd-soon { font-size: 1.5rem; font-weight: 800; color: var(--accent); }

.hero-cta { display: flex; gap: .8rem; flex-wrap: wrap; }

.hero-visual { margin: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 70px rgba(0, 0, 0, .45); }
.hero-visual img { width: 100%; height: auto; }

.scroll-hint { position: absolute; bottom: 1.4rem; left: 50%; translate: -50% 0; width: 22px; height: 34px; border: 1.5px solid var(--line); border-radius: 12px; }
.scroll-hint span { position: absolute; top: 7px; left: 50%; translate: -50% 0; width: 3px; height: 7px; border-radius: 2px; background: var(--accent); animation: sc 1.7s infinite; }
@keyframes sc { 0% { opacity: 0; transform: translateY(0) } 40% { opacity: 1 } 100% { opacity: 0; transform: translateY(11px) } }

/* ── Rakamlar ──────────────────────────────────────────────────────── */
.stats { border-block: 1px solid var(--line); background: var(--bg-2); }
.stats-in { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; padding: 2.4rem 0; }
.stat { text-align: center; }
.stat b { display: block; font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { font-size: .93rem; color: var(--muted); }

/* ── Bölümler ──────────────────────────────────────────────────────── */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }

.sec-head { max-width: 62ch; margin-bottom: 3rem; }
.sec-head h2 { margin: 0 0 .9rem; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.2; font-weight: 800; letter-spacing: -.015em; }
.sec-sub { margin: 0; color: var(--muted); font-size: 1.05rem; }

.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.cards-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  padding: 1.7rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform .3s var(--spring), border-color .3s;
}
.card:hover { transform: translateY(-4px); border-color: var(--accent); }
.card h3 { margin: 0 0 .6rem; font-size: 1.14rem; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: .97rem; }
.ico { width: 42px; height: 42px; margin-bottom: 1rem; display: grid; place-items: center; border-radius: 11px; background: rgba(96, 165, 250, .12); color: var(--accent); }
.ico svg { width: 22px; height: 22px; }

/* ── Kat planı ─────────────────────────────────────────────────────── */
.plan { display: grid; grid-template-columns: 1fr 320px; gap: 1.6rem; align-items: start; }
.plan-frame { position: relative; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #1a1a1a; }
.plan-frame img { width: 100%; }

.hot {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: #05101f; border: 2px solid rgba(255, 255, 255, .9);
  font: inherit; font-weight: 800; font-size: .9rem; cursor: pointer;
  display: grid; place-items: center;
  box-shadow: 0 0 0 0 rgba(96, 165, 250, .6);
  animation: pulse 2.6s infinite;
  transition: transform .2s var(--spring);
}
.hot:hover, .hot.on { transform: translate(-50%, -50%) scale(1.18); }
.hot.on { background: #fff; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(96, 165, 250, .55) } 70% { box-shadow: 0 0 0 14px rgba(96, 165, 250, 0) } 100% { box-shadow: 0 0 0 0 rgba(96, 165, 250, 0) } }

.plan-info { padding: 1.5rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); min-height: 190px; }
.plan-info h3 { margin: 0 0 .6rem; font-size: 1.15rem; color: var(--accent); }
.plan-info p { margin: 0; color: var(--muted); font-size: .97rem; }
.pi-hint { color: var(--muted); font-size: .95rem; }

/* ── Split ─────────────────────────────────────────────────────────── */
.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split-text h2 { margin: 0 0 1.4rem; font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }

.steps { counter-reset: s; list-style: none; margin: 0 0 2rem; padding: 0; }
.steps li { counter-increment: s; position: relative; padding: 0 0 1.3rem 3.2rem; color: var(--muted); }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(96, 165, 250, .13); color: var(--accent); font-weight: 800; font-size: .9rem;
}
.steps li b { color: var(--ink); font-weight: 700; }

.quote-card { padding: 2.2rem; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); }
.quote-card .q { margin: 0 0 1rem; font-size: 1.3rem; font-weight: 700; line-height: 1.4; }
.quote-card .qs { margin: 0; color: var(--muted); font-size: .97rem; }

/* ── Kurallar ──────────────────────────────────────────────────────── */
.rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-bottom: 2.5rem; }
.rule { padding: 1.7rem; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.rn { display: block; font-size: .8rem; font-weight: 800; letter-spacing: .1em; color: var(--accent); margin-bottom: .7rem; }
.rule h3 { margin: 0 0 .5rem; font-size: 1.08rem; font-weight: 700; }
.rule p { margin: 0; color: var(--muted); font-size: .95rem; }
.rule b { color: var(--ink); }

.cta-band, .sim-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: 2.5rem; padding: 1.8rem 2rem;
  background: linear-gradient(100deg, rgba(96, 165, 250, .13), rgba(96, 165, 250, .04));
  border: 1px solid var(--line); border-radius: var(--radius);
}
.cta-band h3, .sim-cta h3 { margin: 0 0 .3rem; font-size: 1.22rem; font-weight: 700; }
.cta-band p, .sim-cta p { margin: 0; color: var(--muted); font-size: .96rem; }

/* ── Form ──────────────────────────────────────────────────────────── */
.form-wrap { max-width: 780px; }
.form { display: grid; gap: 1.1rem; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form label { display: grid; gap: .45rem; font-size: .93rem; }
.form label > span { color: var(--muted); font-weight: 600; }
.form input, .form select, .form textarea {
  width: 100%; min-height: 48px; padding: .7rem .95rem;
  background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: 11px;
  font: inherit; transition: border-color .2s, box-shadow .2s;
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(96, 165, 250, .16);
}
.form input:user-invalid { border-color: #f87171; }

.check { grid-template-columns: auto 1fr; align-items: start; gap: .7rem !important; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: .2rem; accent-color: var(--accent); }
.check span { color: var(--muted); font-size: .92rem; }
.check a { color: var(--accent); }

.form-msg { margin: 0; min-height: 1.4em; font-size: .95rem; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: #f87171; }

/* ── Footer ────────────────────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); background: var(--bg-2); padding-top: 3.2rem; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.f-tag { margin: 1rem 0 .5rem; color: var(--muted); max-width: 34ch; }
.f-corp { margin: 0; color: var(--muted); font-size: .88rem; letter-spacing: .08em; }
.f-col h4 { margin: 0 0 .9rem; font-size: .82rem; letter-spacing: .13em; text-transform: uppercase; color: var(--ink); }
.f-col a, .f-col p { display: block; margin: 0 0 .5rem; color: var(--muted); text-decoration: none; font-size: .95rem; }
.f-col a:hover { color: var(--accent); }
.f-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding: 1.2rem 0 1.6rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .88rem; }

/* ── Mobil bilgi kutusu ────────────────────────────────────────────── */
.sheet { position: fixed; inset: 0; z-index: 80; background: rgba(4, 10, 20, .7); display: grid; place-items: end center; }
/* `display` tanımlayan bir sınıf, tarayıcının [hidden]{display:none} kuralını
   EZER. Bu satır olmadan panel hep açık kalır ve tam ekran karartmasıyla tüm
   sayfayı örter. */
.sheet[hidden] { display: none; }
.sheet-in { position: relative; width: 100%; max-width: 560px; padding: 1.8rem; background: var(--panel); border: 1px solid var(--line); border-radius: 18px 18px 0 0; }
.sheet-close { position: absolute; top: .7rem; right: 1rem; background: none; border: 0; color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1; }
.sheet h3 { margin: 0 0 .6rem; color: var(--accent); }
.sheet p { margin: 0; color: var(--muted); }

/* ── Duyarlılık ────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero-in, .split, .plan { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .cards, .cards-3, .rules { grid-template-columns: repeat(2, 1fr); }
  .footer-in { grid-template-columns: 1fr 1fr; }
  .plan-info { display: none; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line); padding: 1.2rem 1.25rem; gap: .2rem;
  }
  .nav-links.open a { padding: .7rem 0; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-in .btn-sm { display: none; }
  .cards, .cards-3, .rules, .stats-in, .row { grid-template-columns: 1fr; }
  .stats-in { gap: 1.8rem; }
  .footer-in { grid-template-columns: 1fr; }
  .cta-band, .sim-cta { flex-direction: column; align-items: flex-start; }
}

/* ══════════════════════════════════════════════════════════════════════
   Kurumsal üst şerit + iletişim bölümü
   Kurumsal bir sayfada aranabilir telefon ve net konum, sayfanın en üstünde
   ve ayrı bir bölümde tekrar bulunur: ziyaretçi "bunlar gerçek mi" sorusunu
   ilk üç saniyede cevaplar.
   ══════════════════════════════════════════════════════════════════════ */
.topbar {
  background: #070d18;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.66);
}
.topbar-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 40px;
  flex-wrap: wrap;
}
.topbar-corp { letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.72rem; }
.topbar-meta { display: flex; align-items: center; gap: 1.25rem; }
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
}
.topbar-item svg { width: 15px; height: 15px; opacity: 0.75; }
a.topbar-item:hover { color: #fff; }

.nav-tel { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
@media (max-width: 860px) { .nav-tel { display: none; } }

.contact { background: rgba(255, 255, 255, 0.02); }
.contact-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-top: 2rem;
}
.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.6rem;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
  color: inherit;
  text-decoration: none;
  transition: border-color 0.2s, transform 0.2s, background 0.2s;
}
a.contact-card:hover {
  border-color: rgba(212, 175, 105, 0.5);
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-2px);
}
.contact-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 0.5rem;
  border-radius: 10px;
  background: rgba(212, 175, 105, 0.12);
  color: #d4af69;
}
.contact-ico svg { width: 20px; height: 20px; }
.contact-k {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.6;
}
.contact-v { font-size: 1.5rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.contact-note { font-size: 0.85rem; opacity: 0.6; }

/* ══════════════════════════════════════════════════════════════════════
   Slider (tanıtım şeridi)
   ══════════════════════════════════════════════════════════════════════ */
.slider {
  position: relative;
  overflow: hidden;
  background: #060c17;
  border-bottom: 1px solid var(--line);
}

.slides { display: grid; margin: 0; padding: 0; list-style: none; }

/* Tüm slaytlar AYNI grid hücresinde üst üste durur: kapsayıcı en yüksek
   slaytın boyunu alır ve geçişlerde sayfa zıplamaz. */
.slide {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity .6s ease;
  pointer-events: none;
}
.slide.is-active { opacity: 1; pointer-events: auto; }

.slide img {
  display: block;
  width: 100%;
  height: clamp(220px, 42vw, 520px);
  object-fit: cover;
  object-position: center;
}

.slide-cap {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: .3rem;
  padding: clamp(1.2rem, 4vw, 2.4rem);
  /* Alt kısımda koyu geçiş: başlık her görselde okunur kalsın. */
  background: linear-gradient(to top, rgba(5, 12, 24, .92), rgba(5, 12, 24, 0));
}
.slide-cap strong { font-size: clamp(1.05rem, 2.4vw, 1.7rem); font-weight: 800; }
.slide-cap span { color: var(--muted); font-size: clamp(.85rem, 1.6vw, 1rem); }

.slider-nav {
  position: absolute;
  top: 50%;
  translate: 0 -50%;
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(5, 12, 24, .55);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.slider-nav:hover { background: rgba(5, 12, 24, .85); border-color: var(--accent); }
.slider-nav.prev { left: clamp(.5rem, 2vw, 1.4rem); }
.slider-nav.next { right: clamp(.5rem, 2vw, 1.4rem); }

.slider-dots {
  position: absolute;
  left: 50%;
  bottom: .9rem;
  translate: -50% 0;
  display: flex;
  gap: .5rem;
}
.slider-dots button {
  width: 34px; height: 4px;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, .32);
  cursor: pointer;
  transition: background .25s;
}
.slider-dots button[aria-selected='true'] { background: var(--accent); }

@media (max-width: 640px) {
  /* Dar ekranda oklar başlığın üstüne biner; noktalar yeter. */
  .slider-nav { display: none; }
}

/* Logo görseli — SVG marka yerine gerçek logo.
   Kaynak dosyanın saydam çerçevesi kırpıldı (250x250 → 227x103); kırpılmadan
   önce görünen yükseklik boşluğa gidiyor, logo olduğundan küçük duruyordu. */
.brand-logo {
  display: block;
  /* Kaynak logo DİKEY kurgulu (amblem üstte, yazı altta), oranı 2,2:1.
     Yatay bir logoyla aynı yüksekliği verirsek gözle çok daha küçük durur;
     bu yüzden menü çubuğunun neredeyse tamamını kaplayacak kadar büyük. */
  height: 60px;
  width: auto;
  /* Koyu zeminde beyaz görünsün: kaynak koyu mürekkepli ve saydam zeminli. */
  filter: brightness(0) invert(1);
}
.footer .brand-logo { height: 72px; }

@media (max-width: 640px) {
  .brand-logo { height: 46px; }
}

/* Tasarım imzası — alt bilgi ortasında, telif satırıyla aynı ağırlıkta */
.f-credit { display: inline-flex; gap: .4rem; align-items: center; }
.f-credit a { color: var(--accent); text-decoration: none; }
.f-credit a:hover { text-decoration: underline; }
.f-credit span[aria-hidden] { opacity: .4; }

/* ══════════════════════════════════════════════════════════════════════
   Sohbet balonu (WhatsApp / arama)
   ══════════════════════════════════════════════════════════════════════ */
:root { --whatsapp: 142 70% 45%; }

.chatdock {
  position: fixed;
  right: clamp(1rem, 3vw, 1.5rem);
  bottom: clamp(1rem, 3vw, 1.5rem);
  z-index: 60;
  display: flex;
  align-items: flex-end;
  gap: .75rem;
  /* Balon solda, düğme sağda: düğme parmağın doğal konumunda kalır. */
  flex-direction: row-reverse;
}
.chatdock[hidden] { display: none; }

.chat-bubble {
  position: relative;
  max-width: 220px;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .8);
  animation: chatIn .45s var(--spring) both;
}
.chat-bubble[hidden] { display: none; }
@keyframes chatIn { from { opacity: 0; transform: translateY(8px) scale(.96) } to { opacity: 1; transform: none } }

.chat-title { margin: 0; font-size: .9rem; font-weight: 600; line-height: 1.35; }
.chat-sub { margin: .25rem 0 0; font-size: .78rem; color: var(--muted); }

.chat-close {
  position: absolute;
  top: -8px; left: -8px;
  width: 22px; height: 22px;
  min-height: 0;
  padding: 0;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  transition: background .2s, color .2s;
}
.chat-close:hover { background: #ef4444; color: #fff; border-color: #ef4444; }
.chat-close svg { width: 11px; height: 11px; }

/* Balonun düğmeye bakan sivri ucu */
.chat-arrow {
  position: absolute;
  bottom: 16px; right: -7px;
  width: 12px; height: 12px;
  background: var(--panel);
  border-right: 1px solid var(--line);
  border-top: 1px solid var(--line);
  transform: rotate(45deg);
}

.chat-fab {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: hsl(var(--whatsapp));
  color: #fff;
  box-shadow: 0 10px 30px -12px hsl(var(--whatsapp) / .55);
  transition: box-shadow .25s, transform .2s var(--spring);
}
.chat-fab:hover { box-shadow: 0 16px 40px -14px hsl(var(--whatsapp) / .75); transform: translateY(-2px); }
.chat-ico { width: 28px; height: 28px; }

.chat-ping {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: hsl(var(--whatsapp) / .3);
  pointer-events: none;
  animation: chatPing 3s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes chatPing { 75%, 100% { transform: scale(1.7); opacity: 0 } }

@media (max-width: 640px) {
  /* Dar ekranda balon içeriği kapatır; yalnız düğme kalır. */
  .chat-bubble { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .chat-ping, .chat-bubble { animation: none; }
}
