/* public/assets/landing.css
   Lega Muhasebe AI — açılış sayfası stilleri.
   "Cybernetic Midnight" token sistemi: koyu zemin, zümrüt (başarı/CTA) + menekşe (işleniyor).
   Kural: 1100 / 900 / 640 kırılımları; 360px'te yatay kaydırma YOK. */

:root {
  --bg: #05070F;
  --surface: #0B0E1A;
  --surface-2: #0E1222;
  --line: rgba(99, 102, 241, .14);
  --line-soft: rgba(99, 102, 241, .08);
  --emerald: #00FF87;
  --violet: #6366F1;
  --violet-soft: #8B8DF7;
  --text: #EAECF5;
  --muted: #8A90B8;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 16px;
  --container: 1160px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  /* Kanvasın altında kalan sabit ışıma — JS kapalıyken de sahne boş görünmesin */
  background-image:
    radial-gradient(ellipse 70% 45% at 18% -6%, rgba(99, 102, 241, .13), transparent 62%),
    radial-gradient(ellipse 55% 38% at 86% 4%, rgba(0, 255, 135, .06), transparent 60%),
    radial-gradient(ellipse 60% 40% at 50% 108%, rgba(99, 102, 241, .08), transparent 65%);
  background-attachment: fixed;
}

.mono { font-family: var(--mono); }
a { color: inherit; }
img, svg { max-width: 100%; }
::selection { background: rgba(0, 255, 135, .25); }

/* ---------- Zemin kanvası ---------- */
#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
main, .nav, footer { position: relative; z-index: 1; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Görünürlükle açılma (IntersectionObserver .in ekler) ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s cubic-bezier(.22, 1, .36, 1);
  transition-delay: calc(var(--i, 0) * 60ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- Üst çubuk ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, .72);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  text-decoration: none;
  letter-spacing: -.02em;
}
.logo img { width: 26px; height: 26px; }
.logo .grad {
  background: linear-gradient(92deg, var(--emerald), var(--violet-soft));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-links {
  display: flex;
  gap: 24px;
  margin-left: auto;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; gap: 12px; align-items: center; margin-left: auto; }

/* ---------- Düğmeler ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 12px;
  font-family: var(--font);
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s, border-color .2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--emerald);
  color: #031008;
  box-shadow: 0 0 0 1px rgba(0, 255, 135, .4), 0 8px 32px rgba(0, 255, 135, .22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(0, 255, 135, .6), 0 12px 44px rgba(0, 255, 135, .32);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(138, 144, 184, .35);
}
.btn-ghost:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 10px; }
.btn-block { width: 100%; }

/* ---------- Bölüm iskeleti ---------- */
.section { padding: 110px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .22em;
  color: var(--emerald);
  margin-bottom: 14px;
}
.eyebrow.v { color: var(--violet-soft); }
h2 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.12;
  margin: 0 0 14px;
}
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }

