/* Demir Cloud — "Taşıyıcı Sistem" tasarım sistemi (mobile-first) */

/* ---------- Font ---------- */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../fonts/archivo-tr.woff2") format("woff2");
}

/* ---------- Token'lar ---------- */

:root {
  /* Renk */
  --paper: #f5f7f9;
  --surface: #ffffff;
  --ink: #0f1722;          /* Demir */
  --steel: #4a5a6c;        /* Çelik */
  --muted: #5e6d7f;
  --rivet: #d5dce4;        /* Perçin: çizgiler */
  --rivet-strong: #b9c3cf;
  --signal: #1a6fd1;       /* Sinyal mavisi: metin ve buton */
  --signal-hover: #155db0;
  --logo-blue: #2c8af2;
  --signal-tint: #e8f1fc;
  --spark: #e8a33d;        /* Kıvılcım: yalnızca izleme uyarısı */

  --night: #0f1722;
  --night-2: #16212f;
  --night-line: rgba(255, 255, 255, .12);
  --night-text: #c5d0dd;
  --night-muted: #8d9bad;
  --sky: #6cbcff;

  /* Tipografi */
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wide: 112%;
  --narrow: 87%;

  --fs-xs: .8125rem;   /* 13 */
  --fs-sm: .9375rem;   /* 15 */
  --fs-base: 1rem;     /* 16 */
  --fs-md: 1.125rem;   /* 18 */
  --fs-lg: clamp(1.25rem, 1.1rem + .6vw, 1.5rem);
  --fs-xl: clamp(1.625rem, 1.25rem + 1.6vw, 2.5rem);
  --fs-hero: clamp(1.875rem, 1.2rem + 3.1vw, 3.75rem);

  /* Boşluk (4px taban) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px; --s10: 128px;

  --gutter: 20px;
  --wrap: 1200px;
  --section: var(--s8);
  --header-h: 64px;

  /* Yarıçap: kontroller ve paneller ayrı */
  --r-control: 6px;
  --r-panel: 12px;

  --ease: cubic-bezier(.2, .7, .2, 1);
}

@media (min-width: 768px) {
  :root { --gutter: 32px; --section: var(--s9); }
}
@media (min-width: 1100px) {
  :root { --section: var(--s10); }
}

/* ---------- Taban ---------- */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--s4));
}

body {
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.is-locked { position: fixed; left: 0; right: 0; overflow: hidden; }
body.is-locked .site-header { position: fixed; left: 0; right: 0; top: 0; }

img, svg { display: block; max-width: 100%; }
a { color: var(--signal); text-underline-offset: 3px; }
a:hover { color: var(--signal-hover); }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}
.on-dark :focus-visible { outline-color: var(--sky); }

::selection { background: rgba(44, 138, 242, .22); }

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

.nowrap { white-space: nowrap; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: var(--s4);
  top: -80px;
  z-index: 100;
  padding: var(--s3) var(--s4);
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-control);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: var(--s3); color: #fff; }

/* ---------- Tipografi ---------- */

.display, h1, h2 {
  font-stretch: var(--wide); font-variation-settings: "wdth" 112;
  font-weight: 600;
  letter-spacing: -.022em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-hero); line-height: 1.04; }
h2 { font-size: var(--fs-xl); line-height: 1.1; }
h3 { font-size: var(--fs-md); line-height: 1.3; font-weight: 600; letter-spacing: -.01em; }

/* Ölçü/açıklama dili: dar kesim, sabit rakam */
.label {
  font-stretch: var(--narrow); font-variation-settings: "wdth" 87;
  font-size: var(--fs-sm);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: .01em;
  color: var(--muted);
}

.lead {
  font-size: var(--fs-md);
  line-height: 1.6;
  color: var(--steel);
  max-width: 36em;
}
@media (min-width: 768px) { .lead { font-size: 1.1875rem; } }

.section { padding: var(--section) 0; }
.section-head { max-width: 44rem; margin-bottom: var(--s7); }
.section-head .lead { margin-top: var(--s4); }

