/* ===========================================================================
   AYSIS Otomasyon — kurumsal web tasarım sistemi
   Dark Technology + Industrial Corporate. Koyu lacivert / antrasit / elektrik mavisi.
   Harici CDN yok: sistem font yığını + yerel varlıklar.
   =========================================================================== */

:root {
  /* renk belirteçleri */
  --navy-900: #060d1a;
  --navy-800: #0a1424;
  --navy-700: #0f1d33;
  --navy-600: #152744;
  --anthracite: #111827;
  --surface: #0e1a2e;
  --surface-2: #13233d;
  --line: #1e3252;
  --line-soft: #1a2c49;

  --blue-500: #2f81f7;    /* elektrik mavisi (ana vurgu) */
  --blue-400: #4f9bff;
  --cyan-400: #38bdf8;
  --cyan-300: #67d3ff;
  --accent-grad: linear-gradient(135deg, #2f81f7 0%, #38bdf8 100%);

  --txt: #eef4ff;
  --txt-soft: #b4c4de;
  --txt-mute: #7e93b4;

  --ges: #f4a05a;   /* güneş — kavun içi (cantaloupe) */
  --res: #3b8cff;   /* rüzgâr — mavi */
  --hybrid: #e0479e; /* hibrit — magenta */
  --hes: #1fb6c9;    /* hidroelektrik — su (teal) */
  --ok: #35c27a;
  --warn: #f5a623;
  --danger: #ef5350;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, .7);
  --shadow-soft: 0 10px 30px -18px rgba(0, 0, 0, .65);
  --maxw: 1200px;
  --gutter: 20px;

  --font: "Segoe UI", system-ui, -apple-system, "Inter", "Roboto", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, monospace;

  --ease: cubic-bezier(.22, .61, .36, 1);
  color-scheme: dark;
}

/* açık tema (opsiyonel; data-theme=light ile) */
:root[data-theme="light"] {
  --navy-900: #eef3fb; --navy-800: #f4f8ff; --navy-700: #ffffff;
  --navy-600: #e7eefb; --anthracite: #f4f7fc; --surface: #ffffff; --surface-2: #f3f7ff;
  --line: #d8e2f2; --line-soft: #e4ecf7;
  --txt: #0c1a30; --txt-soft: #33465f; --txt-mute: #64748b;
  --shadow: 0 18px 50px -24px rgba(16, 42, 80, .28);
  --shadow-soft: 0 10px 30px -20px rgba(16, 42, 80, .22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--navy-900);
  color: var(--txt);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ambient arka plan dokusu */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(47, 129, 247, .14), transparent 60%),
    radial-gradient(900px 500px at 0% 10%, rgba(56, 189, 248, .10), transparent 55%),
    var(--navy-900);
}
body::after {
  content: "";
  position: fixed; inset: 0; z-index: -1; opacity: .4;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1rem; color: var(--txt-soft); }
a { color: var(--cyan-300); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cyan-400); }
img, svg { max-width: 100%; display: block; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--cyan-300);
  padding: .35rem .8rem; border: 1px solid var(--line); border-radius: 999px;
  background: rgba(47, 129, 247, .08);
}
.lead { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: var(--txt-soft); max-width: 60ch; }
.text-grad { background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--txt-mute); }

/* ---------------- butonlar ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font: inherit; font-weight: 600; cursor: pointer;
  padding: .8rem 1.4rem; border-radius: var(--radius-sm);
  border: 1px solid transparent; transition: transform .18s var(--ease), box-shadow .18s, background .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent-grad); color: #04101f; box-shadow: 0 10px 30px -12px rgba(47, 129, 247, .7); }
.btn-primary:hover { box-shadow: 0 14px 34px -10px rgba(47, 129, 247, .9); color: #04101f; }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--txt); }
.btn-ghost:hover { border-color: var(--blue-400); color: var(--txt); background: rgba(47, 129, 247, .07); }

/* ---------------- header / nav ---------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--navy-900) 78%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; }
/* AYSIS koyu-tema logosu (beyaz yazı + amber üçgen, şeffaf) — chip yok, oran korunur */
.brand-logo { height: 48px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--txt-soft); font-weight: 500; font-size: .95rem;
  padding: .5rem .8rem; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--txt); background: rgba(47, 129, 247, .1); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
