/* =========================================================================
   Evert ERP — etkileşim ve hareket katmanı (site.css üzerine)
   ========================================================================= */

/* ---------- imleç ışığı ---------- */
.spotlight {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0; transition: opacity .5s;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 40%), rgba(25,195,201,.16), rgba(0,155,164,.05) 35%, transparent 60%);
}
.hero > .spotlight { z-index: -1; }
.has-spot:hover > .spotlight { opacity: 1; }
.section.tone-dark > .container { position: relative; z-index: 1; }
.cta-band > div, .highlight > :not(.hexgrid):not(.spotlight) { position: relative; z-index: 1; }

/* ---------- başlık açılışı: harf kuyrukları kesilmesin ---------- */
.split-words .w { padding-bottom: .1em; margin-bottom: -.1em; }
.eyebrow::before { transition: width .8s var(--ease) .15s; }
.js [data-reveal]:not(.in) .eyebrow::before, .js .eyebrow[data-reveal]:not(.in)::before { width: 0; }

/* ---------- hero: kaydırma ipucu ---------- */
.hero-grid[data-parallax] { will-change: transform, opacity; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 18px; translate: -50% 0; width: 26px; height: 42px; border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,.3); display: grid; justify-items: center; padding-top: 8px; transition: border-color .3s;
}
.scroll-cue span { width: 4px; height: 8px; border-radius: 4px; background: var(--turkuaz-300); animation: cue 1.8s var(--ease) infinite; }
.scroll-cue:hover { border-color: var(--turkuaz-300); }
@keyframes cue { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
@media (max-width: 820px) { .scroll-cue { display: none; } }

/* ---------- kilometre sayacı ---------- */
/* .stat-strip .st span gibi genel kurallar sayaç parçalarına sızmasın */
.odo span { font-size: inherit !important; margin: 0 !important; color: inherit !important; line-height: 1 !important; }
.odo { display: inline-flex !important; white-space: nowrap; }
.odo > span[aria-hidden] { display: inline-flex !important; }
.odo .odo-col { display: inline-block !important; height: 1em; overflow: hidden; font-variant-numeric: tabular-nums; }
.odo .odo-strip { display: block !important; white-space: pre; transition: transform 1.6s cubic-bezier(.16, 1, .3, 1); }
.odo .odo-ch { display: inline-block !important; white-space: pre; }
.stat-strip .st { position: relative; overflow: hidden; transition: background .4s; }
.stat-strip .st::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; transform: scaleX(0); transform-origin: left;
  background: linear-gradient(90deg, transparent, var(--turkuaz-400), transparent); transition: transform 1.2s var(--ease);
}
.stat-strip .st:has(.odo-done)::after { transform: scaleX(1); }
.stat-strip .st:hover { background: rgba(255,255,255,.04); }
.stat-strip .st:hover .si { background: var(--turkuaz); color: #fff; transform: rotate(-8deg) scale(1.06); }
.stat-strip .st .si { transition: background .3s, color .3s, transform .4s var(--ease); }
.odo-done { text-shadow: 0 0 22px rgba(95,217,220,.45); transition: text-shadow 1s; }

/* ---------- modül şeridi ---------- */
.marquee-band { position: relative; background: var(--petrol-900); padding: 18px 0; display: grid; gap: 12px; overflow: hidden; border-top: 1px solid rgba(255,255,255,.06); }
.marquee-band::before, .marquee-band::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.marquee-band::before { left: 0; background: linear-gradient(90deg, var(--petrol-900), transparent); }
.marquee-band::after { right: 0; background: linear-gradient(-90deg, var(--petrol-900), transparent); }
.marquee { overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: mq 60s linear infinite; }
.marquee.rev .marquee-track { animation-direction: reverse; animation-duration: 70s; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
@keyframes mq { to { transform: translateX(-50%); } }
.mq-item {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; white-space: nowrap;
  border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: rgba(255,255,255,.78);
  font: 600 .92rem var(--font-head); transition: background .3s, border-color .3s, color .3s, transform .3s var(--ease);
}
.mq-item .icon { width: 30px; height: 30px; padding: 6px; border-radius: 50%; background: rgba(0,155,164,.2); color: var(--turkuaz-300); transition: background .3s, color .3s; }
.mq-item:hover, .mq-item:focus-visible { background: rgba(0,155,164,.18); border-color: rgba(95,217,220,.45); color: #fff; transform: translateY(-2px); }
.mq-item:hover .icon { background: var(--turkuaz); color: #fff; }

/* ---------- tek veri: tıklanabilir akış ---------- */
.try-hint { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--petrol-700); padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.6); border: 1px dashed rgba(0,155,164,.4); width: fit-content; }
.try-hint .icon { color: var(--turkuaz); animation: tap 2.4s var(--ease) infinite; }
@keyframes tap { 0%, 60%, 100% { transform: none; } 70% { transform: scale(.82); } 80% { transform: scale(1.08); } }
button.wf-node { width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
button.wf-node:hover:not(.on) { border-color: rgba(0,155,164,.35); background: #fff; }

/* ---------- sektör panelleri ---------- */
.sector-accordion { display: flex; gap: 12px; height: clamp(380px, 38vw, 480px); }
.sa-panel {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff;
  transition: flex-grow .7s var(--ease), box-shadow .5s; background: var(--petrol-900);
}
.sa-panel.active { flex-grow: 4.2; box-shadow: var(--shadow-lg); }
.sa-panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(.75) brightness(.9); transform: scale(1.08); transition: transform 1.4s var(--ease), filter .6s; }
.sa-panel.active img { transform: scale(1); filter: saturate(1.05); }
.sa-panel::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(4,42,48,.15) 20%, rgba(4,42,48,.94)); transition: background .6s; }
.sa-panel:not(.active)::after { background: linear-gradient(180deg, rgba(4,42,48,.35), rgba(4,42,48,.92)); }
.sa-no { position: absolute; top: 16px; left: 18px; font: 800 .8rem var(--font-head); letter-spacing: .1em; color: rgba(255,255,255,.55); }
.sa-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; display: grid; gap: 8px; justify-items: start; }
.sa-icon { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .4s; }
.sa-panel.active .sa-icon { background: var(--turkuaz); }
.sa-icon .icon { width: 24px; height: 24px; }
.sa-body b { font: 700 1.05rem/1.2 var(--font-head); }
.sa-panel.active .sa-body b { font-size: clamp(1.3rem, 2vw, 1.7rem); }
.sa-body small, .sa-go { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .5s var(--ease); max-width: 44ch; }
.sa-body small { font-size: .95rem; color: rgba(255,255,255,.78); line-height: 1.5; }
.sa-go { display: inline-flex; align-items: center; gap: 8px; font: 600 .92rem var(--font-head); color: var(--turkuaz-300); white-space: nowrap; }
.sa-panel.active small, .sa-panel.active .sa-go { opacity: 1; transform: none; transition-delay: .25s; }
.sa-panel:not(.active) small, .sa-panel:not(.active) .sa-go { position: absolute; pointer-events: none; }
@media (max-width: 1100px) {
  .sector-accordion { display: grid; grid-template-columns: repeat(2, 1fr); height: auto; }
  .sa-panel, .sa-panel.active { aspect-ratio: 4 / 3.2; }
  .sa-panel small, .sa-panel .sa-go { opacity: 1 !important; transform: none !important; position: static !important; }
  .sa-panel .sa-body b { font-size: 1.15rem !important; }
  .sa-panel img { transform: none; filter: saturate(1); }
}
@media (max-width: 560px) { .sector-accordion { grid-template-columns: 1fr; } .sa-panel small { display: none; } }

