/* Ürünün tasarım dili "Tally" (design/design-dna.json): grafit zemin, tek amber vurgu, Geist. */
@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(assets/geist-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Geist; font-weight: 400; font-display: swap; src: url(assets/geist-latin-ext-400-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url(assets/geist-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Geist; font-weight: 600; font-display: swap; src: url(assets/geist-latin-ext-600-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Geist; font-weight: 700; font-display: swap; src: url(assets/geist-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+2215; }
@font-face { font-family: Geist; font-weight: 700; font-display: swap; src: url(assets/geist-latin-ext-700-normal.woff2) format("woff2"); unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+20A0-20AB, U+20AD-20CF, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --sc-canvas:     #0E1116;
  --sc-surface:    #171B23;
  --sc-ink:        #F4F5F7;
  --sc-ink-soft:   #A3AAB8;
  --sc-accent:     #FFB020;
  --sc-accent-ink: #1A1300;
  --sc-font-display: "Geist", system-ui, sans-serif;
  --sc-font-text:    "Geist", system-ui, sans-serif;
  --surface-2: #1F2430;
  --surface-3: #2A3140;
  --bar-h: 64px;
}

body { background: var(--sc-canvas); color: var(--sc-ink); font-family: var(--sc-font-text); }

/* ---------- Uygulama çubuğu ---------- */
.osbar {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  display: flex; align-items: center; gap: var(--sc-5);
  height: var(--bar-h); padding: 0 var(--sc-gutter);
  background: color-mix(in oklab, var(--sc-canvas) 86%, transparent);
  border-bottom: 1px solid var(--sc-hairline);
  backdrop-filter: blur(10px);
  transition: opacity var(--sc-d-base) var(--sc-ease-out);
}
.osbar.is-hidden { opacity: 0; pointer-events: none; }
.mark { display: inline-flex; align-items: center; gap: 0.45em; color: var(--sc-ink); text-decoration: none; font-size: 1.25rem; }
/* Logo (design/brand): amber simge; "er" + "ke" (amber) kalın, "player" normal */
.mark-icon { flex: none; width: 1.16em; height: 1.3em; color: var(--sc-accent); }
.wordmark { letter-spacing: -0.035em; white-space: nowrap; }
.wm-er, .wm-ke { font-weight: 700; }
.wm-ke { color: var(--sc-accent); }
.wm-pl { font-weight: 400; }
.tabs { display: flex; gap: 2px; margin-left: var(--sc-4); }
.tabs a {
  padding: 8px 14px; border-radius: var(--sc-r-pill);
  color: var(--sc-ink-soft); text-decoration: none; font-size: var(--sc-t-sm); font-weight: 500;
  transition: background var(--sc-d-fast) var(--sc-ease-out), color var(--sc-d-fast) var(--sc-ease-out);
}
.tabs a.is-current { background: var(--surface-2); color: var(--sc-ink); }
@media (hover: hover) and (pointer: fine) { .tabs a:hover { color: var(--sc-ink); } }
.tabs a:focus-visible, .btn:focus-visible, .lang:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid var(--sc-accent); outline-offset: 3px;
}
.osbar-end { margin-left: auto; display: flex; align-items: center; gap: var(--sc-3); }
.lang {
  background: transparent; color: var(--sc-ink-soft); border: 1px solid var(--sc-hairline-strong);
  border-radius: var(--sc-r-pill); padding: 6px 10px; font: inherit; font-size: var(--sc-t-xs);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 42px; padding: 0 20px; border: 0; border-radius: var(--sc-r-pill);
  font: inherit; font-weight: 600; font-size: var(--sc-t-sm); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--sc-d-fast) var(--sc-ease-out), filter var(--sc-d-fast) var(--sc-ease-out);
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--sc-accent); color: var(--sc-accent-ink); }
@media (hover: hover) and (pointer: fine) { .btn-accent:hover { filter: brightness(0.95); } }

/* ---------- Yüzey ---------- */
.room {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(16rem, 1fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding: calc(var(--bar-h) + var(--sc-6)) var(--sc-gutter) var(--sc-6);
}
.spill {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 34% 50%, rgb(120 150 200 / 0.10), transparent 70%);
}
/* Zirvede büyüyen TV yardım panelinin üstünde kalmalı */
.tv-col { position: relative; z-index: 3; }
.tv {
  position: relative; z-index: 70;
  width: min(100%, calc((100svh - var(--bar-h) - 10rem) * 16 / 9));
  margin: 0 auto;
  padding: 10px; border-radius: 22px;
  background: #06080b;
  box-shadow: var(--sc-edge), var(--sc-e3);
  transform-origin: 0 0;
  will-change: transform;
}
.tv-screen { position: relative; aspect-ratio: 16 / 9; border-radius: 13px; overflow: hidden; background: #000; }
.tv-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; pointer-events: none; }
.tv-boot {
  position: absolute; inset: 0; display: grid; place-items: center; background: var(--sc-canvas);
  transition: opacity var(--sc-d-slow) var(--sc-ease-out);
}
.tv-boot .mark-icon { width: 50px; height: 56px; }
.tv-boot.is-gone { opacity: 0; pointer-events: none; }

.statusline {
  display: flex; align-items: center; gap: var(--sc-3);
  width: min(100%, calc((100svh - var(--bar-h) - 10rem) * 16 / 9));
  margin: var(--sc-4) auto 0;
  font-size: var(--sc-t-sm); color: var(--sc-ink-soft);
}
.keycap {
  display: inline-grid; place-items: center; min-width: 40px; height: 32px; padding: 0 10px;
  border-radius: 9px; background: var(--surface-2); color: var(--sc-ink);
  box-shadow: var(--sc-edge), 0 2px 0 #06080b;
  font-weight: 600; font-size: var(--sc-t-xs); font-variant-numeric: tabular-nums;
  transition: transform 90ms var(--sc-ease-out), background 90ms var(--sc-ease-out), color 90ms var(--sc-ease-out);
}
.keycap.is-pressed { transform: translateY(2px); background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: 0 0 0 #06080b; }
.status-text { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-tag { margin-left: auto; font-size: var(--sc-t-xs); color: var(--sc-ink-soft); white-space: nowrap; }

.guide { position: relative; z-index: 2; min-height: 16rem; }
.guide-step { position: absolute; inset: 0 0 auto 0; }
.guide h1 {
  font-size: var(--sc-t-2xl); font-weight: 700; letter-spacing: var(--sc-track-snug);
  line-height: var(--sc-leading-tight); text-wrap: balance; margin: 0 0 var(--sc-4);
}
.guide h2 { font-size: var(--sc-t-xl); font-weight: 700; letter-spacing: var(--sc-track-snug); line-height: 1.12; margin: 0 0 var(--sc-3); text-wrap: balance; }
.guide p { color: var(--sc-ink-soft); font-size: var(--sc-t-base); line-height: 1.6; max-width: 34ch; text-wrap: pretty; margin: 0; }

/* ---------- Sık sorulanlar ---------- */
.faq { padding-block: var(--sc-8) var(--sc-9); }
.faq-inner { max-width: 52rem; }
.faq-title { font-size: var(--sc-t-xl); font-weight: 700; letter-spacing: var(--sc-track-snug); margin: 0 0 var(--sc-5); }
.faq-list { display: grid; gap: var(--sc-2); }
.faq details { border-radius: var(--sc-r-md); background: var(--sc-surface); }
.faq summary {
  list-style: none; cursor: pointer; padding: var(--sc-4) var(--sc-5);
  font-weight: 600; font-size: var(--sc-t-base); display: flex; justify-content: space-between; gap: var(--sc-4);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sc-ink-soft); font-weight: 400; transition: transform var(--sc-d-fast) var(--sc-ease-out); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 var(--sc-5) var(--sc-5); color: var(--sc-ink-soft); max-width: 62ch; line-height: 1.6; }

/* ---------- Bağlan ---------- */
.connect-stage {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--bar-h) + var(--sc-5)) var(--sc-gutter) var(--sc-5);
}
.connect-form {
  width: min(100%, 26rem);
  padding: var(--sc-6); border-radius: var(--sc-r-lg);
  background: var(--sc-surface); box-shadow: var(--sc-edge), var(--sc-e2);
}
.connect-form h2 { font-size: var(--sc-t-xl); font-weight: 700; letter-spacing: var(--sc-track-snug); margin: 0 0 var(--sc-2); }
.connect-lead { color: var(--sc-ink-soft); margin: 0 0 var(--sc-5); font-size: var(--sc-t-sm); }
.field { display: grid; gap: 6px; margin-bottom: var(--sc-4); }
.field label { font-size: var(--sc-t-xs); font-weight: 600; color: var(--sc-ink); }
.field input {
  min-height: 48px; padding: 0 14px; border-radius: 12px;
  border: 1px solid var(--sc-hairline-strong); background: var(--sc-canvas); color: var(--sc-ink);
  font: inherit; font-size: 1.05rem; letter-spacing: 0.04em; font-variant-numeric: tabular-nums;
}
.field input::placeholder { color: #6b7385; }
.field input:focus { border-color: var(--sc-accent); outline: none; box-shadow: 0 0 0 3px color-mix(in oklab, var(--sc-accent) 35%, transparent); }
#key { font-size: 1.4rem; letter-spacing: 0.32em; text-align: center; }
.form-error { color: #ff7a7a; font-size: var(--sc-t-sm); margin: 0 0 var(--sc-4); }
.btn-wide { width: 100%; min-height: 50px; }
.btn[disabled] { opacity: 0.55; cursor: progress; }
.foot { margin-top: auto; padding-top: var(--sc-6); text-align: center; color: var(--sc-ink-soft); font-size: var(--sc-t-xs); }
.foot p { margin: 0 0 6px; }
.foot a { color: var(--sc-ink-soft); }

/* ---------- Telefon ---------- */
@media (max-width: 860px) {
  .tabs { display: none; }
  .osbar .lang { display: none; }
  .room { grid-template-columns: 1fr; align-content: start; gap: var(--sc-5); padding-top: calc(var(--bar-h) + var(--sc-5)); }
  .tv, .statusline { width: 100%; }
  .demo-tag { display: none; }
  .guide { min-height: 13rem; }
  .guide h1 { font-size: var(--sc-t-xl); }
  .guide h2 { font-size: var(--sc-t-lg); }
}

@media (prefers-reduced-motion: reduce) {
  .tv { transform: none !important; }
}