/* dil menüsü (dünya ikonu + açılır liste) */
.lang-menu { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: .35rem; font: inherit; font-size: .84rem; font-weight: 600;
  cursor: pointer; background: transparent; color: var(--txt-soft); border: 1px solid var(--line);
  border-radius: 8px; padding: .4rem .6rem;
}
.lang-btn:hover { border-color: var(--blue-400); color: var(--txt); }
.lang-list {
  position: absolute; top: calc(100% + 6px); inset-inline-end: 0; min-width: 150px; margin: 0; padding: .35rem;
  list-style: none; background: var(--navy-800); border: 1px solid var(--line); border-radius: 10px;
  box-shadow: var(--shadow); z-index: 60;
  opacity: 0; visibility: hidden; transform: translateY(-6px); pointer-events: none;
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s;
}
.lang-menu.open .lang-list { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.lang-list button {
  display: block; width: 100%; text-align: start; font: inherit; font-size: .9rem; cursor: pointer;
  background: transparent; color: var(--txt-soft); border: 0; border-radius: 7px; padding: .5rem .7rem;
}
.lang-list button:hover { background: rgba(47, 129, 247, .12); color: var(--txt); }
.lang-list button[aria-current="true"] { color: var(--cyan-300); font-weight: 700; }

/* RTL (Arapça) */
:root[dir="rtl"] body { direction: rtl; }
:root[dir="rtl"] .lead, :root[dir="rtl"] .section-head, :root[dir="rtl"] .card p, :root[dir="rtl"] .hero-copy { text-align: right; }
:root[dir="rtl"] .hero-centered, :root[dir="rtl"] .section-head.center { text-align: center; }
:root[dir="rtl"] .breadcrumb { text-align: right; }
.nav-toggle { display: none; background: transparent; border: 1px solid var(--line); border-radius: 8px; width: 42px; height: 38px; cursor: pointer; color: var(--txt); }
.nav-toggle svg { margin: auto; }

/* ---------------- hero ---------------- */
.hero { position: relative; padding: clamp(.8rem, 2vw, 1.6rem) 0 1.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1.35fr; gap: clamp(1.5rem, 3vw, 3rem); align-items: center; }
.hero-copy h1 { margin-top: .6rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-stats { display: flex; gap: 1.6rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 1.7rem; font-weight: 800; color: var(--txt); }
.hero-stats .stat span { font-size: .85rem; color: var(--txt-mute); }

/* ortalanmış hero: harita sayfanın ORTASINDA, sağ-sol eşit */
.hero-centered { max-width: 900px; margin: clamp(2.6rem, 5vw, 4.2rem) auto 0; text-align: center; }
.hero-centered .lead { margin-inline: auto; }
.hero-centered .hero-cta { justify-content: center; }
.hero-map-wrap { max-width: 1000px; margin: .6rem auto 0; }   /* ortalı, eşit kenar boşluğu */
.hero-stats-center { justify-content: center; text-align: center; margin-top: 1.8rem; }

/* ---------------- harita paneli ---------------- */
.map-panel {
  position: relative; background: linear-gradient(180deg, var(--surface), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden;
}
.map-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid var(--line-soft); flex-wrap: wrap; }
.map-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.02rem; }
.map-title .map-logo { height: 32px; width: auto; flex: 0 0 auto; }
.map-title .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(53, 194, 122, .18); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }
.badge-demo {
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
  color: #1a1203; background: var(--ges); padding: .25rem .5rem; border-radius: 6px;
}
.badge-live { color: #042; background: var(--ok); }
/* CANLI VERİ yanı: anlık saha verisi notu (sarı yanıp söner) — yalnız canlı modda */
.live-real { color: #f5c518; font-weight: 700; font-size: .74rem; letter-spacing: .02em;
  white-space: nowrap; animation: liveBlink 1.1s steps(1, end) infinite; }
@keyframes liveBlink { 50% { opacity: 0; } }
/* Kamera kartı (Ağrı IF1 CANLI) */
.cam-wrap { position: relative; aspect-ratio: 16/9; border-radius: 10px; overflow: hidden;
  margin-bottom: 1rem; background: var(--navy-800); border: 1px solid var(--line); }
.cam-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-live { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center;
  gap: 6px; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.58);
  color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .09em; }
.cam-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b3b;
  box-shadow: 0 0 0 0 rgba(255,59,59,.6); animation: campulse 1.6s infinite; }
