/* =========================================================
   Ana sayfa — koyu lacivert tema + 3D çekirdek (home.css)
   site.css'in üzerine gelir; yalnızca ana sayfada kullanılır.
   ========================================================= */
body.dark {
  --paper: #030b22;          /* zemin: gece mavisi */
  --paper-2: #08173d;        /* yükseltilmiş yüzey */
  --paper-3: #0c1f52;
  --ink: #f2f6ff;            /* ana metin */
  --ink-2: rgba(226, 235, 255, .74);
  --ink-3: rgba(226, 235, 255, .5);
  --cobalt: #6fc6ff;         /* koyu zeminde okunur mavi */
  --sky: #1997ef;
  --glass: #cfecfa;
  --rule: rgba(207, 236, 250, .12);
  --rule-2: rgba(207, 236, 250, .24);
  color-scheme: dark;
  background: var(--paper);
  color: var(--ink);
}
html:has(body.dark) { background: #030b22; }
body.dark ::selection { background: rgba(25, 151, 239, .45); color: #fff; }
body.dark :focus-visible { outline-color: #6fc6ff; }

/* Menü */
body.dark .nav::before { background: rgba(3, 11, 34, .72); }
body.dark .nav.is-open::before { background: var(--paper); }
body.dark .nav.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
body.dark .brand small { color: #6fc6ff; }
body.dark .brand img { filter: drop-shadow(0 2px 10px rgba(120, 200, 255, .35)); }
body.dark .burger i, body.dark .burger i::before, body.dark .burger i::after { background: var(--ink); }
body.dark .nav.is-open .burger i { background: transparent; }

/* Düğmeler: parlayan mavi ana düğme, ince çizgili ikincil */
body.dark .btn-main { color: #fff; background: linear-gradient(180deg, #29a4f8, #0857af); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px -10px rgba(25, 151, 239, .8); }
body.dark .btn-main::before { border-color: rgba(111, 198, 255, .7); }
body.dark .btn-main:hover { background: linear-gradient(180deg, #41b3ff, #0f6cc9); }
body.dark .btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
body.dark .btn-line:hover { background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1.5px var(--ink); }
body.dark .link { color: #8cd3ff; }
body.dark .link:hover { color: #fff; }

/* ---------- 3D giriş ---------- */
.hero3 { position: relative; isolation: isolate; overflow: clip; min-height: min(calc(100svh - 76px), 860px); display: grid; align-items: center; padding-block: clamp(40px, 6vw, 80px); }
.hero3::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(55% 70% at 72% 48%, rgba(25, 151, 239, .22), transparent 65%), radial-gradient(40% 50% at 10% 100%, rgba(8, 87, 175, .25), transparent 70%); }
.hero3::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .55;
  background-image: linear-gradient(rgba(207, 236, 250, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(207, 236, 250, .05) 1px, transparent 1px);
  background-size: 72px 72px; -webkit-mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 75%); mask-image: radial-gradient(60% 70% at 70% 50%, #000, transparent 75%); }
.hero3-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 24px; align-items: center; }
.hero3 h1 { font-size: clamp(42px, 5.6vw, 84px); line-height: .98; letter-spacing: -.04em; max-width: 10.5em; color: #fff; }
.hero3 h1 span { color: #8cd3ff; }
.hero3 .lede { margin-top: 26px; color: var(--ink-2); }
.core-wrap { position: relative; aspect-ratio: 1; width: 118%; margin: -8% -14% -8% -4%; }
.core-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); }
.core-wrap.ready canvas { opacity: 1; }
.core-wrap.no-gl { background: radial-gradient(closest-side, rgba(207, 236, 250, .9), rgba(25, 151, 239, .7) 30%, rgba(8, 87, 175, .25) 55%, transparent 72%); border-radius: 50%; transform: scale(.55); }
.hero3-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: var(--t-1); color: var(--ink-3); max-width: 34em; }
.hero3-meta b { color: var(--ink); font-weight: 500; }
@media (max-width: 920px) {
  .hero3 { min-height: 0; padding-top: 12px; }
  .hero3-grid { grid-template-columns: 1fr; gap: 0; }
  .core-wrap { order: -1; width: min(100%, 460px); margin: -4% auto -6%; }
}

/* ---------- Bölümler koyu zeminde ---------- */
body.dark h1, body.dark h2, body.dark h3 { color: #fff; }
body.dark .index { border-top-color: rgba(207, 236, 250, .4); }
body.dark .index a { position: relative; }
body.dark .index a::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: linear-gradient(90deg, #1997ef, #8cd3ff); transition: width .5s var(--ease); }
body.dark .index a:hover::before { width: 100%; }
body.dark .index a:hover { background: linear-gradient(90deg, rgba(25, 151, 239, .1), transparent 70%); }
body.dark .index a:hover h3 { color: #8cd3ff; }
body.dark .shot { background: radial-gradient(60% 60% at 50% 55%, rgba(25, 151, 239, .35), transparent 70%), #061230; box-shadow: inset 0 0 0 1px var(--rule); }
body.dark .spec { border-top-color: rgba(207, 236, 250, .4); }
body.dark .store { background: #fff; color: #030b22; }
body.dark .store:hover { background: var(--glass); }
body.dark .steps { border-top-color: rgba(207, 236, 250, .4); }
body.dark .steps li::before { color: #8cd3ff; box-shadow: inset 0 0 0 1.5px #6fc6ff, 0 0 18px -4px rgba(25, 151, 239, .8); }
body.dark .tpl-img { background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); }
body.dark .tpl:hover h3 { color: #8cd3ff; }

/* Footer: zeminden bir ton koyu, üstte ince ışık çizgisi */
body.dark .foot { background: #020717; box-shadow: 0 -1px 0 var(--rule); position: relative; }
body.dark .foot::before { content: ""; position: absolute; left: 10%; right: 10%; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, #1997ef, transparent); }
body.dark .foot .btn-main { background: #fff; color: #030b22; box-shadow: 0 12px 30px -12px rgba(25, 151, 239, .9); }
body.dark .foot .btn-main:hover { background: var(--glass); }

/* Koyu sayfaya gömülü açık temalı içerik: tarayıcı arkasını opak boyamasın (renk şeması eşleşsin) */
body.dark .shot iframe { color-scheme: light; }
/* ---------- 3D android ---------- */
.robot-wrap { position: relative; align-self: stretch; min-height: 560px; margin: -40px -6% -60px 0; }
.robot-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s var(--ease); }
.robot-wrap.ready canvas { opacity: 1; }
.robot-wrap::before { content: ""; position: absolute; inset: 10% 10% 0; border-radius: 50%; background: radial-gradient(closest-side, rgba(25, 151, 239, .35), transparent 70%); filter: blur(20px); pointer-events: none; }
@media (max-width: 920px) { .robot-wrap { order: -1; min-height: 440px; margin: -10px -16px -30px; } }
/* ---------- Kaydırma sahnesi: android ekranda kalır, gösterir, uzanır ---------- */
body.dark { --nav-h: 76px; }
@media (max-width: 920px) { body.dark { --nav-h: 64px; } }
.hero3 { display: block; min-height: 0; padding: 0; overflow: visible; }
.hero3-stage { position: relative; isolation: isolate; min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; overflow: clip; }
.hero3.scrolly { height: calc(230svh - var(--nav-h)); }
.hero3.scrolly .hero3-stage { position: sticky; top: var(--nav-h); height: calc(100svh - var(--nav-h)); }
.hero3::before, .hero3::after { display: none; }
.hero3-stage::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none; background: radial-gradient(45% 70% at 72% 50%, rgba(25, 151, 239, .22), transparent 65%), radial-gradient(40% 50% at 10% 100%, rgba(8, 87, 175, .25), transparent 70%); }
.robot-wrap { position: absolute; inset: 0; z-index: -1; margin: 0; min-height: 0; pointer-events: none; }
.robot-wrap::before { inset: 15% 8% 0 44%; }
.hero3-grid { grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); padding-block: 40px; }
.intro { will-change: opacity, transform; }
@media (max-width: 920px) {
  .hero3-stage { align-items: end; }
  .hero3-grid { grid-template-columns: 1fr; padding-block: 0 28px; }
  .robot-wrap::before { inset: 0 10% 40%; }
  .intro { padding-top: 34vh; background: linear-gradient(transparent, rgba(3, 11, 34, .85) 30%); margin-inline: -16px; padding-inline: 16px; }
  .hero3 h1 { font-size: clamp(34px, 9vw, 44px); }
}/* Sahnenin alt kenarı sayfaya yumuşakça karışsın */
.hero3-stage::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 22%; z-index: 0; pointer-events: none; background: linear-gradient(transparent, var(--paper)); }
.hero3-grid { position: relative; z-index: 1; }

/* Android belden yukarı: alt kenar yumuşakça kaybolur */
.robot-wrap canvas { -webkit-mask-image: linear-gradient(#000 70%, transparent 97%); mask-image: linear-gradient(#000 70%, transparent 97%); }
.hero3 .intro { transition: opacity .2s linear; }
/* ---------- Giriş videosu: ekrandan çıkmaya çalışan android ---------- */
.hero-video { position: absolute; right: -2%; top: 50%; width: min(64vw, 1120px); aspect-ratio: 16 / 9; height: auto; object-fit: cover; transform: translateY(-50%);
  opacity: 0; transition: opacity 1s var(--ease);
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 58%, transparent 100%); }
.robot-wrap.ready .hero-video { opacity: 1; }
.robot-wrap canvas { display: none; }
@media (max-width: 920px) {
  .hero-video { right: 50%; top: 0; width: 150%; transform: translateX(50%); -webkit-mask-image: radial-gradient(ellipse 48% 50% at 50% 45%, #000 55%, transparent 100%); mask-image: radial-gradient(ellipse 48% 50% at 50% 45%, #000 55%, transparent 100%); }
}
/* ---------- Işık parçacıklarından 3D logo ---------- */
.mark-wrap canvas#mark { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s var(--ease); -webkit-mask-image: none; mask-image: none; }
.mark-wrap.ready canvas#mark { opacity: 1; }
.mark-wrap::before { inset: 12% 6% 8% 46%; background: radial-gradient(closest-side, rgba(25, 151, 239, .28), transparent 72%); filter: blur(30px); }
@media (max-width: 920px) { .mark-wrap::before { inset: 0 8% 45%; } }
/* İngilizce başlık daha uzun: biraz küçük punto */
html[lang="en"] .hero3 h1 { font-size: clamp(38px, 4.6vw, 68px); }

/* logo animasyonu erken görünsün */
.mark-wrap canvas#mark { transition: opacity .45s ease; }

/* =========================================================
   Logo sahnesi (ana sayfa)
   Yerleşimi mark3d.js kameraya göre hesaplar (--cx, --cy, --cw);
   betik çalışmazsa aşağıdaki varsayılanlar kullanılır.
   ========================================================= */
.crystal { position: absolute; left: var(--cx, 75%); top: var(--cy, 50%); width: var(--cw, min(44vw, 640px)); aspect-ratio: 425 / 318; translate: -50% -50%; perspective: 1600px; pointer-events: none; }
@media (max-width: 920px) { .crystal { --cx: 50%; --cy: 20%; --cw: min(60vw, 300px); } }
.c-tilt { position: absolute; inset: 0; transform-style: preserve-3d; container-type: inline-size; will-change: transform;
  opacity: 0; filter: blur(12px) brightness(1.7); scale: .97; transition: opacity 1s var(--ease), filter 1.3s var(--ease), scale 1.5s var(--ease); }
.formed .c-tilt { opacity: 1; filter: none; scale: 1; }
.c-img { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  filter: drop-shadow(0 0 18px rgba(47, 170, 255, .55)) drop-shadow(0 0 60px rgba(25, 131, 224, .35)) drop-shadow(0 22px 40px rgba(2, 8, 26, .7)); }

/* Logonun üzerinden geçen ışık ve imlecin bıraktığı parlama (yalnızca logonun şeklinde) */
.c-sheen, .c-spot { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  -webkit-mask: url("assets/img/yavuzel-isaret.svg?v=1") center / 100% 100% no-repeat; mask: url("assets/img/yavuzel-isaret.svg?v=1") center / 100% 100% no-repeat; }
.c-sheen { background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, .0) 44%, rgba(225, 240, 255, .8) 50%, rgba(140, 217, 255, .3) 53%, transparent 58%) 130% 0 / 300% 100% no-repeat; opacity: 0; }
.formed .c-sheen { animation: c-sheen 8s cubic-bezier(.45, .05, .25, 1) .4s infinite; }
@keyframes c-sheen { 0% { background-position: 130% 0; opacity: 1; } 28% { background-position: -30% 0; opacity: 1; } 29%, 100% { background-position: -30% 0; opacity: 0; } }
.c-spot { background: radial-gradient(circle at var(--mx, 50%) var(--my, 40%), rgba(255, 255, 255, .5), rgba(150, 220, 255, .2) 14%, transparent 30%); opacity: var(--spot, 0); transition: opacity .3s; }

/* Zemin yansıması ve ışık çizgisi */
.c-reflect { position: absolute; left: 0; top: 100%; width: 100%; height: 100%; scale: 1 -1; translate: 0 -4%; opacity: .2; filter: blur(2px);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 30%); mask-image: linear-gradient(to top, #000, transparent 30%); }
.c-tilt::after { content: ""; position: absolute; left: 4%; right: 10%; top: 97%; height: 2px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(160, 223, 255, .8), rgba(47, 170, 255, .35) 60%, transparent); filter: blur(1px); box-shadow: 0 0 34px 8px rgba(25, 131, 224, .22); }

/* Mavi parçadan kopup uçan küçük parçalar (logodaki eğik paralelkenarın küçükleri) */
.c-px { position: absolute; left: 82%; top: 6%; width: calc(9% * var(--s, 1)); aspect-ratio: 1.6; opacity: 0;
  clip-path: polygon(30% 0, 100% 0, 70% 100%, 0 100%); background: linear-gradient(180deg, #16b4ff, #1994f6);
  filter: drop-shadow(0 0 8px rgba(22, 177, 255, .6)); }
.c-px.glass { background: linear-gradient(180deg, rgba(220, 238, 255, .95), rgba(140, 211, 255, .7)); }
.formed .c-px { animation: c-px 6.4s cubic-bezier(.2, .7, .3, 1) var(--d) infinite; }
@keyframes c-px {
  0% { opacity: 0; translate: 0 0; scale: .7; }
  10% { opacity: 1; }
  65% { opacity: .55; }
  100% { opacity: 0; translate: calc(var(--dx) * 1cqw) calc(var(--dy) * 1cqw); scale: .3; }
}
/* Arkadaki kobalt ışık */
.c-glow { position: absolute; inset: -22% -18%; border-radius: 50%; z-index: -1; opacity: 0; transition: opacity 1.6s var(--ease);
  background: radial-gradient(closest-side, rgba(25, 131, 224, .42), rgba(16, 107, 205, .16) 55%, transparent 78%); filter: blur(24px); }
.formed .c-glow { opacity: 1; animation: c-breathe 7s ease-in-out infinite; }
@keyframes c-breathe { 50% { scale: 1.06; opacity: .82; } }

.mark-wrap::before { display: none; }
.mark-wrap.no-gl canvas#mark { display: none; }
@media (prefers-reduced-motion: reduce) {
  .c-tilt { transition: none; }
  .formed .c-sheen, .formed .c-px, .formed .c-glow { animation: none; }
}
/* Hizmet satırlarında görünür buton: satırın tamamı tıklanabilir, buton bunu belli eder */
.index .go { display: inline-flex; align-items: center; gap: 6px; align-self: center; white-space: nowrap; padding: 9px 14px 9px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600; color: #cfebff; border: 1px solid rgba(140, 211, 255, .38); background: rgba(25, 131, 224, .12);
  transition: background .25s, border-color .25s, color .25s, gap .25s var(--ease); }
.index .go svg { transition: transform .25s var(--ease); }
.index a:hover .go, .index a:focus-visible .go { background: #1983e0; border-color: #2faaff; color: #fff; }
.index a:hover .go svg, .index a:focus-visible .go svg { transform: translateX(3px); }
@media (max-width: 920px) {
  .index .go { grid-column: 2; grid-row: 1; align-self: center; justify-content: center; width: 40px; height: 40px; padding: 0; gap: 0; font-size: 0; }
}
/* ---------- Ana sayfa girişi: yayındaki işimiz (güven satırı) ---------- */
.hero-proof { display: inline-flex; align-items: flex-start; gap: 12px; margin-top: 30px; max-width: 34em; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); transition: color .2s; }
.hero-proof b { color: var(--ink); font-weight: 600; }
.hero-proof .dot { position: relative; flex: none; width: 9px; height: 9px; margin-top: 6px; border-radius: 50%; background: #29b6ff; box-shadow: 0 0 10px rgba(41, 182, 255, .8); }
.hero-proof .dot::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid rgba(41, 182, 255, .55); animation: proof-ping 2.4s ease-out infinite; }
@keyframes proof-ping { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.6); opacity: 0; } }
.hero-proof:hover { color: var(--ink); }
.hero-proof:hover span:last-child { text-decoration: underline; text-decoration-color: rgba(41, 182, 255, .6); text-underline-offset: 4px; }
@media (prefers-reduced-motion: reduce) { .hero-proof .dot::after { animation: none; } }

/* Telefonda: küçük logo üstte, başlık ilk ekranda */
@media (max-width: 920px) {
  .hero3-stage { align-items: start; }
  .intro { padding-top: calc((100svh - var(--nav-h)) * .36); background: linear-gradient(transparent 0, transparent 28%, rgba(3, 11, 34, .72) 40%); }
  .hero-proof { margin-top: 24px; font-size: 13.5px; }
}

/* ---------- Hizmet satırlarında simgeler ---------- */
.index h3 { display: flex; align-items: center; gap: 16px; }
.index .ic { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; color: #8cd3ff;
  background: linear-gradient(180deg, rgba(25, 151, 239, .2), rgba(25, 151, 239, .05)); border: 1px solid rgba(140, 211, 255, .26);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); transition: background .25s, color .25s, border-color .25s, transform .35s var(--ease); }
.index a:hover .ic, .index a:focus-visible .ic { color: #fff; background: linear-gradient(180deg, #29a4f8, #0f6cc9); border-color: transparent; }
@media (max-width: 920px) {
  .index h3 { gap: 13px; }
  .index .ic { width: 40px; height: 40px; border-radius: 11px; }
  .index .ic svg { width: 20px; height: 20px; }
}