/* =========================================================================
   EKYS Studio — Landing (kpss/teal canonical paleti · design-system.md)
   Renk tek kaynağı: :root custom properties (Flutter AppColors muadili).
   Hardcoded hex yalnız burada tanımlanır; kural: altın üzeri metin daima koyu.
   ========================================================================= */
:root {
  /* Primary (teal — marka omurgası) */
  --primary: #14B8A6;
  --primary-600: #0D9488;
  --primary-700: #0F766E;
  --primary-100: #CCFBF1;
  /* Aksan */
  --purple: #8B5CF6;   /* purple500 */
  --purple-400: #A78BFA;
  --blue: #2563EB;     /* blue600 */
  --blue-500: #3B82F6;
  --gold: #F5B942;
  --gold-ink: #7C5B12; /* altın zemin üzeri KOYU metin (beyaz yasak) */
  --xp: #FBBF24;
  --streak: #F97316;
  --accent: #FDE68A;   /* hero vurgu (açık amber — teal üzerinde) */
  /* Nötr */
  --ink: #1F2937;      /* gray800 — ana metin */
  --slate: #6B7280;    /* gray500 — ikincil metin */
  --bg: #F9FAFB;       /* gray50  — sayfa zemini */
  --surface: #FFFFFF;  /* kart yüzeyi */
  --border: #E5E7EB;   /* gray200 */
  --ink-900: #0B1120;  /* koyu premium zemini */

  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 12px rgba(15, 23, 42, .05);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, .10);
  --shadow-teal: 0 18px 40px rgba(20, 184, 166, .28);
  --container: 1120px;
  --header-h: 68px;
  --grad-hero: linear-gradient(160deg, #14B8A6 0%, #0D9488 55%, #0F766E 100%);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* güvenlik ağı — yatay taşma asla scroll üretmesin (sticky'yi bozmaz) */
}
h1, h2, h3 { overflow-wrap: break-word; }
h1, h2, h3, .brand-name { font-family: "Poppins", "Inter", system-ui, sans-serif; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }

