/* ---------- yapay zekâ laboratuvarı ---------- */
.lab { padding: 18vh var(--gut); background: var(--bg); position: relative; overflow: hidden; }
.lab::before { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(60% 50% at 80% 10%, rgba(255, 91, 31, .12), transparent 70%), radial-gradient(50% 40% at 10% 90%, rgba(120, 80, 255, .08), transparent 70%); }
.lab__head { position: relative; max-width: 900px; margin-bottom: 8vh; }
.lab__head h2 { font-size: clamp(3rem, 7.5vw, 7rem); line-height: .9; margin: 18px 0 20px; }
.lab__text { color: var(--muted); max-width: 52ch; line-height: 1.6; }
.lab__grid { position: relative; display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; align-items: stretch; }
.labc { position: relative; isolation: isolate; display: flex; flex-direction: column; gap: 14px; padding: 26px; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(160deg, #191513, #0e0e0e 60%); overflow: hidden; }
.labc::after { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none; background: linear-gradient(140deg, rgba(255, 91, 31, .7), transparent 35%, transparent 70%, rgba(255, 255, 255, .15)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: .5; }
.labc__head { display: flex; justify-content: space-between; align-items: center; }
.labc__n { color: var(--accent); }
.labc__live { display: inline-flex; align-items: center; gap: 8px; color: #8ff0b2; padding: 6px 10px; border-radius: 99px; background: rgba(60, 220, 130, .08); border: 1px solid rgba(60, 220, 130, .25); }
.labc__live i { width: 7px; height: 7px; border-radius: 50%; background: #3cdc82; box-shadow: 0 0 10px #3cdc82; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.labc__t { font-size: clamp(2.1rem, 3vw, 2.8rem); line-height: .95; }
.labc__d { color: #a9a39a; line-height: 1.55; }
.labc__demo { flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: 16px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(255, 255, 255, .06); }
.labc__note { color: var(--muted); font-size: 10px; line-height: 1.5; text-transform: none; letter-spacing: .02em; }

.gen { display: flex; flex-direction: column; gap: 10px; }
.lchips { display: flex; flex-wrap: wrap; gap: 6px; }
.lchip input { position: absolute; opacity: 0; pointer-events: none; }
.lchip span { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 7px 10px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .12); cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.lchip input:checked + span { background: rgba(255, 91, 31, .18); border-color: var(--accent); color: #ffd2b8; }
.lchip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.gen__btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 10px; padding: 11px 16px; border-radius: 10px; background: var(--accent); color: #0a0a0a; font-weight: 500; transition: transform .2s; box-shadow: 0 10px 30px -10px rgba(255, 91, 31, .8); }
.gen__btn:hover { transform: translateY(-2px); }
.gen__out { min-height: 150px; padding: 14px; border-radius: 12px; background: #0b0b0b; border: 1px dashed rgba(255, 91, 31, .3); }
.gen__ph { color: var(--muted); text-transform: none; }
.gen__h { font-size: 1.5rem; line-height: 1.1; margin-bottom: 8px; }
.gen__b { color: #d6d0c7; line-height: 1.6; font-size: 14px; }
.gen__tags { color: var(--accent); margin-top: 10px; text-transform: none; }
.gen__meta { display: block; margin-top: 10px; color: #8ff0b2; font-size: 10px; }
.gen__out.is-typing::after { content: "\258D"; color: var(--accent); animation: pulse .8s steps(1) infinite; }

.flow { position: relative; aspect-ratio: 320 / 170; }
.flow__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.flow__p { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 2; stroke-dasharray: 4 5; transition: stroke .4s; }
.flow__p.is-done { stroke: var(--accent); stroke-dasharray: none; filter: drop-shadow(0 0 4px rgba(255, 91, 31, .9)); }
.flow__node { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 5px; }
.flow__node b { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 500 12px var(--mono); background: #151515; border: 1px solid rgba(255, 255, 255, .2); transition: background .3s, border-color .3s, box-shadow .3s, transform .3s; }
.flow__node span { font-size: 9px; color: var(--muted); white-space: nowrap; }
.flow__node.is-active b { border-color: var(--accent); box-shadow: 0 0 0 6px rgba(255, 91, 31, .15); transform: scale(1.12); animation: pulse .7s ease-in-out infinite; }
.flow__node.is-done b { background: var(--accent); border-color: var(--accent); color: #0a0a0a; box-shadow: 0 0 18px rgba(255, 91, 31, .7); }
.flow__node.is-done span { color: var(--fg); }
.flow__log { list-style: none; min-height: 78px; display: flex; flex-direction: column; gap: 6px; font-size: 10.5px; text-transform: none; color: #cfc9c0; }
.flow__log li { animation: logIn .4s ease-out; }
.flow__log b { color: var(--accent); font-weight: 500; margin-right: 6px; }
@keyframes logIn { from { opacity: 0; transform: translateY(-6px); } }

.mini { flex: 1; min-height: 230px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }
.mini__msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; font-size: 13px; line-height: 1.45; animation: logIn .35s ease-out; }
.mini__msg--u { align-self: flex-end; background: var(--accent); color: #0a0a0a; border-bottom-right-radius: 4px; }
.mini__msg--b { align-self: flex-start; background: #1d1d1d; border: 1px solid rgba(255, 255, 255, .08); border-bottom-left-radius: 4px; }
.mini__dots, .bot__dots { display: flex; gap: 4px; padding: 12px 14px; }
.mini__dots i, .bot__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dot 1s infinite; }
.mini__dots i:nth-child(2), .bot__dots i:nth-child(2) { animation-delay: .15s; }
.mini__dots i:nth-child(3), .bot__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { transform: translateY(-4px); opacity: .4; } }

/* ---------- Cavmeo Asistan ---------- */
.bot { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; opacity: 0; transform: translateY(20px); pointer-events: none; transition: opacity .6s, transform .6s; }
.bot.is-ready { opacity: 1; transform: none; pointer-events: auto; }
.bot__fab { order: 2; display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 99px; background: #111; border: 1px solid rgba(255, 91, 31, .5); box-shadow: 0 18px 40px -12px rgba(255, 91, 31, .6); transition: transform .3s; }
.bot__fab:hover { transform: translateY(-2px); }
.bot__star { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffb48a, var(--accent)); color: #0a0a0a; font-size: 18px; animation: spinStar 6s linear infinite; }
@keyframes spinStar { to { transform: rotate(360deg); } }
.bot__fab-l { color: var(--fg); }
.bot.is-open .bot__fab-l { display: none; }
.bot.is-open .bot__fab { padding: 8px; }
.bot__panel { order: 1; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100svh - 120px)); display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: rgba(14, 14, 14, .95); backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .9), 0 30px 80px -40px rgba(255, 91, 31, .5); transform-origin: bottom right; transform: scale(.85) translateY(20px); opacity: 0; pointer-events: none; transition: transform .45s cubic-bezier(.2, .9, .2, 1), opacity .3s; }
.bot:not(.is-open) .bot__panel { visibility: hidden; transition: transform .45s, opacity .3s, visibility 0s .45s; }
.bot.is-open .bot__panel { transform: none; opacity: 1; pointer-events: auto; }
.bot__head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); background: linear-gradient(120deg, rgba(255, 91, 31, .16), transparent 60%); }
.bot__avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 30%, #ffb48a, var(--accent)); color: #0a0a0a; }
.bot__who { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.bot__who strong { font-weight: 400; font-size: 1.3rem; line-height: 1; }
.bot__status { display: inline-flex; align-items: center; gap: 6px; color: #8ff0b2; font-size: 9.5px; }
.bot__status i { width: 6px; height: 6px; border-radius: 50%; background: #3cdc82; box-shadow: 0 0 8px #3cdc82; }
.bot__x { width: 34px; height: 34px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .1); }
.bot__log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.bot__msg { max-width: 86%; padding: 10px 13px; border-radius: 16px; font-size: 14px; line-height: 1.5; animation: logIn .3s ease-out; }
.bot__msg p + p { margin-top: 4px; }
.bot__msg--u { align-self: flex-end; background: var(--accent); color: #0a0a0a; border-bottom-right-radius: 4px; }
.bot__msg--b { align-self: flex-start; background: #1c1c1c; border: 1px solid rgba(255, 255, 255, .08); border-bottom-left-radius: 4px; }
.bot__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 16px 10px; }
.bot__chip { padding: 8px 12px; border-radius: 99px; border: 1px solid rgba(255, 91, 31, .45); color: #ffd2b8; font-size: 11px; transition: background .2s; }
.bot__chip:hover { background: rgba(255, 91, 31, .15); }
.bot__chip--wa { background: #1f8f4d; border-color: #1f8f4d; color: #fff; }
.bot__form { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.bot__form input { flex: 1; min-width: 0; font: inherit; font-size: 16px; color: var(--fg); background: #161616; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; padding: 10px 12px; outline: none; }
.bot__form input:focus { border-color: var(--accent); }
.bot__form button { width: 44px; border-radius: 12px; background: var(--accent); color: #0a0a0a; font-size: 18px; }

@media (max-width: 760px) {
  .bot { right: 12px; bottom: 12px; }
  .bot__fab-l { display: none; }
  .bot__fab { padding: 8px; }
  .lab__grid { grid-template-columns: 1fr; }
}
