/* Renkler: neredeyse siyah zemin, kereste/amber vurgu */
:root {
  --bg: #0b0806;
  --panel: rgba(16, 12, 9, 0.72);
  --line: rgba(232, 168, 92, 0.16);
  --line-strong: rgba(232, 168, 92, 0.4);
  --heading: #f6eee3;
  --text: #d9ccbb;
  --muted: #9c8d7a;
  --accent: #e8a85c;      /* kereste amberi */
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: "Manrope", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

.mono { font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 2px; color: var(--muted); }
h1, h2, h3 { color: var(--heading); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
em {
  font-family: "Playfair Display", serif; font-style: italic; font-weight: 500;
  color: var(--accent);
}
a { color: var(--accent); }

/* ARKA PLANDAKİ 3D SAHNE: ekrana sabit, içerik üstünden kayar */
#scene3d {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; display: block; pointer-events: none;
}
main, footer { position: relative; z-index: 1; }

/* ÜST MENÜ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 28px;
  background: linear-gradient(rgba(11, 8, 6, 0.85), rgba(11, 8, 6, 0));
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 700; letter-spacing: 3px; font-size: 17px;
  color: var(--heading); text-decoration: none;
}
.brand-dot {
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid var(--accent); box-shadow: 0 0 12px var(--accent);
}
.nav-cta {
  padding: 9px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px;
  color: var(--heading); border: 1px solid var(--line-strong);
  background: rgba(232, 168, 92, 0.08);
  box-shadow: 0 0 20px rgba(232, 168, 92, 0.12);
}
.nav-cta:hover { background: rgba(232, 168, 92, 0.18); }

/* BÖLÜMLER: her biri bir ekran boyu; yazı solda, 3D sağda */
.scene {
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 100px 6vw 60px;
  position: relative;
}
.panel {
  width: 100%; max-width: 500px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.panel-hero { background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 0; max-width: 560px; }
.panel-wide { max-width: 640px; }

.eyebrow {
  display: flex; align-items: center; gap: 10px; margin-bottom: 16px;
  font-family: "JetBrains Mono", monospace; font-size: 11px; letter-spacing: 2px; color: var(--muted);
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

h1 { font-size: clamp(44px, 6.5vw, 84px); }
h2 { font-size: clamp(32px, 4vw, 50px); margin-bottom: 12px; }
.lead { color: var(--muted); font-size: 16px; max-width: 460px; margin-top: 14px; }

/* Arkadaki soluk TALASBEK yazısı */
.watermark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-weight: 700; font-size: 17vw; letter-spacing: -0.02em;
  color: rgba(246, 238, 227, 0.035);
  white-space: nowrap; pointer-events: none; user-select: none;
}

/* DÜĞMELER */
.buttons { display: flex; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 15px 26px; border-radius: 40px; border: 0;
  font: 600 15px "Manrope", sans-serif; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: #1a1007; box-shadow: 0 0 30px rgba(232, 168, 92, 0.3); }
.btn-primary:hover { background: #f1b873; }
.btn-link { padding: 0 0 4px; color: var(--heading); border-bottom: 1px solid var(--line-strong); border-radius: 0; }
.btn-wide { width: 100%; margin-top: 14px; }
.btn-ghost { background: transparent; color: var(--heading); border: 1px solid var(--line-strong); box-shadow: none; }
.btn-ghost:hover { background: rgba(232, 168, 92, 0.1); }
/* "Gerçeğe dönüştür" düğmesi talaş şekillenince nabız gibi atar */
.pulse { animation: nabiz 1.8s ease-in-out infinite; }
@keyframes nabiz {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 168, 92, 0.55); }
  50% { box-shadow: 0 0 0 10px rgba(232, 168, 92, 0); }
}

/* ETİKETLER */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span {
  padding: 7px 14px; border-radius: 10px; font-size: 13px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); color: var(--text);
}

/* ÜRÜN SEÇİCİ */
.grid-select { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 20px; }
.grid-select button {
  text-align: left; cursor: pointer;
  padding: 10px 12px; border-radius: 10px;
  font: 600 13px "Manrope", sans-serif; color: var(--text);
  background: rgba(255, 255, 255, 0.02); border: 1px solid var(--line);
}
.grid-select b { display: block; font: 400 10px "JetBrains Mono", monospace; color: var(--muted); margin-bottom: 2px; }
.grid-select button:hover { border-color: var(--line-strong); }
.grid-select button.active { border-color: var(--accent); background: rgba(232, 168, 92, 0.1); color: var(--heading); }
.grid-select button.active b { color: var(--accent); }

/* RENK SEÇİCİ */
.segment {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 12px; padding: 4px; border-radius: 12px;
  background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line);
}
.segment button {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 4px; border: 0; border-radius: 9px; cursor: pointer;
  font: 600 13px "Manrope", sans-serif; color: var(--muted); background: none;
}
.segment i { width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.25); }
.segment button.active { background: rgba(232, 168, 92, 0.16); color: var(--heading); }

