/* ============ Tema ============ */
:root {
  --bg: #f6f5f2;
  --surface: #ffffff;
  --surface-2: #efede8;
  --border: rgba(20, 22, 28, .08);
  --text: #16181d;
  --muted: #62666f;
  --faint: #8c909a;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 12px 40px -12px rgba(20,22,28,.14);
  --phone-shadow: 0 30px 60px -20px rgba(20,22,28,.35);
  --badge-bg: #16181d;
  --badge-fg: #fff;
  --glow-opacity: .22;
  --accent: #6d7cff;
  --radius: 22px;
  --wrap: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1115; --surface: #161920; --surface-2: #1d212a;
    --border: rgba(255,255,255,.07); --text: #e9eaee; --muted: #a0a5b1; --faint: #6f7481;
    --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -20px rgba(0,0,0,.6);
    --phone-shadow: 0 30px 70px -20px rgba(0,0,0,.75);
    --badge-bg: #f1f1f3; --badge-fg: #111; --glow-opacity: .28;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1115; --surface: #161920; --surface-2: #1d212a;
  --border: rgba(255,255,255,.07); --text: #e9eaee; --muted: #a0a5b1; --faint: #6f7481;
  --shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --phone-shadow: 0 30px 70px -20px rgba(0,0,0,.75);
  --badge-bg: #f1f1f3; --badge-fg: #111; --glow-opacity: .28;
  color-scheme: dark;
}

/* ============ Temel ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.15; letter-spacing: -.02em; margin: 0; font-weight: 700; }
button { font: inherit; color: inherit; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: clamp(16px, 4vw, 32px); }
.narrow { max-width: 760px; padding-block: 48px 80px; }
.muted { color: var(--faint); }
.stars { color: #f5b301; }
[hidden] { display: none !important; }

/* ============ Üst bar ============ */
.topbar {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid transparent; transition: border-color .3s;
  padding-top: env(safe-area-inset-top, 0px);
}
.topbar.is-scrolled { border-bottom-color: var(--border); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; text-decoration: none; letter-spacing: -.02em; }
.brand-dot { width: 12px; height: 12px; border-radius: 4px; background: linear-gradient(135deg, #7b8cff, #45d4b0); transform: rotate(45deg); }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; padding: 8px 12px; border-radius: 10px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav-admin { border: 1px solid var(--border); }
.theme-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: transparent; color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.theme-btn:hover { color: var(--text); background: var(--surface-2); }
.theme-btn .i-moon { display: none; }
:root[data-theme="dark"] .theme-btn .i-sun { display: none; }
:root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-btn .i-sun { display: none; }
  :root:not([data-theme]) .theme-btn .i-moon { display: block; }
}

/* ============ Hero ============ */
.hero { position: relative; padding: clamp(64px, 11vw, 140px) 0 clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-glow { position: absolute; inset: 0; pointer-events: none; }
.hero-glow span {
  position: absolute; width: 46vw; max-width: 620px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--c) 0%, transparent 65%); opacity: var(--glow-opacity); filter: blur(30px);
  top: calc(-18% + var(--i) * 12%); left: calc(-8% + var(--i) * 45%);
  animation: drift 18s ease-in-out infinite alternate; animation-delay: calc(var(--i) * -6s);
}
@keyframes drift { to { transform: translate(6%, 8%) scale(1.08); } }
.hero-in { position: relative; text-align: center; max-width: 860px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.hero h1 { font-size: clamp(34px, 6vw, 64px); font-weight: 800; letter-spacing: -.035em; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); margin: 20px auto 0; max-width: 620px; }
.hero-icons { display: inline-flex; align-items: center; gap: 10px; margin-top: 36px; padding: 8px 18px 8px 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.hero-icons img { width: 44px; height: 44px; border-radius: 12px; transition: transform .25s; }
.hero-icons a:hover img { transform: translateY(-3px) scale(1.05); }
.hero-count { font-weight: 600; font-size: 14px; color: var(--muted); margin-left: 4px; }

/* ============ Filtre ============ */
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 32px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 8px 16px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; transition: all .2s; }
.chip:hover { color: var(--text); }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ============ Vitrin kartları ============ */
.apps { padding-bottom: 96px; }
.showcase { display: grid; gap: 28px; }
.show-card {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 24px;
  border-radius: 32px; padding: clamp(28px, 4.5vw, 56px); overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.show-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 85% 50%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%),
    linear-gradient(135deg, transparent 40%, color-mix(in srgb, var(--accent) 8%, transparent));
}
.show-card.is-flip { grid-template-columns: 1fr 1fr; }
.show-card.is-flip .show-text { order: 2; }
.show-card.is-flip::before { background: radial-gradient(60% 80% at 15% 50%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 70%), linear-gradient(225deg, transparent 40%, color-mix(in srgb, var(--accent) 8%, transparent)); }
.app-head { display: flex; align-items: center; gap: 16px; }
.app-icon { border-radius: 22.5%; box-shadow: 0 8px 24px -8px color-mix(in srgb, var(--accent) 60%, rgba(0,0,0,.4)), 0 0 0 1px var(--border); background: var(--surface-2); flex: none; }
.app-icon.xl { width: 112px; height: 112px; margin-bottom: 22px; }
.show-card h2 { font-size: clamp(26px, 3vw, 36px); }
.show-card h2 a { text-decoration: none; }
.meta { margin: 4px 0 0; color: var(--faint); font-size: 14px; font-weight: 500; }
.tagline { font-size: clamp(19px, 2vw, 23px); font-weight: 600; letter-spacing: -.01em; margin: 24px 0 0; line-height: 1.35; }
.tagline.lg { font-size: clamp(20px, 2.4vw, 26px); margin-top: 18px; }
.desc { color: var(--muted); margin: 12px 0 0; }
.show-text .badges { margin-top: 28px; }
.more { display: inline-flex; gap: 6px; margin-top: 22px; font-weight: 600; font-size: 15px; text-decoration: none; color: var(--text); }
.more span { transition: transform .2s; }
.more:hover span, .grid-card:hover .more { transform: translateX(3px); }