/* ---------- Kahraman (hero) ---------- */
.hero {
  min-height: calc(100svh - 64px);
  display: flex;
  align-items: center;
  padding: 72px 0 56px;
}
.hero-inner { max-width: 900px; }
.hero h1 {
  font-size: clamp(44px, 8vw, 96px);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1.02;
  margin: 0 0 26px;
  overflow-wrap: break-word;
}
.hero h1 .grad {
  background: linear-gradient(94deg, var(--emerald) 10%, var(--violet-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  max-width: 640px;
  margin: 0 0 36px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 18px;
  letter-spacing: .02em;
}

/* Dürüst sayaç şeridi */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  color: var(--emerald);
  letter-spacing: -.02em;
}
.stat span { color: var(--muted); font-size: 13.5px; }

/* ---------- Ajan terminali (merkez parça) ---------- */
.terminal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(99, 102, 241, .06);
}
.term-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--surface-2);
}
.term-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.r { background: #FF5F57; } .dot.y { background: #FEBC2E; } .dot.g { background: #28C840; }
.term-title {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-left: 10px;
}
.term-tag {
  margin-left: auto;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .14em;
  color: var(--violet-soft);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 3px 10px;
}
.term-panes {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
}
.pane {
  padding: 20px;
  border-right: 1px solid var(--line-soft);
  min-height: 210px;
  min-width: 0;
}
.pane:last-child { border-right: 0; }
.pane-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .16em;
  color: var(--muted);
  margin-bottom: 16px;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 8px var(--emerald);
  animation: pulse 2s ease-in-out infinite;
}
.pulse.v { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
@keyframes pulse { 50% { opacity: .35; } }

/* Fatura satırları */
.inv-list { display: flex; flex-direction: column; gap: 9px; }
.inv-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text);
  background: rgba(99, 102, 241, .05);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 8px 10px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .5s ease, transform .5s cubic-bezier(.22, 1, .36, 1);
  min-width: 0;
}
.inv-row.on { opacity: 1; transform: none; }
.inv-row .ck { width: 15px; height: 15px; flex: 0 0 auto; }
.inv-row .ck path {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 26;
  stroke-dashoffset: 26;
  transition: stroke-dashoffset .55s ease .25s;
}
.inv-row.on .ck path { stroke-dashoffset: 0; }
.inv-no { color: var(--violet-soft); flex: 0 0 auto; }
.inv-desc { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.inv-amt { margin-left: auto; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.inv-badge {
  font-size: 9.5px;
  letter-spacing: .1em;
  color: var(--emerald);
  border: 1px solid rgba(0, 255, 135, .35);
  border-radius: 99px;
  padding: 2px 7px;
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity .4s ease .7s;
}
.inv-row.on .inv-badge { opacity: 1; }

/* KDV çubukları */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 92px;
  margin-bottom: 14px;
}
.bars .bar {
  flex: 1;
  min-width: 0;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, var(--violet) 0%, rgba(99, 102, 241, .25) 100%);
  transition: height .9s cubic-bezier(.22, 1, .36, 1);
}
.bars .bar:nth-child(3n) { background: linear-gradient(180deg, var(--emerald) 0%, rgba(0, 255, 135, .18) 100%); }
.kdv-ticker {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  transition: opacity .35s ease;
  margin-bottom: 10px;
}
.kdv-ticker.fade { opacity: 0; }
.pane-note {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px dashed var(--line);
  padding-top: 10px;
  line-height: 1.5;
}