/* ---------- Evert AI sohbet: giriş ve öneriler ---------- */
.wc-input { cursor: text; background: #fff; transition: border-color .2s, box-shadow .2s; }
.wc-input:focus-within { border-color: var(--turkuaz); box-shadow: 0 0 0 4px rgba(0,155,164,.12); }
.wc-input .icon { color: var(--turkuaz); flex: none; }
.wc-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; font-size: .84rem; color: var(--murekkep); }
.wc-input input::placeholder { color: var(--soluk); opacity: 1; }
.wc-input .send { border: 0; cursor: pointer; transition: transform .2s, background .2s; }
.wc-input .send:hover { transform: scale(1.08); background: var(--petrol); }
.wc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wc-chips button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--cizgi); background: var(--nane-50); font: 600 .74rem var(--font-head); color: var(--petrol); transition: all .25s var(--ease); }
.wc-chips button:hover { border-color: var(--turkuaz); transform: translateY(-1px); }
.wc-chips button.on { background: var(--turkuaz); border-color: var(--turkuaz); color: #fff; }
.wc-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: 700 .8rem var(--font-head); color: var(--turkuaz); }
.wc-link .icon { width: 15px; height: 15px; }
.wc-chart .b { cursor: default; }
.wc-chart .b:hover { filter: brightness(1.12); }

