/* =========================================================
   Yavuzel Yazılım — yeni tasarım sistemi (site.css)
   Fikir: teknik çizim. Krem kâğıt, lacivert mürekkep, kobalt çizgi.
   ========================================================= */
:root {
  --paper: #ecdabd;      /* zemin: çizim kâğıdı */
  --paper-2: #f5ead6;    /* yükseltilmiş yüzey */
  --paper-3: #e3cdaa;    /* gömük yüzey */
  --ink: #051643;        /* lacivert mürekkep: metin */
  --ink-2: #3b4766;      /* ikincil metin */
  --ink-3: #6a7391;      /* üçüncül metin */
  --cobalt: #0857af;     /* ana vurgu */
  --sky: #1997ef;        /* çizgi ve odak */
  --glass: #cfecfa;      /* açık mavi zemin */
  --rule: rgba(5, 22, 67, .16);
  --rule-2: rgba(5, 22, 67, .28);

  --display: "Cabinet Grotesk", "Helvetica Neue", Arial, sans-serif;
  --body: "Switzer", "Helvetica Neue", Arial, sans-serif;

  /* Yazı ölçeği: 17 px taban, 1.333 oran (dörtlü aralık) */
  --t-0: 13px; --t-1: 15px; --t-2: 17px; --t-3: 22.5px; --t-4: 30px;
  --t-5: clamp(32px, 3.6vw, 40px); --t-6: clamp(38px, 4.8vw, 56px); --t-7: clamp(42px, 5.4vw, 78px);

  --max: 1240px;
  --gut: clamp(16px, 3vw, 32px);
  --r-sm: 6px; --r-md: 12px; --r-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scroll-behavior: smooth; touch-action: manipulation; -webkit-tap-highlight-color: rgba(25, 151, 239, .15); }
[id] { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100vh; background: var(--paper); color: var(--ink); font: 400 var(--t-2)/1.6 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body.no-scroll { overflow: hidden; }
img, svg, iframe { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: var(--glass); color: var(--ink); }
:focus-visible { outline: 2px solid var(--sky); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gut); top: -60px; z-index: 100; padding: 10px 16px; border-radius: var(--r-sm); background: var(--ink); color: #fff; font-weight: 500; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--t-7); line-height: .98; letter-spacing: -.035em; }
h2 { font-size: var(--t-6); line-height: 1.02; letter-spacing: -.03em; }
h3 { font-size: var(--t-4); line-height: 1.1; letter-spacing: -.02em; font-weight: 500; }
p { text-wrap: pretty; }
.lede { max-width: 34em; font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; color: var(--ink-2); }

/* ---------- Düğmeler ----------
   Ana düğme: lacivert dolgu + arkasında kobalt "çizim" çerçevesi.
   Fare gelince çerçeve düğmeye oturur: bastığınız şeyin cevabı. */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: var(--r-sm); font: 500 16px/1 var(--body); letter-spacing: -.005em; white-space: nowrap; transition: transform .35s var(--ease), background .25s, color .25s; }
.btn-main { color: #fff; background: var(--ink); isolation: isolate; }
.btn-main::before { content: ""; position: absolute; inset: 0; z-index: -1; border: 1.5px solid var(--sky); border-radius: inherit; transform: translate(5px, 5px); transition: transform .35s var(--ease); }
.btn-main:hover { background: var(--cobalt); transform: translate(2px, 2px); }
.btn-main:hover::before { transform: translate(0, 0); }
.btn-main:active { transform: translate(3px, 3px); }
.btn-line { color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--rule-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); background: var(--paper-2); }
.btn-sm { min-height: 42px; padding: 0 16px; font-size: 15px; }
.link { font-weight: 500; color: var(--cobalt); background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size .3s var(--ease), color .2s; }
.link:hover { color: var(--ink); background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- Menü ---------- */
.nav { position: sticky; top: 0; z-index: 50; transition: box-shadow .3s; }
/* Bulanık zemin ayrı katmanda: backdrop-filter menüdeki sabit paneli nav içine hapsetmesin */
.nav::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(236, 218, 189, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.nav.is-open::before { background: var(--paper); }
.nav.is-scrolled { box-shadow: 0 1px 0 var(--rule); }
.nav-in { display: flex; align-items: center; gap: 28px; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 50px; height: auto; }
.brand b { display: flex; flex-direction: column; gap: 3px; font: 700 16px/1 var(--display); letter-spacing: .12em; text-transform: uppercase; }
.brand small { font: 500 9px/1 var(--body); letter-spacing: .55em; color: var(--cobalt); }
.menu { display: flex; align-items: center; gap: 4px; }
.menu a { position: relative; padding: 10px 12px; font-size: var(--t-1); font-weight: 500; color: var(--ink-2); transition: color .2s; }
.menu a:hover { color: var(--ink); }
.menu a[aria-current="page"] { color: var(--ink); }
.menu a[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--cobalt); }
.lang { display: flex; align-items: center; font-size: 13px; font-weight: 500; }
.lang a { padding: 8px 6px; color: var(--ink-3); }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 5px; }
.lang span { color: var(--rule-2); }
.burger { display: none; width: 44px; height: 44px; margin-right: -10px; place-items: center; }
.burger i { position: relative; display: block; width: 22px; height: 1.5px; background: var(--ink); transition: background .2s; }
.burger i::before, .burger i::after { content: ""; position: absolute; left: 0; width: 22px; height: 1.5px; background: var(--ink); transition: transform .3s var(--ease); }
.burger i::before { transform: translateY(-7px); } .burger i::after { transform: translateY(7px); }
.nav.is-open .burger i { background: transparent; }
.nav.is-open .burger i::before { transform: rotate(45deg); } .nav.is-open .burger i::after { transform: rotate(-45deg); }

