/* ============ Tasarım değerleri ============
   Tema: koyu premium. Kömür siyahı zemin, sıcak kırık beyaz yazı, tek vurgu: şampanya. */
:root {
  --bg: #0c0d0f;
  --bg-2: #111215;
  --surface: #16181b;
  --surface-2: #1d2024;
  --surface-3: #25292e;
  --text: #ece8e1;
  --text-2: #a9a59d;
  --text-3: #75726c;
  --line: rgba(236, 232, 225, .08);
  --line-2: rgba(236, 232, 225, .16);
  --line-3: rgba(236, 232, 225, .28);
  --accent: #d5b27b;          /* şampanya */
  --accent-2: #e8cfa2;
  --accent-ink: #1a140b;
  --accent-tint: rgba(213, 178, 123, .12);
  --ok: #7fc99a;
  --danger: #ef8a6b;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 30px 60px -30px rgba(0, 0, 0, .7);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-display: "Instrument Serif", "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: var(--accent); color: var(--accent-ink); }
.container { max-width: 1240px; margin: 0 auto; padding-inline: var(--s6); }
.container-wide { max-width: 1560px; margin: 0 auto; padding-inline: var(--s6); }
.muted { color: var(--text-2); }

/* Arka plan: üstte sıcak, çok hafif bir ışık + ince doku */
.glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 40% at 70% -10%, rgba(213, 178, 123, .13), transparent 70%),
    radial-gradient(40% 30% at 0% 10%, rgba(120, 140, 170, .06), transparent 70%),
    var(--bg);
}
.glow::after {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .035 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Başlıklar */
h1, h2 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.015em; text-wrap: balance; margin: 0; }
h1 em, h2 em { font-style: italic; color: var(--accent); }
h3 { font-weight: 500; letter-spacing: -0.01em; }
.eyebrow { margin: 0 0 var(--s5); font: 500 12px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 1px; background: var(--accent); vertical-align: middle; margin-right: 10px; }

/* ============ Düğmeler ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 48px; padding: 0 var(--s5); border: 1px solid transparent; border-radius: 999px;
  font: 500 15px/1 var(--font-body); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), opacity .2s, transform .2s var(--ease);
}
.btn svg { flex-shrink: 0; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-xs { min-height: 34px; padding: 0 14px; font-size: 13px; }
.btn-block { width: 100%; min-height: 56px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: var(--accent-2); }
.btn-primary:active:not(:disabled) { transform: scale(.98); }
.btn-outline { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-outline:hover { border-color: var(--line-3); background: rgba(236, 232, 225, .04); }
.btn-quiet { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-quiet:hover { background: var(--surface-3); }
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn:disabled { background: var(--surface-2); color: var(--text-3); border-color: var(--line); cursor: not-allowed; }
.btn.loading { opacity: .8; cursor: progress; }

/* ============ Üst menü ============ */
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s5); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: 27px; line-height: 1; color: var(--text); text-decoration: none; letter-spacing: -.01em; white-space: nowrap; }
.brand img { flex-shrink: 0; margin-right: 10px; transition: transform .6s var(--ease); }
a.brand:hover img { transform: rotate(-30deg); }
.brand span { font-style: italic; color: var(--accent); }
.brand-sm { font-size: 20px; }
.nav-links { display: flex; align-items: center; gap: var(--s5); }
.nav-links > a:not(.btn) { font-size: 14px; color: var(--text-2); text-decoration: none; transition: color .2s; }
.nav-links > a:not(.btn):hover { color: var(--text); }

/* ============ Ana sayfa: giriş ============ */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: var(--s8); align-items: center; padding-block: var(--s9) var(--s8); }
.hero h1 { font-size: clamp(3.2rem, 7.4vw, 6.8rem); line-height: .95; }
.lead { max-width: 31em; margin: var(--s6) 0 0; color: var(--text-2); font-size: clamp(1.05rem, 1.4vw, 1.18rem); }
.hero-actions { margin-top: var(--s6); display: flex; gap: var(--s5); align-items: center; flex-wrap: wrap; }
.hero-note { font: 400 13px var(--font-mono); color: var(--text-3); }