/* ---------- paket bulucu ---------- */
.plan-finder { display: grid; justify-items: center; gap: 14px; margin: -20px auto 34px; }
.pf-q { display: inline-flex; align-items: center; gap: 8px; font: 700 .95rem var(--font-head); color: var(--petrol); }
.pf-q .icon { color: var(--turkuaz); }
.pf-opts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(255,255,255,.7); border: 1px solid var(--cizgi); box-shadow: var(--shadow-sm); }
.pf-opts button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; font: 600 .88rem var(--font-head); color: var(--soluk); transition: all .3s var(--ease); }
.pf-opts button .icon { width: 17px; height: 17px; }
.pf-opts button:hover { color: var(--petrol); background: var(--nane-50); }
.pf-opts button.on { background: var(--petrol); color: #fff; box-shadow: 0 8px 20px -10px rgba(7,62,70,.8); }
.plan .pmatch { position: absolute; top: -13px; right: 20px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--ok); color: #fff; font: 700 .7rem var(--font-head); letter-spacing: .04em; opacity: 0; transform: translateY(6px) scale(.9); transition: all .4s var(--ease); pointer-events: none; }
.plan .pmatch .icon { width: 14px; height: 14px; }
.plans .plan { transition: transform .45s var(--ease), box-shadow .45s, opacity .45s, filter .45s; }
.plans.picking .plan:not(.match) { opacity: .45; filter: saturate(.5); }
.plans.picking .plan.match { box-shadow: 0 0 0 2px var(--turkuaz), var(--glow); transform: translateY(-12px); }
.plans.picking .plan.match .pmatch { opacity: 1; transform: none; }
@media (max-width: 820px) { .pf-opts { border-radius: 22px; } .plan-finder { margin-top: -8px; } }

/* ---------- kurulum: ilerleme çizgisi ---------- */
.steps[data-progress]::after {
  content: ""; position: absolute; left: 27px; top: 10px; width: 2px; height: calc((100% - 20px) * var(--p, 0));
  background: linear-gradient(var(--turkuaz-400), var(--turkuaz)); box-shadow: 0 0 12px var(--turkuaz-400); border-radius: 2px;
}
.steps[data-progress] .step .sn { transition: background .5s, box-shadow .5s, transform .5s var(--ease); }
.steps[data-progress] .step.on .sn { background: var(--turkuaz); transform: scale(1.06); }
.steps[data-progress] .step .sb { transition: border-color .5s, box-shadow .5s, transform .5s var(--ease); }
.steps[data-progress] .step.on .sb { border-color: rgba(0,155,164,.35); box-shadow: var(--shadow-sm); }

/* ---------- CTA bandı: dönen ışık kenarı ---------- */
@property --ang { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; z-index: 0; pointer-events: none;
  background: conic-gradient(from var(--ang), transparent 0 70%, rgba(95,217,220,.9) 82%, transparent 94%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: ang 6s linear infinite;
}
@keyframes ang { to { --ang: 360deg; } }
.highlight { box-shadow: inset 0 0 0 1px rgba(95,217,220,.12); }

/* ---------- yukarı düğmesi: ilerleme halkası ---------- */
.to-top { bottom: 92px; }
.to-top .tt-ring { position: absolute; inset: -3px; width: calc(100% + 6px); height: calc(100% + 6px); transform: rotate(-90deg); }
.to-top .tt-ring circle { fill: none; stroke: var(--turkuaz-300); stroke-width: 2.5; stroke-dasharray: 138.2; stroke-dashoffset: calc(138.2 * (1 - var(--p, 0))); stroke-linecap: round; }

/* ---------- asistan ---------- */
.assist { position: fixed; right: 20px; bottom: 20px; z-index: 95; display: grid; justify-items: end; gap: 12px; }
.assist-fab {
  position: relative; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--turkuaz), var(--petrol-700)); color: #fff; box-shadow: 0 14px 34px -12px rgba(0,155,164,.85), inset 0 1px 0 rgba(255,255,255,.2);
  font: 700 .92rem var(--font-head); transition: transform .3s var(--ease), padding .4s var(--ease), box-shadow .3s;
}
.assist-fab::before { content: ""; position: absolute; inset: -4px; border-radius: inherit; border: 2px solid rgba(25,195,201,.5); animation: halo 2.8s ease-out infinite; pointer-events: none; }
@keyframes halo { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.18); } }
.af-icon { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); }
.af-icon .icon { position: absolute; width: 21px; height: 21px; transition: opacity .25s, transform .35s var(--ease); }
.af-icon .af-x { opacity: 0; transform: rotate(-90deg) scale(.6); }
.af-label { white-space: nowrap; overflow: hidden; max-width: 220px; transition: max-width .45s var(--ease), opacity .3s; }
.assist.compact:not(.open) .af-label { max-width: 0; opacity: 0; }
.assist.compact:not(.open) .assist-fab { padding: 0 8px; gap: 0; }
.assist.open .assist-fab::before { animation: none; opacity: 0; }
.assist.open .af-icon .icon:not(.af-x) { opacity: 0; transform: rotate(90deg) scale(.6); }
.assist.open .af-icon .af-x { opacity: 1; transform: none; }
.assist.open .af-label { max-width: 0; opacity: 0; }
.assist.open .assist-fab { padding: 0 8px; gap: 0; }