/* ÖLÇÜ KAYDIRICI */
.slider-box { margin-top: 12px; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.slider-box[hidden] { display: none; }
.slider-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.slider-head strong { color: var(--heading); font-size: 14px; }
input[type="range"] { width: 100%; margin-top: 10px; accent-color: var(--accent); cursor: pointer; }

.info-box {
  margin-top: 12px; padding: 12px 16px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25);
}
.info-box .mono { color: var(--accent); }
.info-box p { font-size: 14px; margin-top: 2px; }
.info-box .note-small { font-size: 12px; color: var(--muted); margin-top: 6px; }
.btn[disabled] { opacity: 0.6; cursor: progress; animation: none; }
.credit { margin-top: 8px; font-size: 10px; opacity: 0.7; }

/* SÜREÇ: uzun bölüm, panel ekrana yapışır; kaydırdıkça ilerler */
.scene-tall { height: 280vh; position: relative; }
.sticky {
  position: sticky; top: 0; height: 100vh;
  display: flex; align-items: center; padding: 90px 6vw 40px;
}
.progress { margin-top: 18px; }
.progress-head { display: flex; justify-content: space-between; }
.progress-head span:last-child { color: var(--accent); }
.bar { height: 3px; margin-top: 8px; border-radius: 3px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.timeline { list-style: none; margin-top: 18px; }
.timeline li {
  display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line);
  opacity: 0.35; transition: opacity 0.4s;
}
.timeline li.active { opacity: 1; }
.timeline li.active .mono { color: var(--accent); }
.timeline h3 { font-size: 17px; margin-bottom: 2px; }
.timeline p { font-size: 14px; color: var(--muted); }

/* NEDEN BİZ: kayan yazı şeridi */
.scene-stack { flex-direction: column; align-items: flex-start; justify-content: center; gap: 40px; }
.marquee {
  width: 100vw; margin-left: -6vw; overflow: hidden;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  padding: 18px 0; background: rgba(11, 8, 6, 0.5);
}
.track { display: flex; gap: 34px; width: max-content; animation: kay 28s linear infinite; }
.track span { font-size: clamp(28px, 4vw, 52px); font-weight: 600; color: var(--heading); white-space: nowrap; }
.track em { font-size: clamp(20px, 3vw, 36px); align-self: center; }
@keyframes kay { to { transform: translateX(-50%); } }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.features article { padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, 0.25); }
.features .mono { color: var(--accent); }
.features h3 { font-size: 16px; margin: 8px 0 4px; }
.features p { font-size: 13px; color: var(--muted); }

/* TEKLİF FORMU */
.panel-form { max-width: 540px; }
form { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
form input:not([type="checkbox"]), form textarea {
  width: 100%; padding: 13px 15px; border-radius: 10px;
  font: 500 15px "Manrope", sans-serif; color: var(--heading);
  background: rgba(0, 0, 0, 0.35); border: 1px solid var(--line);
}
form input:focus, form textarea:focus { outline: none; border-color: var(--accent); }
form textarea { resize: vertical; }
.form-label { margin-top: 8px; }
.chips-select { margin-top: 0; }
.chips-select label { cursor: pointer; }
.chips-select input { position: absolute; opacity: 0; pointer-events: none; }
.chips-select input:checked + span { border-color: var(--accent); background: rgba(232, 168, 92, 0.14); color: var(--heading); }
.chips-select input:focus-visible + span { outline: 2px solid var(--accent); }
form .btn { align-self: flex-start; margin-top: 6px; }

.contact { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.contact li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.contact li > span:last-child, .contact li a { text-align: right; }

/* Harita: koyu temaya uysun diye renkleri ters çevrilmiş */
.map { margin-top: 16px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); height: 220px; }
.map iframe { width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.6) brightness(0.95); }

footer { text-align: center; padding: 40px 20px; }