.hero-art {
  position: relative; margin: 0; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(70% 70% at 50% 42%, #1e2125, #111215 75%);
  border: 1px solid var(--line); display: grid; place-items: center;
}
.blueprint { width: 80%; height: auto; overflow: visible; }
.blueprint * { vector-effect: non-scaling-stroke; }
.blueprint .guides { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 6; }
.blueprint .tire circle { stroke: var(--text-2); stroke-width: 1; }
.blueprint .tire .tread { stroke: var(--text); stroke-width: 14; stroke-dasharray: 1.2 7; opacity: .14; vector-effect: none; }
.blueprint .rim-art circle, .blueprint .spokes path, .blueprint .spokes use { stroke: var(--text); stroke-width: 1; }
.blueprint .rim-art .dash { stroke-dasharray: 3 5; stroke: var(--text-3); }
.blueprint .spokes path { fill: #1b1e22; }
.blueprint .lugs circle { fill: var(--text); stroke: none; }
.blueprint .cap { fill: var(--accent); stroke: none !important; }
.blueprint .spokes { transform-origin: 220px 220px; animation: turn 60s linear infinite; }
@keyframes turn { to { transform: rotate(360deg); } }
.spec { position: absolute; font: 500 11px/1 var(--font-mono); letter-spacing: .08em; color: var(--text-2); padding: 6px 8px; background: rgba(22, 24, 27, .8); border: 1px solid var(--line); border-radius: 6px; }
.spec-a { top: 7%; left: 7%; } .spec-b { top: 7%; right: 7%; } .spec-c { bottom: 15%; right: 7%; }
.hero-art figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: var(--s4) var(--s5);
  display: flex; justify-content: space-between; gap: var(--s4); font-size: 13px; color: var(--text-2);
  border-top: 1px solid var(--line); background: rgba(17, 18, 21, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero-art figcaption span:first-child { color: var(--text); font-weight: 500; }

.facts { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.facts li { padding: var(--s5) var(--s5) var(--s5) 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: var(--s1); }
.facts li + li { padding-left: var(--s5); border-left: 1px solid var(--line); }
.facts strong { font: 400 34px/1.1 var(--font-display); }
.facts span { font-size: 14px; color: var(--text-2); }

.section { padding-block: var(--s10) 0; }
.section-head { margin-bottom: var(--s7); max-width: 760px; }
.section-head h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.02; }
.section-head p:not(.eyebrow) { margin: var(--s4) 0 0; color: var(--text-2); font-size: 17px; max-width: 36em; }

.how-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-2); }
.how-grid li { padding: var(--s6) var(--s5) 0 0; }
.how-grid li + li { padding-left: var(--s5); border-left: 1px solid var(--line); }
.how-num { display: block; margin-bottom: var(--s7); font: 500 12px/1 var(--font-mono); letter-spacing: .12em; color: var(--accent); }
.how-grid h3 { margin: 0 0 var(--s2); font: 400 27px/1.15 var(--font-display); }
.how-grid p { margin: 0; color: var(--text-2); font-size: 15px; }

/* Seçenek vitrini (ana sayfa) */
.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.catalog article { padding: var(--s6); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.catalog h3 { margin: 0 0 var(--s1); font: 400 30px/1.1 var(--font-display); }
.catalog p { margin: 0 0 var(--s5); color: var(--text-2); font-size: 14.5px; }
.catalog ul { list-style: none; margin: 0; padding: 0; }
.catalog li { display: flex; justify-content: space-between; gap: var(--s4); padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.catalog li span:last-child { color: var(--text-3); text-align: right; }

.cta-band {
  margin-top: var(--s10); padding: var(--s8) var(--s7); border-radius: calc(var(--radius) + 4px);
  background: radial-gradient(80% 120% at 100% 0%, rgba(213, 178, 123, .16), transparent 60%), var(--surface);
  border: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: var(--s6); flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; }

.footer {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3) var(--s6);
  margin-top: var(--s10); padding-block: var(--s6) var(--s7); border-top: 1px solid var(--line); color: var(--text-3); font-size: 13px;
}
.footer > span:nth-child(2) { text-align: center; }

.reveal { animation: fadeUp 1s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* ============ Hareketli efektler (Framer tarzı) ============ */

/* Animasyon açıkken: bulanıktan netleşerek belirme */
.fx .reveal { animation-name: blurUp; animation-duration: 1.1s; }
@keyframes blurUp { from { opacity: 0; filter: blur(10px); translate: 0 16px; } to { opacity: 1; filter: blur(0); translate: 0 0; } }
.fx [data-fx="words"] { opacity: 0; }
.w { display: inline-block; will-change: transform, filter, opacity; }

/* Üst menü: sayfa kayınca camlaşır ve incelir */
.nav-wrap { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); transition: background-color .35s var(--ease), border-color .35s var(--ease); }
.nav-wrap .nav { border-bottom: 0; transition: padding .35s var(--ease); }
.nav-wrap.scrolled { background: rgba(12, 13, 15, .72); -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4); }
.nav-wrap.scrolled .nav { padding-block: var(--s3); }
.section { scroll-margin-top: 80px; }

/* Kayan marka şeridi */
.marquee {
  margin-top: var(--s9); overflow: hidden; border-block: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { padding: var(--s5) var(--s7); font: 400 clamp(1.6rem, 3vw, 2.4rem)/1 var(--font-display); color: var(--text-3); white-space: nowrap; transition: color .3s; }
.marquee li:hover { color: var(--text); }
.marquee li::after { content: "✦"; margin-left: var(--s7); font-size: .45em; vertical-align: middle; color: var(--accent); opacity: .6; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Stüdyo önizlemesi */
.showcase { padding-top: var(--s10); }
.section-head.center { margin-inline: auto; text-align: center; }
.showcase-stage { position: relative; perspective: 1600px; }
.showcase-stage::before {
  content: ""; position: absolute; inset: -10% 5% 10%; z-index: -1; filter: blur(60px);
  background: radial-gradient(50% 50% at 50% 40%, rgba(213, 178, 123, .22), transparent 70%);
}
.showcase-frame {
  border-radius: calc(var(--radius) + 6px); overflow: hidden; transform-origin: 50% 0%;
  background: var(--bg-2); border: 1px solid var(--line-2);
  box-shadow: 0 60px 120px -40px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .02) inset;
}
.sc-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.sc-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.sc-bar span { margin-left: auto; margin-right: auto; padding-right: 51px; font: 400 12px var(--font-mono); color: var(--text-3); }
.sc-body { display: grid; grid-template-columns: minmax(0, 1fr) 280px; }
.sc-stage {
  --pos: 50%; position: relative; aspect-ratio: 16 / 8; cursor: ew-resize; overflow: hidden; touch-action: pan-y; user-select: none;
  background: radial-gradient(80% 80% at 50% 45%, #1a1c20, #0d0e10);
}
.sc-car { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 62%; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.sc-before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.sc-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1.5px; transform: translateX(-.75px); background: var(--text); pointer-events: none; }
.sc-handle span { position: absolute; top: 50%; left: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; background: var(--text); box-shadow: 0 6px 20px rgba(0, 0, 0, .5); }
.sc-panel { display: flex; flex-direction: column; gap: var(--s4); padding: var(--s5); border-left: 1px solid var(--line); background: var(--surface); }
.sc-title { margin: 0; font: 400 24px/1.1 var(--font-display); }
.sc-panel ul { list-style: none; margin: 0; padding: 0; }
.sc-panel li { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); }
.sc-panel li span { font: 500 10px/1.4 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.sc-panel li strong { font-size: 14px; font-weight: 500; }
.sc-btn { margin-top: auto; padding: 12px; border-radius: 999px; text-align: center; font-size: 14px; font-weight: 500; background: var(--accent); color: var(--accent-ink); }

/* Fareyi takip eden ışık (kartlar) */
.spot { position: relative; isolation: isolate; }
.spot::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(213, 178, 123, .13), transparent 65%);
}
.spot:hover::before { opacity: 1; }
.catalog article { transition: border-color .3s var(--ease); }
.catalog article:hover { border-color: var(--line-2); }

/* ============ STÜDYO SAYFASI ============ */
.studio-nav { padding-block: var(--s4); }
.back { display: inline-flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--text-2); text-decoration: none; }
.back:hover { color: var(--text); }