@media (max-width: 920px) {
  .nav-in { gap: 12px; height: 64px; }
  .burger { display: grid; }
  .nav-cta { display: none; }
  .menu { position: fixed; inset: 64px 0 0 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 40px; background: var(--paper); border-top: 1px solid var(--rule); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open .menu { visibility: visible; opacity: 1; transform: none; transition: opacity .25s, transform .3s var(--ease); }
  .menu a { padding: 18px 0; font: 500 26px/1.1 var(--display); letter-spacing: -.02em; color: var(--ink); border-bottom: 1px solid var(--rule); }
  .menu a[aria-current="page"] { color: var(--cobalt); }
  .menu a[aria-current="page"]::after { display: none; }
  .menu .menu-cta { display: flex; margin-top: 28px; border: 0; padding: 0; font: 500 16px/1 var(--body); color: #fff; }
}
@media (min-width: 921px) { .menu .menu-cta { display: none; } }

/* ---------- Bölüm düzeni ---------- */
.sec { padding-block: clamp(64px, 8vw, 120px); }
.sec-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 56px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-top p { color: var(--ink-2); max-width: 32em; }
@media (max-width: 820px) { .sec-top { grid-template-columns: 1fr; } }

/* ---------- Giriş: sistem şeması ---------- */
.hero { padding-block: clamp(36px, 6vw, 80px) clamp(56px, 8vw, 110px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero h1 { max-width: 11em; }
.hero .lede { margin-top: 26px; }
.hero-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 34px; }
.diagram { position: relative; aspect-ratio: 680 / 520; border-radius: var(--r-lg); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--rule); overflow: hidden; }
.diagram::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(8, 87, 175, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(8, 87, 175, .07) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.diagram svg { position: relative; width: 100%; height: 100%; }
.diagram .wire { fill: none; stroke: var(--ink); stroke-opacity: .32; stroke-width: 1.4; transition: stroke .25s, stroke-opacity .25s, stroke-width .25s; }
.diagram .wire.on { stroke: var(--sky); stroke-opacity: 1; stroke-width: 2.2; }
.diagram .node rect { fill: #fffaf1; stroke: var(--rule-2); stroke-width: 1; transition: fill .25s, stroke .25s; }
.diagram .node text { font: 500 14px var(--body); fill: var(--ink); }
.diagram .node.on rect { fill: var(--glass); stroke: var(--sky); }
.diagram .node { cursor: default; }
.diagram .hub rect { fill: var(--ink); }
.diagram .hub text { font: 700 15px var(--display); fill: #fff; letter-spacing: .01em; }
.diagram .hub .sub { font: 400 12px var(--body); fill: rgba(255, 255, 255, .7); }
.diagram .pkt { fill: var(--cobalt); }
.diagram .cap { font: 500 12px var(--body); fill: var(--ink-3); }
.diagram .draw { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 1.4s var(--ease) forwards; animation-delay: var(--dl, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
.diagram .pop { opacity: 0; animation: pop .5s var(--ease) forwards; animation-delay: var(--dl, 0s); }
@keyframes pop { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .diagram .draw, .diagram .pop { animation: none; stroke-dashoffset: 0; opacity: 1; } }
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 12em; }

}

/* ---------- Hizmet alanları: içindekiler listesi ---------- */
.index { border-top: 1.5px solid var(--ink); }
.index a { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr) auto; gap: 8px 40px; align-items: baseline; padding: 26px 4px; border-bottom: 1px solid var(--rule); transition: background .25s; }
.index h3 { font-size: clamp(22px, 2.3vw, 30px); transition: color .2s, transform .35s var(--ease); }
.index p { color: var(--ink-2); max-width: 36em; }
.index .count { font-size: var(--t-1); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.index a:hover { background: var(--paper-2); }
.index a:hover h3 { transform: translateX(10px); }
.index a:hover h3 { color: var(--cobalt); }
.index-note { margin-top: 26px; font-size: var(--t-1); color: var(--ink-3); max-width: 60em; }
.sec-foot { display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center; justify-content: space-between; margin-top: 34px; }
@media (max-width: 820px) {
  .index a { grid-template-columns: 1fr auto; padding: 20px 2px; }
  .index p { grid-column: 1 / -1; grid-row: 2; font-size: var(--t-1); }
  .index .count { grid-column: 2; grid-row: 1; }
  .index a:hover h3 { transform: none; }
}

/* ---------- Öne çıkan proje: teknik künye ---------- */
.proj { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: stretch; }
.shot { position: relative; min-height: 460px; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(70% 70% at 50% 55%, #fff8ec, #efe1c8); box-shadow: inset 0 0 0 1px var(--rule); }
.shot .frame { position: absolute; inset: 0; overflow: hidden; }
.shot .frame iframe { max-width: none; position: absolute; left: 50%; top: 52%; border: 0; pointer-events: none; transform-origin: center; background: transparent; }
.proj-body h3 { font-size: var(--t-5); line-height: 1.05; letter-spacing: -.03em; font-weight: 700; }
.proj-body > p { margin-top: 16px; color: var(--ink-2); }
.spec { margin-top: 26px; border-top: 1.5px solid var(--ink); }
.spec div { display: grid; grid-template-columns: 9em 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); font-size: var(--t-1); }
.spec dt { color: var(--ink-3); }
.spec dd { color: var(--ink); font-weight: 500; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.store { display: inline-flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px 0 12px; border-radius: var(--r-sm); background: var(--ink); color: #fff; transition: background .2s; }
.store:hover { background: var(--cobalt); }
.store svg { width: 22px; height: 22px; fill: currentColor; }
.store span { display: flex; flex-direction: column; font: 600 15px/1.05 var(--body); }
.store small { font-size: 10.5px; font-weight: 400; opacity: .75; }
.proj-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 22px; }
@media (max-width: 920px) { .proj { grid-template-columns: 1fr; } .shot { min-height: 340px; } }

/* ---------- Süreç: gerçek bir sıra olduğu için numaralı ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; border-top: 1.5px solid var(--ink); }
.steps li { position: relative; padding: 28px 28px 8px 0; counter-increment: step; }
.steps li + li { padding-left: 28px; border-left: 1px solid var(--rule); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 22px; border-radius: 50%; font: 700 15px/1 var(--display); color: var(--cobalt); box-shadow: inset 0 0 0 1.5px var(--cobalt); }
.steps h3 { font-size: var(--t-3); font-weight: 700; }
.steps p { margin-top: 10px; font-size: var(--t-1); color: var(--ink-2); }
@media (max-width: 920px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { padding-left: 0; border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 560px) {
  .steps { grid-template-columns: 1fr; }
  .steps li, .steps li + li, .steps li:nth-child(n) { padding: 24px 0 18px 52px; border-left: 0; }
  .steps li + li { border-top: 1px solid var(--rule); }
  .steps li::before { position: absolute; left: 0; top: 22px; margin: 0; }
}

/* ---------- Hazır siteler ---------- */
.tpls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tpl { display: block; }
.tpl-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-md); overflow: hidden; background: var(--paper-3); }
.tpl-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.tpl:hover .tpl-img img { transform: scale(1.04); }
.tpl-img b { position: absolute; left: 14px; right: 14px; bottom: 14px; font: 500 18px/1.2 var(--display); color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
.tpl-img::after { content: ""; position: absolute; inset: 40% 0 0; background: linear-gradient(transparent, rgba(5, 22, 67, .7)); }
.tpl-img b { z-index: 1; }
.tpl h3 { margin-top: 14px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.tpl p { margin-top: 4px; font-size: var(--t-1); color: var(--ink-2); }
.tpl:hover h3 { color: var(--cobalt); }
@media (max-width: 920px) { .tpls { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .tpls { gap: 12px; } .tpl h3 { font-size: 17px; } .tpl p { font-size: 14px; } .tpl-img b { font-size: 15px; } }

/* ---------- Footer ---------- */
.foot { margin-top: clamp(40px, 6vw, 80px); color: #deecfc; background: var(--ink); }
.foot-cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 56px; align-items: end; padding-block: clamp(64px, 9vw, 120px) clamp(48px, 6vw, 72px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.foot-cta h2 { color: #fff; max-width: 13em; }
.foot-cta p { color: rgba(222, 236, 252, .75); }
.foot-cta .hero-acts { margin-top: 24px; }
.foot .btn-main { background: #fff; color: var(--ink); }
.foot .btn-main::before { border-color: var(--sky); }
.foot .btn-main:hover { background: var(--glass); }
.foot .btn-line { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .35); }
.foot .btn-line:hover { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1.5px #fff; }
.foot-cols { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; padding-block: 48px; }
.foot .brand b { color: #fff; } .foot .brand small { color: #8cd3ff; }
.foot-cols > div > p { margin-top: 16px; max-width: 22em; font-size: var(--t-1); color: rgba(222, 236, 252, .65); }
.foot h3 { font: 500 var(--t-1)/1.2 var(--body); color: rgba(222, 236, 252, .55); margin-bottom: 14px; letter-spacing: 0; }
.foot-cols ul { display: grid; gap: 9px; }
.foot-cols a { font-size: var(--t-1); color: #fff; opacity: .88; transition: opacity .2s; }
.foot-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; align-items: center; padding-block: 22px 28px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(222, 236, 252, .55); }
.foot .lang a { color: rgba(222, 236, 252, .6); } .foot .lang a:hover, .foot .lang a[aria-current="true"] { color: #fff; }
.foot .lang span { color: rgba(255, 255, 255, .25); }
.foot :focus-visible { outline-color: #8cd3ff; }
@media (max-width: 920px) { .foot-cta { grid-template-columns: 1fr; } .foot-cols { grid-template-columns: 1fr 1fr; } .foot-cols > div:first-child { grid-column: 1 / -1; } }

/* ---------- Tek giriş anı: sayfa açılışı ---------- */
.intro > * { opacity: 0; transform: translateY(14px); animation: intro .8s var(--ease) forwards; }
.intro > :nth-child(2) { animation-delay: .08s; } .intro > :nth-child(3) { animation-delay: .16s; } .intro > :nth-child(4) { animation-delay: .24s; }
@keyframes intro { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .intro > * { animation: none; opacity: 1; transform: none; } }

/* Çerez tercih bandı (assets/js/iz.js ekler) */
.cerez { position: fixed; z-index: 90; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 32px)); padding: 22px 22px 18px; border-radius: 16px; background: rgba(8, 23, 61, .94); color: #f2f6ff; border: 1px solid rgba(207, 236, 250, .16); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.cerez.acik { opacity: 1; transform: none; }
.cerez h2 { margin: 0 0 8px; font: 500 17px/1.3 var(--display); letter-spacing: -.01em; color: #fff; }
.cerez p { margin: 0; font: 400 13.5px/1.6 var(--body); color: rgba(226, 235, 255, .74); }
.cerez p b { font-weight: 500; color: #f2f6ff; }
.cerez p a { color: #8cd3ff; text-decoration: underline; text-underline-offset: 3px; }
.cerez-d { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.cerez-d button { min-height: 44px; border-radius: 10px; font: 500 15px/1 var(--body); color: #f2f6ff; background: rgba(255, 255, 255, .06); border: 1.5px solid rgba(207, 236, 250, .28); cursor: pointer; transition: background .2s, border-color .2s; }
.cerez-d button:hover { background: rgba(255, 255, 255, .12); border-color: #f2f6ff; }
.cerez-d button:focus-visible { outline: 2px solid #6fc6ff; outline-offset: 2px; }
.foot-legal button[data-cerez-ayar] { padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; }
.foot-legal button[data-cerez-ayar]:hover { text-decoration: underline; }
@media (prefers-reduced-motion: reduce) { .cerez { transition: none; } }
@media print { .cerez { display: none; } }