/* keseui.site — Ozbasoft uygulamaları: Kese ve Mogul.
   Kese renkleri ve yazı tipleri uygulamayla aynı (DESIGN_SPEC.md Bölüm 2); Mogul laciverti ve altını oyunun STYLE.md'sinden. */
@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm_sans.ttf") format("truetype");
  font-weight: 100 1000;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space_grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --bg: #F5F4EF;
  --surface: #FFFFFF;
  --border: #DEDFD8;
  --divider: #EEEFEA;
  --text: #16201B;
  --text-body: #47524B;
  --text-secondary: #67716B;
  --primary: #0F6B4F;
  --on-primary: #FFFFFF;
  --primary-container: #E1F2EA;
  --kese: #0F6B4F;
  --kese-deep: #0A4A37;
  --kese-orange: #E98B4F;
  --navy: #14213D;
  --navy-2: #24345A;
  --gold: #F2B531;
  --gold-soft: #F7CD62;
  --radius: 24px;
  --wrap: 1200px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0E1311;
    --surface: #171E1A;
    --border: #29322D;
    --divider: #202824;
    --text: #EEF2EF;
    --text-body: #C2CBC5;
    --text-secondary: #95A098;
    --primary: #4CC497;
    --on-primary: #06281D;
    --primary-container: #173A2D;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
img { max-width: 100%; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { color: var(--text); line-height: 1.15; margin: 0; }
h1, h2 { font-family: "Space Grotesk", "DM Sans", sans-serif; font-weight: 700; letter-spacing: -0.025em; }
h3 { font-size: 1.08rem; font-weight: 700; }
p, ul, ol { margin: 0 0 1rem; }
ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.35rem; }
code { font-size: 0.9em; background: var(--divider); padding: 0.1em 0.35em; border-radius: 6px; word-break: break-all; }
strong { color: var(--text); }

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

/* Dil: JS çalışınca yalnızca seçilen dil görünür; JS yoksa ikisi de görünür. */
html[data-lang="tr"] [lang="en"]:not(html) { display: none !important; }
html[data-lang="en"] [lang="tr"]:not(html) { display: none !important; }

/* ---------- Üst çubuk ---------- */
.top { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent); }
.top .wrap { display: flex; align-items: center; gap: 14px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: 1.2rem; }
.brand img { width: 34px; height: 34px; }
.apps { display: inline-flex; gap: 2px; margin-left: 10px; }
.apps a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text-secondary); font-weight: 700; font-size: 0.95rem; padding: 7px 12px; border-radius: 999px; }
.apps a img { width: 22px; height: 22px; border-radius: 7px; }
.apps a:hover { color: var(--text); background: var(--surface); }
.apps a[aria-current="page"] { color: var(--text); background: var(--surface); box-shadow: inset 0 0 0 1px var(--border); }
.spacer { flex: 1; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; background: var(--surface); }
.lang button { appearance: none; border: 0; background: transparent; color: var(--text-secondary); font: inherit; font-size: 0.85rem; font-weight: 700; padding: 6px 12px; min-height: 36px; cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--text); color: var(--bg); }
@media (max-width: 560px) { .brand span { display: none; } .apps { margin-left: 0; } .apps a { padding: 7px 9px; } }

