/* ============================================================
   OPPLINKX — Landing page
   Mikro etkilesimler saf CSS + vanilla JS ile (tech.md: React yok)
   Erisilebilirlik: prefers-reduced-motion tum animasyonlari kapatir
   ============================================================ */

/* ── Yatay tasma korumasi ── */
html, body { max-width: 100%; overflow-x: clip; }

/* ── Zemin: derin gece + neon parilti ── */
.lp-bg {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(70rem 45rem at 12% -8%,  rgba(34,197,94,.13), transparent 62%),
    radial-gradient(55rem 40rem at 92% 4%,   rgba(56,189,248,.07), transparent 58%),
    radial-gradient(60rem 40rem at 50% 108%, rgba(34,197,94,.07), transparent 60%),
    #050810;
}
/* Ince izgara dokusu */
.lp-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255,255,255,.021) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.021) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(70% 55% at 50% 0%, #000 20%, transparent 78%);
}
/* Hero arkasindaki ag tuvali */
#lpNet { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; opacity: .55; }

/* ── Ust bar ── */
.lp-head {
  position: sticky; top: 0; z-index: 60;
  backdrop-filter: blur(14px);
  background: rgba(5,8,16,0);
  border-bottom: 1px solid transparent;
  transition: background .32s ease, border-color .32s ease, box-shadow .32s ease;
}
.lp-head.stuck {
  background: rgba(5,8,16,.82);
  border-bottom-color: rgba(255,255,255,.07);
  box-shadow: 0 12px 40px -24px rgba(0,0,0,.9);
}
/* Okuma ilerleme cubugu */
.lp-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: linear-gradient(90deg, #16a34a, #4ade80);
  box-shadow: 0 0 12px rgba(34,197,94,.65);
  transition: width .08s linear;
}

/* ── Kaydirmada beliren ogeler ── */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); }
.rv.in { opacity: 1; transform: none; }
.rv-l { transform: translateX(-26px); }
.rv-r { transform: translateX(26px); }
.rv-s { transform: scale(.94); }
/* JS yoksa icerik yine gorunur */
.no-js .rv { opacity: 1; transform: none; }

/* ── Cam kart + imlec takipli isik ── */
.lp-card {
  position: relative; overflow: hidden;
  background: rgba(255,255,255,.026);
  border: 1px solid rgba(255,255,255,.075);
  border-radius: 1.15rem;
  transition: border-color .3s ease, transform .3s cubic-bezier(.16,1,.3,1), background .3s ease;
}
.lp-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  transition: opacity .35s ease;
  background: radial-gradient(20rem 20rem at var(--mx,50%) var(--my,50%), rgba(34,197,94,.14), transparent 62%);
}
.lp-card:hover { border-color: rgba(34,197,94,.3); transform: translateY(-4px); background: rgba(255,255,255,.04); }
.lp-card:hover::before { opacity: 1; }

/* Kenarlik parlamasi (one cikan kart) */
.lp-card-glow { box-shadow: 0 0 0 1px rgba(34,197,94,.22), 0 22px 60px -32px rgba(34,197,94,.5); }