.assist-nudge {
  position: relative; max-width: 270px; padding: 14px 36px 14px 16px; border-radius: 18px 18px 6px 18px; background: #fff; color: var(--murekkep);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(7,62,70,.06); font-size: .88rem; line-height: 1.45; cursor: pointer;
  opacity: 0; transform: translateY(10px) scale(.96); transform-origin: bottom right; transition: opacity .35s, transform .45s var(--ease);
}
.assist-nudge.show { opacity: 1; transform: none; }
.assist-nudge:not(.show) { pointer-events: none; }
.assist-nudge b { color: var(--petrol); font-family: var(--font-head); }
.an-close { position: absolute; top: 8px; right: 8px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; color: var(--soluk); }
.an-close:hover { background: var(--nane-50); color: var(--petrol); }
.an-close .icon { width: 14px; height: 14px; }

.assist-panel {
  width: min(380px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden;
  background: #fff; box-shadow: 0 30px 70px -20px rgba(4,42,48,.5), 0 0 0 1px rgba(7,62,70,.07);
  opacity: 0; transform: translateY(14px) scale(.97); transform-origin: bottom right; transition: opacity .28s, transform .4s var(--ease);
}
.assist.open .assist-panel { opacity: 1; transform: none; }
.ap-head { position: relative; display: flex; align-items: center; gap: 12px; padding: 16px 16px 16px 18px; color: #fff; background: radial-gradient(300px 120px at 90% 0%, rgba(25,195,201,.45), transparent 70%), linear-gradient(135deg, var(--petrol), var(--petrol-900)); }
.ap-head b { display: block; font: 700 1rem var(--font-head); }
.ap-head small { display: block; font-size: .78rem; color: rgba(255,255,255,.7); }
.ap-avatar { flex: none; width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); }
.ap-avatar img { width: 26px; height: 26px; object-fit: contain; }
.ap-close { margin-left: auto; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: rgba(255,255,255,.8); }
.ap-close:hover { background: rgba(255,255,255,.1); color: #fff; }
.ap-body { padding: 16px; display: grid; gap: 12px; overflow-y: auto; }
.ap-bubble { padding: 12px 14px; border-radius: 4px 16px 16px 16px; background: var(--nane-50); font-size: .88rem; line-height: 1.5; color: var(--murekkep); }
.ap-bubble button { font: 600 .86rem var(--font-body); color: var(--turkuaz); text-decoration: underline; text-underline-offset: 2px; padding: 0; }
.ap-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px; border-radius: 14px; border: 1.5px solid var(--cizgi); transition: border-color .2s, box-shadow .2s; }
.ap-search:focus-within { border-color: var(--turkuaz); box-shadow: 0 0 0 4px rgba(0,155,164,.12); }
.ap-search .icon { color: var(--turkuaz); width: 18px; height: 18px; }
.ap-search input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: .92rem; background: none; color: var(--murekkep); }
.ap-results { display: grid; gap: 4px; }
.ap-results:empty { display: none; }
.ap-hit { display: flex; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 12px; animation: fadeUp .35s var(--ease) both; transition: background .2s; }
.ap-hit:nth-child(2) { animation-delay: .04s; } .ap-hit:nth-child(3) { animation-delay: .08s; } .ap-hit:nth-child(4) { animation-delay: .12s; } .ap-hit:nth-child(5) { animation-delay: .16s; } .ap-hit:nth-child(6) { animation-delay: .2s; }
.ap-hit:hover, .ap-hit:focus-visible, .ap-hit:first-child { background: var(--nane-50); }
.ah-i { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--nane); color: var(--petrol); }
.ah-i .icon { width: 18px; height: 18px; }
.ap-hit b { display: block; font: 700 .88rem/1.25 var(--font-head); color: var(--petrol); }
.ap-hit small { display: block; font-size: .76rem; color: var(--soluk); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.ap-empty { font-size: .86rem; color: var(--soluk); padding: 6px 4px; }
.ap-empty a { color: var(--turkuaz); font-weight: 600; text-decoration: underline; }
.ap-quick { display: grid; gap: 6px; padding-top: 12px; border-top: 1px solid var(--cizgi); }
.ap-quick a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--cizgi); transition: border-color .2s, transform .25s var(--ease), background .2s; }
.ap-quick a:hover { border-color: var(--turkuaz); background: var(--nane-50); transform: translateX(3px); }
.ap-quick a > .icon { color: var(--turkuaz); width: 20px; height: 20px; }
.ap-quick b { display: block; font: 700 .88rem var(--font-head); color: var(--petrol); }
.ap-quick small { display: block; font-size: .76rem; color: var(--soluk); }
@media (max-width: 600px) {
  .assist { right: 14px; bottom: 14px; }
  .assist-fab { height: 52px; }
  .assist:not(.open) .af-label { max-width: 0; opacity: 0; }
  .assist:not(.open) .assist-fab { padding: 0 6px; gap: 0; }
  .to-top { right: 14px; bottom: 80px; width: 44px; height: 44px; }
}

/* ---------- hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee-track { animation: none; }
  .marquee { overflow-x: auto; scrollbar-width: none; }
  .assist-fab::before, .cta-band::before { animation: none; }
  .spotlight { display: none; }
}

/* ---------- ana sayfa hero: 3B evren ---------- */
.hero canvas.cosmos { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.hero:has(canvas.cosmos) { background: radial-gradient(1100px 620px at 72% 38%, #0A4E59 0%, transparent 62%), radial-gradient(900px 500px at 8% 0%, #0B3A4A 0%, transparent 60%), linear-gradient(180deg, #021A1F, var(--petrol-950) 45%, var(--petrol-900)); }
.hero:has(canvas.cosmos) .stage-ring { border-color: rgba(95,217,220,.14); }
.hero.dragging { cursor: grabbing; user-select: none; }