/* ---------- Düğmeler ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; font-size: 0.97rem; padding: 11px 20px; border-radius: 999px; border: 0; }
.btn.light { background: #fff; color: var(--kese); }
.btn.primary { background: var(--primary); color: var(--on-primary); }
.btn.gold { background: var(--gold); color: var(--navy); box-shadow: 0 4px 0 #C98F17; }
.btn.ghost { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.btn:hover { filter: brightness(1.06); }
.pill { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.85rem; border-radius: 999px; padding: 6px 14px; }

/* ---------- Telefon çerçevesi ---------- */
.phone { position: relative; width: 250px; aspect-ratio: 1080 / 2400; border-radius: 38px; padding: 9px; background: #0B0F0D; box-shadow: 0 30px 60px rgba(8, 20, 14, .35), inset 0 0 0 2px #2B332E; flex: none; }
.phone .scr { width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #000; position: relative; }
.phone .scr img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone::after { content: ""; position: absolute; top: 18px; left: 50%; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #0B0F0D; }
/* Mogul ekran görüntüleri durum çubuğu kırpılmış gelir; üstte sade bir çubuk çizilir. */
.phone.bar .scr { display: flex; flex-direction: column; }
.phone.bar .scr::before { content: "9:41"; flex: none; height: 7%; display: flex; align-items: center; padding-left: 22px; font-size: 11px; font-weight: 700; color: #fff; background: var(--navy); }
.phone.bar .scr img { flex: 1; min-height: 0; }

/* ---------- Ana sayfa: giriş ve vitrin ---------- */
.intro { text-align: center; padding: 64px 0 34px; }
.intro h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); max-width: 15ch; margin: 0 auto 14px; }
.intro p { font-size: 1.18rem; max-width: 40rem; margin: 0 auto; }
.showcase { display: grid; gap: 22px; grid-template-columns: 1fr; padding-bottom: 30px; }
@media (min-width: 900px) { .showcase { grid-template-columns: 1fr 1fr; } }
.show { position: relative; overflow: hidden; border-radius: 34px; padding: 38px 38px 0; min-height: 640px; color: #fff; display: flex; flex-direction: column; isolation: isolate; }
.show.kese { background: radial-gradient(120% 80% at 10% 0%, #17876A 0%, var(--kese) 45%, var(--kese-deep) 100%); }
.show.mogul { background: radial-gradient(120% 80% at 10% 0%, #34477A 0%, var(--navy-2) 40%, var(--navy) 100%); }
.show::before { content: ""; position: absolute; z-index: -1; width: 900px; height: 900px; right: -380px; bottom: -520px; border-radius: 50%; border: 2px solid rgba(255,255,255,.10); box-shadow: 0 0 0 90px rgba(255,255,255,.035), 0 0 0 180px rgba(255,255,255,.025); }
.show .id { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.show .id img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.show .id b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.6rem; line-height: 1.1; }
.show .id span { font-size: 0.95rem; opacity: .8; }
.show h2 { color: #fff; font-size: clamp(1.8rem, 3.2vw, 2.5rem); margin-bottom: 10px; max-width: 16ch; }
.show.mogul h2 em { font-style: normal; color: var(--gold-soft); }
.show p { color: rgba(255,255,255,.86); max-width: 30rem; margin-bottom: 20px; }
.show .phones { margin-top: auto; display: flex; justify-content: center; align-items: flex-start; height: 300px; padding-top: 26px; }
.show .phones .phone { width: 210px; }
.show .phones .phone:first-child { transform: rotate(-7deg) translate(26px, 30px); }
.show .phones .phone:last-child { transform: rotate(6deg) translate(-26px, 4px); z-index: 1; }
.showcase > *, .split > * { min-width: 0; }
main { overflow-x: clip; }
@media (max-width: 600px) {
  .show { padding: 28px 24px 0; min-height: 0; }
  .show .phones { height: 250px; }
  .show .phones .phone { width: 160px; }
  .show .phones .phone:first-child { transform: rotate(-7deg) translate(18px, 26px); }
  .show .phones .phone:last-child { transform: rotate(6deg) translate(-18px, 4px); }
  .app-section { padding: 60px 0; }
  .intro { padding: 40px 0 24px; }
}

/* ---------- Uygulama bölümleri ---------- */
.app-section { padding: 90px 0; }
.app-section.dark { background: radial-gradient(90% 70% at 85% 0%, #2C3D68 0%, var(--navy) 55%, #0B1220 100%); color: rgba(255,255,255,.86); }
.app-section.dark h2, .app-section.dark h3, .app-section.dark strong { color: #fff; }
.app-section.dark a:not(.btn) { color: var(--gold-soft); }
.split { display: grid; gap: 48px; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1.05fr 1fr; } .split.rev > :first-child { order: 2; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.95rem; margin-bottom: 14px; }
.eyebrow img { width: 32px; height: 32px; border-radius: 10px; }
.app-section h2 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); margin-bottom: 14px; }
.app-section .lead { font-size: 1.15rem; max-width: 34rem; margin-bottom: 26px; }
.stage { position: relative; display: flex; justify-content: center; align-items: center; min-height: 560px; }
.stage .phone { width: 245px; }
.stage .phone:nth-child(1) { transform: rotate(-6deg) translateX(40px); }
.stage .phone:nth-child(2) { transform: translateY(-24px); z-index: 2; }
.stage .phone:nth-child(3) { transform: rotate(6deg) translateX(-40px); }
.stage::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(closest-side, color-mix(in srgb, var(--primary) 28%, transparent), transparent); z-index: -1; }
.app-section.dark .stage::before { background: radial-gradient(closest-side, rgba(242,181,49,.28), transparent); }
@media (max-width: 700px) { .stage { min-height: 420px; } .stage .phone { width: 165px; } .stage .phone:nth-child(1) { transform: rotate(-6deg) translateX(30px); } .stage .phone:nth-child(3) { transform: rotate(6deg) translateX(-30px); } }

.feats { display: grid; gap: 26px 30px; grid-template-columns: 1fr; margin: 56px 0 0; }
@media (min-width: 600px) { .feats { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .feats { grid-template-columns: 1fr 1fr 1fr; } }
.feat { display: flex; gap: 14px; align-items: flex-start; }
.feat .ic { flex: none; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--primary-container); color: var(--primary); }
.app-section.dark .feat .ic { background: rgba(242,181,49,.14); color: var(--gold-soft); }
.feat .ic svg { width: 22px; height: 22px; }
.feat h3 { margin: 2px 0 2px; font-size: 1rem; }
.feat p { margin: 0; font-size: 0.94rem; }

.note { background: var(--surface); border-radius: var(--radius); padding: 26px 28px; margin-top: 56px; display: grid; gap: 10px 26px; grid-template-columns: 1fr; border: 1px solid var(--border); }
@media (min-width: 860px) { .note { grid-template-columns: auto 1fr; } }
.note .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--primary); color: var(--on-primary); }
.note .ic svg { width: 26px; height: 26px; }
.note h2, .mfeats .note h2 { font-size: 1.45rem; margin-bottom: 8px; max-width: none; }
.note h3 { margin: 16px 0 4px; }
.note p:last-child { margin-bottom: 0; }
.app-section.dark .note { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); }
.app-section.dark .note .ic { background: var(--gold); color: var(--navy); }

/* ---------- Mogul sayfası ---------- */
.mhero { background: radial-gradient(100% 90% at 80% 10%, #34477A 0%, var(--navy-2) 35%, var(--navy) 70%, #0B1220 100%); color: #fff; overflow: hidden; position: relative; isolation: isolate; }
.mhero::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 60%; width: 2200px; height: 2200px; margin: -1100px; border-radius: 50%; background: repeating-conic-gradient(rgba(255,255,255,.05) 0 6deg, transparent 6deg 18deg); }
.mhero .split { padding: 70px 0 40px; }
.mhero h1 { color: var(--gold-soft); font-size: clamp(3.4rem, 9vw, 6.4rem); letter-spacing: 0.06em; text-shadow: 0 7px 0 #C98F17, 0 18px 40px rgba(0,0,0,.35); margin-bottom: 8px; }
.mhero .tag { font-family: "Space Grotesk", sans-serif; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); margin-bottom: 14px; }
.mhero p { color: rgba(255,255,255,.85); font-size: 1.12rem; max-width: 32rem; margin-bottom: 26px; }
.mhero .pill { background: rgba(255,255,255,.12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.mhero .stage::before { background: radial-gradient(closest-side, rgba(242,181,49,.30), transparent); }
.gallery-band { background: #0B1220; padding: 34px 0 46px; }
.gallery-band h2 { color: #fff; font-size: 1.5rem; margin-bottom: 18px; }
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: 230px; gap: 16px; overflow-x: auto; padding: 4px 2px 18px; scroll-snap-type: x mandatory; scrollbar-color: #34477A transparent; }
.shots img { width: 100%; height: auto; aspect-ratio: 9 / 16; border-radius: 20px; scroll-snap-align: start; background: var(--navy); }
.mfeats { padding: 80px 0 30px; }
.mfeats h2 { font-size: clamp(1.9rem, 3.8vw, 2.7rem); margin-bottom: 30px; max-width: 20ch; }
.cards { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .cards { grid-template-columns: 1fr 1fr 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #FCEFCB; color: #8A5A00; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .card .ic { background: #3A2E10; color: var(--gold-soft); } }
.card .ic svg { width: 24px; height: 24px; }
.card h3 { margin-bottom: 6px; }
.card p { margin: 0; font-size: 0.96rem; }
body.mogul .note .ic { background: var(--gold); color: var(--navy); }
body.mogul { --primary: #1E9E6A; }
@media (prefers-color-scheme: dark) { body.mogul { --primary: #4CC497; } }

/* ---------- Belgeler ---------- */
.docband { color: #fff; }
.docband.kese { background: linear-gradient(120deg, var(--kese), var(--kese-deep)); }
.docband.mogul { background: linear-gradient(120deg, var(--navy-2), var(--navy)); }
.docband .wrap { max-width: 800px; display: flex; align-items: center; gap: 14px; padding-top: 30px; padding-bottom: 30px; }
.docband img { width: 48px; height: 48px; border-radius: 14px; }
.docband b { display: block; font-family: "Space Grotesk", sans-serif; font-size: 1.3rem; line-height: 1.2; }
.docband span { opacity: .8; font-size: 0.95rem; }
.docband nav { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.docband nav a { color: #fff; text-decoration: none; font-weight: 700; font-size: 0.88rem; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.12); }
.docband nav a[aria-current="page"] { background: #fff; color: var(--text); }
@media (max-width: 700px) { .docband nav { display: none; } }
.doc { max-width: 800px; padding-top: 34px; padding-bottom: 50px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.7rem); margin: 6px 0 8px; }
.doc h2 { font-size: 1.32rem; margin-top: 2.3rem; margin-bottom: 0.6rem; font-family: "DM Sans", sans-serif; letter-spacing: 0; }
.doc h3 { margin-top: 1.4rem; margin-bottom: 0.3rem; }
.doc .meta { color: var(--text-secondary); font-size: 0.95rem; margin-bottom: 1.6rem; }
.doc .summary { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 1.6rem; }
.doc .summary ul, .doc .summary p { margin: 0; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 14px; overflow: hidden; margin: 0 0 1rem; font-size: 0.95rem; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--divider); }
th { color: var(--text); background: var(--divider); }
.table-scroll { overflow-x: auto; }

/* ---------- Alt bilgi ---------- */
footer { background: #101713; color: #A9B4AD; padding: 54px 0 40px; font-size: 0.95rem; }
footer a { color: #E6ECE8; text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .cols { display: grid; gap: 30px; grid-template-columns: 1fr; }
@media (min-width: 760px) { footer .cols { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
footer .about .brand { color: #fff; margin-bottom: 10px; }
footer .about p { max-width: 22rem; margin: 0; }
footer h3 { color: #fff; font-size: 0.95rem; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
footer h3 img { width: 22px; height: 22px; border-radius: 7px; }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin-bottom: 8px; }
footer .base { border-top: 1px solid #25302A; margin-top: 36px; padding-top: 20px; font-size: 0.88rem; }
