/* ==========================================================================
   Kolayla — Tek sayfa site
   Renkler: #1942FE (mavi) · #FBFFF1 (krem) · #0F0A0A (mürekkep)
   Fontlar: Juturu Bold (başlıklar, marka) + Instrument Sans (gövde)
   ========================================================================== */

/* ---------- Fontlar ---------- */
/* Başlıklarda yalnızca Bold kullanılıyor → tek dosya.
   Not: ğ Ğ ă Ă şapkaları Bold ağırlığına uygun olacak şekilde yeniden çizildi (orijinali çok inceydi). */
@font-face { font-family: "Juturu"; src: url("../assets/fonts/Juturu-Bold.woff2") format("woff2"), url("../assets/fonts/Juturu-Bold.otf") format("opentype"); font-weight: 700; font-style: normal; font-display: swap; }

/* ---------- Tokenlar ---------- */
:root {
  --blue: #1942FE;
  --blue-700: #0E30D6;
  --blue-100: #DCE3FF;
  --blue-50: #EEF1FF;
  --cream: #FBFFF1;
  --ink: #0F0A0A;
  --ink-80: rgba(15, 10, 10, .8);
  --ink-70: rgba(15, 10, 10, .7);
  --line: rgba(15, 10, 10, .1);
  --white: #FFFFFF;
  --danger: #C62828;

  --glass-bg: linear-gradient(140deg, rgba(255, 255, 255, .72) 0%, rgba(255, 255, 255, .38) 100%);
  --glass-border: rgba(255, 255, 255, .85);
  --glass-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .95),
    inset 0 -1px 0 rgba(25, 66, 254, .06),
    0 1px 2px rgba(15, 10, 10, .04),
    0 18px 40px -18px rgba(25, 66, 254, .28);
  --glass-blur: blur(18px) saturate(180%);

  --font-display: "Juturu", "Instrument Sans", ui-sans-serif, system-ui, sans-serif;
  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 28px;
  --r-pill: 999px;

  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1240px;
  --header-h: 72px;
  --section-y: clamp(80px, 12vw, 152px);

  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --dur-fast: .18s;
  --dur: .35s;
  --dur-slow: .9s;

  --z-bg: -1;
  --z-header: 40;
  --z-cta: 30;
  --z-toast: 60;
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3, .step-num, .footer-tag { font-family: var(--font-display); font-weight: 700; line-height: 1.08; letter-spacing: -.025em; text-wrap: balance; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue); color: var(--cream); }

.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: calc(var(--maxw) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

.skip-link {
  position: fixed; left: 16px; top: -100px; z-index: 100;
  padding: 12px 18px; border-radius: var(--r-sm);
  background: var(--ink); color: var(--cream); font-weight: 600;
  transition: top var(--dur) var(--ease-out);
}
.skip-link:focus { top: 16px; }

.accent { color: var(--blue); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue);
}
.h2 { font-size: clamp(2.1rem, 6.4vw, 3.9rem); margin-top: 14px; }
.section-lead { margin-top: 18px; font-size: clamp(1.0625rem, 1.6vw, 1.1875rem); color: var(--ink-70); max-width: 54ch; }

/* ---------- Arkaplan aurası (durağan: hareket yalnızca anlamlı yerlerde) ---------- */
.aura { position: fixed; inset: 0; z-index: var(--z-bg); pointer-events: none; overflow: hidden; }
.aura span { position: absolute; border-radius: 50%; }
.aura span:nth-child(1) {
  width: 70vmax; height: 70vmax; top: -30vmax; right: -24vmax;
  background: radial-gradient(closest-side, rgba(25, 66, 254, .14), rgba(25, 66, 254, 0));
}
.aura span:nth-child(2) {
  width: 60vmax; height: 60vmax; bottom: -30vmax; left: -26vmax;
  background: radial-gradient(closest-side, rgba(25, 66, 254, .1), rgba(25, 66, 254, 0));
}
.aura span:nth-child(3) {
  width: 40vmax; height: 40vmax; top: 40%; left: 40%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0));
}

/* ---------- Özel imleç (yalnızca fare kullanan cihazlar) ---------- */
:root {
  --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cpath d='M4 3 24 12 12 24Z' fill='%230F0A0A' fill-opacity='.18' stroke='%230F0A0A' stroke-opacity='.18' stroke-width='1.6' stroke-linejoin='round' transform='translate(1 1.4)'/%3E%3Cpath d='M4 3 24 12 12 24Z' fill='%231942FE' stroke='%23FBFFF1' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") 4 3, auto;
}
@media (hover: hover) and (pointer: fine) {
  *, *::before, *::after { cursor: var(--cursor) !important; }
  input, textarea, [contenteditable="true"] { cursor: text !important; }
}

