/* thale landing — obsidyen/adaçayı marka dili (THALE Landing.html referansı)
   Koyu tek tema. Tokenlar customer-app ile aynı ailede. */

:root {
  --bg: #0B0C0B;
  --card: #0F110F;
  --ink: #F2F4F0;
  --sub: #BBC7C0;
  --body: #D2DAD5;
  --muted: #86988C;
  --faint: #68796E;
  --label: #4E5C53;
  --sage: #A4B4A9;
  --sage-hi: #BBC7C0;
  --gold: #CBA96A;
  --gold-deep: #8F6E2A;
  --line: rgba(164, 180, 169, 0.14);
  --line-strong: rgba(164, 180, 169, 0.28);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}
::selection { background: var(--sage); color: var(--bg); }
a { color: var(--sage); text-decoration: none; }
a:hover { color: var(--sage-hi); }
.mono { font-family: "DM Mono", ui-monospace, monospace; }

@keyframes thSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes thRing { 0% { box-shadow: 0 0 0 0 rgba(164,180,169,0.5); } 70% { box-shadow: 0 0 0 7px rgba(164,180,169,0); } 100% { box-shadow: 0 0 0 0 rgba(164,180,169,0); } }
@keyframes thRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes thFlow { to { stroke-dashoffset: -24; } }

/* dönen filigran */
.watermark {
  position: fixed; right: -16vw; bottom: -24vh;
  width: 60vw; height: 60vw; opacity: 0.035;
  pointer-events: none; animation: thSpin 240s linear infinite;
  z-index: 0;
}
header, main, section, footer { position: relative; z-index: 1; }

/* ── header ── */
.top { display: flex; align-items: center; gap: 12px; padding: 26px clamp(24px, 6vw, 72px); }
.wordmark { font-size: 20px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 20px; overflow: hidden; }
.lang button {
  border: 0; background: transparent; cursor: pointer;
  font-family: "DM Mono", monospace; font-size: 10px; letter-spacing: 0.12em;
  color: var(--faint); padding: 7px 12px;
}
.lang button.on { background: var(--sage); color: var(--bg); font-weight: 500; }
.soon {
  display: flex; align-items: center; gap: 7px;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); border: 1px solid var(--line-strong); border-radius: 20px; padding: 7px 14px;
}
.pulse { width: 6px; height: 6px; border-radius: 50%; background: var(--sage); animation: thRing 2.2s ease-out infinite; flex-shrink: 0; }

/* ── hero ── */
.hero {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: clamp(48px, 10vh, 96px) clamp(24px, 6vw, 72px) 72px;
}
.kicker { font-size: clamp(10px, 1.2vw, 12px); letter-spacing: 0.22em; text-transform: uppercase; color: var(--faint); }
.hero .kicker { animation: thRise 0.7s ease-out both; }
.hero h1 {
  margin-top: 22px; font-size: clamp(38px, 6.5vw, 84px); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.04; max-width: 15ch;
  animation: thRise 0.7s ease-out 0.08s both;
}
.hero .sub {
  margin-top: 26px; font-size: clamp(15px, 1.6vw, 19px); line-height: 1.65;
  color: var(--sub); max-width: 52ch; animation: thRise 0.7s ease-out 0.16s both;
}
.platforms {
  margin-top: 30px; display: flex; align-items: center; gap: 22px;
  font-size: clamp(11px, 1.2vw, 13px); color: var(--muted);
  animation: thRise 0.7s ease-out 0.24s both;
}
.platforms i { width: 3px; height: 3px; border-radius: 50%; background: var(--label); }

.lead { margin-top: 42px; display: flex; gap: 10px; width: min(460px, 100%); animation: thRise 0.7s ease-out 0.32s both; }
.lead input {
  flex: 1; min-width: 0; background: var(--card);
  border: 1px solid var(--line-strong); border-radius: 14px; padding: 16px 20px;
  font-family: inherit; font-size: 14.5px; color: var(--ink); outline: none;
}
.lead input::placeholder { color: var(--label); }
.lead input:focus { border-color: rgba(164, 180, 169, 0.6); }
.lead button {
  border: 0; background: var(--sage); color: var(--bg);
  font-family: inherit; font-size: 14.5px; font-weight: 800;
  padding: 16px 26px; border-radius: 14px; cursor: pointer; flex-shrink: 0;
  transition: background 0.15s ease;
}
.lead button:hover { background: var(--sage-hi); }
.lead button:disabled { opacity: 0.6; cursor: default; }
.lead-note { margin-top: 14px; font-size: 10.5px; color: var(--label); animation: thRise 0.7s ease-out 0.4s both; }
.lead-done {
  margin-top: 42px; display: flex; align-items: center; gap: 12px;
  background: var(--card); border: 1px solid var(--line-strong);
  border-radius: 14px; padding: 16px 24px; font-size: 14.5px; color: var(--body);
}
.lead-done[hidden], .lead-err[hidden], .lead[hidden], .lead-note[hidden] { display: none; }
.tick { width: 20px; height: 20px; border-radius: 50%; background: var(--sage); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.lead-err { margin-top: 12px; font-size: 11px; color: var(--gold); }

/* ── 3'lü şerit ── */
.strip {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px; background: var(--line);
}
.cell { background: var(--bg); padding: 34px clamp(24px, 4vw, 48px); display: flex; flex-direction: column; gap: 10px; }
.num { font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--faint); }
.cell-t { font-size: 16.5px; font-weight: 700; letter-spacing: -0.01em; }
.cell-d { font-size: 13.5px; line-height: 1.6; color: var(--muted); }