/* Nakit akışı kıvılcım çizgisi */
.spark { width: 100%; height: 96px; margin-bottom: 12px; overflow: visible; }
.sp-main {
  fill: none;
  stroke: var(--emerald);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(0, 255, 135, .5));
  transition: stroke-dashoffset 1.7s cubic-bezier(.4, 0, .2, 1) .2s;
}
.sp-proj {
  fill: none;
  stroke: var(--violet-soft);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: .045 .03;
  opacity: 0;
  transition: opacity .7s ease 1.7s;
}
#cash-pane.go .sp-main { stroke-dashoffset: 0; }
#cash-pane.go .sp-proj { opacity: .9; }
.cash-label { font-size: 12.5px; color: var(--muted); }
.cash-label b { color: var(--emerald); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Terminal günlüğü */
.term-log {
  border-top: 1px solid var(--line-soft);
  background: rgba(3, 4, 10, .6);
  padding: 14px 20px;
  font-size: 12.5px;
  line-height: 1.9;
  min-height: 110px;
}
.log-line { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.log-line .lt { color: var(--violet-soft); margin-right: 8px; }
.log-line.typing::after {
  content: '▋';
  color: var(--emerald);
  animation: caret 1s step-end infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* ---------- Bento ızgara ---------- */
.bento-wrap { position: relative; }
.flow-lines {
  position: absolute;
  inset: -40px 0;
  width: 100%;
  height: calc(100% + 80px);
  pointer-events: none;
  opacity: .22;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.flow-lines path {
  fill: none;
  stroke: url(#flowGrad);
  stroke-width: 1.5;
  stroke-dasharray: 6 12;
  animation: flow 16s linear infinite;
}
.flow-lines path:nth-child(3) { animation-duration: 22s; animation-direction: reverse; }
@keyframes flow { to { stroke-dashoffset: -360; } }

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  position: relative;
}
.card {
  background: linear-gradient(180deg, rgba(14, 18, 34, .85), rgba(11, 14, 26, .9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  min-width: 0;
  position: relative;
  overflow: hidden;
  transition: border-color .3s ease, transform .3s ease;
}
.card:hover { border-color: rgba(99, 102, 241, .35); transform: translateY(-3px); }
.card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 255, 135, .4), rgba(99, 102, 241, .4), transparent);
  opacity: 0;
  transition: opacity .4s ease;
}
.card:hover::before { opacity: 1; }
.card h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 8px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card .ic {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: rgba(0, 255, 135, .08);
  border: 1px solid rgba(0, 255, 135, .18);
  color: var(--emerald);
  margin-bottom: 16px;
}
.card .ic.v {
  background: rgba(99, 102, 241, .1);
  border-color: rgba(99, 102, 241, .25);
  color: var(--violet-soft);
}
.card .ic svg { width: 19px; height: 19px; }
.c-4 { grid-column: span 4; } .c-3 { grid-column: span 3; } .c-2 { grid-column: span 2; }

/* ---------- Entegrasyonlar ---------- */
.integrations { text-align: center; }
.int-head {
  font-family: var(--mono);
  font-size: clamp(15px, 2.4vw, 21px);
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--text);
  margin-bottom: 10px;
}
.int-head .em { color: var(--emerald); }
.int-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 36px; }
.int-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  max-width: 860px;
  margin: 0 auto 22px;
}
.int-badge {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 10px 20px;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.int-badge:hover { border-color: rgba(0, 255, 135, .4); box-shadow: 0 0 24px rgba(0, 255, 135, .1); }
.int-badge small { color: var(--muted); font-size: 11px; margin-left: 6px; }
.int-note { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* ---------- Güvenlik üçlüsü ---------- */
.sec-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.kvkk-line {
  margin-top: 30px;
  color: var(--muted);
  font-size: 14px;
}
.kvkk-line a { color: var(--emerald); text-decoration: none; }
.kvkk-line a:hover { text-decoration: underline; }

/* ---------- Fiyatlandırma ---------- */
.plans {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
  min-width: 0;
}
.plan.hl {
  border-color: rgba(0, 255, 135, .45);
  background: linear-gradient(180deg, rgba(0, 255, 135, .06), var(--surface) 40%);
  box-shadow: 0 0 60px rgba(0, 255, 135, .1);
}
.plan-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .14em;
  background: var(--emerald);
  color: #031008;
  border-radius: 99px;
  padding: 4px 14px;
  white-space: nowrap;
}
.plan h3 { font-size: 17px; font-weight: 800; margin: 0 0 4px; }
.plan .tagline { color: var(--muted); font-size: 13px; margin: 0 0 18px; min-height: 40px; }
.plan .price {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 20px;
}
.plan .price .per { font-size: 13.5px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.plan.contact-price .price { font-size: 21px; line-height: 1.9; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li {
  position: relative;
  padding: 5px 0 5px 24px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.plan li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: rgba(0, 255, 135, .12);
  box-shadow: inset 0 0 0 1px rgba(0, 255, 135, .35);
}
.plan li::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 14.5px;
  width: 6px; height: 3.5px;
  border-left: 1.5px solid var(--emerald);
  border-bottom: 1.5px solid var(--emerald);
  transform: rotate(-45deg);
}
.price-note {
  text-align: center;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 30px;
}

/* ---------- SSS ---------- */
.faq-list { max-width: 760px; }
.faq-list details {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-list summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 15.5px;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: color .2s;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: '+';
  margin-left: auto;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--emerald);
  transition: transform .25s ease;
  flex: 0 0 auto;
}
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details[open] summary { color: var(--emerald); }
.faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 14.5px; }