.show-phones { position: relative; height: 480px; display: block; }
.phone { position: absolute; width: 196px; aspect-ratio: 598 / 1300; border-radius: 30px; overflow: hidden; background: #000; box-shadow: var(--phone-shadow), 0 0 0 6px #0b0c0f, 0 0 0 7px rgba(255,255,255,.08); }
.phone img { width: 100%; height: 100%; object-fit: cover; }
.show-phones .p0 { left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 3; }
.show-phones .p1 { left: 50%; top: 50%; transform: translate(-118%, -44%) rotate(-7deg) scale(.86); z-index: 2; opacity: .92; }
.show-phones .p2 { left: 50%; top: 50%; transform: translate(18%, -44%) rotate(7deg) scale(.86); z-index: 1; opacity: .92; }
.show-phones .phone { transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.show-card:hover .p1 { transform: translate(-128%, -46%) rotate(-10deg) scale(.86); }
.show-card:hover .p2 { transform: translate(28%, -46%) rotate(10deg) scale(.86); }
.show-card:hover .p0 { transform: translate(-50%, -52%); }

/* ============ Mağaza rozetleri ============ */
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.store-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 18px 9px 14px; border-radius: 14px;
  background: var(--badge-bg); color: var(--badge-fg); text-decoration: none; line-height: 1.1; font-weight: 700; font-size: 17px;
  transition: transform .2s, box-shadow .2s;
}
.store-badge span { white-space: nowrap; }
.store-badge small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
a.store-badge:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.store-badge.is-soon { background: transparent; color: var(--muted); border: 1.5px dashed var(--border); cursor: default; }
.badges-lg .store-badge { padding: 11px 22px 11px 16px; font-size: 18px; }

/* ============ Grid ============ */
.section-title { font-size: 26px; margin: 72px 0 24px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.grid-card {
  position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); text-decoration: none; overflow: hidden; isolation: isolate;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .3s, border-color .3s;
}
.grid-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 60% at 100% 0%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
.grid-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.grid-card h3 { font-size: 20px; margin-top: 18px; }
.grid-card .desc { flex: 1; font-size: 15px; }
.grid-card .more { transition: transform .2s; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; }

/* ============ Detay sayfası ============ */
.draft-bar { background: #b7791f; color: #fff; text-align: center; font-size: 14px; font-weight: 600; padding: 8px; }
.d-hero { position: relative; overflow: hidden; padding: clamp(32px, 6vw, 72px) 0 clamp(40px, 6vw, 80px); }
.d-glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none; background: radial-gradient(50% 50% at 75% 45%, color-mix(in srgb, var(--accent) 32%, transparent), transparent 70%), radial-gradient(40% 40% at 10% 10%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%); }
.d-hero-in { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.back { display: inline-block; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; margin-bottom: 28px; }
.back:hover { color: var(--text); }
.d-hero h1 { font-size: clamp(38px, 5.5vw, 60px); font-weight: 800; letter-spacing: -.035em; }
.d-hero .lead { margin: 16px 0 0; max-width: 540px; }
.d-hero .badges { margin-top: 30px; }
.d-hero-phone { position: relative; height: 580px; }
.d-hero-phone .phone { width: 250px; left: 50%; top: 50%; }
.front-phone { transform: translate(-40%, -50%) rotate(2deg); z-index: 2; }
.back-phone { transform: translate(-100%, -44%) rotate(-8deg) scale(.88); opacity: .75; }

.d-section { padding: 40px 0; }
.d-section h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 24px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.sec-head h2 { margin-bottom: 24px; }
.scroller-nav { display: flex; gap: 8px; margin-bottom: 24px; }
.scroller-nav button { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 22px; line-height: 1; }
.scroller-nav button:hover { background: var(--surface-2); }
.shots {
  display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 8px max(clamp(16px, 4vw, 32px), calc((100vw - var(--wrap)) / 2 + 32px)) 28px;
  scroll-padding-inline: max(clamp(16px, 4vw, 32px), calc((100vw - var(--wrap)) / 2 + 32px));
}
.shots::-webkit-scrollbar { display: none; }
.shot { flex: none; width: 230px; aspect-ratio: 598 / 1300; border-radius: 26px; overflow: hidden; padding: 0; border: 1px solid var(--border); background: var(--surface-2); scroll-snap-align: start; cursor: zoom-in; box-shadow: var(--shadow); transition: transform .25s; }
.shot:hover { transform: translateY(-4px); }
.shot img { width: 100%; height: 100%; object-fit: cover; }

.video { position: relative; border-radius: var(--radius); overflow: hidden; background: #000; aspect-ratio: 16 / 9; box-shadow: var(--shadow); }
.video iframe, .video video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video.is-file { aspect-ratio: auto; max-height: 80vh; display: flex; justify-content: center; }
.video.is-file video { position: static; max-height: 80vh; width: auto; max-width: 100%; }

.d-about { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; }
.prose { max-width: 720px; color: var(--muted); }
.prose h1 { color: var(--text); font-size: clamp(28px, 4vw, 40px); margin: 16px 0 24px; }
.prose h2 { color: var(--text); }
.prose h3 { color: var(--text); font-size: 18px; margin: 32px 0 12px; letter-spacing: -.01em; }
.prose p { margin: 0 0 14px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; }
.prose li { position: relative; padding-left: 24px; }
.prose li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--accent); transform: rotate(45deg); }
.prose a { color: var(--text); text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; word-break: break-word; }
.info-card { position: sticky; top: 88px; padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.info-card dl { margin: 0 0 22px; display: grid; gap: 0; }
.info-card dl div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.info-card dt { color: var(--faint); }
.info-card dd { margin: 0; font-weight: 600; text-align: right; }
.info-card .store-badge { flex: 1 1 130px; justify-content: center; white-space: nowrap; }

.timeline { list-style: none; padding: 0; margin: 0; position: relative; max-width: 760px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--border); }
.timeline li { position: relative; padding: 0 0 28px 40px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--faint); }
.timeline li.is-latest::before { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.tl-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.ver { font-weight: 700; font-size: 17px; }
.tl-head time { color: var(--faint); font-size: 14px; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--text); }
.tl-body { color: var(--muted); }
.tl-body p { margin: 0 0 6px; }
.tl-body ul { padding-left: 18px; margin: 0; }