/* ── ortak bölüm ── */
.section { border-top: 1px solid var(--line); padding: clamp(56px, 9vw, 96px) clamp(24px, 6vw, 72px); max-width: 1180px; margin: 0 auto; width: 100%; }
.section h2 { margin-top: 16px; font-size: clamp(26px, 3.6vw, 44px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.section-sub { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--muted); max-width: 62ch; }

/* ── çalışma mantığı ── */
.how-grid { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.steps { list-style: none; display: flex; flex-direction: column; }
.steps li { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps li:last-child { border-bottom: 0; }
.steps li > span { font-size: 11px; color: var(--label); padding-top: 3px; }
.steps b { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.steps p { margin-top: 6px; font-size: 13.5px; line-height: 1.65; color: var(--muted); }

/* öneri kartı mock'u */
.proposal { background: var(--card); border: 1px solid var(--line-strong); border-radius: 16px; padding: 20px; }
.p-head { display: flex; align-items: center; gap: 12px; }
.chip { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11,12,11,0.6); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.p-title { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 3px; }
.p-title b { font-size: 14px; font-weight: 700; }
.p-title .mono { font-size: 10px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.credit { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 20px; padding: 3px 10px; flex-shrink: 0; }
.p-cmp { margin-top: 16px; display: flex; gap: 8px; align-items: stretch; }
.p-cmp .box { flex: 1; min-width: 0; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 5px; }
.p-cmp .box .mono { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; }
.p-cmp .box b { font-family: "DM Mono", monospace; font-size: 21px; font-weight: 500; line-height: 1; }
.p-cmp .box b i { font-style: normal; font-size: 11px; opacity: 0.65; }
.box.now { border: 1px solid var(--line); background: rgba(11,12,11,0.6); }
.box.now .mono { color: var(--label); }
.box.next { background: var(--sage-hi); color: var(--bg); }
.box.next .mono { opacity: 0.7; }
.arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); flex-shrink: 0; }
.arrow .mono { font-size: 10px; }
.p-why { margin-top: 16px; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.p-list { margin-top: 8px; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.p-list li { display: flex; gap: 10px; font-size: 12.5px; color: var(--body); line-height: 1.4; }
.ok { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(164,180,169,0.4); color: var(--sage); font-size: 9px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.p-boxes { margin-top: 14px; display: flex; gap: 8px; }
.p-boxes > div { flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: flex; flex-direction: column; gap: 4px; }
.p-boxes .mono { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--label); }
.p-boxes b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-btns { margin-top: 16px; display: flex; gap: 8px; align-items: center; }
.btn-a { flex: 1; text-align: center; background: var(--sage); color: var(--bg); font-size: 13px; font-weight: 800; padding: 10px 0; border-radius: 12px; }
.btn-b { border: 1px solid var(--line-strong); color: var(--ink); font-size: 13px; font-weight: 600; padding: 10px 16px; border-radius: 12px; }
.btn-c { color: var(--faint); font-size: 13px; padding: 10px 8px; }

/* ── canlı harita ── */
/* kaydırma çubuğu yok: harita JS ile kabın genişliğine ölçeklenir (app.js fitMap) */
.mapwrap { margin-top: 40px; overflow: hidden; border: 1px solid var(--line); border-radius: 18px; background-image: radial-gradient(rgba(164,180,169,0.09) 1px, transparent 1px); background-size: 24px 24px; }
.mapcanvas { position: relative; width: 1020px; height: 460px; padding: 20px; transform-origin: top left; }
.collabel { position: absolute; top: 22px; display: flex; align-items: center; gap: 7px; font-size: 9.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-left: 20px; }
.collabel em { font-style: normal; background: rgba(164,180,169,0.18); color: var(--sage); border-radius: 20px; padding: 1px 7px; font-size: 9px; letter-spacing: 0; }
.mapcanvas svg { position: absolute; left: 20px; top: 44px; display: block; }
.base { stroke: var(--line-strong); stroke-width: 1.4; }
.base.gold { stroke: rgba(203, 169, 106, 0.4); }
.base.dash { stroke-dasharray: 3 5; }
.flow { stroke: var(--sage); stroke-width: 1.6; stroke-dasharray: 5 7; opacity: 0.85; animation: thFlow 1.1s linear infinite; }
.flow.gold { stroke: var(--gold); opacity: 0.75; }

.node { position: absolute; margin-top: 44px; margin-left: 20px; background: var(--card); border: 1px solid var(--line-strong); border-radius: 13px; padding: 11px 13px; display: flex; flex-direction: column; gap: 6px; }
.node.acc { left: 0; width: 200px; border-radius: 16px; gap: 8px; }
.node.camp { left: 270px; width: 220px; }
.node.adset { left: 560px; width: 200px; }
.node.cr { left: 830px; width: 150px; padding: 9px 12px; gap: 4px; }
.node.watch { border-color: rgba(203, 169, 106, 0.4); }
.node.queue { border-style: dashed; border-color: rgba(203, 169, 106, 0.45); }
.acc-top { display: flex; align-items: center; justify-content: space-between; }
.tag { font-size: 9px; letter-spacing: 0.08em; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 5px; padding: 2px 7px; }
.tag.sm { font-size: 8.5px; padding: 1px 5px; border-radius: 4px; flex-shrink: 0; }
.live { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--sage); }
.node.acc > b { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.meta { font-size: 9.5px; color: var(--faint); display: flex; align-items: center; gap: 6px; }
.meta > span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta em { font-style: normal; margin-left: auto; font-size: 8.5px; border: 1px solid var(--line-strong); color: var(--muted); border-radius: 20px; padding: 1px 6px; flex-shrink: 0; }
.node.watch .meta em { border-color: rgba(203,169,106,0.45); color: var(--gold); }
.meta.gold { color: var(--gold); }
.bar-row { display: flex; justify-content: space-between; font-size: 9px; color: var(--faint); }
.bar { height: 3px; border-radius: 3px; background: rgba(164,180,169,0.15); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--sage); border-radius: 3px; }
.n-row { display: flex; align-items: center; gap: 8px; }
.n-row b { font-size: 12.5px; font-weight: 700; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.node.cr .n-row b { font-size: 10.5px; font-weight: 400; color: var(--body); }
.val { margin-left: auto; font-size: 11.5px; color: var(--sage); flex-shrink: 0; }
.val.gold { color: var(--gold); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--sage); flex-shrink: 0; }
.dot.sm { width: 6px; height: 6px; }
.dot.gold { background: var(--gold); }
.dot.learn { background: transparent; border: 1.5px dashed var(--muted); animation: thRing 2.2s ease-out infinite; }
.faintdot { background: var(--faint); }

/* ── görevler ── */
.task-grid { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.task { border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 9px; }
.task > span { font-size: 10px; letter-spacing: 0.18em; color: var(--label); }
.task b { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.task p { font-size: 13px; line-height: 1.6; color: var(--muted); }

/* sabah özeti mock'u */
.brief { margin-top: 14px; border: 1px solid var(--line); background: var(--card); border-radius: 16px; padding: 22px 24px; }
.brief-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brief-head > .mono { font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); }
.b-leg { display: flex; align-items: center; gap: 7px; font-size: 10px; color: var(--faint); }
.sw { width: 12px; border-top: 2px solid var(--sage); opacity: 0.7; }
.sw.dashline { border-top-style: dashed; border-top-color: var(--faint); }
.chart { display: block; width: 100%; height: 140px; margin-top: 14px; }
.grid { stroke: rgba(164, 180, 169, 0.08); }
.spend { fill: none; stroke: var(--sage); stroke-width: 2; opacity: 0.9; }
.roas { fill: none; stroke: var(--faint); stroke-width: 1.6; stroke-dasharray: 5 5; }
.receipts { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.receipts > div { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--body); }
.receipts em { font-style: normal; margin-left: auto; font-size: 9.5px; border: 1px solid var(--line-strong); border-radius: 20px; padding: 1px 8px; color: var(--muted); flex-shrink: 0; }

/* ── footer ── */
.foot { display: flex; align-items: center; gap: 12px; padding: 22px clamp(24px, 6vw, 72px); border-top: 1px solid var(--line); flex-wrap: wrap; }
.foot img { opacity: 0.7; }
.foot .mono { font-size: 10.5px; color: var(--label); }
.foot a { margin-left: auto; }

/* ── scroll reveal ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .watermark, .flow, .pulse, .dot.learn { animation: none; }
  .hero .kicker, .hero h1, .hero .sub, .platforms, .lead, .lead-note { animation: none; }
}

/* ── mobil ── */
@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .proposal { max-width: 460px; }
}
@media (max-width: 560px) {
  .lead { flex-direction: column; }
  .lead button { width: 100%; }
  .top { flex-wrap: wrap; }
  .soon { display: none; }
}