/* ---------- Son çağrı + altbilgi ---------- */
.final-cta { text-align: center; padding-bottom: 130px; }
.final-cta h2 { font-size: clamp(32px, 5vw, 56px); }
.final-cta p { color: var(--muted); max-width: 560px; margin: 0 auto 32px; }

footer {
  border-top: 1px solid var(--line-soft);
  padding: 44px 0;
  background: rgba(5, 7, 15, .8);
}
.foot-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  flex-wrap: wrap;
}
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.foot-links a { color: var(--muted); font-size: 13.5px; text-decoration: none; }
.foot-links a:hover { color: var(--text); }
.foot-copy { width: 100%; color: var(--muted); font-size: 12.5px; font-family: var(--mono); margin-top: 8px; }

/* ---------- Yasal sayfalar (/kvkk, /kullanim-sartlari) ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 70px 24px 110px; }
.legal h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 8px; }
.legal .legal-meta { font-family: var(--mono); font-size: 12.5px; color: var(--muted); margin-bottom: 44px; }
.legal h2 { font-size: 21px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15px; }
.legal ul { padding-left: 22px; }
.legal strong { color: var(--text); }
.legal a { color: var(--emerald); }
.legal .back { display: inline-block; margin-bottom: 34px; color: var(--muted); font-size: 13.5px; text-decoration: none; font-family: var(--mono); }
.legal .back:hover { color: var(--emerald); }

/* ---------- "Sohbetle muhasebe" vitrini (#sohbet) ----------
   Sayfanın ilk bölümü: sol sekmeler + gerçek sohbet penceresi.
   İçerik utils/landingPage.js'teki CHAT_DEMOS dizisinden gelir; landing.js oynatır. */
.chat-show { padding-top: 34px; }
.chat-show .section-head { max-width: 760px; margin-bottom: 34px; }
.ch-eic svg { width: 13px; height: 13px; vertical-align: -2px; margin-right: 8px; }

.ch-grid {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

/* Konu sekmeleri */
.ch-tabs {
  display: flex;
  flex-direction: column;
  gap: 5px;
  max-height: 540px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, .35) transparent;
}
.ch-tabs::-webkit-scrollbar { width: 6px; }
.ch-tabs::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, .3); border-radius: 99px; }
.ch-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  font-family: var(--font);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-left: 2px solid transparent;
  border-radius: 10px;
  padding: 9px 12px;
  cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.ch-tab .n { font-size: 10.5px; color: rgba(138, 144, 184, .6); font-variant-numeric: tabular-nums; }
.ch-tab:hover { color: var(--text); border-color: rgba(99, 102, 241, .3); }
.ch-tab.on {
  color: var(--text);
  background: linear-gradient(90deg, rgba(0, 255, 135, .1), rgba(11, 14, 26, .9) 60%);
  border-left-color: var(--emerald);
}
.ch-tab.on .n { color: var(--emerald); }

/* Pencere */
.ch-win {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .5), 0 0 0 1px rgba(99, 102, 241, .06);
  min-width: 0;
}
.ch-thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px;
  min-height: 430px;
  max-height: 540px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(99, 102, 241, .3) transparent;
}
.ch-thread::-webkit-scrollbar { width: 6px; }
.ch-thread::-webkit-scrollbar-thumb { background: rgba(99, 102, 241, .28); border-radius: 99px; }