/* ---------- Butonlar ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--r-control);
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease), transform .18s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px); }
.btn svg { flex-shrink: 0; }

.btn-primary { background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-hover); color: #fff; }

.btn-line { background: var(--surface); color: var(--ink); border-color: var(--rivet-strong); }
.btn-line:hover { border-color: var(--ink); color: var(--ink); }

.btn-night { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .28); }
.btn-night:hover { border-color: #fff; color: #fff; }

.btn-sm { min-height: 44px; padding: 8px 16px; font-size: var(--fs-sm); }
@media (min-width: 960px) { .btn-sm { min-height: 40px; } }
.btn-block { width: 100%; }

/* ---------- Üst menü ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(245, 247, 249, .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--rivet); }

.header-row {
  height: 100%;
  display: flex;
  align-items: center;
  gap: var(--s5);
}

.brand { display: flex; align-items: center; min-height: 48px; flex-shrink: 0; margin-right: auto; }
.brand img { width: auto; height: 36px; }

.nav { display: none; }
.header-phone { display: none; }
.header-cta { display: none; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  margin-right: -12px;
  background: none;
  border: 0;
  border-radius: var(--r-control);
  color: var(--ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.icon-btn.call { margin-right: 0; }

@media (min-width: 960px) {
  .brand img { height: 40px; }
  .nav { display: flex; gap: var(--s5); }
  .nav a {
    padding: var(--s2) 0;
    color: var(--steel);
    font-size: var(--fs-sm);
    font-weight: 500;
    text-decoration: none;
  }
  .nav a:hover { color: var(--ink); }
  .header-cta { display: inline-flex; }
  .icon-btn { display: none; }
}
@media (min-width: 1180px) {
  .header-phone {
    display: inline-flex;
    align-items: center;
    gap: var(--s2);
    color: var(--ink);
    font-size: var(--fs-sm);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    text-decoration: none;
  }
  .header-phone svg { color: var(--signal); }
}

/* Mobil menü: tam ekran sayfa (JS yoksa sayfa içinde statik liste) */
.menu-sheet {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  padding: var(--s2) var(--gutter) calc(var(--s5) + env(safe-area-inset-bottom));
}
html:not(.js) .menu-toggle { display: none; }
.js .menu-sheet {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 49;
  overflow-y: auto;
  overscroll-behavior: contain;
  opacity: 0;
  transform: translateY(-8px);
  visibility: hidden;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s linear .2s;
}
.js .menu-sheet.is-open {
  opacity: 1;
  transform: none;
  visibility: visible;
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility 0s;
}
.menu-sheet nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid var(--rivet);
  color: var(--ink);
  font-size: 1.375rem;
  font-stretch: var(--wide); font-variation-settings: "wdth" 112;
  font-weight: 600;
  letter-spacing: -.015em;
  text-decoration: none;
}
.menu-sheet nav a svg { color: var(--muted); }
.menu-actions { display: grid; gap: var(--s3); margin-top: auto; padding-top: var(--s6); }
.menu-actions .label { text-align: center; }

@media (min-width: 960px) { .menu-sheet { display: none; } }

/* ---------- Hero ---------- */

.hero { padding: var(--s6) 0 var(--s7); }

.hero-grid { display: grid; gap: var(--s7); }

.hero h1 { max-width: 14em; }
.hero .lead { margin-top: var(--s5); }

.hero-actions {
  display: grid;
  gap: var(--s3);
  margin-top: var(--s6);
}
.hero-actions .btn { width: 100%; }

.facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: var(--s7);
  border-top: 1px solid var(--rivet);
}
.facts li { padding: var(--s4) var(--s3) 0 0; }
.facts li + li { padding-left: var(--s3); border-left: 1px solid var(--rivet); }
.facts strong {
  display: block;
  font-stretch: var(--wide); font-variation-settings: "wdth" 112;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -.015em;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}
.facts .label { display: block; margin-top: var(--s1); font-size: var(--fs-xs); line-height: 1.35; }

@media (min-width: 560px) {
  .hero-actions { display: flex; flex-wrap: wrap; }
  .hero-actions .btn { width: auto; }
  .facts strong { font-size: 1.375rem; }
  .facts .label { font-size: var(--fs-sm); }
}

@media (min-width: 560px) {
  .section-drawing { max-width: 720px; }
}
@media (min-width: 1024px) {
  .hero { padding: var(--s9) 0 var(--s8); }
}
@media (min-width: 1180px) {
  .hero-grid { grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: var(--s8); align-items: center; }
}

