:root {
  --bg-top: #2D2A63;
  --bg-bottom: #17153A;
  --card: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.10);
  --cream: #F3EFE6;
  --muted: rgba(243, 239, 230, 0.68);
  --gold: #FFC94D;
  --lavender: #8C86E8;
  --coral: #E47A45;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--bg-top), var(--bg-bottom)) fixed;
  background-color: var(--bg-bottom);
  color: var(--cream);
  font-family: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

a { color: var(--gold); }

.wrap { max-width: 760px; margin: 0 auto; padding: 24px 16px 64px; }

/* Üst bar */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 32px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font-weight: 800; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.langs { display: flex; gap: 6px; }
.langs button {
  background: var(--card); color: var(--cream); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--cream); color: var(--bg-bottom); border-color: var(--cream); font-weight: 700; }

/* Dil seçimi */
html[data-lang="en"] [lang="tr"],
html[data-lang="tr"] [lang="en"] { display: none !important; }

/* Ana sayfa */
.hero { text-align: center; padding: 24px 0 8px; }
.hero img { width: 140px; height: 140px; border-radius: 32px; box-shadow: 0 20px 40px rgba(0,0,0,.35); }
.hero h1 { font-size: clamp(40px, 9vw, 56px); margin: 24px 0 4px; letter-spacing: -0.5px; }
.tagline { color: var(--muted); font-size: 19px; margin: 0 0 28px; }
.badge {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--cream); color: var(--bg-bottom); font-weight: 800; text-decoration: none;
}
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 40px 0; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.feature b { display: block; font-size: 17px; margin-bottom: 4px; }
.feature span { color: var(--muted); font-size: 15px; }

/* Metin sayfaları */
.doc h1 { font-size: 34px; margin: 0 0 4px; line-height: 1.2; }
.doc .meta { color: var(--muted); margin: 0 0 28px; font-size: 15px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc p, .doc li { color: rgba(243, 239, 230, 0.88); }
.doc ul { padding-left: 20px; }
.box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; margin: 20px 0; }
.mail { font-size: 20px; font-weight: 800; word-break: break-all; }

[hidden] { display: none !important; }

/* Ana sayfa düğmeleri */
.cta { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.badge { border: 0; font: inherit; font-weight: 800; cursor: pointer; }
.badge.ghost { background: var(--card); color: var(--cream); border: 1px solid var(--line); }
a.badge:hover, button.badge:hover { filter: brightness(1.06); }

/* Demo */
.demo { text-align: center; margin: 56px 0 8px; scroll-margin-top: 16px; }
.demo h2 { font-size: 28px; margin: 0 0 4px; line-height: 1.2; }
.demo .sub { color: var(--muted); margin: 0 0 20px; }
.stage {
  position: relative; width: 100%; max-width: 380px; margin: 0 auto;
  aspect-ratio: 3 / 5; border-radius: 32px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0, 0, 0, .4);
  background: var(--bg-top);
}
.stage canvas {
  display: block; width: 100%; height: 100%;
  touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  cursor: grab;
}
.stage canvas:active { cursor: grabbing; }
.overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(23, 21, 58, 0.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: fade .25s ease-out;
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.overlay .card {
  width: 100%; max-width: 300px; background: rgba(45, 42, 99, 0.92); border: 1px solid var(--line);
  border-radius: 24px; padding: 22px 20px; display: flex; flex-direction: column; gap: 10px; align-items: stretch;
}
.overlay p { margin: 0; }
.overlay [data-show] { display: none; }
.overlay[data-state="fell"] [data-show~="fell"],
.overlay[data-state="tipped"] [data-show~="tipped"],
.overlay[data-state="done"] [data-show~="done"] { display: block; }
.overlay .title { font-size: 22px; font-weight: 800; }
.overlay .score { font-size: 56px; font-weight: 900; line-height: 1; color: var(--gold); }
.overlay .note { color: var(--muted); font-size: 14px; line-height: 1.45; }
.overlay .badge { text-align: center; padding: 12px 18px; }
.overlay .soon { color: var(--muted); font-size: 13px; font-weight: 700; }
.demo-controls { display: flex; justify-content: center; gap: 10px; margin-top: 14px; }
.pill {
  background: var(--card); color: var(--cream); border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; min-height: 40px;
}
.pill.icon { width: 40px; padding: 0; }

/* Ekran görüntüleri */
.shots {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 2px 12px; margin: 0 -16px; padding-left: 16px; padding-right: 16px;
}
.shots img {
  flex: 0 0 auto; width: 170px; height: auto; border-radius: 22px; scroll-snap-align: start;
  border: 1px solid var(--line);
}
@media (min-width: 760px) {
  .shots { margin: 0; padding-left: 2px; padding-right: 2px; justify-content: space-between; overflow: visible; }
  .shots img { width: calc(25% - 9px); }
}

footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 16px; }
footer a { color: var(--muted); }
