/* ========== Design System ========== */
:root{
  /* Colors */
  --bg: #f6fbf8;
  --surface: #ffffff;
  --text: #0b1b12;
  --muted: #5b6f64;

  --primary-600: #16a34a;
  --primary-700: #15803d;
  --primary-500: #22c55e;
  --primary-100: #dcfce7;

  /* Shadows & Radii */
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 10px 30px rgba(0,0,0,.06);
  --shadow-elev: 0 24px 60px rgba(0,0,0,.12);
  --ring: rgba(22,163,74,.35);

  /* Layout */
  --container: 1100px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* Reset-ish */
*{ box-sizing: border-box; }
html,body{ height:100%; }
html{ scroll-behavior:smooth; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans",
               "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background: var(--bg);
  -webkit-tap-highlight-color: transparent;
}

/* ========== Animated Gradient Mesh BG (full-bleed) ========== */
.mesh-bg{
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 600px at 15% -10%, #e8fff2 0%, transparent 55%),
    radial-gradient(1200px 700px at 100% 0%, #f0fff8 0%, transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f6fbf8 40%, #f2faf5 100%);
  filter: saturate(1.05);
  animation: meshShift 26s ease-in-out infinite alternate;
}
@keyframes meshShift{
  0%   { transform: translate3d(0,0,0); }
  100% { transform: translate3d(0,-2vh,0); }
}

/* ========== Layout ========== */
.container{ max-width: var(--container); margin-inline:auto; padding: 0 18px; }

.site-header{
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.66));
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.nav{
  display:flex; align-items:center; justify-content:space-between;
  min-height: 64px; gap: 12px;
}

/* Brand */
.logo{ display:flex; align-items:center; gap:10px; text-decoration:none; color:var(--text); font-weight:800; }
.logo img{ display:block; border-radius:8px }

/* Buttons & Links */
.links{ display:flex; align-items:center; gap:12px; }
.btn{
  padding: 12px 16px; border-radius: 999px; text-decoration:none;
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  border:1px solid rgba(0,0,0,.06); background:#fff; color:var(--text);
  font-weight:800; transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
}
.btn:hover{ transform: translateY(-1px); }
.btn-primary{
  background: linear-gradient(90deg, var(--primary-600), var(--primary-500));
  color:#fff; border-color: transparent; box-shadow: var(--shadow-soft);
}
.btn-primary:focus{ outline:none; box-shadow: 0 0 0 4px var(--ring); }
.btn-ghost{ background:#fff; }

/* ========== HERO ========== */
.hero{
  display:grid; grid-template-columns: 1.08fr 0.92fr; align-items:center; gap: 26px;
  padding: clamp(22px, 5vw, 46px) 0 18px;
}
.hero__content{
  height: 100%;
}
.hero__content h1{
  font-size: clamp(28px, 5.4vw, 56px);
  margin: 0 0 10px; letter-spacing: -.02em; line-height: 1.06;
}
.highlight{
  background: linear-gradient(90deg, var(--primary-600), #7ee7a9);
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.lead{ color: var(--muted); margin: 0 0 18px; font-size: clamp(14px, 1.8vw, 18px); }

/* Stats (isteğe bağlı – görünmüyorsa sorun değil) */
.hero__stats{ display:flex; gap:16px; flex-wrap:wrap; }
.stat{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius: 14px; padding:10px 12px;
  box-shadow: var(--shadow-soft); min-width: 110px; text-align:center;
}
.stat .count{ font-weight:900; font-size:20px; }

.hero__viz{ display:flex; justify-content:center; }
.phone-mock{ margin-left:auto; margin-right:auto; max-width: 360px; }
@media (min-width: 1100px){ .phone-mock{ max-width: 400px; } }
@media (max-width: 980px){ .phone-mock{ max-width: 320px; } }

/* USP maddeleri */
.usp{ list-style:none; padding:0; margin:12px 0 14px; display:grid; gap:8px; }
.usp li{ display:flex; gap:10px; align-items:flex-start; color:var(--text); }
.usp svg{ width:18px; height:18px; margin-top:3px; opacity:.85; }

/* Trust strip */
.trust-strip{
  display:flex; gap:12px; flex-wrap:wrap; align-items:center;
  padding:8px 12px; margin:8px 0 10px;
  border:1px solid rgba(0,0,0,.06); border-radius:999px; background:#fff; box-shadow:var(--shadow-soft);
}
.trust-strip > div{ display:flex; align-items:center; gap:6px; color:var(--muted); }
.trust-strip strong{ color:var(--text); }

/* Hero CTA spacing */
.hero-cta{ margin-left:4px; }

/* Phone mock (parallax) */
.phone-wrap{ perspective: 1200px; }
.phone-mock{
  border-radius:28px; padding:10px; border:1px solid rgba(0,0,0,.06);
  background: linear-gradient(180deg, #ffffff, rgba(255,255,255,.85));
  box-shadow: var(--shadow-elev);
  transform: translateZ(0) rotateX(0deg) rotateY(0deg);
  transition: transform .25s ease;
}
.phone-mock img{ border-radius:20px; display:block; width:100%; height:auto; }

/* ========== SECTIONS ========== */
.section{ padding: 14px 0 24px; }
.features{
  display:grid; grid-template-columns: repeat(3,1fr); gap:14px; padding: 8px 0 24px;
}
.feature{
  background: #fff; border:1px solid rgba(0,0,0,.06); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-soft);
}
.feature h3{ margin: 2px 0 6px; }

/* ========== Screens Carousel (auto+swipe) ========== */
.screens{ padding: 6px 0 24px; }
.carousel{ position:relative; overflow:hidden; border-radius:var(--radius-lg); background:#fff; border:1px solid rgba(0,0,0,.06); }
.track{
  display:flex; gap:12px; padding:14px; margin:0;
  overflow-x:auto; overflow-y:hidden;
  scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none;
}
.track::-webkit-scrollbar{ display:none; }
.slide{ flex:0 0 auto; width:260px; scroll-snap-align:center; border-radius:18px; border:1px solid rgba(0,0,0,.06); box-shadow:0 10px 30px rgba(0,0,0,.08); background:#fff; }
@media (min-width: 520px){ .slide{ width:280px; } }

.slide img{ display:block; width:100%; height:auto; border-radius: 18px; }

/* Carousel controls */
.ctrl{
  position: absolute; inset: auto 10px 10px; display:flex; gap:10px; justify-content:flex-end;
}
.ctrl button{
  all: unset; cursor:pointer; padding:8px 12px; border-radius:999px; font-weight:800;
  background:#fff; border:1px solid rgba(0,0,0,.06); box-shadow: var(--shadow-soft);
}
.ctrl button[data-state="playing"]::after{ content:"Duraklat"; }
.ctrl button[data-state="paused"]::after{ content:"Oynat"; }

/* Testimonials / CTA */
.testimonials{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(260px,1fr)); gap:14px; padding: 6px 0 24px;
}
.card{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius: var(--radius-lg);
  padding: 18px; box-shadow: var(--shadow-soft);
}
.quote{ font-size:16px; line-height:1.55; }
.by{ color:var(--muted); margin-top:6px; }

.cta{ text-align:center; padding: 4px 0 calc(34px + var(--safe-bottom)); }

/* Vision */
.vision h2{ text-align:center; margin: 4px 0 12px; font-size:clamp(22px,3.6vw,32px); }
.vision-intro{ text-align:center; max-width:800px; margin:0 auto 14px; color:var(--muted); }
.vision-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:14px; }
.vision-card{ background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow-soft); }


.manifesto{ margin-top:14px; }
.manifesto h4{ margin:0 0 6px; }
.manifesto ul{ margin:0; padding-left:18px; }
@media (max-width: 980px){ .vision-grid{ grid-template-columns:1fr; } }

/* Store badges (eş boyut) */
.store-row{ display:flex; gap:12px; flex-wrap:wrap; align-items:center; margin:10px 0 8px; height: 110px; margin-top: -45px; }
.store-badge{ display:inline-flex; align-items:center; }

/* Rozetler – boyut eşitleme */
.store-badge .ios-img{ height:48px; width:auto; object-fit:contain; display:block; }
.store-badge .android-img{ height:150px; width:auto; object-fit:contain; display:block; }

/* PWA banner */
.pwa-bar{
  position: fixed; left: 50%; transform: translateX(-50%);
  bottom: 14px; z-index: 60; display:flex; align-items:center; gap:10px;
  background:#fff; border:1px solid rgba(0,0,0,.1); border-radius:999px;
  padding:8px 12px; box-shadow: var(--shadow-soft);
}
.pwa-bar button{ all:unset; cursor:pointer; background: var(--primary-600); color:#fff; padding:6px 10px; border-radius:999px; font-weight:800; }

/* Reveal animation */
.reveal{ opacity:0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible{ opacity:1; transform: translateY(0); }
.impact h2, .timeline h2, .cta h2{ text-align:center; margin: 4px 0 14px; font-size:clamp(22px,3.6vw,32px); }
.impact-grid{ display:grid; grid-template-columns: repeat(3,1fr); gap:14px; }
.impact-card{ background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow-soft); }
@media (max-width: 980px){ .impact-grid{ grid-template-columns:1fr; } }

.steps{ list-style:none; padding:0; margin:0; display:grid; gap:12px; counter-reset: s; }
.steps li{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:999px; padding:10px 14px;
  display:flex; align-items:center; gap:10px; box-shadow:var(--shadow-soft);
}
.steps li span{
  width:28px; height:28px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center;
  background:linear-gradient(90deg,var(--primary-600),var(--primary-500)); color:#fff; font-weight:800;
}

/* Accessibility: reduce motion */
@media (prefers-reduced-motion: reduce){
  .mesh-bg{ animation:none }
  .reveal{ transition:none }
}

/* Responsive */
@media (max-width: 980px){
  .container{ padding: 0 14px; }
  .hero{ grid-template-columns: 1fr; }
  .phone-mock{ margin: 6px auto 0; max-width: 420px; }
  .features{ grid-template-columns: 1fr; }
}

/* ========== Donate Section ========== */
.donate-wrap{ display:grid; grid-template-columns: 1.1fr .9fr; gap:16px; }
@media (max-width: 900px){ .donate-wrap{ grid-template-columns:1fr; } }
.donate-form, .donate-info{
  background:#fff; border:1px solid rgba(0,0,0,.06); border-radius:var(--radius-lg); padding:18px; box-shadow:var(--shadow-soft);
}
.amounts{ display:flex; flex-wrap:wrap; gap:10px; }
.amounts label{ position:relative; }
.amounts input[type="radio"]{ position:absolute; opacity:0; pointer-events:none; }
.amounts label span{
  display:inline-block; padding:10px 14px; border-radius:999px; border:1px solid rgba(0,0,0,.08); background:#fff; font-weight:800;
}
.amounts input[type="radio"]:checked + span{ border-color: transparent; color:#fff; background:linear-gradient(90deg,var(--primary-600),var(--primary-500)); box-shadow:var(--shadow-soft); }
.amounts .custom input{ padding:10px 14px; border-radius:999px; border:1px solid rgba(0,0,0,.12); width:120px; }
.monthly{ display:flex; align-items:center; gap:8px; margin:8px 0 10px; }

/* ===== Footer (Modern) ===== */
.site-footer{
  position: relative;
  margin-top: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0));
  backdrop-filter: blur(8px);
  color: var(--muted);
}
.footer-wave{ line-height:0; }
.footer-wave svg{ display:block; width:100%; height:60px; }
.footer-wave path{
  fill: #b1ffcf;  /* zemindeki yeşilimsiyi yakalayan açık ton */
}

.fgrid{
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  padding: 16px 18px 26px;
}
@media (max-width: 900px){
  .fgrid{ grid-template-columns: 1fr; text-align:center; }
}

.flogo{
  display:flex; align-items:center; gap:10px; color:var(--text);
  text-decoration:none; font-weight:800;
}
.flogo img{ border-radius:8px; }

.fnav{ display:flex; gap:14px; align-items:center; justify-content:center; flex-wrap:wrap; }
.fnav a{
  text-decoration:none; color:var(--muted);
  padding:8px 10px; border-radius:10px;
  border:1px solid transparent;
}
.fnav a:hover{
  color:var(--text);
  border-color: rgba(0,0,0,.06);
  background:#fff;
  box-shadow: var(--shadow-soft);
}

.fbadges{ display:flex; gap:10px; justify-content:flex-end; flex-wrap:wrap; height: 90px; margin-top: -50px;}
@media (max-width: 900px){ .fbadges{ justify-content:center;  margin-top: 0;} }

.fmeta{
  grid-column: 1 / -1;
  display:flex; justify-content:space-between; align-items:center; gap:12px; flex-wrap:wrap;
  padding-top: 6px; border-top: 1px dashed rgba(0,0,0,.08); margin-top: 6px;
}
@media (max-width:900px){ .fmeta{ justify-content:center; } }

/* Yukarı dön düğmesi */
.to-top{ position: fixed; right: 14px; bottom: calc(14px + var(--safe-bottom)); width: 30px; height: 30px; border-radius: 999px; border: 1px solid rgba(0, 0, 0, .08); background: linear-gradient(90deg, var(--primary-600), var(--primary-500)); color: #fff; font-weight: 900; line-height: 10px; text-align:center; box-shadow: var(--shadow-soft); cursor:pointer; opacity:0; transform: translateY(8px); transition: .2s ease; }
.to-top.show{ opacity:1; transform: translateY(0); }
.to-top:focus{ outline:none; box-shadow:0 0 0 4px var(--ring); }