.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: none; align-items: center; gap: 12px;
  padding: 10px 10px 10px 12px; border-radius: 20px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border); box-shadow: 0 16px 40px -12px rgba(0,0,0,.35); transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.8,.2,1);
}
.sticky-cta.is-on { transform: none; }
.sticky-cta img { border-radius: 10px; }
.sticky-cta div { flex: 1; min-width: 0; line-height: 1.25; }
.sticky-cta strong { display: block; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-cta small { color: var(--faint); font-size: 13px; }
.sticky-cta a { background: var(--accent); color: #fff; text-decoration: none; font-weight: 700; padding: 10px 22px; border-radius: 12px; }

/* ============ Lightbox ============ */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8, 9, 12, .92); display: flex; align-items: center; justify-content: center; padding: 24px; animation: fade .2s; }
.lightbox img { max-height: 88vh; max-width: min(92vw, 520px); border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.6); }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.1); color: #fff; border: 0; border-radius: 50%; width: 48px; height: 48px; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.2); }
.lb-close { top: calc(16px + env(safe-area-inset-top, 0px)); right: 16px; }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
@keyframes fade { from { opacity: 0; } }

/* ============ Alt bilgi ============ */
.footer { border-top: 1px solid var(--border); padding: 28px 0 calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 14px; color: var(--muted); }
.footer-in { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.notfound { text-align: center; padding-block: 120px; }
.notfound h1 { font-size: clamp(28px, 4vw, 40px); }

/* ============ Görünme animasyonu ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ============ Duyarlı ============ */
@media (max-width: 900px) {
  .show-card, .show-card.is-flip { grid-template-columns: 1fr; }
  .show-card.is-flip .show-text { order: 0; }
  .show-phones { height: 400px; margin-top: 8px; }
  .phone { width: 160px; border-radius: 24px; }
  .d-hero-in { grid-template-columns: 1fr; }
  .d-hero-phone { height: 460px; }
  .d-hero-phone .phone { width: 200px; }
  .d-about { grid-template-columns: 1fr; }
  .info-card { position: static; }
  .sticky-cta { display: flex; }
  .detail .footer { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 520px) {
  .show-phones { height: 340px; }
  .phone { width: 136px; border-radius: 20px; box-shadow: var(--phone-shadow), 0 0 0 4px #0b0c0f; }
  .shot { width: 180px; border-radius: 20px; }
  .app-icon.xl { width: 88px; height: 88px; }
  .hero-icons img { width: 38px; height: 38px; }
  .store-badge { font-size: 15px; }
}