/* İmleç ışığı: tüm sitede imleci izler, içeriğin arkasında kalır (cam kartlardan kırılarak görünür) */
.cursor-glow {
  position: fixed; left: 0; top: 0; z-index: var(--z-bg);
  width: 560px; height: 560px; margin: -280px 0 0 -280px;
  pointer-events: none; opacity: 0;
  transition: opacity .5s var(--ease-out);
}
.cursor-glow::before {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 66, 254, .28) 0%, rgba(25, 66, 254, .13) 32%, rgba(25, 66, 254, 0) 66%);
  transform: scale(.85);
  transition: transform .5s var(--ease-out), opacity .5s var(--ease-out);
}
.cursor-glow.is-on { opacity: 1; }
.cursor-glow.is-hot::before { transform: scale(1.1); background: radial-gradient(circle, rgba(25, 66, 254, .36) 0%, rgba(25, 66, 254, .16) 32%, rgba(25, 66, 254, 0) 66%); }
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }

/* ---------- Liquid glass ---------- */
.glass {
  position: relative;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  isolation: isolate;
}
/* üst parlaklık (specular highlight) */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    radial-gradient(120% 60% at 0% 0%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 55%),
    radial-gradient(80% 50% at 100% 100%, rgba(25, 66, 254, .07), rgba(25, 66, 254, 0) 70%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: rgba(255, 255, 255, .92); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass { background: var(--white); -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- Butonlar ---------- */
.btn {
  --h: 48px;
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), color var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.btn .ic { transition: transform var(--dur) var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn-sm { --h: 42px; padding: 0 18px; font-size: .9375rem; }
.btn-lg { --h: 56px; padding: 0 28px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

.btn-primary { background: var(--blue); color: var(--cream); box-shadow: 0 10px 24px -10px rgba(25, 66, 254, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ink { background: var(--ink); color: var(--cream); box-shadow: 0 10px 24px -12px rgba(15, 10, 10, .5), inset 0 1px 0 rgba(255, 255, 255, .14); }
.btn-glass {
  background: rgba(255, 255, 255, .55); color: var(--ink); border-color: rgba(255, 255, 255, .9);
  box-shadow: inset 0 1px 0 #fff, 0 8px 20px -12px rgba(25, 66, 254, .3);
  -webkit-backdrop-filter: blur(12px) saturate(160%); backdrop-filter: blur(12px) saturate(160%);
}
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--blue-700); box-shadow: 0 14px 30px -10px rgba(25, 66, 254, .7), inset 0 1px 0 rgba(255, 255, 255, .25); }
  .btn-ink:hover { background: #2A2424; }
  .btn-glass:hover { background: rgba(255, 255, 255, .85); }
  .btn:hover .ic { transform: translateX(3px); }
  .btn[href="#hizmetler"]:hover .ic { transform: translateY(3px); }
}

.icon-btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .9);
  background: rgba(255, 255, 255, .6); color: var(--ink);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px -10px rgba(25, 66, 254, .35);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  touch-action: manipulation; -webkit-tap-highlight-color: transparent;
  transition: transform var(--dur-fast) var(--ease-out), background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .icon-btn:hover { background: var(--ink); color: var(--cream); } }
.icon-btn .ic-play { display: none; }
.icon-btn[aria-pressed="true"] .ic-pause { display: none; }
.icon-btn[aria-pressed="true"] .ic-play { display: block; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: var(--z-header);
  padding-top: env(safe-area-inset-top);
  transition: background-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(251, 255, 241, .72);
  -webkit-backdrop-filter: blur(16px) saturate(180%); backdrop-filter: blur(16px) saturate(180%);
  border-bottom-color: rgba(15, 10, 10, .06);
  box-shadow: 0 8px 24px -20px rgba(15, 10, 10, .4);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; min-height: 44px; }
.logo-svg { height: 30px; width: auto; }
.logo-m { fill: var(--blue); }
.logo-w { fill: var(--ink); }
.nav { display: none; gap: 6px; padding: 5px; border-radius: var(--r-pill); }
.nav a {
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 500; font-size: .9688rem; color: var(--ink-80);
  transition: background-color var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.nav a:hover, .nav a.is-active { background: rgba(255, 255, 255, .8); color: var(--ink); box-shadow: inset 0 0 0 1px rgba(15, 10, 10, .06); }
@media (min-width: 900px) {
  .nav { display: flex; background: rgba(255, 255, 255, .45); border: 1px solid rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  .logo-svg { height: 34px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--header-h) + 32px) 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
.hero-title { font-size: clamp(3.4rem, 15vw, 7.6rem); line-height: .98; letter-spacing: -.04em; margin-top: 18px; }
/* alt pay: "y" gibi aşağı sarkan harfler kesilmesin; üst pay: "İ" noktası */
.hero-title .line { display: block; overflow: hidden; padding: .08em 0 .26em; margin: -.08em 0 -.26em; }
.hero-title .line > span { display: inline-block; }
.hero-lead { margin-top: 22px; font-size: clamp(1.0625rem, 1.8vw, 1.25rem); color: var(--ink-70); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* Hero giriş animasyonu (yalnızca CSS → anında, JS beklemez) */
@media (prefers-reduced-motion: no-preference) {
  .hero-in { animation: rise 1s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
  .hero-title .hero-in { animation-name: rise-line; animation-duration: 1.1s; }
  /* "backwards": animasyon bitince stil bırakılır → kalıcı katman (stacking context) oluşmaz,
     figürün "multiply" karışımı arkadaki imleç ışığına ulaşabilir */
  .hero-visual { animation: fade-scale 1.4s var(--ease-out) .3s backwards; }
}
@keyframes rise { from { opacity: 0; transform: translate3d(0, 24px, 0); } to { opacity: 1; transform: none; } }
@keyframes rise-line { from { transform: translate3d(0, 105%, 0); } to { transform: none; } }
@keyframes fade-scale { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* Hero görseli — figür (kafa imleci izler) + spot ışığı */
.hero-visual { position: relative; width: 100%; max-width: 620px; margin-inline: auto; }
.hero-figure {
  position: relative; width: 100%; aspect-ratio: 1 / 1;
  /* görselin krem zemini "çarpma" ile şeffaflaşır → arkadaki imleç ışığı görselin içinden de geçer, çerçeve oluşmaz */
  mix-blend-mode: multiply;
  /* görselin krem zeminini sayfaya erit (dört kenar) */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 74%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 14%, #000 74%, transparent 100%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-composite: intersect;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; user-select: none; -webkit-user-drag: none; }
/* WebGL katmanı: kafa imleci takip eder (hazır olunca görselin üstünde belirir) */
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s var(--ease-out); }
.hero-figure.is-3d .hero-canvas { opacity: 1; }
/* canvas zemini şeffaf çizdiği için, hazır olunca alttaki opak görsel gizlenir (çapraz geçişle) */
.hero-figure img { transition: opacity .6s var(--ease-out); }
.hero-figure.is-3d img { opacity: 0; }

/* Vizör: canlı parıltı + tarama çizgisi (görselin vizör alanına hizalı) */
.visor {
  position: absolute; left: 31%; top: 41.8%; width: 38.4%; height: 8.2%;
  border-radius: 6px; overflow: hidden; mix-blend-mode: screen; pointer-events: none;
  transform: translate3d(var(--hx, 0px), var(--hy, 0px), 0); /* kafayla birlikte hareket */
  background: radial-gradient(60% 120% at 50% 50%, rgba(90, 130, 255, .4), rgba(25, 66, 254, 0) 70%);
}
/* Tek, seyrek bir tarama: 7 sn'de bir geçer */
.visor-scan {
  position: absolute; top: 0; bottom: 0; left: 0; width: 28%;
  background: linear-gradient(90deg, rgba(160, 190, 255, 0), rgba(200, 220, 255, .85), rgba(160, 190, 255, 0));
  transform: translateX(-110%);
  animation: visor-scan 7s var(--ease-in-out) 1.6s infinite;
}
@keyframes visor-scan { 0% { transform: translateX(-110%); } 28%, 100% { transform: translateX(380%); } }

/* Spot ışığı: siluete mavi ışık vurur (screen karışımı → kremde görünmez, siyahta parlar) */
.spotlight {
  --sx: 0px; --sy: 0px; /* JS: figüre göre fare konumu (px) */
  position: absolute; left: 0; top: 0; width: 46%; aspect-ratio: 1; border-radius: 50%;
  pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(circle, rgba(70, 110, 255, .75) 0%, rgba(25, 66, 254, .28) 38%, rgba(25, 66, 254, 0) 70%);
  translate: calc(var(--sx) - 50%) calc(var(--sy) - 50%);
  opacity: 0; transition: opacity .5s var(--ease-out);
}
.hero-visual.is-lit .spotlight { opacity: 1; }
/* Dokunmatik / fare yok: ışık kendi kendine gezinir */
@media (hover: none), (pointer: coarse) {
  .spotlight { opacity: .9; position: absolute; translate: none; left: 27%; top: 18%; animation: spot-roam 9s var(--ease-in-out) infinite; }
}
@keyframes spot-roam {
  0%, 100% { transform: translate3d(0, 0, 0); }
  33% { transform: translate3d(-34%, 50%, 0); }
  66% { transform: translate3d(36%, 64%, 0); }
}

/* Mobil & tablet: figür önce gelir, başlık figürün eriyen alt kısmına biner → ilk ekranda ikisi birden */
@media (max-width: 959px) {
  .hero { min-height: auto; padding: calc(var(--header-h) + 4px) 0 56px; }
  .hero-grid { gap: 0; }
  .hero-visual { order: -1; max-width: 460px; margin-bottom: -16%; }
  .hero-copy { position: relative; z-index: 1; }
  /* omuzlar daha erken erisin → üstüne binen yazının altı krem kalsın */
  .hero-figure {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 56%, transparent 84%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 56%, transparent 84%), linear-gradient(to right, transparent 0, #000 10%, #000 90%, transparent 100%);
  }
  /* maske kenarında koyu omuzların son piksel satırı ince çizgi olarak sızıyordu →
     zaten tamamen şeffaf olan alt %12'yi doğrudan kırp */
  .hero-figure img, .hero-canvas { clip-path: inset(0 0 12% 0); }
}
@media (max-width: 599px) {
  .hero-visual { margin-inline: calc(var(--gutter) * -0.5); width: auto; margin-bottom: -18%; }
  .hero-lead { margin-top: 16px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: 32px; }
  .hero-visual { margin-right: calc(var(--gutter) * -0.6); }
}

/* ---------- Bölüm görünme animasyonu ----------
   Başlıklar maskeden yukarı doğru açılır; diğer içerik yalnızca sakin bir solmayla gelir. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transition: opacity 1.1s var(--ease-out); transition-delay: var(--d, 0s); }
  .js [data-reveal="title"] {
    opacity: 1;
    clip-path: polygon(-5% 130%, 105% 130%, 105% 130%, -5% 130%);
    transform: translate3d(0, .32em, 0);
    transition: clip-path 1.15s var(--ease-out), transform 1.15s var(--ease-out);
    transition-delay: var(--d, .08s);
  }
  .js [data-reveal].is-in { opacity: 1; }
  .js [data-reveal="title"].is-in { clip-path: polygon(-5% -25%, 105% -25%, 105% 130%, -5% 130%); transform: none; }
}

/* ---------- Hizmetler ---------- */
.services { position: relative; padding: var(--section-y) 0 calc(var(--section-y) * .7); }
.svc-blobs { position: absolute; inset: 30% 0 0; pointer-events: none; z-index: -1; overflow: hidden; }
.svc-blobs span { position: absolute; border-radius: 50%; }
.svc-blobs span:nth-child(1) { width: 460px; height: 460px; left: 8%; top: 6%; background: radial-gradient(closest-side, rgba(25, 66, 254, .42), rgba(25, 66, 254, 0)); }
.svc-blobs span:nth-child(2) { width: 500px; height: 500px; right: 6%; top: 0; background: radial-gradient(closest-side, rgba(25, 66, 254, .3), rgba(25, 66, 254, 0)); }

.svc-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.svc-controls { display: flex; gap: 10px; }

.svc-marquee { position: relative; margin-top: clamp(32px, 5vw, 56px); }
/* Kenarlarda yumuşak geçiş: mask kullanmıyoruz (backdrop-filter'ı bozar), üst katman kullanıyoruz */
.svc-marquee::before, .svc-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: clamp(16px, 6vw, 96px); z-index: 2; pointer-events: none;
}
.svc-marquee::before { left: 0; background: linear-gradient(90deg, var(--cream), rgba(251, 255, 241, 0)); }
.svc-marquee::after { right: 0; background: linear-gradient(270deg, var(--cream), rgba(251, 255, 241, 0)); }

.svc-track {
  position: relative;
  overflow-x: auto; overflow-y: hidden;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 28px var(--gutter) 40px;
  cursor: grab;
  touch-action: pan-x pan-y;
}
.svc-track::-webkit-scrollbar { display: none; }
.svc-track.is-dragging { cursor: grabbing; user-select: none; }
.svc-track.is-dragging a { pointer-events: none; }
.svc-list { display: flex; gap: clamp(14px, 2vw, 22px); width: max-content; }

.svc-card { width: clamp(270px, 80vw, 330px); flex: none; }
.svc-inner {
  display: flex; flex-direction: column; height: 100%;
  padding: 12px 12px 22px; border-radius: var(--r-lg);
  transition: transform var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out);
}
.svc-inner > :not(.svc-art):not(.badge-limited) { margin-inline: 12px; }
.svc-inner.is-limited { border-color: rgba(25, 66, 254, .35); }
@media (hover: hover) and (pointer: fine) {
  .svc-inner:hover { transform: translateY(-6px); box-shadow: var(--glass-shadow), 0 30px 50px -24px rgba(25, 66, 254, .45); }
  .svc-inner:hover .svc-art svg { transform: scale(1.04); }
}

/* Ürün çizimleri: figürle aynı sanat yönü (koyu nesne + mavi ışık) */
.svc-art {
  position: relative; height: 156px; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(70% 95% at 50% 75%, rgba(25, 66, 254, .55), rgba(25, 66, 254, 0) 70%),
    linear-gradient(180deg, #17141A, var(--ink));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.svc-art svg { width: 100%; height: 100%; transition: transform .6s var(--ease-out); }
.svc-num {
  position: absolute; top: 12px; left: 14px; z-index: 1;
  font-size: .8125rem; font-weight: 600; letter-spacing: .06em; color: rgba(251, 255, 241, .7); font-variant-numeric: tabular-nums;
}
.a-obj { fill: #24212B; stroke: rgba(255, 255, 255, .14); stroke-width: 1; }
.a-ghost { fill: #1B1920; }
.a-mute { fill: rgba(255, 255, 255, .2); }
.a-faint { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 1.5; stroke-linecap: round; }
.a-blue { fill: var(--blue); }
.a-cream { fill: var(--cream); }
.a-screen { fill: var(--blue); }
.a-glow { fill: none; stroke: #7F9AFF; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.a-dash { stroke-dasharray: 5 5; }
.a-bars { stroke-width: 5; }

.svc-title { margin-top: 22px; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.015em; }
.svc-desc { margin-top: 12px; font-size: 1rem; line-height: 1.55; color: var(--ink-70); }
.svc-btn { margin-top: auto; width: 100%; }
.svc-desc { margin-bottom: 24px; }

.badge-limited {
  position: absolute; top: -13px; right: 22px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px 6px 10px; border-radius: var(--r-pill);
  background: var(--blue); color: var(--cream);
  font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 1;
  box-shadow: 0 8px 18px -8px rgba(25, 66, 254, .8), inset 0 0 0 1px rgba(251, 255, 241, .25);
  z-index: 2;
}
.badge-limited .ic { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* ---------- Süreç ---------- */
.process { padding: calc(var(--section-y) * .6) 0 var(--section-y); }
.process-head { max-width: 640px; }
.steps { position: relative; display: grid; gap: 16px; margin-top: clamp(32px, 5vw, 56px); counter-reset: s; }
.step { padding: 28px 24px; border-radius: var(--r-lg); }
.step-num { position: absolute; top: 22px; right: 24px; font-size: 3rem; line-height: 1; color: rgba(25, 66, 254, .1); letter-spacing: -.04em; }
.step-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--blue); color: var(--cream); box-shadow: 0 10px 22px -10px rgba(25, 66, 254, .7); }
.step-ic .ic { width: 24px; height: 24px; }
.step h3 { margin-top: 22px; font-size: 1.375rem; }
.step p { margin-top: 10px; color: var(--ink-70); }
@media (min-width: 820px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .steps::before {
    content: ""; position: absolute; top: 54px; left: 8%; right: 8%; height: 2px; z-index: -1;
    background: repeating-linear-gradient(90deg, rgba(25, 66, 254, .35) 0 8px, transparent 8px 16px);
  }
  .step { padding: 32px 28px; }
}

/* ---------- İletişim ---------- */
.contact { position: relative; padding: calc(var(--section-y) * .5) 0 var(--section-y); }
.contact::before {
  content: ""; position: absolute; inset: 10% 0 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 85% 40%, rgba(25, 66, 254, .22), transparent 70%),
    radial-gradient(35% 40% at 10% 80%, rgba(120, 150, 255, .2), transparent 70%);
}
.contact-grid { display: grid; gap: 40px; align-items: start; }
.benefits { display: grid; gap: 14px; margin-top: 28px; }
.benefits li { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.b-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--blue-50); color: var(--blue); flex: none; }
.b-ic .ic { width: 16px; height: 16px; stroke-width: 2.4; }
.b-ic-lg { width: 48px; height: 48px; border-radius: 14px; background: var(--blue); color: var(--cream); }
.b-ic-lg .ic { width: 22px; height: 22px; stroke-width: 1.8; }
.mail-card {
  display: inline-flex; align-items: center; gap: 14px; margin-top: 32px;
  padding: 14px 22px 14px 14px; border-radius: 20px;
  transition: transform var(--dur) var(--ease-out);
}
.mail-card small { display: block; font-size: .8125rem; color: var(--ink-70); }
.mail-card strong { display: block; font-size: 1.0625rem; font-weight: 600; overflow-wrap: anywhere; }
@media (hover: hover) and (pointer: fine) { .mail-card:hover { transform: translateY(-3px); } }

.form-wrap { position: relative; }
.form, .form-success { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-lg); }
.form:focus { outline: none; }
.form-title { font-size: 1.5rem; }
.form-sub { margin-top: 6px; font-size: .9375rem; color: var(--ink-70); }
.form-sub span, .req { color: var(--blue); }
.opt { font-weight: 400; color: var(--ink-70); }

.field { margin-top: 20px; min-width: 0; }
.field label { display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 14px 16px;
  font-size: 1rem; line-height: 1.4;
  background: rgba(255, 255, 255, .78);
  border: 1.5px solid rgba(15, 10, 10, .12); border-radius: 14px;
  box-shadow: inset 0 1px 2px rgba(15, 10, 10, .04);
  transition: border-color var(--dur) var(--ease-out), box-shadow var(--dur) var(--ease-out), background-color var(--dur) var(--ease-out);
  -webkit-appearance: none; appearance: none;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: rgba(15, 10, 10, .45); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: rgba(15, 10, 10, .24); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: var(--white); box-shadow: 0 0 0 4px rgba(25, 66, 254, .16); }
.field [aria-invalid="true"] { border-color: var(--danger); background: #FFF7F7; }
.field [aria-invalid="true"]:focus { box-shadow: 0 0 0 4px rgba(198, 40, 40, .14); }
.field-error { display: none; margin-top: 8px; font-size: .875rem; font-weight: 500; color: var(--danger); }
.field-error:not(:empty) { display: flex; gap: 6px; align-items: center; }
.field-error:not(:empty)::before { content: "!"; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--danger); color: #fff; font-size: .75rem; font-weight: 700; flex: none; }
.select { position: relative; }
.select select { padding-right: 48px; cursor: pointer; }
.select select:invalid { color: rgba(15, 10, 10, .55); }
.select .ic { position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 18px; height: 18px; pointer-events: none; color: var(--ink-70); }
.select.flash select { animation: flash 1.4s var(--ease-out); }
@keyframes flash { 0%, 40% { border-color: var(--blue); box-shadow: 0 0 0 6px rgba(25, 66, 254, .22); } 100% { box-shadow: 0 0 0 0 rgba(25, 66, 254, 0); } }

.field-row { display: grid; gap: 0 16px; }
@media (min-width: 600px) { .field-row { grid-template-columns: 1fr 1fr; } }

.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

.submit-btn { margin-top: 28px; }
.spinner { display: none; width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid rgba(251, 255, 241, .35); border-top-color: var(--cream); animation: spin .8s linear infinite; }
.submit-btn.is-loading { pointer-events: none; opacity: .85; }
.submit-btn.is-loading .spinner { display: block; }
.submit-btn.is-loading .ic { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form-note { margin-top: 14px; font-size: .875rem; line-height: 1.5; color: var(--ink-70); text-align: center; }
.text-link {
  padding: 0; border: 0; background: none; font: inherit; color: inherit;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
  transition: color var(--dur) var(--ease-out);
}
.form-note .text-link:hover { color: var(--blue); }

/* ---------- KVKK penceresi ---------- */
.kvkk {
  width: min(calc(100% - 32px), 640px); max-height: min(84dvh, 760px);
  padding: 0; border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--r-lg);
  background: var(--cream); color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(15, 10, 10, .45);
  overflow: hidden;
}
.kvkk[open] { display: flex; flex-direction: column; }
.kvkk::backdrop { background: rgba(15, 10, 10, .42); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.kvkk-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 20px 16px 28px; border-bottom: 1px solid var(--line); }
.kvkk-head h2 { font-size: 1.5rem; }
.kvkk-body { padding: 8px 28px 28px; overflow-y: auto; overscroll-behavior: contain; }
.kvkk-body h3 { font-family: var(--font); font-size: 1rem; font-weight: 600; letter-spacing: 0; margin-top: 22px; }
.kvkk-body p { margin-top: 8px; color: var(--ink-80); font-size: .9688rem; }
.kvkk-body a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .kvkk[open] { animation: dialog-in .45s var(--ease-out); }
}
@keyframes dialog-in { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
html:has(.kvkk[open]) { overflow: hidden; }
.form-status:not(:empty) { margin-top: 16px; padding: 12px 14px; border-radius: 12px; font-size: .9375rem; font-weight: 500; background: #FFF1F1; color: var(--danger); }
.form-status a { text-decoration: underline; text-underline-offset: 3px; }

.form-success { text-align: center; display: grid; justify-items: center; gap: 12px; padding-block: 56px; }
.form-success:focus { outline: none; }
.form-success[hidden] { display: none; }
.form-success h3 { font-size: 1.75rem; margin-top: 8px; }
.form-success p { color: var(--ink-70); max-width: 36ch; margin-bottom: 12px; }
.success-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; background: var(--blue); color: var(--cream); box-shadow: 0 16px 34px -12px rgba(25, 66, 254, .7); }
.success-ic .ic { width: 34px; height: 34px; stroke-width: 2.4; stroke-dasharray: 30; stroke-dashoffset: 30; }
.form-success.is-shown .success-ic { animation: pop .6s var(--ease-out) both; }
.form-success.is-shown .success-ic .ic { animation: draw .6s var(--ease-out) .25s forwards; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

@media (min-width: 960px) {
  .contact-grid { grid-template-columns: .9fr 1.1fr; gap: 64px; }
  .contact-copy { position: sticky; top: calc(var(--header-h) + 40px); }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--blue); color: var(--cream); padding: 64px 0 calc(28px + env(safe-area-inset-bottom)); border-radius: 36px 36px 0 0; }
.footer-inner { display: grid; gap: 18px; justify-items: start; padding-bottom: 40px; border-bottom: 1px solid rgba(251, 255, 241, .2); }
.logo-footer .logo-svg { height: 40px; fill: var(--cream); }
.footer-tag { font-size: clamp(1.375rem, 3.4vw, 2rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; max-width: 22ch; }
.footer-mail { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 500; border-bottom: 1px solid rgba(251, 255, 241, .4); transition: border-color var(--dur) var(--ease-out); }
.footer-mail:hover { border-color: var(--cream); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 24px; font-size: .9375rem; color: rgba(251, 255, 241, .85); }
.to-top { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.to-top .ic { width: 18px; height: 18px; rotate: -90deg; transition: transform var(--dur) var(--ease-out); }
.to-top:hover .ic { transform: translateX(3px); }
.site-footer :focus-visible { outline-color: var(--cream); }
@media (min-width: 900px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: end; }
  .footer-inner .logo { grid-column: 1 / -1; }
}

/* ---------- Mobil sabit CTA ---------- */
.m-cta {
  position: fixed; z-index: var(--z-cta);
  left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom));
  transform: translate3d(0, 140%, 0); opacity: 0;
  transition: transform .5s var(--ease-out), opacity .3s var(--ease-out);
  box-shadow: 0 18px 40px -12px rgba(25, 66, 254, .7);
}
.m-cta.is-visible { transform: none; opacity: 1; }
@media (min-width: 900px) { .m-cta { display: none; } }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: var(--z-toast); left: 50%; bottom: calc(88px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 12px; width: min(calc(100% - 32px), 440px);
  padding: 14px 10px 14px 18px; border-radius: 18px; font-weight: 500; font-size: .9688rem;
  transform: translate3d(-50%, 20px, 0); opacity: 0; visibility: hidden;
  transition: transform var(--dur) var(--ease-out), opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur);
  background: rgba(255, 255, 255, .9);
}
.toast.is-shown { transform: translate3d(-50%, 0, 0); opacity: 1; visibility: visible; transition-delay: 0s; }
.toast-msg { flex: 1; }
.toast-close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-70); flex: none; }
.toast-close:hover { background: var(--blue-50); color: var(--ink); }
@media (min-width: 900px) { .toast { bottom: 32px; } }

/* ==========================================================================
   MOBİL (≤599px) — telefona özel kararlar: gizle · sıklaştır · yeniden boyutlandır
   Masaüstünü etkilemez.
   ========================================================================== */
.m-only { display: none; }

/* Alttaki sabit CTA görünürken header'daki "Teklif Al" gizlenir (aynı buton iki kez görünmesin) */
@media (max-width: 899px) {
  .header-cta { transition: opacity var(--dur) var(--ease-out), visibility 0s linear 0s; }
  .site-header.cta-docked .header-cta { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity var(--dur) var(--ease-out), visibility 0s linear var(--dur); }
}

@media (max-width: 599px) {
  :root { --section-y: 64px; --header-h: 64px; }
  .d-only { display: none; }
  .m-only { display: inline; }
  body { font-size: 1rem; }

  /* Header */
  .logo-svg { height: 27px; }
  .header-cta { --h: 40px; padding: 0 16px; font-size: .875rem; }

  /* Hero: kısa paragraf, yan yana butonlar (dar ekranda kendiliğinden alt alta) */
  .hero { padding-bottom: 40px; }
  .hero-lead { font-size: 1.0625rem; line-height: 1.55; max-width: 34ch; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn { flex: 1 1 148px; --h: 52px; padding: 0 14px; font-size: .9688rem; }
  .hero-actions .btn .ic { display: none; }

  /* Bölüm başlıkları */
  .eyebrow { font-size: .75rem; letter-spacing: .12em; }
  .h2 { margin-top: 10px; }
  .section-lead { margin-top: 12px; font-size: 1rem; }

  /* Hizmetler: daha kompakt kartlar */
  .svc-head { gap: 18px; }
  .svc-controls { gap: 8px; }
  .icon-btn { width: 44px; height: 44px; }
  .svc-marquee { margin-top: 20px; }
  .svc-track { padding: 22px var(--gutter) 28px; }
  .svc-card { width: min(82vw, 316px); }
  .svc-inner { padding: 10px 10px 18px; }
  .svc-inner > :not(.svc-art):not(.badge-limited) { margin-inline: 10px; }
  .svc-art { height: 132px; border-radius: 16px; }
  .svc-title { margin-top: 18px; font-size: 1.1875rem; }
  .svc-desc { margin-top: 8px; margin-bottom: 18px; font-size: .9375rem; line-height: 1.5; }
  .svc-btn { --h: 50px; }

  /* Nasıl Çalışır: ikon solda, metin sağda */
  .services { padding-bottom: 8px; }
  .process { padding-top: 24px; }
  .steps { gap: 12px; margin-top: 24px; }
  .step { display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; padding: 20px 18px; border-radius: 22px; }
  .step-ic { width: 44px; height: 44px; border-radius: 14px; grid-row: span 2; }
  .step-ic .ic { width: 21px; height: 21px; }
  .step h3 { margin-top: 1px; font-size: 1.1875rem; padding-right: 44px; }
  .step p { margin-top: 4px; font-size: .9375rem; line-height: 1.5; }
  .step-num { top: 16px; right: 18px; font-size: 1.75rem; }

  /* İletişim: liste ve e-posta kartı gizli (e-posta footer'da), form öne çıkar */
  .contact { padding-top: 24px; }
  .benefits, .mail-card { display: none; }
  .contact-grid { gap: 24px; }
  .form, .form-success { padding: 22px 18px; border-radius: 24px; }
  .form-title { font-size: 1.375rem; }
  .field { margin-top: 16px; }
  .field label { font-size: .875rem; margin-bottom: 6px; }
  .field input, .field select, .field textarea { min-height: 52px; }
  .field textarea { min-height: 104px; }
  .submit-btn { margin-top: 22px; }

  /* Footer */
  .site-footer { padding-top: 44px; border-radius: 28px 28px 0 0; }
  .footer-inner { gap: 14px; padding-bottom: 26px; }
  .logo-footer .logo-svg { height: 32px; }
  .footer-tag { font-size: 1.3125rem; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 16px; font-size: .875rem; }

  /* Sabit CTA & bildirim & KVKK penceresi */
  .m-cta { left: 12px; right: 12px; --h: 54px; }
  .kvkk-head { padding: 16px 14px 14px 20px; }
  .kvkk-head h2 { font-size: 1.25rem; }
  .kvkk-body { padding: 4px 20px 24px; }
}

/* Çok dar telefonlar (≤359px, ör. 320px): küçük başlık tek satırda kalsın */
.xs-only { display: none; }
@media (max-width: 359px) {
  .xs-hide { display: none; }
  .xs-only { display: inline; }
}

/* ---------- Hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .success-ic .ic { stroke-dashoffset: 0; }
}