/* Kesit çizimi */
.section-drawing {
  position: relative;
  margin: 0 calc(var(--gutter) * -1);
  padding: var(--s4) var(--gutter);
  background-color: var(--surface);
  background-image:
    linear-gradient(var(--paper) 1px, transparent 1px),
    linear-gradient(90deg, var(--paper) 1px, transparent 1px);
  background-size: 16px 16px;
  border-top: 1px solid var(--rivet);
  border-bottom: 1px solid var(--rivet);
}
@media (min-width: 560px) {
  .section-drawing { margin: 0; padding: var(--s5); border: 1px solid var(--rivet); border-radius: var(--r-panel); }
}
.section-drawing svg { width: 100%; height: auto; }
.drawing-wide { display: none; }
@media (min-width: 560px) {
  .drawing-tall { display: none; }
  .drawing-wide { display: block; }
}

/* SVG içi stiller */
.dw text { font-family: var(--font); fill: var(--ink); }
.dw .t-title { font-size: 16px; font-weight: 600; font-stretch: var(--wide); font-variation-settings: "wdth" 112; letter-spacing: -.01em; }
.dw .t-sub { font-size: 13px; fill: var(--muted); font-stretch: var(--narrow); font-variation-settings: "wdth" 87; font-weight: 500; }
.dw .t-note { font-size: 13.5px; font-weight: 600; font-stretch: var(--narrow); font-variation-settings: "wdth" 87; }
.dw .t-note-sub { font-size: 12.5px; fill: var(--muted); font-stretch: var(--narrow); font-variation-settings: "wdth" 87; }
.dw .t-chip { font-size: 12px; font-weight: 600; font-stretch: var(--narrow); font-variation-settings: "wdth" 87; }
.dw .t-blue { fill: var(--signal); }
.dw .t-small { font-size: 11px; fill: var(--muted); font-stretch: var(--narrow); font-variation-settings: "wdth" 87; }
.dw .layer { fill: var(--surface); stroke: var(--ink); stroke-width: 1.25; }
.dw .chip { fill: var(--paper); stroke: var(--rivet-strong); }
.dw .mgmt { fill: none; stroke: var(--logo-blue); stroke-width: 1.5; stroke-dasharray: 6 5; }
.dw .leader { stroke: var(--ink); stroke-width: 1; fill: none; }
.dw .dim { stroke: var(--steel); stroke-width: 1; fill: none; }
.dw .node { fill: var(--surface); stroke: var(--ink); stroke-width: 1.25; }
.dw .status { fill: var(--logo-blue); }
.dw .scan { stroke: var(--logo-blue); stroke-width: 1.5; }
.dw .scan-band { fill: var(--logo-blue); opacity: .07; }
.dw .frame { fill: none; stroke: var(--rivet-strong); }