@keyframes campulse { 0% { box-shadow: 0 0 0 0 rgba(255,59,59,.6); }
  70% { box-shadow: 0 0 0 7px rgba(255,59,59,0); } 100% { box-shadow: 0 0 0 0 rgba(255,59,59,0); } }
.map-filters { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; flex-basis: 100%; }
/* 3 bölge: sol=enerji filtreleri · orta=hava toggle'ları (ortalı) · sağ=Olay Günlüğü */
.map-filters .mf-left, .map-filters .mf-center, .map-filters .mf-right { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; }
.map-filters .mf-left { flex: 0 1 auto; justify-content: flex-start; }
.map-filters .mf-center { flex: 0 1 auto; justify-content: center; margin-left: 5rem; } /* Bulut öncesi bir-buton boşluk */
.map-filters .mf-right { flex: 1 1 0; justify-content: flex-end; }
.map-filter-toggle { display: none; }   /* masaüstünde gizli; <=1024px'te hamburger */
.filter-btn {
  font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  background: transparent; color: var(--txt-mute); border: 1px solid var(--line); border-radius: 7px; padding: .35rem .7rem;
  transition: all .18s;
}
.filter-btn[aria-pressed="true"] { color: var(--txt); border-color: var(--blue-400); background: rgba(47, 129, 247, .12); }

/* hava katmanı renk skalası (aktif katmana göre butonların altında) */
.weather-legend { display: none; align-items: center; gap: .5rem; justify-content: flex-end;
  padding: .5rem 1.2rem; border-bottom: 1px solid var(--line-soft); font-size: .72rem; color: var(--txt-mute); }
.weather-legend .wl-label { font-weight: 700; color: var(--txt); }
.weather-legend .wl-grad { display: inline-block; width: 120px; height: 9px; border-radius: 5px; border: 1px solid var(--line); }

