/* ==========================================================
   10 Parmak — yazım kursu
   ========================================================== */

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }

:root {
  --font-head: "Bricolage Grotesque", "Manrope", system-ui, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --bg: #f5f6fb;
  --bg-tint: #eceffa;
  --surface: #ffffff;
  --surface-2: #f3f5fb;
  --surface-3: #e9ecf6;
  --line: rgba(17, 24, 49, .08);
  --line-2: rgba(17, 24, 49, .15);
  --ink: #0e1430;
  --ink-2: #47506b;
  --ink-3: #6f7891;
  --brand: #3a55f6;
  --brand-2: #7b4dff;
  --brand-ink: #ffffff;
  --brand-soft: rgba(58, 85, 246, .1);
  --brand-glow: rgba(58, 85, 246, .35);
  --mint: #0f9f73;
  --gold: #c58a00;
  --shadow-sm: 0 1px 2px rgba(14, 20, 48, .06), 0 1px 1px rgba(14, 20, 48, .04);
  --shadow: 0 10px 30px -12px rgba(14, 20, 48, .18), 0 2px 6px rgba(14, 20, 48, .05);
  --shadow-lg: 0 30px 60px -20px rgba(14, 20, 48, .28);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  --ok: #0f8a5f;
  --okbg: rgba(15, 159, 115, .12);
  --bad: #d9363e;
  --badbg: rgba(217, 54, 62, .13);

  --f0: #ffd9d6; --f1: #ffe7c7; --f2: #fff3b8; --f3: #d8f5d0;
  --f4: #cdeefb; --f5: #dcdcff; --f6: #f0d9ff; --f7: #ffd6ec; --f8: #e6e9f2;

  color-scheme: light;
}
html[data-colors="blue"] { --ok: #2c56d6; --okbg: rgba(44, 86, 214, .12); --bad: #b65300; --badbg: rgba(214, 112, 0, .16); }
html[data-colors="purple"] { --ok: #6d34b0; --okbg: rgba(109, 52, 176, .12); --bad: #8f6200; --badbg: rgba(222, 170, 0, .22); }

html[data-theme="dark"] {
  --bg: #090c18;
  --bg-tint: #0e1326;
  --surface: #121730;
  --surface-2: #171d3a;
  --surface-3: #1f2648;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .14);
  --ink: #eef1ff;
  --ink-2: #b2b9d6;
  --ink-3: #8189a8;
  --brand: #7d8fff;
  --brand-2: #a98bff;
  --brand-ink: #0b0f22;
  --brand-soft: rgba(125, 143, 255, .14);
  --brand-glow: rgba(125, 143, 255, .35);
  --mint: #4fdcaa;
  --gold: #ffcc4d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --shadow-lg: 0 30px 70px -20px rgba(0, 0, 0, .8);
  --ok: #5fe0a6; --okbg: rgba(95, 224, 166, .13);
  --bad: #ff7b84; --badbg: rgba(255, 123, 132, .16);
  --f0: #4a2a33; --f1: #4a3725; --f2: #47421f; --f3: #24432c;
  --f4: #1f3d4c; --f5: #2c2f5c; --f6: #3d2b55; --f7: #4c2843; --f8: #262c48;
  color-scheme: dark;
}
html[data-theme="dark"][data-colors="blue"] { --ok: #9bb4ff; --okbg: rgba(155, 180, 255, .15); --bad: #ffb36b; --badbg: rgba(255, 179, 107, .16); }
html[data-theme="dark"][data-colors="purple"] { --ok: #d3a8ff; --okbg: rgba(211, 168, 255, .15); --bad: #ffe07a; --badbg: rgba(255, 224, 122, .15); }

html.theme-anim, html.theme-anim * { transition: background-color .35s var(--ease), border-color .35s var(--ease), color .35s var(--ease) !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font: 16px/1.65 var(--font-body); font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
main { flex: 1; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -.02em; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; }
::selection { background: var(--brand-soft); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 20px; height: 20px; flex: none; }
.container { width: min(100% - 40px, 1160px); margin-inline: auto; }
.muted { color: var(--ink-2); }

/* ---------- Butonlar ---------- */

.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s, color .2s;
  touch-action: manipulation;
}
.btn .icon { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  box-shadow: 0 8px 22px -8px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
html[data-theme="dark"] .btn-primary { color: #0b0f22; }
.btn-primary:hover { box-shadow: 0 14px 30px -10px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .25); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line-2); color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }

.icon-btn {
  display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink-2); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s, transform .2s var(--ease);
}
.icon-btn:hover { color: var(--brand); border-color: var(--brand); }
.icon-btn:active { transform: scale(.94); }
.icon-btn[aria-pressed="true"] { background: var(--brand-soft); color: var(--brand); border-color: var(--brand); }

.link-btn { background: none; border: 0; padding: 0; color: var(--ink-3); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-btn:hover { color: var(--ink); }

/* ---------- Üst menü ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50; view-transition-name: site-header;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(14, 20, 48, .4); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo-mark {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: #fff;
  font: 800 15px/1 var(--font-head); box-shadow: 0 6px 16px -6px var(--brand-glow), inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.logo-mark::after { content: ""; position: absolute; bottom: 7px; width: 10px; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .75); }
.logo-mark span { transform: translateY(-2px); }
.logo-text { display: flex; flex-direction: column; font: 800 18px/1 var(--font-head); letter-spacing: -.02em; }
.logo-text small { font: 600 11px/1.4 var(--font-body); color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }

.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  position: relative; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 15px;
  color: var(--ink-2); text-decoration: none; transition: color .2s, background .2s;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.theme-btn .i-moon, html[data-theme="dark"] .theme-btn .i-sun { display: none; }
html[data-theme="dark"] .theme-btn .i-moon { display: block; }
.theme-btn .icon { animation: spin-in .45s var(--spring); }
@keyframes spin-in { from { transform: rotate(-90deg) scale(.5); opacity: 0; } }
.menu-btn { display: none; }
.menu-btn .i-close, .menu-open .menu-btn .i-menu { display: none; }
.menu-open .menu-btn .i-close { display: block; }

/* ---------- Alt bölüm ---------- */

.site-footer { margin-top: 96px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; padding: 48px 0 32px; flex-wrap: wrap; }
.footer-brand { max-width: 420px; }
.footer-brand p { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.footer-nav { display: flex; gap: 8px 28px; flex-wrap: wrap; align-content: flex-start; }
.footer-nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.footer-nav a:hover { color: var(--brand); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 28px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* ---------- Ortak bölümler ---------- */

.section { padding: 96px 0 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 8px; border-radius: 999px;
  background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: .01em;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px var(--brand-soft); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.section-head h2 { margin-top: 14px; font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin-top: 14px; font-size: 17px; color: var(--ink-2); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); min-width: 0;
}
.card-pad { padding: 28px; }

.page-hero { position: relative; isolation: isolate; padding: 56px 0 28px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); margin-top: 14px; }
.page-hero p.lead { margin-top: 14px; max-width: 620px; font-size: 18px; color: var(--ink-2); }

.bg-grid {
  position: absolute; inset: 0 0 -260px; pointer-events: none; z-index: -1; overflow: hidden;
  mask-image: linear-gradient(to bottom, #000 55%, transparent); -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent);
}
.bg-grid::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 18s ease-in-out infinite alternate; }
.blob.b1 { width: 460px; height: 460px; background: color-mix(in srgb, var(--brand) 55%, transparent); top: -180px; right: -80px; }
.blob.b2 { width: 380px; height: 380px; background: color-mix(in srgb, var(--brand-2) 45%, transparent); top: 120px; left: -160px; animation-duration: 22s; }
.blob.b3 { width: 300px; height: 300px; background: color-mix(in srgb, var(--mint) 35%, transparent); top: 260px; right: 22%; animation-duration: 26s; }
html[data-theme="dark"] .blob { opacity: .32; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.08); } }

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--ink-2);
}

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 200; transform: translate(-50%, 20px); opacity: 0;
  padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--bg); font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-lg); pointer-events: none; transition: opacity .3s, transform .3s var(--spring);
}
.toast.is-shown { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Ekran klavyesi ---------- */

.kb {
  --kh: 44px; --kg: 5px;
  display: grid; gap: var(--kg); padding: 14px; border-radius: 18px; user-select: none;
  background: linear-gradient(180deg, var(--surface-2), var(--surface-3));
  border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
}
html[data-theme="dark"] .kb { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04); }
.kb-row { display: grid; grid-template-columns: repeat(60, minmax(0, 1fr)); }
.key {
  position: relative; display: grid; place-items: center; height: var(--kh); margin: 0 calc(var(--kg) / 2);
  border-radius: 9px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 2px 0 var(--line-2); font: 600 14px/1 var(--font-body); color: var(--ink);
  transition: transform .12s var(--ease), box-shadow .12s, background .25s, color .25s, border-color .25s;
}
.key span { position: relative; z-index: 1; }
.key.mod { color: var(--ink-3); font-size: 11px; font-weight: 600; background: var(--surface-2); }
.key.enter-top { border-bottom-left-radius: 0; border-bottom-right-radius: 0; border-bottom: 0; box-shadow: none; height: calc(var(--kh) + var(--kg) + 1px); z-index: 1; }
.key.enter-bottom { border-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; margin-top: calc(-1 * var(--kg) - 1px); height: calc(var(--kh) + var(--kg) + 1px); }
.key.bump::after { content: ""; position: absolute; bottom: 6px; width: 10px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.kb.finger-colors .key[data-finger="0"] { background: var(--f0); }
.kb.finger-colors .key[data-finger="1"] { background: var(--f1); }
.kb.finger-colors .key[data-finger="2"] { background: var(--f2); }
.kb.finger-colors .key[data-finger="3"] { background: var(--f3); }
.kb.finger-colors .key[data-finger="4"] { background: var(--f4); }
.kb.finger-colors .key[data-finger="5"] { background: var(--f5); }
.kb.finger-colors .key[data-finger="6"] { background: var(--f6); }
.kb.finger-colors .key[data-finger="7"] { background: var(--f7); }
.kb.finger-colors .key[data-finger="8"] { background: var(--f8); }
.key.is-next {
  background: var(--brand) !important; color: #fff; border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft), 0 8px 18px -6px var(--brand-glow);
  animation: next-pulse 1.4s ease-in-out infinite;
}
html[data-theme="dark"] .key.is-next { color: #0b0f22; }
@keyframes next-pulse { 50% { box-shadow: 0 0 0 7px transparent, 0 8px 18px -6px var(--brand-glow); } }
.key.is-pressed { transform: translateY(2px); box-shadow: 0 0 0 var(--line-2); }
.key.is-wrong { background: var(--bad) !important; color: #fff; border-color: var(--bad); }
.key.is-dim { opacity: .28; }
.key.is-focus { outline: 2px solid var(--ink); outline-offset: 1px; z-index: 2; }

.kb-compact { --kh: 34px; --kg: 4px; padding: 10px; }
.kb-compact .key { font-size: 12px; border-radius: 7px; }

/* ---------- Segment seçici ---------- */

.seg {
  position: relative; display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
}
.seg button {
  position: relative; z-index: 1; min-height: 38px; padding: 0 14px; border: 0; background: none; border-radius: 10px;
  font-weight: 700; font-size: 14px; color: var(--ink-2); cursor: pointer; white-space: nowrap; transition: color .25s;
}
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { color: var(--brand); }
.seg button:disabled { cursor: not-allowed; opacity: .5; }
.seg-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; border-radius: 10px;
  background: var(--surface); box-shadow: var(--shadow-sm), 0 0 0 1px var(--line);
  transition: transform .35s var(--spring), width .35s var(--spring);
}

/* ---------- Ana sayfa ---------- */

.hero { position: relative; isolation: isolate; padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin-top: 18px; font-size: clamp(40px, 6vw, 68px); letter-spacing: -.035em; }
.hero h1 .grad { background: linear-gradient(120deg, var(--brand), var(--brand-2) 60%, var(--mint)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { margin-top: 20px; font-size: 19px; color: var(--ink-2); max-width: 540px; }
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 8px 18px; margin-top: 28px; flex-wrap: wrap; color: var(--ink-3); font-size: 14px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .icon { width: 16px; height: 16px; color: var(--mint); }

.demo { position: relative; padding: 20px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); transition: transform .8s var(--ease); }
.demo:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.demo-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.demo-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.demo-badge i { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .2; } }
.demo-stats { display: flex; gap: 8px; }
.demo-stat { padding: 6px 12px; border-radius: 12px; background: var(--surface-2); text-align: center; min-width: 74px; }
.demo-stat b { display: block; font: 800 20px/1.1 var(--font-head); font-variant-numeric: tabular-nums; }
.demo-stat small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.demo-text { font: 500 17px/1.8 var(--font-mono); padding: 16px 18px; border-radius: 16px; background: var(--surface-2); min-height: 132px; color: var(--ink-3); margin-bottom: 14px; }
.demo-text .ok { color: var(--ink); }
.demo-text .bad { color: var(--bad); background: var(--badbg); border-radius: 3px; }
.demo-text .cur { position: relative; }
.demo-text .cur::before { content: ""; position: absolute; left: -1px; top: 3px; bottom: 3px; width: 2px; border-radius: 2px; background: var(--brand); animation: blink 1s steps(2) infinite; }
.demo .kb { --kh: 30px; --kg: 4px; padding: 10px; }
.demo .key { font-size: 11px; border-radius: 7px; }
.demo-float {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 16px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 13px; font-weight: 700;
  animation: float 6s ease-in-out infinite;
}
.demo-float .icon { width: 30px; height: 30px; padding: 6px; border-radius: 10px; background: var(--brand-soft); color: var(--brand); }
.demo-float small { display: block; color: var(--ink-3); font-weight: 600; font-size: 12px; }
.demo-float.f1 { left: 28px; bottom: -34px; }
.demo-float.f2 { right: 28px; bottom: -34px; animation-delay: -3s; }
.demo-float.f2 .icon { background: color-mix(in srgb, var(--mint) 16%, transparent); color: var(--mint); }
@keyframes float { 50% { transform: translateY(-10px); } }

.stats-band { margin-top: 64px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); overflow: hidden; }
.stats-band div { padding: 26px 28px; border-left: 1px solid var(--line); }
.stats-band div:first-child { border-left: 0; }
.stats-band b { display: block; font: 800 40px/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats-band span { display: block; margin-top: 8px; color: var(--ink-2); font-weight: 600; font-size: 14px; }

.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.feature {
  position: relative; overflow: hidden; padding: 28px; border-radius: var(--radius-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm); grid-column: span 2;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-2); }
.feature.wide { grid-column: span 3; }
.feature .f-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); margin-bottom: 18px; transition: transform .4s var(--spring); }
.feature:hover .f-icon { transform: rotate(-8deg) scale(1.08); }
.feature .f-icon .icon { width: 24px; height: 24px; }
.feature h3 { font-size: 21px; }
.feature p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }
.feature::after { content: ""; position: absolute; inset: auto -40% -60% auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--brand-soft), transparent 70%); opacity: 0; transition: opacity .4s; }
.feature:hover::after { opacity: 1; }
.feature-visual { margin-top: 22px; }
.mini-letters { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-letters span { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 12px; font: 800 20px var(--font-head); background: var(--badbg); color: var(--bad); }
.mini-letters span:nth-child(n+3) { background: var(--surface-2); color: var(--ink-3); }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; }
.mini-bars i { flex: 1; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); opacity: .85; transform-origin: bottom; transform: scaleY(0); transition: transform .9s var(--spring); }
.is-visible .mini-bars i { transform: scaleY(1); }