/* ── Butonlar ── */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: .85rem;
  font-weight: 600; font-size: .9375rem; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s cubic-bezier(.16,1,.3,1), background .2s, box-shadow .25s, color .2s;
  will-change: transform;
}
.lp-btn-primary {
  background: linear-gradient(180deg, #26d266, #16a34a); color: #04140a;
  box-shadow: 0 10px 34px -12px rgba(34,197,94,.7);
}
.lp-btn-primary:hover { box-shadow: 0 16px 44px -12px rgba(34,197,94,.85); }
.lp-btn-ghost { background: rgba(255,255,255,.05); color: #e2e8f0; border-color: rgba(255,255,255,.12); }
.lp-btn-ghost:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }
.lp-btn-text { color: #94a3b8; }
.lp-btn-text:hover { color: #4ade80; }
.lp-btn:active { transform: scale(.97); }

/* Ok animasyonu */
.lp-btn .arw { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.lp-btn:hover .arw { transform: translateX(3px); }

/* ── Bolum basliklari ── */
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .6875rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: #4ade80; padding: .4rem .75rem; border-radius: 999px;
  background: rgba(34,197,94,.08); border: 1px solid rgba(34,197,94,.18);
}
.lp-h2 { font-size: clamp(1.65rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; color: #fff; line-height: 1.12; }
.lp-lead { color: #94a3b8; font-size: clamp(.95rem, 1.6vw, 1.075rem); line-height: 1.65; }

/* ── Hero basligi: satirlar sirayla yukselir ── */
.hero-line { display: block; overflow: hidden; }
.hero-line > span {
  display: block; transform: translateY(105%);
  animation: heroUp .95s cubic-bezier(.16,1,.3,1) forwards;
}
.hero-line:nth-child(2) > span { animation-delay: .1s; }
@keyframes heroUp { to { transform: none; } }

/* ── Logo cizim animasyonu ── */
.mark-draw path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: drawIn .9s cubic-bezier(.16,1,.3,1) forwards; }
.mark-draw path:nth-of-type(2) { animation-delay: .28s; }
.mark-draw path:nth-of-type(3) { animation-delay: .42s; }
.mark-draw circle { opacity: 0; animation: popIn .5s cubic-bezier(.34,1.56,.64,1) forwards; }
.mark-draw circle:nth-of-type(1) { animation-delay: .18s; }
.mark-draw circle:nth-of-type(2) { animation-delay: .22s; }
.mark-draw circle:nth-of-type(3) { animation-delay: .72s; }
.mark-draw circle:nth-of-type(4) { animation-delay: .82s; }
@keyframes drawIn { to { stroke-dashoffset: 0; } }
@keyframes popIn  { to { opacity: 1; } }

/* Ust bardaki logo: hover'da dugumler nabiz atar */
.lp-logo:hover .nd { animation: pulse 1.1s ease infinite; }
.lp-logo .nd:nth-of-type(4) { animation-delay: .14s; }
@keyframes pulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.22); } }
.lp-logo .nd { transform-box: fill-box; transform-origin: center; }

/* ── Sektor seridi (marquee) ── */
.lp-marquee { display: flex; gap: .6rem; width: max-content; animation: slide 46s linear infinite; }
.lp-marquee-wrap:hover .lp-marquee { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.lp-chip {
  display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap;
  padding: .55rem 1rem; border-radius: 999px; font-size: .8125rem; color: #cbd5e1;
  background: rgba(255,255,255,.032); border: 1px solid rgba(255,255,255,.075);
  transition: color .22s, border-color .22s, background .22s, transform .22s;
}
.lp-chip:hover { color: #4ade80; border-color: rgba(34,197,94,.35); background: rgba(34,197,94,.07); transform: translateY(-2px); }

/* ── Sekme (Hunter / Firma) ── */
.lp-tabs { position: relative; display: inline-flex; padding: .3rem; border-radius: 999px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); }
.lp-tab { position: relative; z-index: 1; padding: .55rem 1.35rem; border-radius: 999px;
  font-size: .875rem; font-weight: 600; color: #94a3b8; transition: color .25s; cursor: pointer; background: none; border: 0; }
.lp-tab.on { color: #04140a; }
.lp-tab-pill { position: absolute; top: .3rem; bottom: .3rem; border-radius: 999px;
  background: linear-gradient(180deg,#26d266,#16a34a); transition: left .35s cubic-bezier(.16,1,.3,1), width .35s cubic-bezier(.16,1,.3,1); }
.lp-pane[hidden] { display: none; }

/* ── Adim listesi: sol cizgi dolarak ilerler ── */
.lp-steps { position: relative; padding-left: 2.75rem; }
.lp-steps::before { content: ''; position: absolute; left: 1.05rem; top: .9rem; bottom: .9rem; width: 2px; background: rgba(255,255,255,.08); }
.lp-steps::after {
  content: ''; position: absolute; left: 1.05rem; top: .9rem; width: 2px; height: var(--fill, 0%);
  background: linear-gradient(180deg,#4ade80,#16a34a); box-shadow: 0 0 14px rgba(34,197,94,.55);
  transition: height .6s cubic-bezier(.16,1,.3,1);
}
.lp-step { position: relative; }
.lp-step-dot {
  position: absolute; left: -2.75rem; top: .05rem; width: 2.15rem; height: 2.15rem; border-radius: 999px;
  display: grid; place-items: center; font-size: .8125rem; font-weight: 700;
  background: #0a0f1c; color: #64748b; border: 2px solid rgba(255,255,255,.1);
  transition: color .3s, border-color .3s, background .3s, transform .3s;
}
.lp-step.in .lp-step-dot { color: #04140a; background: #22c55e; border-color: #22c55e; transform: scale(1.06); }

/* ── Komisyon hesaplayici ── */
.lp-range { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 999px;
  outline: none;
  /* Dolu kisim neon, kalani gri — --p degeri JS tarafindan guncellenir */
  background: linear-gradient(90deg, #22c55e 0%, #4ade80 var(--p,50%), rgba(255,255,255,.1) var(--p,50%)); }
.lp-range::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 999px; cursor: grab;
  background: #22c55e; border: 3px solid #050810; box-shadow: 0 0 0 1px rgba(34,197,94,.6), 0 0 18px rgba(34,197,94,.55);
  transition: transform .18s; }
.lp-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.14); }
.lp-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 999px; cursor: grab; border: 3px solid #050810;
  background: #22c55e; box-shadow: 0 0 0 1px rgba(34,197,94,.6); }
.lp-bar { height: .55rem; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden; display: flex; }
.lp-bar > i { display: block; height: 100%; transition: width .5s cubic-bezier(.16,1,.3,1); }

/* Sayac degisiminde kisa parlama */
.lp-num { transition: color .25s; }
.lp-num.flash { color: #4ade80; }

/* ── Surec zaman cizelgesi ── */
.lp-track { position: relative; }
.lp-track::before { content: ''; position: absolute; left: 0; right: 0; top: 1.1rem; height: 2px; background: rgba(255,255,255,.08); }
.lp-track::after { content: ''; position: absolute; left: 0; top: 1.1rem; height: 2px; width: var(--fill,0%);
  background: linear-gradient(90deg,#16a34a,#4ade80); box-shadow: 0 0 14px rgba(34,197,94,.5); transition: width .8s cubic-bezier(.16,1,.3,1); }

/* ── SSS akordeon ── */
.lp-acc { border-bottom: 1px solid rgba(255,255,255,.06); }
.lp-acc summary { list-style: none; cursor: pointer; padding: 1.05rem 0; display: flex; gap: 1rem;
  align-items: flex-start; justify-content: space-between; color: #e2e8f0; font-weight: 600; font-size: .9375rem; }
.lp-acc summary::-webkit-details-marker { display: none; }
.lp-acc summary:hover { color: #fff; }
.lp-acc .ico { flex: 0 0 auto; width: 1.4rem; height: 1.4rem; border-radius: 999px; display: grid; place-items: center;
  background: rgba(255,255,255,.06); transition: transform .3s cubic-bezier(.16,1,.3,1), background .25s; margin-top: .1rem; }
.lp-acc[open] .ico { transform: rotate(45deg); background: rgba(34,197,94,.18); }
.lp-acc-body { overflow: hidden; }
.lp-acc[open] .lp-acc-body { animation: accOpen .38s cubic-bezier(.16,1,.3,1); }
@keyframes accOpen { from { opacity: 0; transform: translateY(-6px); } }

/* ── Telefon cercevesi (PWA bolumu) ── */
.lp-phone {
  width: 218px; border-radius: 2rem; padding: .55rem;
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03));
  box-shadow: 0 40px 90px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.07);
  animation: floaty 7s ease-in-out infinite;
}
@keyframes floaty { 0%,100% { transform: translateY(0) rotate(-1.4deg); } 50% { transform: translateY(-12px) rotate(-1.4deg); } }
.lp-phone-in { border-radius: 1.6rem; background: #050810; overflow: hidden; }

/* ── Yuzen istatistik karti ── */
.lp-float { animation: floaty2 6s ease-in-out infinite; }
.lp-float.d1 { animation-delay: -2.4s; }
@keyframes floaty2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

/* ── Bolum ayirici (ince isik cizgisi) ── */
.lp-sep { height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.1), transparent); }

/* ── Kaydirma davranisi ── */
html { scroll-behavior: smooth; }
:target { scroll-margin-top: 5.5rem; }
a[href^="#"] { scroll-margin-top: 5.5rem; }

/* ── Erisilebilirlik: hareket azaltma ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1 !important; transform: none !important; }
  .hero-line > span { transform: none !important; }
  .mark-draw path { stroke-dashoffset: 0 !important; }
  .mark-draw circle { opacity: 1 !important; }
  #lpNet { display: none; }
  html { scroll-behavior: auto; }
}

/* ── Odak gorunurlugu (klavye) ── */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 2px solid #4ade80; outline-offset: 3px; border-radius: .5rem;
}