.ch-msg { display: flex; min-width: 0; }
.ch-msg.u { justify-content: flex-end; }
.ch-bub { min-width: 0; overflow-wrap: anywhere; }
.ch-msg.u .ch-bub {
  max-width: 86%;
  background: rgba(99, 102, 241, .14);
  border: 1px solid rgba(99, 102, 241, .32);
  border-radius: 14px 14px 4px 14px;
  padding: 11px 15px;
  font-size: 14.5px;
  color: var(--text);
}
.ch-msg.a .ch-bub {
  max-width: 94%;
  background: linear-gradient(180deg, rgba(14, 18, 34, .9), rgba(11, 14, 26, .95));
  border: 1px solid var(--line);
  border-radius: 14px 14px 14px 4px;
  padding: 16px 18px;
}
.ch-q.typing::after { content: '▋'; color: var(--emerald); animation: caret 1s step-end infinite; }
.ch-att {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--emerald);
  background: rgba(0, 255, 135, .07);
  border: 1px solid rgba(0, 255, 135, .25);
  border-radius: 8px;
  padding: 5px 9px;
  margin-bottom: 8px;
}
.ch-att svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Düşünme satırları (gerçek araç başlıkları) */
.ch-run { display: flex; flex-direction: column; gap: 7px; padding-left: 2px; }
.ch-status { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.ch-orb {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--violet);
  box-shadow: 0 0 8px var(--violet);
  animation: pulse 1.5s ease-in-out infinite;
  flex: 0 0 auto;
}
.ch-status.done .ch-orb { background: var(--emerald); box-shadow: 0 0 8px var(--emerald); animation: none; }
.ch-think {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  padding-left: 3px;
}
.ch-think .sp {
  position: relative;
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, .3);
  border-top-color: var(--violet-soft);
  animation: chspin .7s linear infinite;
  flex: 0 0 auto;
}
@keyframes chspin { to { transform: rotate(360deg); } }
.ch-think.done { color: var(--text); }
.ch-think.done .sp { border-color: transparent; animation: none; }
.ch-think.done .sp::after {
  content: '✓';
  position: absolute;
  left: -1px; top: -4px;
  color: var(--emerald);
  font-size: 12px;
  line-height: 1;
}