/* Tek orkestralı an: çizim + bir kez izleme taraması */
@media (prefers-reduced-motion: no-preference) {
  .dw .draw {
    stroke-dasharray: var(--len, 900);
    stroke-dashoffset: var(--len, 900);
    animation: draw 1s var(--ease) forwards;
    animation-delay: calc(var(--d, 0) * 1ms);
  }
  .dw .mgmt.draw { stroke-dasharray: var(--len, 1400); animation-name: draw-dashed; }
  .dw .fade { opacity: 0; animation: fade .5s var(--ease) forwards; animation-delay: calc(var(--d, 0) * 1ms); }
  .dw .scanner { animation: scan 1.6s cubic-bezier(.45, 0, .55, 1) 1.1s forwards; }
  .dw .status-live { animation: status 1.6s linear 1.1s both; }

  /* Animasyon bitince çizim statik son hâline sabitlenir (site.js ekler) */
  .dw.is-drawn .draw { animation: none; stroke-dasharray: none; stroke-dashoffset: 0; }
  .dw.is-drawn .mgmt.draw { stroke-dasharray: 6 5; }
  .dw.is-drawn .fade { animation: none; opacity: 1; }
  .dw.is-drawn .scanner, .dw.is-drawn .status-live { animation: none; }
}
.dw .scanner { opacity: 0; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes draw-dashed {
  0% { stroke-dasharray: 0 1400; }
  100% { stroke-dasharray: 6 5; }
}
@keyframes fade { to { opacity: 1; } }
@keyframes scan {
  0% { opacity: 0; transform: translateY(0); }
  8% { opacity: 1; }
  92% { opacity: 1; }
  100% { opacity: 0; transform: translateY(var(--scan-y, 300px)); }
}
@keyframes status {
  0%, 12% { fill: var(--logo-blue); }
  18%, 38% { fill: var(--spark); }
  46%, 100% { fill: var(--logo-blue); }
}

/* ---------- Çözüm ortakları şeridi ---------- */

.partners-strip { padding: var(--s6) 0; border-top: 1px solid var(--rivet); border-bottom: 1px solid var(--rivet); }
.partners-strip .label { margin-bottom: var(--s4); }
.partner-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s4) var(--s5);
}
/* Logo ve metin adları aynı yükseklikte bir satırda durur */
.partner-name, .partner-logo { height: 32px; }
.partner-name {
  display: flex;
  align-items: center;
  font-stretch: var(--wide); font-variation-settings: "wdth" 112;
  font-size: 1.125rem;
  font-weight: 650;
  letter-spacing: -.02em;
  color: var(--steel);
  white-space: nowrap;
}
/* Marka kuralları gereği logolar orijinal renkleriyle, değiştirilmeden gösterilir */
.partner-logo {
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}
/* Bağlantılı logo: 44px dokunma alanı, görsel hizayı bozmadan (32px satır + 6px taşma) */
.partner-list a { display: flex; align-items: center; width: fit-content; min-height: 44px; margin: -6px 0; }
.partner-area { display: block; margin-top: var(--s1); font-stretch: var(--narrow); font-variation-settings: "wdth" 87; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .01em; color: var(--muted); }
@media (min-width: 768px) {
  .partner-group { display: grid; grid-template-columns: 10rem 1fr; align-items: center; gap: var(--s6); }
  .partners-strip .label { margin: 0; }
  .partner-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1180px) {
  .partner-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s4); }
}

/* ---------- Faydalar ---------- */

.benefits { display: grid; gap: var(--s6); }
.benefit { padding-top: var(--s5); border-top: 1px solid var(--ink); }
.benefit svg { color: var(--signal); margin-bottom: var(--s4); }
.benefit h3 { font-stretch: var(--wide); font-variation-settings: "wdth" 112; font-size: var(--fs-lg); line-height: 1.2; }
.benefit p { margin-top: var(--s3); color: var(--steel); }
.benefit .related { margin-top: var(--s4); }
.benefit .related a { font-weight: 600; text-decoration: none; }
.benefit .related a:hover { text-decoration: underline; }
@media (min-width: 768px) { .benefits { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); } }

/* ---------- Hizmetler ---------- */

.services-section { background: var(--surface); border-top: 1px solid var(--rivet); border-bottom: 1px solid var(--rivet); }

.services { border-top: 1px solid var(--rivet); }
.service { border-bottom: 1px solid var(--rivet); }
.service:target { background: var(--signal-tint); }

.service-head { font: inherit; letter-spacing: normal; }
.service-toggle {
  display: grid;
  grid-template-columns: 40px 1fr 24px;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  min-height: 72px;
  padding: var(--s4) 0;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.service-icon { color: var(--signal); }
.service-name { display: block; font-stretch: var(--wide); font-variation-settings: "wdth" 112; font-size: 1.125rem; font-weight: 600; letter-spacing: -.012em; line-height: 1.25; }
.service-benefit { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); line-height: 1.4; }
.service-chevron { color: var(--muted); transition: transform .2s var(--ease); }
.service-toggle[aria-expanded="true"] .service-chevron { transform: rotate(180deg); }

.service-body { padding: 0 0 var(--s5) calc(40px + var(--s3)); }
.service-body[hidden] { display: none; }
.service-body p { color: var(--steel); }
.included { margin-top: var(--s4); display: grid; gap: var(--s2); }
.included li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--fs-sm); font-weight: 500; }
.included svg { flex-shrink: 0; margin-top: 3px; color: var(--signal); }