/* Adımlar */
.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: var(--s5); counter-reset: step; }
.steps li { display: flex; align-items: center; gap: var(--s2); font-size: 13px; color: var(--text-3); white-space: nowrap; counter-increment: step; transition: color .3s; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%;
  border: 1px solid var(--line-2); font: 500 11px/1 var(--font-mono); transition: all .3s var(--ease);
}
.steps li.active { color: var(--text); }
.steps li.active::before { border-color: var(--accent); color: var(--accent); }
.steps li.done { color: var(--text-2); }
.steps li.done::before { content: "✓"; background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.workspace {
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: var(--s5); align-items: start;
  padding-block: var(--s5) var(--s7);
}
.stage-col { min-width: 0; }

.stage {
  position: relative; width: 100%; height: min(76vh, 860px); min-height: 460px;
  border-radius: var(--radius); overflow: hidden;
  background: radial-gradient(80% 80% at 50% 40%, #1a1c20, #0f1012);
  border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* Yükleme alanı */
.dropzone {
  position: absolute; inset: var(--s3); display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: var(--s1);
  padding: var(--s5); text-align: center; cursor: pointer;
  border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--text-2);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.stage[data-state="empty"] .dropzone { display: flex; }
.dropzone:hover, .stage.drag .dropzone { border-color: var(--accent); background-color: rgba(213, 178, 123, .04); }
.dropzone:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.dropzone strong { color: var(--text); font: 400 clamp(1.8rem, 3vw, 2.6rem)/1.1 var(--font-display); margin-top: var(--s5); }
.dropzone u { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 4px; }
.dropzone small { color: var(--text-3); margin-top: var(--s4); max-width: 36em; font-size: 13px; line-height: 1.5; }
.drop-icon {
  width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; color: var(--accent);
  border: 1px solid rgba(213, 178, 123, .4); background: var(--accent-tint);
  transition: transform .35s var(--ease);
}
.dropzone:hover .drop-icon { transform: translateY(-3px); }
.drop-tips { display: flex; gap: var(--s5); margin-top: var(--s6); flex-wrap: wrap; justify-content: center; }
.drop-tips span { font: 400 12px var(--font-mono); color: var(--text-3); letter-spacing: .02em; }
.drop-tips span::before { content: "— "; color: var(--accent); }
.stage.drag::after {
  content: "Bırakın, fotoğrafı değiştirelim"; position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(12, 13, 15, .85); color: var(--text); font: 400 28px var(--font-display);
  border: 1px dashed var(--accent); border-radius: var(--radius);
}
.stage[data-state="empty"].drag::after { display: none; }

.stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: none; transition: filter .6s var(--ease); }
.stage[data-state="preview"] .stage-img, .stage[data-state="loading"] .stage-img { display: block; }
.stage[data-state="loading"] .stage-img { filter: brightness(.45) saturate(.4); }

/* Bekleme */
.scan { position: absolute; inset: 0; display: none; pointer-events: none; overflow: hidden; }
.stage[data-state="loading"] .scan { display: block; }
.scan::before {
  content: ""; position: absolute; left: 0; right: 0; height: 30%; top: -30%;
  background: linear-gradient(180deg, transparent, rgba(213, 178, 123, .12) 85%, rgba(232, 207, 162, .8) 100%);
  animation: scan 2.6s var(--ease) infinite;
}
@keyframes scan { to { top: 100%; } }
.status {
  position: absolute; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 2;
  display: none; align-items: center; gap: var(--s3); white-space: nowrap;
  padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 500;
  background: rgba(22, 24, 27, .85); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.stage[data-state="loading"] .status { display: flex; }
.spinner { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--line-2); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Önce / sonra */
.compare { --pos: 50%; position: absolute; inset: 0; display: none; }
.stage[data-state="result"] .compare { display: block; }
.compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-drag: none; }
#beforeImg { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 1.5px; transform: translateX(-.75px); background: var(--text); box-shadow: 0 0 16px rgba(0, 0, 0, .6); pointer-events: none; }
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; transform: translate(-50%, -50%);
  display: grid; place-items: center; border-radius: 50%; background: var(--text); color: var(--bg); box-shadow: 0 8px 24px rgba(0, 0, 0, .5);
}
#compareRange { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.tag {
  position: absolute; top: var(--s4); padding: 7px 11px; border-radius: 6px; pointer-events: none;
  font: 500 11px/1 var(--font-mono); letter-spacing: .12em; text-transform: uppercase;
  background: rgba(12, 13, 15, .7); color: var(--text); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.tag-before { left: var(--s4); }
.tag-after { right: var(--s4); background: var(--accent); color: var(--accent-ink); }
.find-pill {
  position: absolute; left: 50%; bottom: var(--s5); transform: translateX(-50%); z-index: 3;
  display: none; animation: fadeUp .6s .9s var(--ease) both;
}
.stage[data-state="result"] .find-pill { display: inline-flex; }

.stage-bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-top: var(--s4); min-height: 40px; flex-wrap: wrap; }
.result-note { margin: 0; font-size: 13.5px; color: var(--text-2); }
.stage-actions { display: flex; gap: var(--s2); margin-left: auto; }

