@import url(/fonts/fonts.css);

/* Tempo marka jetonları: eklentinin açık teması (ui.css) ve kehribar vurgu */
:root {
  --bg: #f6f6f4;
  --surface: #ffffff;
  --surface-2: #efeeea;
  --fg: #17181b;
  --muted: #5d6068;
  --dim: #8b8e95;
  --line: rgba(23, 24, 27, 0.09);
  --accent: #d9761a;
  --accent-ink: #a9570c;
  --accent-soft: rgba(217, 118, 26, 0.12);
  --shadow: 0 0 0 1px rgba(23, 24, 27, 0.06), 0 1px 2px rgba(23, 24, 27, 0.04), 0 8px 24px -12px rgba(23, 24, 27, 0.12);
  /* Kişi renkleri (açık zeminde okunur tonlar) */
  --p-deniz: #c7680f;
  --p-selim: #1d8f83;
  --p-kemal: #2e8a52;
  --p-ayse: #3a6fd0;
  /* Oynatıcı ekranı koyu kalır; içindeki parlak tonlar */
  --screen: #0e0d11;
  --amber: #f2a24a;
  --teal: #5cc4b8;
  --green: #6cc48a;
  --blue: #7aa7f0;
  --sand: #f4efe8;
  --display: 'Bricolage Grotesque', Figtree, system-ui, sans-serif;
  --body: Figtree, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --wrap: 1120px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.025em; line-height: 1.04; margin: 0; text-wrap: balance; }
em { font-style: normal; color: var(--accent); }
.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }

/* Zemin: üstte yumuşak şeftali ve lavanta ışık */
.glow {
  position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 560px at 0% 0%, rgba(186, 170, 230, 0.28), transparent 65%),
    radial-gradient(800px 520px at 100% 30%, rgba(242, 162, 74, 0.22), transparent 62%);
}

/* Üst çubuk */
.top { display: flex; align-items: center; justify-content: space-between; padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 18px var(--body); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; }
.top nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a:not(.btn) { color: var(--muted); text-decoration: none; transition: color 0.2s var(--ease); }
.top nav a:not(.btn):hover { color: var(--fg); }
@media (max-width: 640px) { .top nav .hide-sm { display: none; } }

/* Düğmeler */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font: 600 16px var(--body); text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease), background-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 8px 20px -8px rgba(217, 118, 26, 0.55); }
.btn-primary:hover { background: #c96a12; }
.btn-primary svg { width: 20px; height: 20px; }
.btn-ghost { color: var(--fg); background: var(--surface); box-shadow: var(--shadow); }
.btn-ghost:hover { background: #fbfbfa; }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.btn[aria-disabled='true'] { cursor: default; background: var(--surface-2); color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); }

/* Hero */
.hero { display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; padding: 56px 0 96px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; color: var(--muted); font-size: 14px; font-weight: 500; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 800; }
.hero .lede { margin: 24px 0 32px; max-width: 34ch; color: var(--muted); font-size: 19px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 18px 0 0; color: var(--dim); font-size: 14px; }
@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 32px 0 72px; }
}