/* 3D çalışmazsa: zemin yine şık görünsün */
body.no3d #scene3d, body.no3d #gercekBtn { display: none; }
body.no3d { background: radial-gradient(ellipse at 70% 30%, #2a1a0d 0%, var(--bg) 60%); background-attachment: fixed; }

@media (prefers-reduced-motion: reduce) {
  .track, .pulse { animation: none; }
}

/* TELEFON / DAR EKRAN: 3D üstte, yazı altta */
@media (max-width: 860px) {
  .nav { padding: 14px 16px; }
  .scene { align-items: flex-end; padding: 50vh 16px 40px; }
  #giris.scene { padding-top: 46vh; }
  .sticky { align-items: flex-end; padding: 0 16px 24px; }
  .scene-stack { padding-top: 40vh; }
  .marquee { margin-left: -16px; }
  .panel { padding: 20px; }
  .panel-hero { padding: 0; }
  .watermark { top: 28%; font-size: 22vw; }
  /* Stüdyo telefonda kısa olsun ki üstteki 3D mobilya görünsün */
  #studyo.scene { min-height: 100vh; padding: 44vh 16px 20px; }
  #studyo h2 { font-size: 26px; margin-bottom: 0; }
  #studyo h2 br { display: none; }
  #studyo .eyebrow { margin-bottom: 8px; }
  #studyo .lead, #studyo .info-box #urunNo, #studyo .info-box #urunInfo { display: none; }
  #studyo .info-box { padding: 8px 12px; }
  #studyo .info-box .note-small { margin-top: 0; }
  #studyo .grid-select { margin-top: 14px; }
  #studyo .grid-select button { padding: 8px 10px; font-size: 12px; }
  #studyo .btn-wide { padding: 12px 20px; }
  .features { grid-template-columns: 1fr; }
  .timeline li { padding: 8px 0; }
  .timeline p { display: none; }
  .timeline li.active p { display: block; }
  .contact li { flex-direction: column; gap: 2px; }
  .contact li > span:last-child, .contact li a { text-align: left; }
}

/* Sağ üst: Giriş yap / Hesabım + giriş penceresi (giris.js) */
.nav-sag { display: flex; align-items: center; gap: 10px; }
.nav-giris {
  padding: 9px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; font-size: 14px;
  color: var(--text); border: 1px solid transparent;
}
.nav-giris:hover { color: var(--heading); border-color: var(--line); background: rgba(232, 168, 92, 0.06); }
.giris-perde {
  position: fixed; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center;
  padding: 20px; background: rgba(5, 4, 3, 0.72); backdrop-filter: blur(6px);
}
.giris-perde[hidden] { display: none; }
.giris-kutu {
  position: relative; width: 100%; max-width: 400px;
  background: #140f0b; border: 1px solid var(--line-strong); border-radius: 18px; padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex; flex-direction: column; gap: 12px;
}
.giris-kutu h2 { font-size: 30px; margin: 2px 0 0; }
.giris-kutu label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.giris-kutu input {
  font: inherit; font-size: 15px; color: var(--heading); background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong); border-radius: 10px; padding: 11px 12px;
}
.giris-kutu input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.giris-not { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.giris-not.kucuk { font-size: 12.5px; text-align: center; }
.giris-hata { min-height: 18px; font-size: 13.5px; color: #f08a72; }
.giris-kapat {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--text); font-size: 22px; line-height: 1; cursor: pointer;
}
.giris-kapat:hover { color: var(--heading); border-color: var(--line-strong); }
body.giris-acik { overflow: hidden; }
@media (max-width: 520px) {
  .nav-giris { padding: 8px 10px; font-size: 13px; }
  .nav-sag .nav-cta { padding: 8px 12px; font-size: 13px; }
}

/* Müşteri | Atölye geçişi (sağ üst) */
.mod-gecis { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 12px; background: rgba(11, 8, 6, 0.6); }
.mod-gecis a { padding: 6px 12px; border-radius: 9px; font-size: 13px; font-weight: 600; color: var(--muted); text-decoration: none; }
.mod-gecis a:hover { color: var(--heading); }
.mod-gecis a[aria-current="page"] { background: rgba(232, 168, 92, 0.16); color: var(--heading); }
.nav-giris[hidden] { display: none; }
/* Alt bilgide atölye daveti */
.at-davet { font-size: 14px; color: var(--muted); margin: 6px 0 10px; }
.at-davet a { font-weight: 600; }
@media (max-width: 520px) {
  .nav .brand { font-size: 14px; letter-spacing: 2px; gap: 7px; }
  .mod-gecis a { padding: 5px 8px; font-size: 12px; }
  .nav-sag { gap: 6px; }
}
@media (max-width: 520px) {
  .nav-giris[data-sadece-hesap] { display: none; }   /* dar ekranda hesap, Atölye geçişinden açılır */
  .nav-cta { white-space: nowrap; }
}