/* Masaüstünde akordeon yerine açık kart ızgarası */
@media (min-width: 900px) {
  .services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 0;
    border-left: 1px solid var(--rivet);
  }
  .service {
    border-top: 1px solid var(--rivet);
    border-right: 1px solid var(--rivet);
    padding: var(--s6);
    display: flex;
    flex-direction: column;
  }
  .service-toggle {
    display: block;
    min-height: 0;
    padding: 0;
    cursor: default;
    pointer-events: none;
  }
  .service-icon { margin-bottom: var(--s5); }
  .service-name { font-size: var(--fs-lg); }
  .service-benefit { margin-top: var(--s2); font-size: var(--fs-base); color: var(--ink); font-weight: 500; }
  .service-chevron { display: none; }
  .service-body, .service-body[hidden] { display: flex; flex-direction: column; flex: 1; padding: var(--s4) 0 0; }
  .included { margin-top: auto; padding-top: var(--s5); }
}

/* ---------- Süreç (koyu) ---------- */

.on-dark { background: var(--night); color: #fff; }
.on-dark .lead { color: var(--night-text); }
.on-dark .label { color: var(--night-muted); }
.on-dark a:not(.btn) { color: var(--sky); }
.on-dark a:not(.btn):hover { color: #fff; }

.steps { position: relative; display: grid; gap: 0; counter-reset: step; }
.step {
  position: relative;
  padding: 0 0 var(--s6) var(--s7);
}
.step::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 32px;
  bottom: 0;
  width: 1px;
  background: var(--night-line);
}
.step:last-child::before { display: none; }
.step-num {
  position: absolute;
  left: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: 50%;
  font-stretch: var(--narrow); font-variation-settings: "wdth" 87;
  font-size: var(--fs-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-stretch: var(--wide); font-variation-settings: "wdth" 112; font-size: 1.1875rem; padding-top: 3px; }
.step p { margin-top: var(--s2); color: var(--night-text); max-width: 26em; }

@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s5); }
  .step { padding: var(--s7) 0 0; }
  .step::before { left: 40px; right: calc(var(--s5) * -1); top: 15px; bottom: auto; width: auto; height: 1px; }
}

/* ---------- Güven ---------- */

.trust-grid { display: grid; gap: var(--s7); }

.trust-head { margin-bottom: 0; }
.refs-title { margin-bottom: var(--s4); }
/* Referans pafta kartları: çizim paftası gibi köşe işaretleri ve antet satırı */
.ref-cards { display: grid; grid-template-columns: 1fr; gap: var(--s3); }
@media (min-width: 480px) { .ref-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .ref-cards { gap: var(--s4); } }

.ref-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: var(--s4);
  background: var(--surface);
  border: 1px solid var(--rivet);
  transition: border-color .25s var(--ease);
}
/* Dört köşede L biçimli işaret; üzerine gelince çizgiler uzar */
.ref-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  pointer-events: none;
  background:
    linear-gradient(var(--ink), var(--ink)) left top / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left top / 1.5px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right top / 1.5px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) left bottom / 1.5px 14px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 14px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) right bottom / 1.5px 14px no-repeat;
  transition: background-size .45s var(--ease);
}
.ref-mono {
  font-stretch: var(--wide); font-variation-settings: "wdth" 112;
  font-size: 3rem;
  font-weight: 700;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 1px var(--rivet-strong);
  transition: color .3s var(--ease), -webkit-text-stroke-color .3s var(--ease);
}
.ref-name {
  margin-top: auto;
  padding-top: var(--s4);
  font-stretch: var(--wide); font-variation-settings: "wdth" 112;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -.015em;
  line-height: 1.25;
}
.ref-desc { margin-top: var(--s2); font-size: var(--fs-sm); line-height: 1.5; color: var(--steel); }
.ref-scope { margin-top: var(--s2); font-size: var(--fs-sm); color: var(--steel); }
.ref-scope li + li { margin-top: 2px; }
.ref-meta { display: grid; gap: 2px; margin-top: var(--s4); padding-top: var(--s2); border-top: 1px solid var(--rivet); }
.ref-meta div { display: flex; justify-content: space-between; gap: var(--s3); }
.ref-meta dd { text-align: right; }
.ref-meta dt, .ref-meta dd {
  font-stretch: var(--narrow); font-variation-settings: "wdth" 87;
  font-size: var(--fs-xs);
  font-variant-numeric: tabular-nums;
}
.ref-meta dt { color: var(--muted); }
.ref-meta dd { color: var(--ink); font-weight: 600; }