.steps-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); counter-increment: step; }
.step::before { content: counter(step, decimal-leading-zero); display: block; font: 800 15px var(--font-mono); color: var(--brand); margin-bottom: 14px; }
.step h3 { font-size: 20px; }
.step p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.me-card { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; padding: 28px 32px; }
.me-card[hidden] { display: none; }
.me-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-soft); color: var(--brand); }
.me-icon .icon { width: 26px; height: 26px; }
.me-card h3 { font-size: 22px; }
.me-stats { display: flex; gap: 32px; flex-wrap: wrap; margin-top: 12px; }
.me-stats b { display: block; font: 800 30px/1 var(--font-head); }
.me-stats span { color: var(--ink-3); font-size: 13px; font-weight: 600; }

.cta-band {
  position: relative; overflow: hidden; isolation: isolate; padding: 56px; border-radius: 32px; color: #fff; text-align: center;
  background: linear-gradient(135deg, #2338d8, #6b3cf2 55%, #1aa37a);
}
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 36px 36px; mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); -webkit-mask-image: radial-gradient(circle at 50% 50%, #000, transparent 75%); }
.cta-band h2 { font-size: clamp(30px, 4vw, 46px); }
.cta-band p { margin: 14px auto 0; max-width: 520px; opacity: .85; font-size: 17px; }
.cta-band .btn { margin-top: 28px; background: #fff; color: #1c2a99; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .4); }

/* ---------- Alıştırma ---------- */

.practice-wrap { padding-top: 28px; }
.practice-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.practice-head h1 { font-size: clamp(28px, 4vw, 38px); }
.practice-head p { color: var(--ink-2); margin-top: 6px; }
.best-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; box-shadow: var(--shadow-sm); }
.best-chip .icon { width: 18px; height: 18px; color: var(--gold); }

.toolbar { display: flex; align-items: center; gap: 12px 16px; flex-wrap: wrap; padding: 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.toolbar .group { display: flex; align-items: center; gap: 10px; }
.toolbar .group-label { font-size: 12px; font-weight: 700; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.toolbar .tools { margin-left: auto; display: flex; gap: 8px; }

.live-row { display: grid; grid-template-columns: auto repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.ring-card { display: flex; align-items: center; gap: 14px; padding: 12px 20px 12px 12px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.ring { position: relative; width: 64px; height: 64px; }
.ring svg { width: 64px; height: 64px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 6; }
.ring .track { stroke: var(--surface-3); }
.ring .bar { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dashoffset .25s linear; }
.ring-card.is-low .ring .bar { stroke: var(--bad); }
.ring-time { font: 800 26px/1 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ring-card.is-low .ring-time { color: var(--bad); animation: shake .5s; }
@keyframes shake { 25% { transform: translateX(-2px); } 75% { transform: translateX(2px); } }
.ring-label { font-size: 12px; color: var(--ink-3); font-weight: 700; }
.live-stat { padding: 14px 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; }
.live-stat small { font-size: 12px; color: var(--ink-3); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.live-stat b { font: 800 28px/1.15 var(--font-head); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.live-stat b em { font-style: normal; font-size: 15px; color: var(--ink-3); font-weight: 700; margin-left: 4px; }

.stage { position: relative; padding: 28px 32px 22px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: box-shadow .3s, border-color .3s; }
.stage.is-focused { border-color: color-mix(in srgb, var(--brand) 45%, transparent); box-shadow: var(--shadow), 0 0 0 5px var(--brand-soft); }
.stage-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.stage-which { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.stage-which .lvl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); }
.stage-progress { flex: 1; max-width: 220px; height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.stage-progress span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .2s var(--ease); }

.text-window { --lh: 2.05em; position: relative; height: calc(var(--lh) * 3); overflow: hidden; font: 500 24px var(--font-mono); line-height: var(--lh); cursor: text; }
.text-flow { position: relative; white-space: pre-wrap; word-break: normal; overflow-wrap: normal; transition: transform .35s var(--ease); color: var(--ink-3); }
.text-flow .ch { transition: color .12s, background .12s; border-radius: 4px; }
.text-flow .ch.ok { color: var(--ink); }
html[data-colors="blue"] .text-flow .ch.ok, html[data-colors="purple"] .text-flow .ch.ok { color: var(--ok); }
.text-flow .ch.bad { color: var(--bad); background: var(--badbg); text-decoration: underline wavy; text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.caret { position: absolute; left: 0; top: 0; width: 2.5px; height: 1.3em; border-radius: 2px; background: var(--brand); box-shadow: 0 0 10px var(--brand-glow); transition: transform .1s var(--ease); pointer-events: none; }
.caret.idle { animation: blink 1.05s steps(2) infinite; }
.text-window.no-focus .caret { opacity: 0; }
.focus-hint {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 3; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
  font: 700 16px var(--font-body); color: var(--ink); opacity: 0; pointer-events: none; transition: opacity .25s;
}
.focus-hint span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.text-window.no-focus .focus-hint { opacity: 1; }
.typing-input { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; opacity: 0; resize: none; border: 0; padding: 0; font-size: 16px; color: transparent; background: transparent; caret-color: transparent; cursor: text; }

.stage-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line-2); flex-wrap: wrap; }
.guide-line { display: flex; align-items: center; gap: 10px; min-height: 32px; font-size: 15px; color: var(--ink-2); }
.guide-line .key-badge { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 9px; background: var(--brand); color: #fff; font: 800 16px var(--font-mono); box-shadow: 0 6px 14px -6px var(--brand-glow); }
html[data-theme="dark"] .guide-line .key-badge { color: #0b0f22; }
.guide-line .finger-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid var(--line-2); }
.guide-line.warn { color: var(--bad); }
.kbd-hints { display: flex; gap: 14px; font-size: 13px; color: var(--ink-3); }
kbd { font: 600 12px var(--font-body); padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--surface-2); color: var(--ink-2); }

.kb-wrap { margin-top: 18px; transition: opacity .3s, transform .3s var(--ease); }
.kb-wrap[hidden] { display: none; }
.finger-legend { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; margin-top: 12px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.finger-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s; }
.finger-legend i { width: 10px; height: 10px; border-radius: 50%; }
.finger-legend span.active { border-color: var(--brand); transform: translateY(-2px); color: var(--ink); }
.f-0 { background: var(--f0); } .f-1 { background: var(--f1); } .f-2 { background: var(--f2); } .f-3 { background: var(--f3); }
.f-4 { background: var(--f4); } .f-5 { background: var(--f5); } .f-6 { background: var(--f6); } .f-7 { background: var(--f7); } .f-8 { background: var(--f8); }
html:not([data-theme="dark"]) .finger-legend i, html:not([data-theme="dark"]) .finger-dot { filter: saturate(2.2) brightness(.92); }

.side-cards { margin-top: 18px; grid-template-columns: 1fr 1fr; }
.side-cards h3 { margin-top: 6px; font-size: 20px; }
.side-cards p, .side-cards .letter-chips { margin-top: 10px; }
.side-cards .btn { margin-top: 16px; }
.side-cards .empty-note { color: var(--ink-3); font-size: 14px; }
.icon-btn .i-volume, .icon-btn[aria-pressed="true"] .i-mute,
.icon-btn .i-shrink, body.focus-mode .icon-btn .i-expand { display: none; }
.icon-btn[aria-pressed="true"] .i-volume, body.focus-mode .icon-btn .i-shrink { display: block; }

/* Odak modu */
body.focus-mode .site-header, body.focus-mode .site-footer, body.focus-mode .practice-head, body.focus-mode .below-stage { display: none; }
body.focus-mode .practice-wrap { padding-top: 24px; }
body.focus-mode .text-window { font-size: 28px; }

/* ---------- Pencereler ---------- */

dialog { padding: 0; border: 0; background: transparent; color: var(--ink); max-width: min(100% - 24px, 720px); width: 100%; max-height: calc(100dvh - 24px); }
dialog::backdrop { background: rgba(8, 11, 26, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
dialog[open] { animation: pop-in .45s var(--spring); }
dialog[open]::backdrop { animation: fade-in .3s; }
@keyframes pop-in { from { opacity: 0; transform: translateY(26px) scale(.96); } }
@keyframes fade-in { from { opacity: 0; } }
.sheet { position: relative; padding: 32px; border-radius: 28px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); overflow: auto; max-height: calc(100dvh - 24px); }
.sheet-close { position: absolute; top: 16px; right: 16px; }
.sheet h2 { font-size: 28px; padding-right: 50px; }
.sheet .sub { margin-top: 6px; color: var(--ink-2); }

.result-hero { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 22px; }
.result-big { position: relative; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--mint), var(--brand)); padding: 7px; }
.result-big > div { display: grid; place-items: center; align-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); }
.result-big b { font: 800 50px/1 var(--font-head); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.result-big small { font-weight: 700; color: var(--ink-3); font-size: 13px; }
.level-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 800; font-size: 14px; }
.record-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); font-weight: 800; font-size: 14px; margin-left: 6px; animation: pop-in .6s var(--spring) .3s both; }
.record-tag .icon { width: 16px; height: 16px; }
.result-advice { margin-top: 12px; color: var(--ink-2); }
.result-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
@media (max-width: 700px) { .result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.result-grid div { padding: 14px; border-radius: 16px; background: var(--surface-2); }
.result-grid small { display: block; font-size: 12px; color: var(--ink-3); font-weight: 700; }
.result-grid b { font: 800 24px/1.2 var(--font-head); font-variant-numeric: tabular-nums; }
.result-block { margin-top: 22px; }
.result-block h3 { font-size: 16px; font-family: var(--font-body); font-weight: 800; letter-spacing: 0; margin-bottom: 10px; }
.letter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.letter-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border-radius: 12px; background: var(--badbg); color: var(--bad); }
.letter-chip b { font: 800 20px var(--font-head); }
.letter-chip small { font-weight: 700; font-size: 12px; }
.wrong-words { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0; list-style: none; font: 500 14px var(--font-mono); }
.wrong-words li { padding: 4px 10px; border-radius: 10px; background: var(--surface-2); }
.wrong-words s { color: var(--bad); text-decoration-color: var(--bad); }
.result-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.result-note { margin-top: 16px; font-size: 13px; color: var(--ink-3); }

.settings-list { display: grid; gap: 6px; margin-top: 22px; }
.setting { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); }
.setting b { display: block; font-size: 15px; }
.setting small { display: block; color: var(--ink-3); font-size: 13px; }
.switch { position: relative; width: 50px; height: 30px; flex: none; border-radius: 99px; border: 0; background: var(--surface-3); cursor: pointer; transition: background .25s; box-shadow: inset 0 0 0 1px var(--line-2); }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .3s var(--spring); }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.swatches { display: flex; gap: 8px; }
.swatch { display: flex; width: 54px; height: 34px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; cursor: pointer; background: none; transition: transform .2s var(--spring); }
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.swatch i { flex: 1; }
.custom-area { width: 100%; min-height: 160px; margin-top: 18px; padding: 14px; border-radius: 16px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--ink); font: 15px/1.6 var(--font-body); resize: vertical; }
.custom-area:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }

.confetti { position: fixed; z-index: 300; top: 0; left: 0; width: 9px; height: 14px; border-radius: 2px; pointer-events: none; }

/* ---------- Program ---------- */

.program-hero { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding: 34px; }
.big-ring { position: relative; width: 190px; height: 190px; }
.big-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.big-ring circle { fill: none; stroke-width: 12; }
.big-ring .track { stroke: var(--surface-3); }
.big-ring .bar { stroke: url(#bigGrad); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.big-ring .center { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; text-align: center; }
.big-ring .center b { font: 800 46px/1 var(--font-head); letter-spacing: -.03em; }
.big-ring .center small { color: var(--ink-3); font-weight: 700; font-size: 13px; }
.today-phase { color: var(--brand); font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; }
.today-title { font-size: clamp(26px, 3.4vw, 36px); margin-top: 6px; }
.today-task { margin-top: 12px; font-size: 17px; color: var(--ink-2); max-width: 560px; }
.today-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; }

.phases { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.phase { position: relative; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.phase.current { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.phase small { font-weight: 700; color: var(--ink-3); font-size: 12px; }
.phase h3 { font-size: 18px; margin-top: 4px; }
.phase .bar { height: 6px; border-radius: 99px; background: var(--surface-3); margin-top: 14px; overflow: hidden; }
.phase .bar span { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width 1.2s var(--ease) .2s; }

.days { display: grid; grid-template-columns: repeat(10, 1fr); gap: 10px; }
.day {
  position: relative; aspect-ratio: 1; display: grid; place-items: center; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); font: 800 17px var(--font-head); color: var(--ink-3); cursor: pointer;
  transition: transform .25s var(--spring), background .3s, color .3s, border-color .3s;
}
.day:hover { transform: translateY(-3px); border-color: var(--line-2); }
.day.done { background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
html[data-theme="dark"] .day.done { color: #0b0f22; }
.day.done::after { content: "✓"; position: absolute; top: 4px; right: 7px; font-size: 11px; opacity: .85; }
.day.today { color: var(--brand); border: 2px dashed var(--brand); }
.day.selected { box-shadow: 0 0 0 4px var(--brand-soft); }
.day.just-done { animation: day-pop .6s var(--spring); }
@keyframes day-pop { 40% { transform: scale(1.25) rotate(-6deg); } }
.day-detail { margin-top: 16px; padding: 18px 20px; border-radius: 18px; background: var(--surface-2); min-height: 76px; }
.day-detail b { display: block; }

.stat-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-tile { padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.stat-tile .icon { width: 36px; height: 36px; padding: 8px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.stat-tile b { display: block; margin-top: 14px; font: 800 32px/1 var(--font-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.stat-tile span { display: block; margin-top: 6px; color: var(--ink-3); font-weight: 600; font-size: 14px; }

.chart-card { padding: 26px; }
.chart-card .head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.chart-card h3 { font-size: 22px; }
.chart-svg { width: 100%; height: 260px; margin-top: 16px; overflow: visible; }
.chart-svg .grid line { stroke: var(--line); }
.chart-svg .grid text, .chart-svg .xl text { fill: var(--ink-3); font: 600 11px var(--font-body); }
.chart-svg .line { fill: none; stroke: url(#lineGrad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-svg .area { fill: url(#areaGrad); }
.chart-svg .pt { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; transition: r .2s; cursor: pointer; }
.chart-svg .pt:hover, .chart-svg .pt.on { r: 7; }
.chart-tip { position: absolute; padding: 8px 12px; border-radius: 12px; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 700; pointer-events: none; transform: translate(-50%, calc(-100% - 12px)); white-space: nowrap; opacity: 0; transition: opacity .15s; }
.chart-tip.on { opacity: 1; }
.chart-wrap { position: relative; }
.empty { display: grid; place-items: center; gap: 12px; padding: 40px 20px; text-align: center; color: var(--ink-3); }
.empty .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: var(--surface-2); }

.history { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.history li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); font-size: 14px; color: var(--ink-2); }
.history b { color: var(--ink); }

.heat-card { padding: 26px; }
.heat .key[data-heat] { background: color-mix(in srgb, var(--bad) calc(var(--heat) * 100%), var(--surface)) !important; color: var(--ink); }
.heat .key[data-heat].hot { color: #fff; }
.heat-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--ink-3); font-weight: 600; }
.heat-legend i { width: 120px; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-3), var(--bad)); }

.soon-card { position: relative; overflow: hidden; padding: 28px; }
.soon-card .rows { display: grid; gap: 8px; margin-top: 18px; }
.soon-card .rows div { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); }
.soon-card .rows i { height: 10px; border-radius: 99px; background: linear-gradient(90deg, var(--surface-3), var(--line-2), var(--surface-3)); background-size: 200% 100%; animation: shimmer 1.8s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }
.soon-card .rank { font: 800 14px var(--font-mono); color: var(--ink-3); width: 22px; }
.badge-soon { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--gold) 18%, transparent); color: var(--gold); font-weight: 800; font-size: 13px; }
.badge-soon .icon { width: 15px; height: 15px; }

.two-col { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; }
.stats-row { margin-top: 18px; }
.card-title { font-size: 22px; }
.card-note { margin: 6px 0 16px; }
.mt { margin-top: 16px; }
.soon-card { margin-top: 18px; }
.soon-card .head, .chart-card .head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.reset-row { margin-top: 24px; }

/* ---------- Rehber ---------- */

.finger-map { padding: 28px; }
.finger-map .controls { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.finger-buttons { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; margin-top: 18px; }
.finger-buttons button { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: 12px; font-weight: 700; color: var(--ink-2); transition: transform .25s var(--spring), border-color .2s; }
.finger-buttons button:hover, .finger-buttons button[aria-pressed="true"] { transform: translateY(-3px); border-color: var(--brand); color: var(--ink); }
.finger-buttons i { width: 22px; height: 30px; border-radius: 11px 11px 8px 8px; border: 1px solid var(--line-2); }
.finger-buttons button:nth-child(1) i, .finger-buttons button:nth-child(8) i { height: 22px; }
.finger-buttons button:nth-child(3) i, .finger-buttons button:nth-child(6) i { height: 36px; }
.finger-buttons button:nth-child(9) i { width: 30px; height: 18px; }
.finger-info { margin-top: 16px; min-height: 52px; padding: 14px 18px; border-radius: 16px; background: var(--surface-2); color: var(--ink-2); }

.formula-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.formula { padding: 24px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); }
.formula small { font-weight: 800; color: var(--brand); text-transform: uppercase; letter-spacing: .06em; font-size: 12px; }
.formula h3 { font-size: 22px; margin-top: 6px; }
.formula .eq { margin-top: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); font: 600 14px/1.5 var(--font-mono); color: var(--ink); }
.formula p { margin-top: 12px; color: var(--ink-2); font-size: 15px; }

.calc { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; padding: 28px; margin-top: 18px; }
.calc label { display: block; font-weight: 700; font-size: 14px; }
.calc output { font: 800 15px var(--font-mono); color: var(--brand); float: right; }
.calc input[type="range"] { width: 100%; margin: 10px 0 18px; accent-color: var(--brand); }
.calc-result { text-align: center; padding: 22px 30px; border-radius: 22px; background: linear-gradient(145deg, var(--brand), var(--brand-2)); color: #fff; min-width: 200px; }
html[data-theme="dark"] .calc-result { color: #0b0f22; }
.calc-result b { display: block; font: 800 54px/1 var(--font-head); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.calc-result span { font-weight: 700; opacity: .85; }
.calc-result em { display: block; margin-top: 6px; font-style: normal; font-size: 14px; font-weight: 700; opacity: .9; }

.scale { display: grid; gap: 10px; }
.scale-row { display: grid; grid-template-columns: 110px 1fr; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); position: relative; transition: border-color .3s, transform .3s var(--ease); }
.scale-row.you { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.scale-row .rng { font: 800 15px var(--font-mono); color: var(--brand); }
.scale-row h3 { font-size: 18px; }
.scale-row p { margin-top: 2px; color: var(--ink-2); font-size: 15px; }
.scale-row .you-tag { position: absolute; top: -10px; right: 16px; padding: 2px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; }
html[data-theme="dark"] .scale-row .you-tag { color: #0b0f22; }
.scale-meter { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.scale-meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--brand), var(--brand-2)); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease); }
.is-visible .scale-meter span { transform: scaleX(1); }

.tips-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tip { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.tip:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tip .t-icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--surface-2); font-size: 22px; }
.tip h3 { margin-top: 16px; font-size: 19px; }
.tip p { margin-top: 8px; color: var(--ink-2); font-size: 15px; }

.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 22px; cursor: pointer; font-weight: 800; font-size: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--font-body); color: var(--brand); transition: transform .3s var(--spring); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 22px 20px; color: var(--ink-2); animation: fade-down .35s var(--ease); }
@keyframes fade-down { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Duyarlı ---------- */

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .demo { transform: none; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .feature, .feature.wide { grid-column: span 1; }
  .stats-band { grid-template-columns: repeat(2, 1fr); }
  .stats-band div:nth-child(3) { border-left: 0; }
  .stats-band div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .live-row { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; }
  .phases { grid-template-columns: repeat(2, 1fr); }
  .stat-tiles { grid-template-columns: repeat(2, 1fr); }
  .tips-grid, .formula-grid { grid-template-columns: 1fr 1fr; }
  .finger-buttons { grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 820px) {
  .nav {
    position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; gap: 2px; margin: 0; padding: 10px 16px 18px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    opacity: 0; transform: translateY(-10px); pointer-events: none; transition: opacity .25s, transform .3s var(--ease);
  }
  .nav a { padding: 12px 14px; font-size: 17px; }
  .menu-open .nav { opacity: 1; transform: none; pointer-events: auto; }
  .menu-btn { display: inline-grid; }
  .header-cta { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .container { width: min(100% - 28px, 1160px); }
  .header-inner { height: 62px; }
  .nav { top: 62px; }
  .logo-mark { width: 34px; height: 34px; }
  .section { padding-top: 68px; }
  .section-head { margin-bottom: 28px; }
  .hero { padding-top: 40px; }
  .hero .lead { font-size: 17px; }
  .hero-actions .btn { flex: 1; }
  .demo { padding: 14px; border-radius: 22px; }
  .demo-text { font-size: 14px; min-height: 110px; padding: 12px; }
  .demo .kb { --kh: 22px; --kg: 3px; padding: 6px; }
  .demo .key { font-size: 9px; border-radius: 5px; }
  .demo .key.mod span { display: none; }
  .demo-stat { min-width: 60px; padding: 5px 8px; }
  .demo-stat b { font-size: 17px; }
  .demo-float { display: none; }
  .stats-band div { padding: 20px; }
  .stats-band b { font-size: 32px; }
  .bento, .steps-row, .tips-grid, .formula-grid, .stat-tiles { grid-template-columns: 1fr; }
  .feature { padding: 22px; }
  .me-card { grid-template-columns: 1fr; gap: 18px; padding: 22px; }
  .cta-band { padding: 40px 22px; border-radius: 24px; }

  .toolbar { padding: 10px; gap: 10px; }
  .toolbar .group { width: 100%; justify-content: space-between; }
  .toolbar .group-label { display: none; }
  .toolbar .seg { width: 100%; }
  .toolbar .seg button { padding: 0 6px; font-size: 13px; }
  .toolbar .tools { margin: 0; width: 100%; justify-content: flex-end; }
  .live-row { gap: 8px; margin: 12px 0; }
  .ring-card { padding: 8px 12px 8px 8px; gap: 10px; border-radius: 16px; }
  .ring, .ring svg { width: 48px; height: 48px; }
  .ring-time { font-size: 21px; }
  .live-stat { padding: 10px 14px; border-radius: 16px; }
  .live-stat b { font-size: 22px; }
  .stage { padding: 18px 16px 16px; border-radius: 20px; }
  .text-window { font-size: 17px; }
  body.focus-mode .text-window { font-size: 19px; }
  .kbd-hints { display: none; }
  .kb { --kh: 30px; --kg: 3px; padding: 7px; border-radius: 12px; }
  .key { font-size: 11px; border-radius: 6px; }
  .key.mod span { display: none; }
  .key.space span { font-size: 10px; }
  .finger-legend { gap: 4px; }
  .finger-legend span { padding: 3px 8px; font-size: 11px; }

  .sheet { padding: 24px 18px; border-radius: 22px; }
  .sheet h2 { font-size: 23px; }
  .result-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 16px; }
  .result-big { width: 128px; height: 128px; }
  .result-big b { font-size: 42px; }
  .result-grid { grid-template-columns: 1fr 1fr; }
  .result-actions .btn { flex: 1; }
  .setting { flex-wrap: wrap; }

  .program-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 24px 18px; gap: 20px; }
  .big-ring { width: 160px; height: 160px; }
  .today-actions { justify-content: center; }
  .today-actions .btn { flex: 1; }
  .phases { grid-template-columns: 1fr 1fr; gap: 10px; }
  .phase { padding: 14px; }
  .phase h3 { font-size: 15px; }
  .days { grid-template-columns: repeat(6, 1fr); gap: 7px; }
  .day { border-radius: 11px; font-size: 15px; }
  .stat-tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-tile { padding: 16px; }
  .stat-tile b { font-size: 26px; }
  .chart-card, .heat-card, .soon-card, .finger-map { padding: 18px; }
  .chart-svg { height: 200px; }

  .finger-buttons { grid-template-columns: repeat(3, 1fr); }
  .calc { grid-template-columns: 1fr; padding: 20px; }
  .scale-row { grid-template-columns: 1fr; gap: 4px; padding: 16px; }
  .page-hero { padding-top: 36px; }
  .page-hero p.lead { font-size: 16px; }
}

@media (max-width: 380px) {
  .kb { --kh: 26px; padding: 5px; }
  .key { font-size: 10px; }
  .toolbar .seg button { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