/* Panel */
.panel {
  position: sticky; top: var(--s4);
  display: flex; flex-direction: column; max-height: calc(100vh - 32px);
  border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
}
.panel-head { padding: var(--s5) var(--s5) var(--s4); border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; font: 400 30px/1.1 var(--font-display); }
.panel-head p { margin: var(--s2) 0 0; font-size: 14px; color: var(--text-2); }
.mod-list { display: flex; flex-direction: column; gap: var(--s6); padding: var(--s5); overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.mod-group-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: var(--s3); }
.mod-group-head h3 { margin: 0; font: 500 11px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.mod-group-head span { font-size: 12.5px; color: var(--text-3); }
.mod-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }

.mod-card {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: var(--s4) 6px 14px; text-align: center; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--bg-2);
  color: var(--text); font: inherit;
  transition: border-color .2s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.mod-card:hover { border-color: var(--line-2); background: var(--surface-2); }
.mod-card:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mod-card.selected { border-color: var(--accent); background: linear-gradient(180deg, rgba(213, 178, 123, .10), transparent), var(--surface-2); }
.mod-visual { width: 58px; height: 58px; margin-bottom: var(--s2); }
.mod-visual svg, .mod-visual img { width: 100%; height: 100%; display: block; object-fit: contain; }
.mod-visual .rim { transition: transform 1s var(--ease); }
.mod-card:hover .rim, .mod-card.selected .rim { transform: rotate(72deg); }
.mod-card-ppf .mod-visual { width: 64px; height: 46px; }
.mod-brand { font: 500 10px/1.2 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
.mod-name { font-weight: 500; font-size: 13.5px; line-height: 1.3; }
.mod-desc { font-size: 11.5px; line-height: 1.35; color: var(--text-3); }
.mod-check {
  position: absolute; top: 7px; right: 7px; width: 18px; height: 18px; border-radius: 50%;
  display: grid; place-items: center; background: var(--accent); color: var(--accent-ink);
  opacity: 0; transform: scale(.6); transition: opacity .2s var(--ease), transform .25s var(--ease);
}
.mod-card.selected .mod-check { opacity: 1; transform: none; }

.field-label { margin: var(--s4) 0 var(--s2); font: 500 11px/1 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--text-2); }
.field-label span { text-transform: none; letter-spacing: 0; font-family: var(--font-body); color: var(--text-3); margin-left: 6px; }
.mod-group-head + .field-label { margin-top: 0; }
.sub-options { animation: fadeUp .35s var(--ease) both; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s2); }
.chip, .swatch, .segmented button {
  font: inherit; color: var(--text); cursor: pointer; border: 1px solid var(--line); background: var(--bg-2);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.chip { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.chip small { font-size: 11.5px; font-weight: 400; color: var(--text-3); }
.chip:hover, .swatch:hover, .segmented button:hover { border-color: var(--line-2); background: var(--surface-2); }
.chip.selected, .swatch.selected, .segmented button.selected { border-color: var(--accent); background: var(--accent-tint); }
.chip:focus-visible, .swatch:focus-visible, .segmented button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.segmented button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: var(--radius-sm); }
.segmented strong { font: 400 21px/1 var(--font-display); }
.segmented span { font-size: 11.5px; color: var(--text-3); }
.swatches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s2); }
.swatch { display: flex; align-items: center; gap: var(--s2); min-height: 40px; padding: 0 10px; border-radius: var(--radius-sm); font-size: 13px; font-weight: 500; }
.swatch i { width: 16px; height: 16px; border-radius: 50%; flex-shrink: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }

.panel-foot { padding: var(--s4) var(--s5) var(--s5); border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius) var(--radius); }
.panel-foot .field-label { margin-top: 0; }
.summary { list-style: none; margin: 0 0 var(--s4); padding: 0; }
.summary li { display: flex; justify-content: space-between; gap: var(--s4); padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.summary li span { color: var(--text-3); flex-shrink: 0; }
.summary li strong { font-weight: 500; text-align: right; }
.summary li.empty { color: var(--text-3); }
.hint { margin: var(--s3) 0 0; text-align: center; font-size: 13px; color: var(--text-2); }
.hint strong { color: var(--accent); font-weight: 600; }

/* ============ Uygulama noktaları ============ */
.shops { padding-block: var(--s8) 0; scroll-margin-top: var(--s4); animation: fadeUp .8s var(--ease) both; }
.shops-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s5); }
.shops-head h2 { font-size: clamp(2.2rem, 4vw, 3.4rem); line-height: 1.02; }
.shops-head p { margin: var(--s3) 0 0; color: var(--text-2); }
.package { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.package span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; color: var(--text); }
.package span b { font-weight: 500; color: var(--text-3); margin-right: 6px; }

.toolbar {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; padding: var(--s3);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: var(--s4);
}
.loc { display: flex; align-items: center; gap: var(--s2); font-size: 14px; color: var(--text-2); margin-right: auto; padding-left: var(--s2); }
.loc svg { color: var(--accent); }
.loc strong { color: var(--text); font-weight: 500; }
.select {
  appearance: none; min-height: 40px; padding: 0 36px 0 14px; border-radius: 999px; border: 1px solid var(--line-2);
  background: var(--bg-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' stroke='%23a9a59d' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  color: var(--text); font: 500 14px var(--font-body); cursor: pointer;
}
.select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.toolbar .chips { gap: 6px; }

.shops-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s4); align-items: start; }
.shop-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--s2); max-height: 720px; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--surface-3) transparent; }
.shop {
  position: relative; padding: var(--s5); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface);
  cursor: pointer; transition: border-color .2s var(--ease), background .2s var(--ease);
}
.shop:hover { border-color: var(--line-2); }
.shop.active { border-color: var(--accent); background: linear-gradient(180deg, rgba(213, 178, 123, .06), transparent 60%), var(--surface); }
.shop:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-top { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; }
.shop h3 { margin: 0; font: 400 25px/1.15 var(--font-display); letter-spacing: -.005em; }
.shop-dist { font: 500 12px/1 var(--font-mono); color: var(--text-2); white-space: nowrap; padding-top: 6px; }
.shop-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: var(--s2); font-size: 13.5px; color: var(--text-2); }
.stars { color: var(--accent); letter-spacing: 1px; }
.open { color: var(--ok); } .closed { color: var(--danger); }
.shop-addr { margin: var(--s2) 0 0; font-size: 13.5px; color: var(--text-3); }
.services { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s4); }
.services span { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12.5px; border: 1px solid var(--line); color: var(--text-3); }
.services span.hit { border-color: rgba(127, 201, 154, .35); color: var(--text); }
.services span.hit::before { content: "✓"; color: var(--ok); font-size: 11px; }
.services span.miss { text-decoration: line-through; text-decoration-color: var(--text-3); }
.badge { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s3); padding: 5px 10px; border-radius: 6px; font: 500 11px/1 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; background: var(--accent-tint); color: var(--accent); }
.shop-brands { margin: var(--s3) 0 0; font-size: 13px; color: var(--text-3); }
.shop-brands strong { color: var(--text-2); font-weight: 500; }
.shop-actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s4); }
.shop-actions .btn { flex: 1 1 auto; }