.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; border-radius: 6px; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-icon { border-radius: 9px; }
.brand-name { font-size: 1.15rem; letter-spacing: -.01em; color: var(--ink); }
.brand-name b { color: var(--primary); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav > a { padding: 8px 14px; border-radius: 10px; color: var(--slate); font-weight: 500; font-size: .96rem; transition: color .15s, background .15s; }
.nav > a:hover { color: var(--ink); background: var(--bg); }
.nav .nav-cta { background: var(--primary); color: #fff; font-weight: 600; box-shadow: var(--shadow-sm); }
.nav .nav-cta:hover { background: var(--primary-600); color: #fff; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; }
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mobile-nav { display: none; flex-direction: column; padding: 8px 20px 16px; border-bottom: 1px solid var(--border); background: #fff; }
.mobile-nav a { padding: 12px 8px; border-radius: 10px; font-weight: 500; color: var(--ink); }
.mobile-nav a:hover { background: var(--bg); }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; background: var(--grad-hero); color: #fff; }
.hero-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(600px 300px at 85% 10%, rgba(255, 255, 255, .18), transparent 60%),
    radial-gradient(500px 260px at 10% 90%, rgba(94, 234, 212, .25), transparent 60%);
  pointer-events: none;
}
.hero-inner {
  position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px;
  align-items: center; padding: clamp(48px, 8vw, 92px) 20px clamp(56px, 8vw, 96px);
}
.hero-copy, .hero-visual { min-width: 0; } /* grid item'lar viewport altına küçülebilsin */
.hero-wordmark { width: clamp(180px, 26vw, 240px); height: auto; margin-bottom: 22px; }
.hero h1 { font-size: clamp(1.9rem, 6.5vw, 3.5rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 .accent { color: var(--accent); }
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 34ch; color: rgba(255, 255, 255, .92); margin: 0 0 28px; }
.hero-sub strong { color: #fff; font-weight: 600; }
.hero-note { margin: 16px 0 0; font-size: .9rem; color: rgba(255, 255, 255, .8); }

.hero-visual { display: flex; justify-content: center; }
.hero-shot {
  width: clamp(200px, 34vw, 300px); height: auto; border-radius: 26px;
  box-shadow: 0 30px 60px rgba(11, 17, 32, .45); transform: rotate(2deg);
  border: 1px solid rgba(255, 255, 255, .12);
}

/* ===== Store badges ===== */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badges.center { justify-content: center; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink-900); color: #fff; padding: 10px 18px; border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12); transition: transform .15s, box-shadow .15s;
}
.badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(11, 17, 32, .35); }
.badge svg { flex: none; }
.badge span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.badge small { font-size: .68rem; opacity: .8; font-weight: 500; }
.badge b { font-size: 1.02rem; font-weight: 600; }
.badge-light { background: #fff; color: var(--ink); border-color: var(--border); }
.badge-light small { opacity: .7; }

/* ===== Genel bölüm ===== */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.eyebrow { display: inline-block; font-weight: 600; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; color: var(--primary); background: var(--primary-100); padding: 6px 14px; border-radius: 999px; margin-bottom: 14px; }
.eyebrow-gold { color: var(--gold-ink); background: rgba(245, 185, 66, .22); }
.section-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.4rem); margin: 0; letter-spacing: -.02em; }

/* ===== Değer kartları ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: #fff; margin-bottom: 18px; }
.ic-teal { background: linear-gradient(140deg, var(--primary), var(--primary-600)); }
.ic-blue { background: linear-gradient(140deg, var(--blue-500), var(--blue)); }
.ic-purple { background: linear-gradient(140deg, var(--purple-400), var(--purple)); }
.ic-orange { background: linear-gradient(140deg, var(--xp), var(--streak)); }
.card h3 { font-size: 1.2rem; margin: 0 0 8px; }
.card p { margin: 0; color: var(--slate); font-size: .98rem; }
.card strong { color: var(--ink); font-weight: 600; }

/* ===== Ekran görüntüleri ===== */
.shots { background: linear-gradient(180deg, #fff 0%, var(--bg) 100%); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gallery figure { margin: 0; text-align: center; }
.gallery img {
  width: 100%; height: auto; border-radius: 22px; box-shadow: var(--shadow-md);
  border: 1px solid var(--border); background: var(--ink-900);
}
.gallery figcaption { margin-top: 14px; font-weight: 500; font-size: .94rem; color: var(--slate); }

/* ===== Premium ===== */
/* premium koyu-teal zemin — ilk durak token, sonraki ikisi decorative derin gölge tonları */
.premium { background: radial-gradient(120% 140% at 100% 0%, var(--primary-700) 0%, #0B3B37 60%, #08201E 100%); color: #fff; }
.premium-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 44px; align-items: center; }
.premium-copy, .premium-visual { min-width: 0; }
.premium-copy h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 20px; }
.premium-list { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.premium-list li { position: relative; padding-left: 32px; color: rgba(255, 255, 255, .92); }
.premium-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--gold);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") center/70% no-repeat;
}
/* Altın buton — kural: altın üzeri KOYU metin (beyaz YASAK) */
.btn { display: inline-block; padding: 14px 28px; border-radius: 14px; font-weight: 600; transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 12px 28px rgba(245, 185, 66, .35); }
.btn-gold:hover { box-shadow: 0 16px 34px rgba(245, 185, 66, .45); }
.premium-visual { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.premium-visual .stat { background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm); padding: 22px 10px; text-align: center; }
.premium-visual .stat b { display: block; font-family: "Poppins", sans-serif; font-size: 1.9rem; color: var(--xp); }
.premium-visual .stat span { font-size: .82rem; color: rgba(255, 255, 255, .8); }

/* ===== İndir CTA ===== */
.download { background: var(--grad-hero); color: #fff; text-align: center; }
.download-inner { display: flex; flex-direction: column; align-items: center; }
.download-icon { border-radius: 20px; box-shadow: var(--shadow-teal); margin-bottom: 22px; }
.download h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin: 0 0 10px; }
.download p { margin: 0 0 28px; color: rgba(255, 255, 255, .92); font-size: 1.05rem; }

/* ===== Footer ===== */
.site-footer { background: var(--ink-900); color: rgba(255, 255, 255, .8); padding: 48px 0 28px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: center; }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-name b { color: var(--primary); }
.footer-brand p { margin: 6px 0 0; font-size: .92rem; color: rgba(255, 255, 255, .6); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; transition: background .15s, transform .15s; }
.footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: rgba(255, 255, 255, .78); font-weight: 500; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom p { margin: 0; font-size: .86rem; color: rgba(255, 255, 255, .55); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner, .premium-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .hero-shot { transform: none; width: clamp(190px, 52vw, 240px); }
  .hero-copy { text-align: center; }
  .store-badges { justify-content: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .premium-visual { max-width: 420px; }
}
@media (max-width: 720px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .site-header.open .mobile-nav { display: flex; }
  .footer-inner { flex-direction: column; align-items: flex-start; text-align: left; }
}
@media (max-width: 420px) {
  .gallery { grid-template-columns: 1fr; max-width: 320px; margin-inline: auto; }
  .badge { padding: 10px 16px; }
  .container { padding: 0 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