/* Cevap parçaları */
.ch-p { margin: 0 0 11px; font-size: 14.5px; line-height: 1.65; color: var(--text); }
.ch-p b { color: var(--emerald); font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-ul { list-style: none; margin: 0 0 11px; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.ch-ul li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.ch-ul li::before { content: '•'; position: absolute; left: 2px; color: var(--violet-soft); }
.ch-ul b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
.ch-ul i { font-style: normal; font-size: 12.5px; color: rgba(138, 144, 184, .75); }
.ch-oks { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 11px; }
.ch-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--emerald);
  background: rgba(0, 255, 135, .07);
  border: 1px solid rgba(0, 255, 135, .28);
  border-radius: 99px;
  padding: 4px 11px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.ch-ok svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.ch-note {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  border-left: 2px solid var(--line);
  padding-left: 12px;
  margin: 11px 0 0;
}
.ch-note b { color: var(--text); font-weight: 600; }
.ch-bub > *:last-child { margin-bottom: 0; }

/* Anomali satırları */
.ch-anoms { display: flex; flex-direction: column; gap: 8px; margin: 2px 0 11px; }
.ch-anom {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(254, 188, 46, .05);
  border: 1px solid rgba(254, 188, 46, .2);
  border-radius: 10px;
  padding: 9px 12px;
  min-width: 0;
}
.ch-anom .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #FEBC2E;
  box-shadow: 0 0 7px rgba(254, 188, 46, .6);
  margin-top: 6px;
  flex: 0 0 auto;
}
.ch-anom .dot.hot { background: #FF5F57; box-shadow: 0 0 7px rgba(255, 95, 87, .6); }
.ch-anom div { min-width: 0; }
.ch-anom b { display: block; font-size: 13.5px; font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.ch-anom div span { display: block; font-family: var(--mono); font-size: 11.5px; color: var(--muted); margin-top: 3px; overflow-wrap: anywhere; }

/* Artefaktlar: grafik / dosya / e-posta taslağı (metinden ayrıdır) */
.ch-art {
  background: rgba(3, 4, 10, .5);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  margin: 2px 0 11px;
  min-width: 0;
}
.ch-art-h { font-size: 10.5px; letter-spacing: .14em; color: var(--violet-soft); margin-bottom: 11px; }
.ch-spark { display: block; width: 100%; height: 96px; overflow: visible; }
.ch-spark path { fill: none; stroke: var(--emerald); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: drop-shadow(0 0 6px rgba(0, 255, 135, .45)); }
.ch-dip { fill: #FEBC2E; stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.ch-art-x { display: flex; justify-content: space-between; gap: 6px; font-size: 10.5px; color: var(--muted); margin-top: 7px; }
.ch-art-f { font-size: 12.5px; color: var(--muted); margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 9px; }
.ch-art-f b { color: var(--text); font-variant-numeric: tabular-nums; }
.ch-barwrap { display: flex; align-items: flex-end; gap: 8px; }
.ch-bar { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ch-bar .tr { display: flex; align-items: flex-end; height: 96px; }
.ch-bar i { display: block; width: 100%; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--violet), rgba(99, 102, 241, .22)); }
.ch-bar[data-hot] i { background: linear-gradient(180deg, var(--emerald), rgba(0, 255, 135, .18)); }
.ch-bar em { font-style: normal; font-size: 10.5px; color: var(--muted); text-align: center; }
.ch-file { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.ch-file-ic {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--emerald);
  background: rgba(0, 255, 135, .08);
  border: 1px solid rgba(0, 255, 135, .25);
  flex: 0 0 auto;
}
.ch-file-t { display: flex; flex-direction: column; min-width: 0; }
.ch-file-t b { font-size: 13.5px; color: var(--text); }
.ch-file-t span { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.ch-dl {
  margin-left: auto;
  flex: 0 0 auto;
  font-size: 11.5px;
  font-weight: 700;
  color: #031008;
  background: var(--emerald);
  border-radius: 8px;
  padding: 6px 12px;
}
.ch-mail-s { font-size: 13px; color: var(--text); margin-bottom: 10px; overflow-wrap: anywhere; }
.ch-mail-s span { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-right: 6px; }
.ch-mail p { font-size: 13px; line-height: 1.6; color: var(--muted); margin: 0 0 8px; }
.ch-mail p:last-child { margin-bottom: 0; }

/* Onay kartı — riskli işlemi araç üretir */
.ch-appr {
  background: rgba(254, 188, 46, .06);
  border: 1px solid rgba(254, 188, 46, .35);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 2px 0 11px;
}
.ch-appr-h { display: flex; gap: 9px; align-items: flex-start; font-size: 13.5px; line-height: 1.5; color: var(--text); overflow-wrap: anywhere; }
.ch-appr-h b { font-weight: 700; }
.ch-warn { flex: 0 0 auto; }
.ch-appr-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 11px; }
.ch-appr-a i {
  font-style: normal;
  font-size: 12px;
  border-radius: 8px;
  padding: 5px 15px;
  border: 1px solid rgba(138, 144, 184, .3);
  color: var(--muted);
}
.ch-appr-a i.go { background: var(--emerald); color: #031008; border-color: transparent; font-weight: 700; }
.ch-appr.ok { background: rgba(0, 255, 135, .06); border-color: rgba(0, 255, 135, .32); }
.ch-appr.ok .ch-warn { color: var(--emerald); }

/* Sahte yazma alanı + dürüstlük şeridi */
.ch-input {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid var(--line-soft);
  background: rgba(3, 4, 10, .55);
  padding: 13px 20px;
  font-size: 13px;
  color: var(--muted);
}
.ch-send {
  margin-left: auto;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(0, 255, 135, .12);
  border: 1px solid rgba(0, 255, 135, .25);
  color: var(--emerald);
  flex: 0 0 auto;
}
.ch-foot { margin-top: 16px; font-size: 12px; color: var(--muted); text-align: center; }

/* Parça parça akış (JS ekledikçe) */
.ch-rise { opacity: 0; transform: translateY(6px); transition: opacity .4s ease, transform .4s cubic-bezier(.22, 1, .36, 1); }
.ch-rise.in { opacity: 1; transform: none; }

/* ---------- Kırılımlar ---------- */
@media (max-width: 1100px) {
  .section { padding: 90px 0; }
  .c-4 { grid-column: span 6; }
  .c-3 { grid-column: span 3; }
  .c-2 { grid-column: span 3; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ch-grid { grid-template-columns: 206px minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .term-panes { grid-template-columns: 1fr; }
  .pane { border-right: 0; border-bottom: 1px solid var(--line-soft); min-height: 0; }
  .pane:last-child { border-bottom: 0; }
  .sec-grid { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  /* Sohbet vitrini tek sütuna iner; sekmeler pencerenin üstünde yatay şeride döner. */
  .ch-grid { grid-template-columns: minmax(0, 1fr); }
  .ch-tabs {
    flex-direction: row;
    max-height: none;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 0 8px;
    -webkit-overflow-scrolling: touch;
  }
  .ch-tabs::-webkit-scrollbar { height: 5px; }
  .ch-tab { flex: 0 0 auto; white-space: nowrap; border-left-width: 1px; border-bottom: 2px solid transparent; }
  .ch-tab.on { border-left-color: transparent; border-bottom-color: var(--emerald); background: rgba(0, 255, 135, .08); }
}

@media (max-width: 640px) {
  .section { padding: 70px 0; }
  .container { padding: 0 20px; }
  .hero { padding-top: 48px; }
  .c-2, .c-3 { grid-column: span 6; }
  .plans { grid-template-columns: 1fr; }
  .hero-ctas .btn { width: 100%; }
  .foot-links { margin-left: 0; }
  .inv-desc { display: none; } /* 360px'te satır taşmasın */
  .chat-show { padding-top: 20px; }
  .ch-thread { padding: 15px; gap: 12px; min-height: 380px; max-height: 74vh; }
  .ch-msg.u .ch-bub { max-width: 94%; }
  .ch-msg.a .ch-bub { max-width: 100%; padding: 14px 15px; }
  .ch-art { padding: 12px; }
  .ch-barwrap { gap: 5px; }
  .ch-bar .tr { height: 76px; }
  .ch-dl { margin-left: 0; }
  .ch-input { padding: 11px 15px; font-size: 12px; }
  .ch-ok { font-size: 10.5px; padding: 4px 9px; }
  .ch-p, .ch-ul li { font-size: 13.5px; }
  /* Dar ekranda logo + iki düğme sığmıyor; girişe hero ve alt bilgiden ulaşılır. */
  .nav-inner { gap: 12px; }
  .logo { font-size: 16px; }
  .logo img { width: 22px; height: 22px; }
  .nav-cta .btn-ghost { display: none; }
}

@media (max-width: 384px) {
  /* 360-375px'te tam marka düğmeyle çakışıyor; işaret + "Lega" olarak kısalır. */
  .logo .grad { display: none; }
}

/* ---------- Hareket azaltma: statik sahne ----------
   Kanvas gizlenir; ızgara CSS ile boyanır, açılmalar anında,
   yazma/çubuk/çizgi animasyonları son karelerinde donar. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #bg { display: none; }
  body {
    background-image:
      radial-gradient(ellipse 70% 45% at 18% -6%, rgba(99, 102, 241, .13), transparent 62%),
      radial-gradient(ellipse 55% 38% at 86% 4%, rgba(0, 255, 135, .06), transparent 60%),
      linear-gradient(rgba(234, 236, 245, .04) 1px, transparent 1px),
      linear-gradient(90deg, rgba(234, 236, 245, .04) 1px, transparent 1px);
    background-size: auto, auto, 48px 48px, 48px 48px;
  }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .pulse, .flow-lines path, .log-line.typing::after { animation: none; }
  /* Sohbet vitrini: ilk örnek statik ve tam görünür; sekmeler yine gezilebilir. */
  .ch-rise, .ch-msg, .ch-think { opacity: 1; transform: none; transition: none; }
  .ch-orb, .ch-think .sp { animation: none; }
  .ch-q.typing::after { content: none; }
  .inv-row, .inv-row .ck path, .inv-badge, .kdv-ticker, .bars .bar,
  .sp-main, .sp-proj, .card, .btn { transition: none; animation: none; }
  .inv-row { opacity: 1; transform: none; }
  .inv-row .ck path { stroke-dashoffset: 0; }
  .inv-row.on .inv-badge, .inv-badge { opacity: 1; }
  .sp-main { stroke-dashoffset: 0; }
  .sp-proj { opacity: .9; }
}