.map-card { position: sticky; top: var(--s4); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); }
.map-frame { position: relative; height: 720px; background: var(--bg-2); }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(.92) hue-rotate(180deg) saturate(.6) brightness(.95) contrast(.95); }
.map-info {
  position: absolute; left: var(--s4); right: var(--s4); bottom: var(--s4);
  display: flex; justify-content: space-between; align-items: center; gap: var(--s4); flex-wrap: wrap;
  padding: var(--s4) var(--s5); border-radius: var(--radius-sm);
  background: rgba(17, 18, 21, .88); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.map-info strong { display: block; font: 400 22px/1.15 var(--font-display); }
.map-info span { font-size: 13px; color: var(--text-2); }
.test-note { margin: var(--s4) 0 0; font: 400 12px/1.5 var(--font-mono); color: var(--text-3); }
.test-note::before { content: "● "; color: var(--accent); }
.empty-shops { padding: var(--s6); text-align: center; color: var(--text-2); border: 1px dashed var(--line-2); border-radius: var(--radius); }

/* ============ Bildirim kutusu ============ */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--s5) + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%);
  z-index: 50; max-width: min(520px, calc(100% - 32px)); padding: 14px 20px; border-radius: var(--radius-sm); font-size: 14px;
  background: var(--surface-3); color: var(--text); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  animation: toastIn .35s var(--ease) both;
}
.toast.error::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); margin-right: 10px; vertical-align: 1px; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ============ Telefon ve tablet ============ */
@media (max-width: 1100px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .panel { position: static; max-height: none; }
  .mod-list { overflow: visible; }
  .stage { height: auto; min-height: 0; aspect-ratio: 4 / 3; }
  .stage[data-state="empty"] { aspect-ratio: auto; min-height: 440px; }
  .shops-grid { grid-template-columns: minmax(0, 1fr); }
  .map-card { position: static; order: -1; }
  .map-frame { height: 380px; }
  .shop-list { max-height: none; overflow: visible; }
  .steps li:not(.active) span { display: none; }
}
@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: var(--s7); padding-block: var(--s8) var(--s7); }
  .hero-art { max-width: 520px; width: 100%; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { padding-left: 0; border-left: 0; }
  .how-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-grid li:nth-child(3) { padding-left: 0; border-left: 0; }
  .catalog { grid-template-columns: minmax(0, 1fr); }
  .sc-body { grid-template-columns: minmax(0, 1fr); }
  .sc-panel { border-left: 0; border-top: 1px solid var(--line); }
  .sc-btn { margin-top: var(--s2); }
}
@media (max-width: 720px) {
  .container, .container-wide { padding-inline: var(--s4); }
  .nav-links > a:not(.btn) { display: none; }
  .hero h1 { font-size: clamp(2.8rem, 13vw, 4rem); }
  .facts strong { font-size: 28px; }
  .section { padding-block: var(--s9) 0; }
  .how-grid { grid-template-columns: minmax(0, 1fr); }
  .how-grid li, .how-grid li + li { padding: var(--s5) 0; border-left: 0; }
  .how-grid li + li { border-top: 1px solid var(--line); }
  .how-num { margin-bottom: var(--s4); }
  .cta-band { padding: var(--s6) var(--s5); }
  .marquee { margin-top: var(--s8); }
  .marquee li { padding: var(--s4) var(--s5); }
  .marquee li::after { margin-left: var(--s5); }
  .showcase { padding-top: var(--s9); }
  .sc-stage { aspect-ratio: 4 / 3; }
  .sc-bar span { display: none; }
  .footer { grid-template-columns: minmax(0, 1fr); }
  .footer > span:nth-child(2) { text-align: left; }
  .steps { display: none; }
  .panel-head, .mod-list, .panel-foot { padding-inline: var(--s4); }
  .stage-actions { width: 100%; }
  .stage-actions .btn { flex: 1; min-height: 44px; }
  .loc { width: 100%; margin-right: 0; }
  .shop { padding: var(--s4); }
  .shop-actions .btn { min-height: 44px; }
  .map-info { left: var(--s2); right: var(--s2); bottom: var(--s2); padding: var(--s3) var(--s4); }
}
@media (max-width: 400px) {
  .mod-desc { display: none; }
  .spec { display: none; }
  .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