/* Boş pafta: kesikli kenar, çizim kâğıdı zemini, tam genişlik */
.ref-card.ref-more {
  margin-top: var(--s3);
  min-height: 0;
  gap: var(--s4);
  border-style: dashed;
  border-color: var(--rivet-strong);
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--rivet) 1px, transparent 1px),
    linear-gradient(90deg, var(--rivet) 1px, transparent 1px);
  background-size: 16px 16px;
  background-position: -1px -1px;
}
.ref-more .ref-mono { -webkit-text-stroke-color: var(--signal); }
.ref-more .ref-name { margin-top: 0; padding-top: 0; }
.ref-more .btn { align-self: flex-start; }
@media (min-width: 768px) { .ref-card.ref-more { margin-top: var(--s4); } }
@media (min-width: 560px) {
  .ref-card.ref-more { flex-direction: row; align-items: center; gap: var(--s5); }
  .ref-more-body { flex: 1; }
  .ref-more .btn { align-self: center; flex-shrink: 0; }
}

@media (hover: hover) {
  .ref-card:hover { border-color: var(--rivet-strong); }
  .ref-card:hover::before {
    background-size:
      40% 1.5px, 1.5px 40%, 40% 1.5px, 1.5px 40%,
      40% 1.5px, 1.5px 40%, 40% 1.5px, 1.5px 40%;
  }
  .ref-card:hover .ref-mono { color: var(--signal-tint); -webkit-text-stroke-color: var(--signal); }
}
@media (min-width: 560px) {
  .ref-card { min-height: 196px; padding: var(--s5); }
  .ref-mono { font-size: 3.5rem; }
}
@media (min-width: 1024px) {
  .trust-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
  /* Kartlar akarken başlık yanında kalır */
  .trust-grid > :first-child { position: sticky; top: calc(var(--header-h) + var(--s6)); }
}

/* ---------- SSS ---------- */

.faq { border-top: 1px solid var(--rivet); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--rivet); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  min-height: 64px;
  padding: var(--s4) 0;
  font-size: var(--fs-md);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; color: var(--muted); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 0 var(--s5); color: var(--steel); max-width: 40em; }

/* ---------- İletişim ---------- */

.contact-grid { display: grid; gap: var(--s7); }
.contact-actions { display: grid; gap: var(--s3); }
.contact-card {
  display: grid;
  grid-template-columns: 44px 1fr 20px;
  align-items: center;
  gap: var(--s4);
  min-height: 88px;
  padding: var(--s4) var(--s5);
  border: 1px solid var(--night-line);
  border-radius: var(--r-panel);
  background: var(--night-2);
  text-decoration: none;
  transition: border-color .18s var(--ease), background-color .18s var(--ease);
}
.on-dark a.contact-card { color: #fff; }
.on-dark a.contact-card:hover { color: #fff; border-color: var(--sky); }
.contact-card .ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-control);
  background: rgba(108, 188, 255, .12);
  color: var(--sky);
}
.contact-card strong { display: block; font-stretch: var(--wide); font-variation-settings: "wdth" 112; font-size: 1.1875rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.contact-card .label { display: block; margin-bottom: 2px; }
.contact-card > svg { color: var(--night-muted); }

.contact-meta { display: grid; gap: var(--s4); margin-top: var(--s6); padding-top: var(--s5); border-top: 1px solid var(--night-line); }
.contact-meta dd { color: var(--night-text); }
.contact-meta dd small { display: block; color: var(--night-muted); font-size: var(--fs-sm); }

@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s8); align-items: start; }
  .contact-meta { grid-template-columns: 1fr 1fr; }
}

/* ---------- Footer ---------- */

.site-footer {
  background: #0a1019;
  color: var(--night-muted);
  padding: var(--s8) 0 calc(var(--s6) + env(safe-area-inset-bottom));
  font-size: var(--fs-sm);
}
/* Mobil aksiyon çubuğu olan sayfada footer'ın sonu çubuğun altında kalmasın */
.has-action-bar .site-footer { padding-bottom: calc(var(--s6) + 72px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .has-action-bar .site-footer { padding-bottom: var(--s6); } }
.footer-grid { display: grid; gap: var(--s6); padding-bottom: var(--s6); border-bottom: 1px solid var(--night-line); }
.footer-brand img { height: 44px; width: auto; margin: -4px 0 var(--s4) -6px; }
.footer-brand p { max-width: 26em; }
.footer-title { color: #fff; font-weight: 600; margin-bottom: var(--s2); }
.footer-links { display: grid; }
.site-footer a, .link-button {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--night-text);
  text-decoration: none;
}
.site-footer a:hover, .link-button:hover { color: #fff; text-decoration: underline; }
.site-footer :focus-visible { outline-color: var(--sky); }
.link-button { background: none; border: 0; padding: 0; cursor: pointer; text-align: left; font-size: inherit; }
.footer-bottom { padding-top: var(--s5); font-size: var(--fs-xs); }
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr repeat(3, 1fr); gap: var(--s5); }
}