/* Canlı gösterim: beyaz kart içinde koyu oynatıcı; kim konuşuyorsa oynatma ona göre değişir */
.demo {
  position: relative; padding: 18px; border-radius: 24px; background: var(--surface);
  box-shadow: 0 0 0 1px rgba(23, 24, 27, 0.06), 0 2px 4px rgba(23, 24, 27, 0.04), 0 40px 80px -36px rgba(80, 50, 20, 0.35);
}
.screen {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 14px; color: var(--sand);
  background: radial-gradient(60% 80% at 50% 110%, #3a2716, transparent 70%), var(--screen);
}
.screen .pill {
  position: absolute; left: 14px; top: 14px; display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 8px 6px 12px; border-radius: 999px; background: rgba(12, 11, 14, 0.8);
  box-shadow: 0 0 0 1px rgba(244, 239, 232, 0.1); font-size: 14px; backdrop-filter: blur(8px);
}
.pill .tag {
  padding: 1px 8px; border-radius: 999px; background: var(--amber); color: #1a1208;
  font-weight: 700; font-size: 13px; font-variant-numeric: tabular-nums;
}
.pill .tag[data-kind='none'] { display: none; }
.speed { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.speed b {
  display: block; font: 800 clamp(64px, 11vw, 112px)/1 var(--display); letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums; transition: color 0.3s var(--ease);
}
.speed span { display: block; margin-top: 6px; color: #b9b0a6; font-size: 14px; min-height: 1.6em; }
.screen .flash {
  position: absolute; right: 14px; top: 14px; padding: 6px 12px; border-radius: 999px;
  background: var(--sand); color: var(--screen); font-size: 13px; font-weight: 600;
  opacity: 0; transform: translateY(-6px); transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.screen .flash.on { opacity: 1; transform: none; }

.track { position: relative; height: 10px; margin: 18px 4px 6px; border-radius: 99px; background: var(--surface-2); }
.seg { position: absolute; top: 0; bottom: 0; border-radius: 99px; }
.seg[data-p='deniz'] { background: var(--amber); }
.seg[data-p='selim'] { background: var(--teal); }
.seg[data-p='anon'] { background: #cfcdc8; }
.seg[data-p='ayse'] { background: var(--blue); }
.seg[data-p='kemal'] { background: repeating-linear-gradient(-45deg, rgba(46, 138, 82, 0.45) 0 3px, transparent 3px 6px); box-shadow: inset 0 0 0 1px rgba(46, 138, 82, 0.55); }
.head {
  position: absolute; top: 50%; left: 0; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%;
  background: var(--fg); box-shadow: 0 0 0 4px var(--surface);
}
.clock { display: flex; justify-content: space-between; margin: 0 4px; color: var(--dim); font-size: 12px; font-variant-numeric: tabular-nums; }

.cast { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; margin: 16px 0 0; padding: 0; list-style: none; }
.cast li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; transition: background-color 0.25s var(--ease); }
.cast li.on { background: var(--accent-soft); }
.av {
  flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  font-size: 12px; font-weight: 700; letter-spacing: 0.02em;
}
.av[data-p='deniz'] { color: var(--p-deniz); background: rgba(217, 118, 26, 0.12); }
.av[data-p='selim'] { color: var(--p-selim); background: rgba(29, 143, 131, 0.12); }
.av[data-p='kemal'] { color: var(--p-kemal); background: rgba(46, 138, 82, 0.12); }
.av[data-p='ayse'] { color: var(--p-ayse); background: rgba(58, 111, 208, 0.12); }
.cast b { display: block; font-size: 14px; font-weight: 600; line-height: 1.3; }
.cast small { display: block; color: var(--muted); font-size: 13px; line-height: 1.3; }
@media (max-width: 480px) {
  .demo { padding: 12px; border-radius: 20px; }
  .cast { grid-template-columns: 1fr; }
  .speed { padding-top: 36px; }
  .speed b { font-size: 56px; }
  .speed span { font-size: 13px; }
}

/* Bölümler */
.section { padding: 96px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(34px, 4.4vw, 52px); }
.section-head p { margin: 16px 0 0; color: var(--muted); font-size: 18px; }
@media (max-width: 640px) { .section { padding: 72px 0; } }

/* Kartlar: kurallar ve adımlar aynı yüzeyi paylaşır */
.rule, .steps li, .limits { border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }

/* Dört kural */
.rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rule { padding: 22px; }
.rule .glyph { height: 44px; margin-bottom: 18px; font: 800 34px/44px var(--display); letter-spacing: -0.03em; color: var(--accent); }
.rule .glyph svg { width: 40px; height: 40px; }
.rule h3 { font: 600 18px/1.3 var(--body); letter-spacing: 0; margin-bottom: 6px; }
.rule p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
@media (max-width: 920px) { .rules { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .rules { grid-template-columns: 1fr; } }

/* Özellikler: ekran görüntüsü ve kısa metin */
.features { display: grid; gap: 88px; margin-top: 96px; }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; }
.feature:nth-child(even) .shot { order: -1; }
.feature h3 { font-size: clamp(28px, 3.2vw, 38px); margin-bottom: 14px; }
.feature p { margin: 0; color: var(--muted); max-width: 42ch; }
.shot { border-radius: 20px; overflow: hidden; background: var(--screen); box-shadow: 0 0 0 1px rgba(23, 24, 27, 0.08), 0 30px 60px -30px rgba(40, 30, 20, 0.45); }
@media (max-width: 860px) {
  .features { gap: 64px; margin-top: 72px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature:nth-child(even) .shot { order: 0; }
}

/* Nasıl çalışır: sıralı üç adım */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: step; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 26px 24px 24px; counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: 18px;
  border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-weight: 700; font-size: 15px;
}
.steps h3 { font: 600 18px/1.3 var(--body); letter-spacing: 0; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

/* Gizlilik */
.private { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }
.private h2 { font-size: clamp(40px, 5.6vw, 68px); font-weight: 800; }
.private .note { margin: 20px 0 0; color: var(--muted); max-width: 40ch; }
.private .note a { color: var(--accent-ink); text-underline-offset: 3px; }
.checks { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.checks li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checks li:last-child { border-bottom: 0; }
.checks svg { flex: none; width: 22px; height: 22px; margin-top: 2px; color: var(--accent); }
.checks b { display: block; font-weight: 600; }
.checks span { color: var(--muted); font-size: 15px; }
@media (max-width: 860px) { .private { grid-template-columns: 1fr; gap: 32px; } }

.limits { margin-top: 56px; padding: 22px 24px; color: var(--muted); font-size: 15px; }
.limits b { color: var(--fg); font-weight: 600; }
.limits ul { margin: 8px 0 0; padding-left: 18px; }
.limits li + li { margin-top: 4px; }

/* Son çağrı */
.final { padding: 112px 0; text-align: center; border-top: 1px solid var(--line); background: radial-gradient(640px 320px at 50% 100%, rgba(242, 162, 74, 0.2), transparent 70%); }
.final img { width: 64px; height: 64px; margin: 0 auto 28px; border-radius: 16px; outline: 1px solid rgba(0, 0, 0, 0.1); outline-offset: -1px; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, 0.35); }
.final h2 { font-size: clamp(36px, 5vw, 56px); margin-bottom: 16px; }
.final p { margin: 0 auto 32px; color: var(--muted); max-width: 40ch; }
.final .actions { justify-content: center; }

footer { padding: 32px 0 48px; border-top: 1px solid var(--line); color: var(--dim); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
footer nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--fg); }
footer .coffee img { height: 36px; width: auto; }

/* Metin sayfaları (gizlilik, 404) */
.doc { max-width: 720px; padding: 40px 0 96px; }
.doc h1 { font-size: clamp(38px, 5vw, 56px); margin-bottom: 10px; }
.doc .meta { color: var(--dim); font-size: 15px; margin: 0 0 40px; }
.doc h2 { font-size: 26px; margin: 44px 0 12px; }
.doc p, .doc li { color: #33353a; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 8px; }
.doc b { color: var(--fg); }
.doc code { font-size: 0.9em; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.doc a { color: var(--accent-ink); text-underline-offset: 3px; }
.doc a.btn-primary { color: #fff; text-decoration: none; }
.doc .lang { display: inline-flex; gap: 4px; margin-bottom: 28px; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); font-size: 14px; }
.doc .lang a { padding: 4px 12px; border-radius: 999px; color: var(--muted); text-decoration: none; }
.doc .lang a[aria-current] { background: var(--surface-2); color: var(--fg); }
.doc hr { margin: 64px 0; border: 0; border-top: 1px solid var(--line); }

/* Kaydırınca beliren bölümler (yalnızca JS varken ve hareket istenirse) */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
  .js .reveal.in { opacity: 1; transform: none; }
}