.map-stage { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 320px; }
#turkeyMap { width: 100%; height: 100%; display: block; cursor: grab; }
#turkeyMap:active { cursor: grabbing; }
.province { fill: var(--surface-2); stroke: var(--line); stroke-width: .5; transition: fill .4s var(--ease), stroke .2s; }
.province.has-ges { fill: color-mix(in srgb, var(--ges) 62%, var(--surface-2)); }
.province.has-res { fill: color-mix(in srgb, var(--res) 60%, var(--surface-2)); }
.province.has-hybrid { fill: color-mix(in srgb, var(--hybrid) 62%, var(--surface-2)); }
.province.has-hes { fill: color-mix(in srgb, var(--hes) 60%, var(--surface-2)); }
.province.lvl-1 { filter: brightness(.82); }
.province.lvl-2 { filter: brightness(1.0); }
.province.lvl-3 { filter: brightness(1.22); }
.province.protected { fill: color-mix(in srgb, var(--txt-mute) 30%, var(--surface-2)); stroke: var(--txt-mute); stroke-dasharray: 3 2; opacity: .8; }
.province.stale { fill: color-mix(in srgb, var(--txt-mute) 42%, var(--surface-2)); stroke: var(--txt-mute); stroke-dasharray: 2 2; opacity: .9; }
.province:hover { stroke: var(--cyan-300); stroke-width: 1.2; filter: brightness(1.3); }
/* ana sayfa HUD — hero-copy'nin ARKASINDA (yazılar üstte), silik-dekoratif */
.hero-copy { position: relative; }
.home-hud { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 0; pointer-events: none; }
.home-hud canvas { display: block; width: min(78vw, 600px); height: auto; aspect-ratio: 1; opacity: .36; }
.home-emb { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 21%; height: 21%; color: #FFAA00; opacity: .72; filter: drop-shadow(0 0 9px rgba(255,170,0,.55)); animation: hudEmbPulse 2.4s ease-in-out infinite; }
@keyframes hudEmbPulse { 0%, 100% { opacity: .82; filter: drop-shadow(0 0 12px rgba(255,170,0,.65)); } 50% { opacity: .3; filter: drop-shadow(0 0 5px rgba(255,170,0,.3)); } }
@media (prefers-reduced-motion: reduce) { .home-emb { animation: none; } }
.hero-copy > :not(.home-hud) { position: relative; z-index: 1; }
@media (max-width: 720px) { .home-hud canvas { width: 94vw; } }
.plabel { font-size: 10.5px; font-weight: 700; fill: #fff; paint-order: stroke; stroke: rgba(0,0,0,.55); stroke-width: 2.4px; pointer-events: none; }
.plabel .u { font-size: 8.5px; fill: var(--cyan-300); }

.map-legend { display: flex; flex-wrap: wrap; gap: 1rem 1.3rem; padding: .85rem 1.2rem; border-top: 1px solid var(--line-soft); font-size: .8rem; color: var(--txt-mute); }
.map-legend .key { display: inline-flex; align-items: center; gap: .45rem; }
.map-legend .sw { width: 13px; height: 13px; border-radius: 4px; border: 1px solid var(--line); }
.map-tools { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
.map-tools button { width: 34px; height: 34px; border-radius: 8px; border: 1px solid var(--line); background: color-mix(in srgb, var(--navy-800) 85%, transparent); color: var(--txt); font-size: 1.1rem; cursor: pointer; backdrop-filter: blur(6px); }
.map-tools button:hover { border-color: var(--blue-400); }

/* harita tooltip */
.map-tip {
  position: fixed; z-index: 60; pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .15s, transform .15s;
  background: color-mix(in srgb, var(--navy-800) 95%, #000); border: 1px solid var(--line);
  border-radius: 10px; padding: .6rem .8rem; box-shadow: var(--shadow); min-width: 170px; font-size: .85rem;
}
.map-tip.show { opacity: 1; transform: translateY(0); }
.map-tip .tn { font-weight: 800; color: var(--txt); margin-bottom: .2rem; }
.map-tip .tv { font-size: 1.35rem; font-weight: 800; color: var(--cyan-300); }
.map-tip .tm { color: var(--txt-mute); font-size: .76rem; margin-top: .25rem; }
.map-tip .pill { display: inline-block; font-size: .68rem; font-weight: 700; padding: .1rem .4rem; border-radius: 5px; margin-right: .3rem; }

.map-error { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: .6rem; padding: 2rem; background: var(--navy-800); }
.map-error.show { display: flex; }
.map-error .ico { font-size: 2rem; }

/* ---------------- bölümler ---------------- */
section { padding: clamp(3rem, 6vw, 5.5rem) 0; }
.section-head { max-width: 62ch; margin-bottom: 2.4rem; }
.section-head.center { margin-inline: auto; text-align: center; }

.grid { display: grid; gap: 1.1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface), var(--navy-800));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem;
  box-shadow: var(--shadow-soft); transition: transform .25s var(--ease), border-color .25s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-4px); border-color: var(--blue-400); }
.card .ico { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 1rem; background: rgba(47, 129, 247, .12); color: var(--cyan-300); border: 1px solid var(--line); }
.card h3 { margin-bottom: .4rem; }
.card p { margin: 0; font-size: .95rem; }
.card ul { margin: .6rem 0 0; padding-left: 1.1rem; color: var(--txt-soft); font-size: .92rem; }
.card ul li { margin: .2rem 0; }
.card-clickable { cursor: pointer; }
.card-more { display: inline-block; margin-top: .9rem; color: var(--cyan-300); font-weight: 600; font-size: .88rem; transition: color .2s, transform .2s; }
.card-clickable:hover .card-more { color: var(--cyan-400); transform: translateX(3px); }
.report-card { display: block; text-decoration: none; color: inherit; cursor: pointer; }
.report-card:hover .card-more { color: var(--cyan-400); transform: translateX(3px); }
.rep-tag { position: absolute; top: 1rem; inset-inline-end: 1rem; font-size: .68rem; font-weight: 700; letter-spacing: .05em; padding: .18rem .5rem; border-radius: 6px; background: rgba(47, 129, 247, .14); color: var(--cyan-300); border: 1px solid var(--line); }
.rep-screen { position: relative; margin-top: 1.1rem; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-soft); outline: none; }
.rep-screen:focus-visible { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(47,129,247,.35); }
.rep-screen img { display: block; width: 100%; height: auto; user-select: none; }
.rep-screen-label { position: absolute; left: 0; bottom: 0; padding: .4rem .7rem .45rem; font-size: .78rem; font-weight: 600; color: #e8f0ff; background: linear-gradient(0deg, rgba(6,13,26,.8), rgba(6,13,26,0)); }
.rps-count { position: absolute; right: .6rem; bottom: .6rem; padding: .18rem .55rem; font-size: .76rem; font-weight: 700; color: #e8f0ff; background: rgba(6,13,26,.72); border: 1px solid rgba(255,255,255,.14); border-radius: 999px; }
.rps-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; font-size: 1.6rem; line-height: 1; color: #0b1220; background: rgba(255,255,255,.86); border: 1px solid rgba(0,0,0,.12); border-radius: 50%; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.25); transition: background .15s, opacity .15s; }
.rps-nav:hover { background: #fff; }
.rps-nav:disabled { opacity: .3; cursor: default; box-shadow: none; }
.rps-prev { left: .6rem; }
.rps-next { right: .6rem; }
.rep-card .rep-screen { margin-top: 1.1rem; }
.modal-img .m-img-shot { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #0e1a2e; }

/* kart detay popup */
.modal-backdrop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(2, 8, 18, .74); backdrop-filter: blur(6px); animation: fadeIn .2s; }
.modal-backdrop[hidden] { display: none; }
.modal { position: relative; width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: linear-gradient(180deg, var(--surface), var(--navy-800)); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.8rem; animation: modalIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(16px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--line); background: transparent; color: var(--txt); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.modal-close:hover { border-color: var(--blue-400); }
.modal-head { display: flex; align-items: center; gap: .8rem; margin-bottom: 1.3rem; padding-right: 2.2rem; }
.modal-ico { width: 46px; height: 46px; flex: 0 0 auto; border-radius: 11px; display: grid; place-items: center; background: rgba(47, 129, 247, .12); color: var(--cyan-300); border: 1px solid var(--line); }
.modal-head h3 { margin: 0; }
.modal-section { margin-bottom: 1.2rem; }
.modal-section h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-mute); margin: 0 0 .5rem; }
.modal-section ul { margin: 0; padding-left: 1.1rem; }
.modal-section li { margin: .4rem 0; color: var(--txt-soft); font-size: .95rem; }
.modal-tech { display: flex; flex-wrap: wrap; gap: .4rem; }
body.modal-open { overflow: hidden; }
.modal-3d[hidden] { display: none; }
.m3d-wrap { position: relative; }
.m3d-frame { width: 100%; height: 440px; border: 1px solid var(--line); border-radius: 10px; background: var(--navy-900); display: block; }
.m3d-full { display: inline-block; margin-top: .5rem; font-size: .85rem; color: var(--cyan-300); }

/* proje kartı */
.project-card { padding: 0; }
.project-card .thumb { aspect-ratio: 16/9; background: var(--accent-grad); position: relative; display: grid; place-items: center; }
.project-card .thumb svg { width: 100%; height: 100%; }
.project-card .body { padding: 1.3rem 1.4rem; }
.project-card .tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .8rem; }
.tag { font-size: .72rem; font-weight: 600; color: var(--cyan-300); background: rgba(47,129,247,.1); border: 1px solid var(--line); padding: .22rem .55rem; border-radius: 6px; }

/* istatistik şeridi */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat-box { text-align: center; padding: 1.4rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stat-box b { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; background: var(--accent-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-box span { color: var(--txt-mute); font-size: .86rem; }

/* CTA bandı */
.cta-band { background: linear-gradient(135deg, var(--navy-700), var(--navy-600)); border: 1px solid var(--line); border-radius: calc(var(--radius) + 4px); padding: clamp(2rem, 4vw, 3.2rem); text-align: center; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(500px 240px at 50% 0%, rgba(47,129,247,.25), transparent 70%); pointer-events: none; }

/* form */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .4rem; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .85rem; font-weight: 600; color: var(--txt-soft); }
.field input, .field textarea, .field select {
  font: inherit; color: var(--txt); background: var(--navy-800); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: .75rem .9rem; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(47,129,247,.18); }
.field textarea { resize: vertical; min-height: 120px; }
.form-note { font-size: .8rem; color: var(--txt-mute); }
.form-status { padding: .8rem 1rem; border-radius: var(--radius-sm); font-size: .9rem; display: none; }
.form-status.ok { display: block; background: rgba(53,194,122,.12); border: 1px solid var(--ok); color: var(--txt); }
.form-status.err { display: block; background: rgba(239,83,80,.12); border: 1px solid var(--danger); color: var(--txt); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

/* ---------------- footer ---------------- */
.site-footer { border-top: 1px solid var(--line-soft); background: var(--navy-800); padding: 3rem 0 1.5rem; margin-top: 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 2rem; }
.footer-grid h4 { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; color: var(--txt-mute); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin: .4rem 0; }
.footer-grid a { color: var(--txt-soft); font-size: .92rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.4rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); color: var(--txt-mute); font-size: .83rem; }

/* ---------------- reveal animasyonu ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- sayfa başlığı (iç sayfalar) ---------------- */
.page-hero { padding: clamp(2.6rem, 5vw, 4rem) 0 1rem; }
.breadcrumb { font-size: .83rem; color: var(--txt-mute); margin-bottom: .8rem; }
.breadcrumb a { color: var(--txt-mute); }

/* ---------------- responsive ---------------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
/* nav: tablet dahil (iPad Mini 768) hamburger — masaüstü nav sığmıyor */
@media (max-width: 900px) {
  .nav { height: 64px; }
  .nav-links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-800); border-bottom: 1px solid var(--line); padding: .6rem var(--gutter) 1rem;
    opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
    max-height: calc(100dvh - 64px); overflow: auto; box-shadow: var(--shadow); }
  .nav-links.open { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-links a { padding: .9rem .6rem; border-bottom: 1px solid var(--line-soft); }
  .nav-toggle { display: grid; place-items: center; }
  .nav-actions .btn-primary { display: none; }   /* dar ekranda üst bar sığsın; İletişim menüden erişilir */
}
@media (max-width: 720px) {
  html { font-size: 19px; }   /* telefonda metinler rahat okunur (tüm rem ölçüler büyür) */
  .eyebrow { font-size: .85rem; }
  .badge-demo, .badge-live { font-size: .74rem; }
  .grid-2, .grid-3, .grid-4, .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .map-head { gap: .6rem; }
  .map-stage { aspect-ratio: 4 / 3; }
  .plabel { font-size: 14px; } /* mobilde harita etiketleri okunur (yalnız büyük iller) */
  .plabel .u { font-size: 11px; }
}
/* Harita filtreleri: tablet + mobil hamburger menü — butonlar barda yayılmasın */
@media (max-width: 1024px) {
  .map-filter-toggle { display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 38px; padding: 0; font-size: 1.2rem; line-height: 1; cursor: pointer;
    color: var(--txt); background: transparent; border: 1px solid var(--line); border-radius: 8px; }
  .map-filter-toggle[aria-expanded="true"] { color: var(--txt); border-color: var(--blue-400); background: rgba(47, 129, 247, .12); }
  .map-head .map-filters { display: none; }
  .map-head.mf-open .map-filters { display: flex; flex-direction: column; align-items: stretch; gap: .4rem; margin-top: .5rem; }
  .map-head.mf-open .map-filters .mf-left,
  .map-head.mf-open .map-filters .mf-center,
  .map-head.mf-open .map-filters .mf-right { flex-direction: column; align-items: stretch; width: 100%; margin-left: 0; gap: .4rem; }
  .map-head.mf-open .map-filters button { width: 100%; justify-content: center; }
  /* Başlık şeridi dar ekranda sarsın (badge + "GERÇEKTİR" notu kırpılmasın) */
  .map-head .map-title { flex-wrap: wrap !important; max-width: 100% !important; }
  .map-head .map-title .live-real { white-space: normal !important; flex-basis: 100% !important; }
  /* Olay Günlüğü çekmecesi: #mapStage mobilde kayabildiği için viewport'a sabit alt-panel */
  .map-log-drawer { position: fixed !important; inset: auto 0 0 0 !important; width: 100% !important;
    height: min(72vh, 460px) !important; border-left: none !important; border-top: 1px solid var(--line-soft) !important;
    border-radius: 14px 14px 0 0 !important; box-shadow: 0 -14px 44px rgba(0, 0, 0, .5) !important; z-index: 60 !important;
    animation: none !important; transform: none !important; }   /* yan-slide alt-panele uymaz */
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

:focus-visible { outline: 2px solid var(--cyan-400); outline-offset: 2px; border-radius: 4px; }
/* sr-only (RTL'de yatay taşma yapmaz) */
.skip-link { position: absolute; top: 0; left: 0; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; background: var(--blue-500); color: #fff; padding: 0; z-index: 100; }
.skip-link:focus { width: auto; height: auto; clip: auto; overflow: visible; left: 8px; top: 8px; padding: .6rem 1rem; }