/* ---------- Mobil aksiyon çubuğu ---------- */

.action-bar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  padding: var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom));
  background: rgba(245, 247, 249, .96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--rivet);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform .25s var(--ease), visibility 0s linear .25s;
}
.action-bar.is-visible { transform: none; visibility: visible; transition: transform .25s var(--ease), visibility 0s; }
@media (min-width: 960px) { .action-bar { display: none; } }

/* ---------- Çerez bildirimi ---------- */

.cookie {
  position: fixed;
  left: var(--s3); right: var(--s3);
  bottom: calc(var(--s3) + env(safe-area-inset-bottom));
  z-index: 60;
  max-width: 920px;
  margin: 0 auto;
  display: grid;
  gap: var(--s4);
  padding: var(--s5);
  border-radius: var(--r-panel);
  background: var(--night);
  color: var(--night-text);
  border: 1px solid var(--night-line);
  box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .6);
  font-size: var(--fs-sm);
}
.cookie[hidden] { display: none; }
.cookie strong { display: block; color: #fff; margin-bottom: var(--s1); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
@media (min-width: 768px) {
  .cookie { grid-template-columns: 1fr auto; align-items: center; }
  .cookie-actions { display: flex; }
}

/* ---------- Yasal sayfalar ve 404 ---------- */

.legal-hero {
  padding: var(--s7) 0 var(--s6);
  border-bottom: 1px solid var(--rivet);
}
.legal-hero h1 { font-size: clamp(1.75rem, 1.3rem + 2.2vw, 3rem); max-width: 18em; }
.legal-hero .lead { margin-top: var(--s4); }
.legal-meta { margin-top: var(--s4); font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--s2); margin-bottom: var(--s5); font-size: var(--fs-sm); color: var(--muted); }
.breadcrumb { align-items: center; }
.breadcrumb a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
@media (min-width: 768px) { .legal-hero { padding: var(--s9) 0 var(--s7); } }

.not-found { border-bottom: 0; padding-bottom: var(--section); }
.not-found .label { margin-bottom: var(--s3); }

.legal-body {
  max-width: 44rem;
  padding: var(--s7) 0 var(--section);
}
.legal-body h2 {
  font-size: var(--fs-lg);
  line-height: 1.25;
  margin: var(--s7) 0 var(--s3);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { color: var(--steel); }
.legal-body p + p { margin-top: var(--s3); }
.legal-body strong { color: var(--ink); }
.legal-body ul, .legal-body ol { margin: var(--s3) 0 0 1.25em; }
.legal-body ul { list-style: disc; }
.legal-body ol { list-style: decimal; }
.legal-body li + li { margin-top: var(--s2); }
.legal-body li::marker { color: var(--signal); }

.table-scroll { overflow-x: auto; margin-top: var(--s4); -webkit-overflow-scrolling: touch; }
.legal-table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: var(--fs-sm); }
.legal-table th, .legal-table td {
  text-align: left;
  vertical-align: top;
  padding: var(--s3) var(--s3) var(--s3) 0;
  border-bottom: 1px solid var(--rivet);
}
.legal-table th { font-weight: 600; color: var(--ink); }
.legal-table td { color: var(--steel); }

.contact-box {
  margin-top: var(--s4);
  padding: var(--s5);
  border: 1px solid var(--rivet);
  border-radius: var(--r-panel);
  background: var(--surface);
}
.contact-box dt { font-size: var(--fs-sm); color: var(--muted); }
.contact-box dd { font-weight: 600; margin-bottom: var(--s3); overflow-wrap: anywhere; }
.contact-box dd:last-child { margin-bottom: 0; }

/* ---------- Hareket tercihi ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
