/* ==========================================================================
   ChargeON – Tasarım sistemi (styles.css)
   Dil: premium temiz enerji / akıllı kent ürünü. Ürün kahraman, metin az.
   Kaynak belge: docs/DESIGN.md (tüm sınıflar ve kurallar orada anlatılır).

   1  Tokenlar            7  Butonlar & bağlantılar
   2  Reset               8  Header / nav / mobil menü
   3  Tipografi           9  Hero (anasayfa) + 3D sahne
   4  Layout & bantlar   10  Page hero (alt sayfalar)
   5  Bölüm tipleri      11  Footer
      (display, split,   12  Hareket katmanı (perde, reveal, sayaç...)
      stat-row, gallery, 13  Eski ortak bileşenler (alt sayfalar için,
      steps, story)          yeni dile uyarlanmış)
   6  Kicker & yardımcı
   Animasyonlar her cihazda açıktır (müşteri talebi; prefers-reduced-motion
   ile kapatılmaz). CSS'te !important kullanılmaz.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokenlar
   -------------------------------------------------------------------------- */
:root {
  /* Marka */
  --brand-navy: #0b2e59;
  --brand-green: #4da338;

  /* Koyu tonlar (premium bantlar) */
  --night: #050d19;          /* neredeyse siyah lacivert: koyu bant zemini */
  --night-2: #0a1a30;        /* koyu bant içinde yüzey */
  --night-3: #112540;        /* koyu bantta çizgi / ikincil yüzey */

  /* Açık nötrler */
  --paper: #f4f5f2;          /* açık bant zemini (sıcak gri) */
  --paper-2: #eaece7;        /* açık bantta yüzey/çizgi */
  --white: #ffffff;

  /* Metin */
  --text: #0c1626;           /* başlık + gövde (açık zemin) */
  --text-2: #4b5567;         /* ikincil metin */
  --text-3: #7a8393;         /* üçüncül, dipnot */
  --on-dark: rgba(255, 255, 255, 0.94);
  --on-dark-2: rgba(255, 255, 255, 0.66);
  --on-dark-3: rgba(255, 255, 255, 0.42);

  /* Vurgu (yalnızca vurgu!) */
  --accent: #4da338;
  --accent-strong: #3a7f2a;  /* açık zeminde metin/ikon (AA) */
  --accent-bright: #7ed35f;  /* koyu zeminde metin/ikon */
  --accent-tint: #edf5e8;

  /* Durum renkleri (yalnızca durum: form hatası, "kesik" sinyali) */
  --error: #c0392f;          /* form hatası metni / çerçevesi */
  --error-bg: #fdf3f2;       /* hatalı alan / hata kutusu zemini */
  --error-line: #f1cfcb;     /* hata kutusu çizgisi */
  --signal-off: #e5484d;     /* koyu bantta "kesik" durum noktası */

  /* Eski token adları (alt sayfa bölümleri bunları kullanır — silme) */
  --navy: #0b2e59;
  --navy-900: #081f3d;
  --green: #4da338;
  --green-600: #3a7f2a;
  --green-100: #edf5e8;
  --green-50: #f4f8f1;
  --blue-100: #eef2f7;
  --ink: #0c1626;
  --muted: #4b5567;
  --line: #e2e5df;
  --bg: #ffffff;
  --amber-100: #fbf5e6;
  --amber-400: #d99a00;

  /* Fontlar */
  --font-display: "Inter Tight", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-text: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-head: var(--font-display);
  --font-body: var(--font-text);

  /* Tip ölçeği */
  --fs-hero: clamp(2.75rem, 1.6rem + 5.2vw, 6rem);       /* 44 → 96 */
  --fs-display: clamp(2.25rem, 1.3rem + 4.2vw, 5rem);    /* 36 → 80 */
  --fs-h2: clamp(2rem, 1.35rem + 2.9vw, 3.5rem);         /* 32 → 56 */
  --fs-h3: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);     /* 22 → 30 */
  --fs-h4: 1.1875rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.35vw, 1.3125rem); /* 17 → 21 */
  --fs-body: 1.0625rem;
  --fs-small: 0.875rem;
  --fs-kicker: 0.8125rem;
  --fs-stat: clamp(2.75rem, 1.9rem + 3.6vw, 4.75rem);    /* 44 → 76 */

  /* Boşluk ölçeği (8px tabanlı) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;
  --space-section: clamp(88px, 6rem + 5vw, 168px);
  --space-section-sm: clamp(64px, 4rem + 3vw, 112px);

  /* Biçim */
  --radius-xs: 8px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(5, 13, 25, 0.04), 0 2px 8px rgba(5, 13, 25, 0.04);
  --shadow-md: 0 10px 30px -10px rgba(5, 13, 25, 0.18), 0 2px 6px rgba(5, 13, 25, 0.04);
  --shadow-lg: 0 40px 80px -30px rgba(5, 13, 25, 0.35), 0 10px 24px -12px rgba(5, 13, 25, 0.12);

  /* Hareket */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur: 0.8s;
  --dur-fast: 0.3s;

  /* Layout */
  --container: 1240px;
  --container-wide: 1440px;
  --container-narrow: 860px;
  --gutter: 20px;
  --nav-h: 68px;
  --nav-h-scrolled: 60px;

  /* Performans (§12.7, docs/DESIGN.md "Performans bütçesi"):
     --glass  tanımsızken her cam öğe kendi backdrop-filter değerini kullanır
              (var(--glass, blur(…))). Dokunmatik cihazda ve html.is-lowpower'da
              "none" olur: kaydırmada her kare yeniden bulanıklaştırma yapılmaz.
     --glass-solid 0 → 1: cam kapalıyken zeminler biraz daha opak olur (okunurluk). */
  --glass-solid: 0;
}

@media (min-width: 768px) {
  :root {
    --gutter: 32px;
    --nav-h: 76px;
    --nav-h-scrolled: 64px;
  }
}

@media (min-width: 1280px) {
  :root {
    --gutter: 40px;
  }
}

/* --------------------------------------------------------------------------
   2. Reset
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

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

html.menu-open {
  overflow: hidden;
}

body {
  min-height: 100vh;
  font-family: var(--font-text);
  font-size: var(--fs-body);
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
  overflow-x: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

/* <picture> yalnızca WebP/JPG seçimi içindir: kutusu yok, img doğrudan ebeveynin çocuğu
   gibi yerleşir (mevcut düzen ve konumlandırma aynen geçerli). */
picture {
  display: contents;
}

/* <source> görünmez; contents kutusunda grid/flex öğesi sayılıp boş hücre açmasın */
picture > source {
  display: none;
}

img {
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

ul,
ol {
  padding-left: 1.25rem;
}

table {
  border-collapse: collapse;
  width: 100%;
}

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

::selection {
  background: rgba(77, 163, 56, 0.25);
}

main {
  overflow-x: clip;
}

/* --------------------------------------------------------------------------
   3. Tipografi
   -------------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-h2);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

h2 {
  font-size: var(--fs-h2);
  line-height: 1.04;
  letter-spacing: -0.035em;
}

h3 {
  font-size: var(--fs-h3);
  letter-spacing: -0.02em;
}

h4 {
  font-size: var(--fs-h4);
  letter-spacing: -0.015em;
}

p {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

p + p {
  margin-top: 1em;
}

strong {
  font-weight: 600;
}

small {
  font-size: var(--fs-small);
}

/* Başlık sınıfları (h etiketinden bağımsız) */
.t-hero {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.t-display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.t-h2 {
  font-size: var(--fs-h2);
}

.t-h3 {
  font-size: var(--fs-h3);
}

.t-lead {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 38em;
}

.t-small {
  font-size: var(--fs-small);
  color: var(--text-3);
}

.t-muted {
  color: var(--text-2);
}

/* Vurgu: yeşil yalnızca kelime/sayı vurgusu için */
.hl,
.accent {
  color: var(--accent);
}

.text-green {
  color: var(--accent-strong);
}

.text-muted {
  color: var(--text-2);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1001;
  padding: 10px 16px;
  border-radius: var(--radius-xs);
  background: var(--text);
  color: #fff;
  font-weight: 600;
}

.skip-link:focus {
  top: 12px;
}

/* --------------------------------------------------------------------------
   4. Layout & bantlar
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide {
  max-width: calc(var(--container-wide) + var(--gutter) * 2);
}

.container--narrow {
  max-width: calc(var(--container-narrow) + var(--gutter) * 2);
}

/* Bant = tam genişlik bölüm. Ritim: açık (beyaz) → paper → koyu ... */
.band,
.section {
  position: relative;
  padding-block: var(--space-section);
}

.band--tight,
.section {
  padding-block: var(--space-section-sm);
}

.band--paper,
.section--alt {
  background: var(--paper);
}

.band--dark,
.section--navy {
  background: var(--night);
  color: var(--on-dark-2);
  color-scheme: dark;
}

.band--dark :is(h1, h2, h3, h4, .t-hero, .t-display),
.section--navy :is(h1, h2, h3, h4) {
  color: var(--on-dark);
}

.band--dark .t-lead,
.band--dark .lead,
.section--navy .lead,
.section--navy .text-muted {
  color: var(--on-dark-2);
}

.band--dark .hl,
.band--dark .accent,
.section--navy .hl {
  color: var(--accent-bright);
}

.band--dark a:not(.btn),
.section--navy a:not(.btn) {
  color: var(--accent-bright);
}

/* Bölüm başı: başlık + kısa giriş. Ortalı ya da iki kolon (başlık | giriş) */
.head {
  display: grid;
  gap: var(--space-5);
  margin-bottom: clamp(40px, 5vw, 72px);
}

.head :is(h1, h2) {
  max-width: 18ch;
}

.head .t-lead {
  max-width: 34em;
}

.head--center {
  justify-items: center;
  text-align: center;
}

@media (min-width: 960px) {
  .head--split {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: end;
    gap: var(--space-8);
  }

  .head--split .t-lead {
    justify-self: end;
  }
}

/* Ortak ızgara yardımcıları (eski adlar korunur) */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

@media (min-width: 768px) {
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.stack > * + * {
  margin-top: var(--space-4);
}

/* --------------------------------------------------------------------------
   5. Bölüm tipleri
   -------------------------------------------------------------------------- */

/* 5.1 Display: büyük tipografili tek cümle. data-scrub ile kelimeler
   kaydırdıkça aydınlanır (main.js). */
.display {
  font-family: var(--font-display);
  font-size: var(--fs-display);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--text);
  max-width: 20ch;
  text-wrap: balance;
}

.display--center {
  margin-inline: auto;
  text-align: center;
}

.display .muted,
.display .sw:not(.is-lit) {
  color: #c4c9cf;
}

.band--dark .display {
  color: var(--on-dark);
}

.band--dark .display .muted,
.band--dark .display .sw:not(.is-lit) {
  color: rgba(255, 255, 255, 0.22);
}

.display .sw {
  transition: color 0.5s var(--ease);
}

.display .sw.is-lit .hl,
.display .sw .hl {
  color: inherit;
}

.display .sw.is-accent.is-lit {
  color: var(--accent);
}

/* 5.2 Split: iki kolon (görsel | metin). --reverse ile yer değiştirir */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}

@media (min-width: 960px) {
  .split {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }

  .split--reverse > :first-child {
    order: 2;
  }

  .split--even {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.split__media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
}

.split__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.split__body > * + * {
  margin-top: var(--space-5);
}

/* Özellik listesi: ince ayraçlı, kart değil */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid var(--line);
}

.feature-list > li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 20px;
  padding-block: 24px;
  border-bottom: 1px solid var(--line);
}

.feature-list__icon {
  grid-row: span 2;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  color: var(--accent-strong);
}

.feature-list h3 {
  font-size: 1.375rem;
}

.feature-list p {
  color: var(--text-2);
  max-width: 34em;
}

.band--dark .feature-list,
.band--dark .feature-list > li {
  border-color: rgba(255, 255, 255, 0.12);
}

.band--dark .feature-list p {
  color: var(--on-dark-2);
}

.band--dark .feature-list__icon {
  color: var(--accent-bright);
}

/* 5.3 Stat-row: az sayıda büyük istatistik, ince dikey ayraçlar */
.stat-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 0;
  list-style: none;
  padding: 0;
  margin: 0;
}

.stat-row > li {
  padding-inline: 0 16px;
  min-width: 0;
}

@media (min-width: 960px) {
  .stat-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .stat-row > li {
    padding-inline: 32px;
    border-left: 1px solid var(--line);
  }

  .stat-row > li:first-child {
    padding-left: 0;
    border-left: 0;
  }
}

.stat-row__value {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-stat);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.045em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-row__unit {
  font-size: 0.42em;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-left: 0.12em;
  color: var(--accent-strong);
}

.stat-row__label {
  display: block;
  margin-top: 14px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--text-2);
  max-width: 18em;
}

.band--dark .stat-row > li {
  border-color: rgba(255, 255, 255, 0.12);
}

.band--dark .stat-row__value {
  color: var(--on-dark);
}

.band--dark .stat-row__unit {
  color: var(--accent-bright);
}

.band--dark .stat-row__label {
  color: var(--on-dark-2);
}

/* 5.4 Gallery: yatay kayan büyük görsel kartları (js/carousel.js) */
.gallery {
  position: relative;
}

.gallery__track {
  --gallery-gap: 16px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(82vw, 340px);
  gap: var(--gallery-gap);
  list-style: none;
  margin: 0;
  padding: 4px var(--gutter) 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

@media (min-width: 768px) {
  .gallery__track {
    --gallery-gap: 24px;
    grid-auto-columns: 420px;
  }
}

@media (min-width: 1240px) {
  .gallery__track {
    grid-auto-columns: 460px;
    /* Sol kenar container ile hizalı, sağa taşar */
    padding-left: max(var(--gutter), calc((100vw - var(--container)) / 2));
    scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  }
}

.gallery__item {
  scroll-snap-align: start;
  min-width: 0;
}

.gallery__link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.gallery__link:hover {
  text-decoration: none;
}

.gallery__media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
  isolation: isolate;
}

.gallery__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}

.gallery__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5, 13, 25, 0) 45%, rgba(5, 13, 25, 0.72) 100%);
  pointer-events: none;
}

.gallery__link:hover .gallery__media img {
  transform: scale(1.05);
}

.gallery__caption {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 22px;
  z-index: 1;
  color: #fff;
}

.gallery__caption strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.gallery__caption span {
  display: block;
  margin-top: 6px;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.78);
}

.gallery__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 28px;
}

.gallery__progress {
  position: relative;
  flex: 1 1 auto;
  max-width: 320px;
  height: 2px;
  border-radius: 2px;
  background: var(--line);
  overflow: hidden;
}

.gallery__progress span {
  position: absolute;
  inset: 0;
  background: var(--text);
  transform: scaleX(0.2);
  transform-origin: left;
  transition: transform 0.25s linear;
}

.gallery__arrows {
  display: flex;
  gap: 10px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(12, 22, 38, 0.16);
  color: var(--text);
  background: var(--white);
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease);
}

.icon-btn svg {
  width: 20px;
  height: 20px;
}

.icon-btn:hover:not(:disabled) {
  background: var(--text);
  border-color: var(--text);
  color: #fff;
}

.icon-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

/* 5.5 Steps: sade süreç (kutusuz, ince çizgi + nokta) */
.steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: none;
}

.steps > li {
  position: relative;
  padding: 0 0 40px 32px;
}

.steps > li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  bottom: -8px;
  width: 1px;
  background: var(--line);
}

.steps > li:last-child::before {
  display: none;
}

.steps > li::after {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-tint);
}

.steps__when {
  display: block;
  margin-bottom: 10px;
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}

.steps h3 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  margin-bottom: 10px;
}

.steps p {
  color: var(--text-2);
  max-width: 30em;
}

@media (min-width: 960px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 48px;
  }

  .steps > li {
    padding: 40px 0 0;
  }

  .steps > li::before {
    left: 0;
    right: -48px;
    top: 4px;
    bottom: auto;
    width: auto;
    height: 1px;
  }

  .steps > li::after {
    top: 0;
  }
}

/* 5.6 Story: sticky kaydırma anlatımı (gündüz → gece). Mantık main.js'te:
   [data-story] köküne data-step="0..n" ve --p (0–1) yazılır. Ayrıntılar
   css/sections/33-home-story.css içinde. */

/* --------------------------------------------------------------------------
   6. Kicker & yardımcılar
   -------------------------------------------------------------------------- */
/* Kicker: başlık üstü küçük kategori etiketi. Sıra numarası / "BÖLÜM 0X" YAZILMAZ. */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: var(--space-5);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.band--dark .kicker {
  color: var(--on-dark-2);
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-rounded {
  border-radius: var(--radius);
}

.img-zoom {
  overflow: hidden;
}

.img-zoom img {
  transition: transform 1.2s var(--ease-out);
}

.img-zoom:hover img {
  transform: scale(1.04);
}

/* İşaret noktası (.hotspot): görsel üstünde nabız atan nokta + cam etiket.
   Konum satır içi --x / --y ile. .hotspot--left: sağa yaslı noktada etiket solda. */
.hotspot {
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  translate: -11px -50%;
}

.hotspot__dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgb(255 255 255 / calc(0.35 + 0.15 * var(--glass-solid)));
  -webkit-backdrop-filter: var(--glass, blur(6px));
  backdrop-filter: var(--glass, blur(6px));
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.9);
  flex: none;
}

.hotspot__dot::before,
.hotspot__dot::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.hotspot__dot::before {
  inset: 6px;
  background: #fff;
}

.hotspot__dot::after {
  inset: -1px;
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  animation: hotspot-ping 2.6s var(--ease-out) infinite;
}

.hotspot:nth-of-type(2) .hotspot__dot::after {
  animation-delay: 0.6s;
}

.hotspot:nth-of-type(3) .hotspot__dot::after {
  animation-delay: 1.2s;
}

.hotspot:nth-of-type(4) .hotspot__dot::after {
  animation-delay: 1.8s;
}

.hotspot--left {
  flex-direction: row-reverse;
  translate: calc(-100% + 11px) -50%;
}

@keyframes hotspot-ping {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }

  80%,
  100% {
    transform: scale(2.4);
    opacity: 0;
  }
}

.hotspot__label {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / calc(0.88 + 0.07 * var(--glass-solid)));
  -webkit-backdrop-filter: var(--glass, blur(10px));
  backdrop-filter: var(--glass, blur(10px));
  box-shadow: 0 6px 18px -6px rgba(5, 13, 25, 0.35);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.js main > section:not(.is-inview) .hotspot__dot::after {
  animation-play-state: paused;
}

/* Cam rozet (.glass-badge): görsel üstünde, sol altta buzlu cam hap.
   İsteğe bağlı koyu daire ikon (.glass-badge__icon) ve ikinci satır (small). */
.glass-badge {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px 10px 10px;
  border-radius: var(--radius-pill);
  background: rgb(255 255 255 / calc(0.82 + 0.12 * var(--glass-solid)));
  -webkit-backdrop-filter: var(--glass, saturate(180%) blur(16px));
  backdrop-filter: var(--glass, saturate(180%) blur(16px));
  box-shadow: 0 10px 30px -12px rgba(5, 13, 25, 0.35);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
}

.glass-badge small {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
}

.glass-badge__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--text);
  color: var(--accent-bright);
}

.glass-badge__icon svg {
  width: 18px;
  height: 18px;
}

@media (min-width: 768px) {
  .glass-badge {
    left: 24px;
    bottom: 24px;
  }
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

/* --------------------------------------------------------------------------
   7. Butonlar & bağlantılar
   -------------------------------------------------------------------------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
  font-family: var(--font-text);
  font-size: 0.975rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
  transition: transform var(--dur-fast) var(--ease);
}

.btn:hover svg:last-child:not(:first-child) {
  transform: translateX(3px);
}

/* Birincil: koyu (açık zeminde) */
.btn--primary {
  background: var(--text);
  color: #fff;
}

.btn--primary:hover {
  background: var(--brand-navy);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(11, 46, 89, 0.6);
}

/* Vurgu: yeşil (koyu bantlarda birincil) */
.btn--accent {
  background: var(--accent);
  color: var(--night);
}

.btn--accent:hover {
  background: var(--accent-bright);
  color: var(--night);
  box-shadow: 0 10px 30px -10px rgba(126, 211, 95, 0.6);
}

/* İkincil: ince çerçeve */
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(12, 22, 38, 0.18);
}

.btn--ghost:hover {
  background: rgba(12, 22, 38, 0.05);
  border-color: rgba(12, 22, 38, 0.32);
  color: var(--text);
}

.band--dark .btn--ghost,
.section--navy .btn--ghost,
.btn--outline-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
}

.band--dark .btn--ghost:hover,
.section--navy .btn--ghost:hover,
.btn--outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--text);
}

.btn--white:hover {
  background: var(--paper);
  color: var(--text);
}

.btn--sm {
  min-height: 42px;
  padding: 0 18px;
  font-size: 0.9rem;
}

.btn--lg {
  min-height: 58px;
  padding: 0 32px;
  font-size: 1.05rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Metin bağlantısı + ok */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.link-arrow svg {
  width: 18px;
  height: 18px;
  transition: transform var(--dur-fast) var(--ease);
}

.link-arrow:hover {
  text-decoration: none;
  color: var(--accent-strong);
}

.link-arrow:hover svg {
  transform: translateX(4px);
}

.band--dark .link-arrow {
  color: var(--on-dark);
}

.band--dark .link-arrow:hover {
  color: var(--accent-bright);
}

/* --------------------------------------------------------------------------
   8. Header / nav / mobil menü
   Şeffaf başlar; kaydırınca buzlu cam. Buzlu cam ::before üzerindedir
   (header'a backdrop-filter verilirse içindeki fixed menü kutuya hapsolur).
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0);
  border-bottom: 1px solid rgba(12, 22, 38, 0);
  transition: background-color 0.4s var(--ease), border-color 0.4s var(--ease), -webkit-backdrop-filter 0.4s var(--ease), backdrop-filter 0.4s var(--ease);
}

.site-header.is-scrolled::before {
  background: rgb(255 255 255 / calc(0.86 + 0.09 * var(--glass-solid)));
  border-bottom-color: rgba(12, 22, 38, 0.08);
  -webkit-backdrop-filter: var(--glass, saturate(180%) blur(20px));
  backdrop-filter: var(--glass, saturate(180%) blur(20px));
}

.site-header > .container {
  position: relative;
  z-index: 2;
}

/* Koyu bant üstünde koyu cam (main.js .is-dark ekler; mobil menü açıkken açık kalır) */
html:not(.menu-open) .site-header.is-dark::before {
  background: rgb(5 13 25 / calc(0.72 + 0.2 * var(--glass-solid)));
  border-bottom-color: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: var(--glass, saturate(180%) blur(20px));
  backdrop-filter: var(--glass, saturate(180%) blur(20px));
}

html:not(.menu-open) .site-header.is-dark .nav__brand img {
  filter: brightness(0) invert(1);
}

html:not(.menu-open) .site-header.is-dark .nav__link {
  color: var(--on-dark-2);
}

html:not(.menu-open) .site-header.is-dark .nav__link:hover,
html:not(.menu-open) .site-header.is-dark .nav__link.is-active {
  color: var(--on-dark);
}

html:not(.menu-open) .site-header.is-dark .nav__toggle {
  color: var(--on-dark);
}

html:not(.menu-open) .site-header.is-dark .nav__cta {
  background: var(--accent);
  color: var(--night);
}

html:not(.menu-open) .site-header.is-dark .nav__cta:hover {
  background: var(--accent-bright);
  color: var(--night);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--nav-h);
  transition: height 0.4s var(--ease);
}

.site-header.is-scrolled .nav {
  height: var(--nav-h-scrolled);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.nav__brand img {
  height: 26px;
  width: auto;
  transition: filter 0.4s var(--ease);
}

@media (min-width: 768px) {
  .nav__brand img {
    height: 30px;
  }
}

.nav__links {
  display: none;
  list-style: none;
  padding: 0;
  margin: 0;
  gap: 2px;
  align-items: center;
}

.nav__link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--dur-fast) var(--ease), background-color var(--dur-fast) var(--ease);
}

.nav__link:hover {
  color: var(--text);
  text-decoration: none;
}

.nav__link.is-active {
  color: var(--text);
}

.nav__end {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__cta {
  display: none;
}

.nav__toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  border-radius: 50%;
  color: var(--text);
  transition: color 0.4s var(--ease);
}

.nav__toggle-lines {
  position: relative;
  display: block;
  width: 22px;
  height: 12px;
}

.nav__toggle-lines::before,
.nav__toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.5px;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.4s var(--ease-out), top 0.4s var(--ease-out);
}

.nav__toggle-lines::before {
  top: 2px;
}

.nav__toggle-lines::after {
  top: 9px;
}

.nav__toggle[aria-expanded="true"] .nav__toggle-lines::before {
  top: 5.5px;
  transform: rotate(45deg);
}

.nav__toggle[aria-expanded="true"] .nav__toggle-lines::after {
  top: 5.5px;
  transform: rotate(-45deg);
}

/* Mobil menü: tam ekran, açık zemin */
.nav__menu {
  position: fixed;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px));
  background: var(--paper);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0.4s;
}

.nav__menu.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.4s var(--ease), visibility 0s linear 0s;
}

.nav__menu .nav__links {
  display: block;
  border-top: 1px solid var(--line);
}

.nav__menu li {
  border-bottom: 1px solid var(--line);
}

.nav__menu .nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-radius: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 7vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
}

.nav__menu .nav__link::after {
  content: "";
  width: 10px;
  height: 10px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.35;
}

.nav__menu .nav__link.is-active {
  color: var(--accent-strong);
}

.nav__menu-foot {
  margin-top: auto;
  padding-top: 40px;
  display: grid;
  gap: 18px;
}

.nav__menu-foot .btn {
  width: 100%;
}

.nav__menu-foot a:not(.btn) {
  color: var(--text-2);
  font-size: 0.95rem;
}

/* Menü öğeleri kademeli girer */
.nav__menu li,
.nav__menu-foot {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}

.nav__menu.is-open li,
.nav__menu.is-open .nav__menu-foot {
  opacity: 1;
  transform: none;
  transition: opacity 0.6s var(--ease-out), transform 0.7s var(--ease-out);
}

.nav__menu.is-open li:nth-child(1) { transition-delay: 0.08s; }
.nav__menu.is-open li:nth-child(2) { transition-delay: 0.13s; }
.nav__menu.is-open li:nth-child(3) { transition-delay: 0.18s; }
.nav__menu.is-open li:nth-child(4) { transition-delay: 0.23s; }
.nav__menu.is-open li:nth-child(5) { transition-delay: 0.28s; }
.nav__menu.is-open .nav__menu-foot { transition-delay: 0.34s; }

@media (min-width: 1024px) {
  .nav > .nav__links {
    display: flex;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }

  .nav__cta {
    display: inline-flex;
  }

  .nav__toggle,
  .nav__menu {
    display: none;
  }
}

/* Masaüstü: aktif linkin altında kayan ince çizgi (main.js .nav__indicator ekler) */
.nav__indicator {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 1px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0;
  transform-origin: left;
  pointer-events: none;
  transition: transform 0.5s var(--ease-out), opacity 0.3s var(--ease);
}

/* --------------------------------------------------------------------------
   9. Hero (anasayfa)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(24px, 4vw, 56px));
  padding-bottom: clamp(56px, 7vw, 112px);
  background: var(--paper);
  overflow: clip;
}

/* Yumuşak güneş halesi (dekoratif) */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  top: -20%;
  width: min(90vw, 1100px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.28) 0%, rgba(126, 211, 95, 0.1) 38%, rgba(244, 245, 242, 0) 68%);
  pointer-events: none;
  animation: hero-glow 12s ease-in-out infinite alternate;
}

@keyframes hero-glow {
  from {
    transform: translate(0, 0) scale(1);
  }

  to {
    transform: translate(-4%, 6%) scale(1.08);
  }
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  }
}

.hero__content {
  max-width: 640px;
}

.hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  margin-bottom: clamp(20px, 2.4vw, 32px);
  max-width: 11ch;
}

.hero__title .hl {
  color: var(--accent);
}

.hero__text {
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-2);
  max-width: 30em;
  margin-bottom: clamp(28px, 3vw, 40px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-2);
}

.hero__meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero__meta svg {
  width: 18px;
  height: 18px;
  color: var(--accent-strong);
}

.hero__media {
  position: relative;
  width: 100%;
}

.hero__media-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #d6eafb;
  box-shadow: var(--shadow-lg);
  transform: translateZ(0);
}

@media (min-width: 600px) and (max-width: 1023px) {
  .hero__media-frame {
    aspect-ratio: 5 / 4;
  }
}

@media (min-width: 1024px) {
  .hero__media-frame {
    aspect-ratio: auto;
    height: clamp(560px, calc(100vh - var(--nav-h) - 120px), 760px);
  }
}

.hero__media-frame > picture > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 30% 50%;
  transition: opacity 0.4s var(--ease);
}

/* Hero 3D sahnesi (js/hero3d.js): fotoğrafın üstünde aynı boyutta canvas.
   Fotoğraf yükleme sırasında ve yedek olarak kalır. */
.hero3d {
  position: absolute;
  inset: 0;
  opacity: 0;
  background: linear-gradient(180deg, #8fc3ee 0%, #d6eafb 45%, #f3f8ee 100%);
  touch-action: pan-y;
  transition: opacity 0.4s var(--ease);
  -webkit-user-select: none;
  user-select: none;
}

.hero3d[data-state="fallback"] {
  display: none;
}

.hero__media-frame.is-3d .hero3d {
  opacity: 1;
}

.hero__media-frame.is-3d > picture > img {
  opacity: 0;
}

.hero3d__canvas,
.hero3d__labels {
  position: absolute;
  inset: 0;
}

.hero3d__canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.hero3d__labels {
  overflow: hidden;
  pointer-events: none;
}

.hero3d__pin,
.hero3d__label {
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
}

/* Katman (will-change) yalnızca 3D çalışırken; fotoğraf/yedek görünümde boşa katman yok */
.hero__media-frame.is-3d :is(.hero3d__pin, .hero3d__label) {
  will-change: transform, opacity;
}

.hero3d__pin {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(77, 163, 56, 0.28), 0 2px 6px rgba(8, 31, 61, 0.3);
}

.hero3d__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px 6px 9px;
  border-radius: 999px;
  /* backdrop-filter yok: her karede değişen WebGL canvas'ın üstünde bulanıklaştırma
     kaydırmayı ve 3D'yi kilitliyordu (docs/PERF.md). Yerine neredeyse opak zemin. */
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px rgba(8, 31, 61, 0.14);
  font-family: var(--font-text);
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  transform-origin: 50% 50%;
}

.hero3d__label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex: none;
}

.hero3d__label--shade::before {
  background: #2c5e9e;
}

.hero3d__label--night {
  background: rgba(5, 13, 25, 0.82);
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(126, 211, 95, 0.35);
}

.hero3d__label--night::before {
  background: #6dff4a;
  box-shadow: 0 0 8px #6dff4a;
}

@media (min-width: 600px) {
  .hero3d__label {
    font-size: 0.8rem;
  }
}

/* Rozet: .glass-badge.hero__badge (§6). hero3d.js .hero__badge'i arar; 3D sahne
   etiketleri bunun üstüne yerleşmez. 3D çalışırken altı her kare değişir: cam yerine
   neredeyse opak zemin (bulanık gökyüzü ile görsel fark yok denecek kadar az). */
.hero__media.is-3d .hero__badge {
  background: rgba(255, 255, 255, 0.93);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

/* Görsel yavaşça yüzer; masaüstünde fareyle çok hafif tilt (main.js) */
.hero__media {
  transition: transform 0.8s var(--ease-out);
}

.js .hero__media.is-visible .hero__badge {
  animation: badge-in 0.9s var(--ease-out) 1.1s both;
}

.js .hero__media:not(.is-visible) .hero__badge {
  opacity: 0;
}

@keyframes badge-in {
  from {
    opacity: 0;
    translate: 0 12px;
    scale: 0.96;
  }

  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

/* Başlık: kelimeler maskenin altından yukarı açılır (main.js kelimelere böler) */
.hero__title .w,
.page-hero__title .w {
  display: inline-block;
  vertical-align: top;
  clip-path: inset(-0.2em -0.1em -0.18em -0.1em);
}

.hero__title .w__i,
.page-hero__title .w__i {
  display: inline-block;
}

.js .hero__title.is-split:not(.is-visible) .w__i,
.js .page-hero__title.is-split:not(.is-visible) .w__i {
  transform: translateY(115%);
}

.js .hero__title.is-split.is-visible .w__i,
.js .page-hero__title.is-split.is-visible .w__i {
  animation: word-up 1.1s var(--ease-out) calc(0.1s + var(--wi, 0) * 0.06s) both;
}

@keyframes word-up {
  from {
    transform: translateY(115%);
  }

  to {
    transform: none;
  }
}

.js .hero .hero__text.reveal { --rd: 0.45s; }
.js .hero .hero__actions.reveal { --rd: 0.6s; }
.js .hero .hero__meta.reveal { --rd: 0.75s; }
.js .hero .hero__media.reveal { --rd: 0.2s; }

/* --------------------------------------------------------------------------
   10. Page hero (alt sayfalar)
   -------------------------------------------------------------------------- */
.page-hero {
  position: relative;
  isolation: isolate;
  padding-top: calc(var(--nav-h) + clamp(40px, 6vw, 96px));
  padding-bottom: clamp(48px, 6vw, 96px);
  background: var(--paper);
  overflow: clip;
}

.page-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -15%;
  top: -40%;
  width: min(80vw, 900px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 120, 0.22) 0%, rgba(126, 211, 95, 0.08) 40%, rgba(244, 245, 242, 0) 68%);
  pointer-events: none;
  animation: hero-glow 12s ease-in-out infinite alternate;
}

.page-hero__crumbs ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  list-style: none;
  margin: 0 0 clamp(20px, 3vw, 32px);
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-3);
}

.page-hero__crumbs li + li::before {
  content: "/";
  margin-right: 10px;
  color: var(--text-3);
  opacity: 0.6;
}

.page-hero__crumbs a {
  color: var(--text-2);
}

.page-hero__crumbs a:hover {
  color: var(--text);
}

.page-hero__crumbs [aria-current="page"] {
  color: var(--text);
}

.page-hero__title {
  font-size: var(--fs-hero);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: var(--text);
  margin: 0 0 clamp(16px, 2vw, 28px);
  max-width: 14ch;
}

.page-hero__text {
  margin: 0;
  max-width: 34em;
  font-size: var(--fs-lead);
  line-height: 1.5;
  color: var(--text-2);
}

.js .page-hero .page-hero__text.reveal { --rd: 0.35s; }

/* Eski işaretleme uyumu: .bg-grid artık süs eklemez */
.bg-grid {
  position: relative;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--paper);
  color: var(--text-2);
  padding-block: clamp(64px, 8vw, 112px) 32px;
  font-size: 0.9375rem;
}

.site-footer a {
  color: var(--text-2);
}

.site-footer a:hover {
  color: var(--text);
  text-decoration: none;
}

.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
}

@media (min-width: 768px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
  }
}

.footer__brand img {
  height: 30px;
  width: auto;
}

.footer__slogan {
  margin-top: 20px;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  max-width: 14ch;
}

.footer__slogan .hl {
  color: var(--accent);
}

.footer__title {
  margin-bottom: 16px;
  font-family: var(--font-text);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: clamp(48px, 6vw, 80px);
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem;
  color: var(--text-3);
}

.footer__bottom p {
  margin: 0;
  max-width: 62em;
}

/* Yukarı çık */
.to-top {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgb(12 22 38 / calc(0.88 + 0.06 * var(--glass-solid)));
  -webkit-backdrop-filter: var(--glass, blur(10px));
  backdrop-filter: var(--glass, blur(10px));
  color: #fff;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), visibility var(--dur-fast), background-color var(--dur-fast) var(--ease);
}

.to-top svg {
  width: 20px;
  height: 20px;
}

.to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--brand-navy);
}

/* --------------------------------------------------------------------------
   12. Hareket katmanı
   Yalnızca transform/opacity canlandırılır. Sürekli animasyonlar bölüm
   görünür değilken (.is-inview yokken) duraklatılır.
   -------------------------------------------------------------------------- */

/* 12.1 Yükleme perdesi — JS kaldırır; JS yoksa 2 sn sonra CSS kaldırır */
.loader {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: var(--paper);
  animation: loader-exit 0.9s var(--ease-in-out) 2s forwards;
}

.loader.is-done {
  animation: loader-exit 0.9s var(--ease-in-out) forwards;
  pointer-events: none;
}

.loader__inner {
  display: grid;
  justify-items: center;
  gap: 22px;
  animation: loader-logo 0.7s var(--ease-out) both;
}

.loader.is-done .loader__inner {
  /* loader-hold: perdeyle aynı eğri/sürede ters yöne kayar → logo yerinde solar (eski clip-path görünümü) */
  animation: loader-logo-out 0.5s var(--ease) forwards, loader-hold 0.9s var(--ease-in-out) forwards;
}

@keyframes loader-hold {
  from {
    translate: 0 0;
  }

  to {
    translate: 0 100vh;
    translate: 0 100dvh;
  }
}

.loader__logo {
  width: 168px;
  height: auto;
}

.loader__bar {
  position: relative;
  display: block;
  width: 120px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: var(--paper-2);
}

.loader__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  animation: loader-bar 0.6s var(--ease-out) 0.05s forwards;
}

body:not([data-page="home"]) .loader__fill {
  animation-duration: 0.35s;
}

@keyframes loader-logo {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes loader-logo-out {
  to {
    opacity: 0;
    transform: translateY(-16px);
  }
}

@keyframes loader-bar {
  to {
    transform: scaleX(1);
  }
}

/* Perde yukarı kalkar. Eskiden clip-path canlandırılıyordu (tam ekran her kare yeniden
   boyama); düz paper zeminde translate aynı görünür ve yalnızca GPU'da birleşir. */
@keyframes loader-exit {
  0% {
    transform: translateY(0);
  }

  100% {
    transform: translateY(-100%);
    visibility: hidden;
  }
}

/* 12.2 Scroll ilerleme çubuğu (main.js oluşturur) */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 110;
  height: 2px;
  pointer-events: none;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  will-change: transform;
}

/* 12.3 Scroll reveal
   İçerik JS olmadan da görünür: gizleme yalnızca <html class="js"> varken.
   Yön: data-reveal="up|left|right|zoom|fade" (varsayılan up). Gecikme: --rd
   (data-delay="1|2|3" ya da main.js'in kardeş sırasına göre verdiği değer). */
@property --rd {
  syntax: "<time>";
  inherits: false;
  initial-value: 0s;
}

.js .reveal:not(.is-visible) {
  opacity: 0;
}

.js .reveal.is-visible {
  animation: reveal-up 1s var(--ease-out) var(--rd, 0s) both;
}

.js .reveal.is-visible[data-reveal="left"] {
  animation-name: reveal-left;
}

.js .reveal.is-visible[data-reveal="right"] {
  animation-name: reveal-right;
}

.js .reveal.is-visible[data-reveal="zoom"] {
  animation-name: reveal-zoom;
  animation-duration: 1.3s;
}

.js .reveal.is-visible[data-reveal="fade"] {
  animation-name: reveal-fade;
}

.js .reveal.is-visible[data-reveal="mask"] {
  animation-name: reveal-mask;
  animation-duration: 1.4s;
}

.js .reveal[data-delay="1"] {
  --rd: 0.1s;
}

.js .reveal[data-delay="2"] {
  --rd: 0.2s;
}

.js .reveal[data-delay="3"] {
  --rd: 0.3s;
}

.js .reveal[data-delay="4"] {
  --rd: 0.4s;
}

/* main.js yüklenemezse içerik 2.5 sn sonra kendiliğinden belirir */
.js:not(.js-ready) .reveal {
  animation: reveal-up 0.75s var(--ease) 2.5s both;
}

@keyframes reveal-up {
  from {
    opacity: 0;
    translate: 0 32px;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes reveal-left {
  from {
    opacity: 0;
    translate: -40px 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes reveal-right {
  from {
    opacity: 0;
    translate: 40px 0;
  }

  to {
    opacity: 1;
    translate: 0 0;
  }
}

@keyframes reveal-zoom {
  from {
    opacity: 0;
    scale: 0.94;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes reveal-fade {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

/* Görseller için perde açılışı (alttan yukarı) */
@keyframes reveal-mask {
  from {
    opacity: 1;
    clip-path: inset(18% 0 0 0 round var(--radius-lg));
    scale: 1.04;
  }

  to {
    opacity: 1;
    clip-path: inset(0 0 0 0 round var(--radius-lg));
    scale: 1;
  }
}

/* 12.4 Sayaç bitişi: kısa vurgu */
[data-count] {
  display: inline-block;
}

.count-done {
  animation: count-glow 1.1s var(--ease);
}

@keyframes count-glow {
  0% {
    text-shadow: 0 0 0 rgba(77, 163, 56, 0);
  }

  35% {
    text-shadow: 0 0 22px rgba(77, 163, 56, 0.45);
  }

  100% {
    text-shadow: 0 0 0 rgba(77, 163, 56, 0);
  }
}

/* 12.5 İkonlar (main.js sınıfları ekler): güneş ışınları, şimşek, batarya */
.i-rays {
  transform-box: fill-box;
  transform-origin: center;
  animation: icon-spin 18s linear infinite;
}

.i-bolt {
  animation: icon-flash 5.2s ease-in-out var(--fd, 0s) infinite;
}

.i-batt-fill {
  transform-box: fill-box;
  transform-origin: left center;
  animation: icon-charge 3.4s var(--ease) var(--fd, 0s) infinite;
}

@keyframes icon-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes icon-flash {
  0%,
  86%,
  100% {
    opacity: 1;
    transform: none;
  }

  89% {
    opacity: 0.35;
  }

  92% {
    opacity: 1;
  }

  95% {
    opacity: 0.6;
  }
}

@keyframes icon-charge {
  0% {
    opacity: 0;
    transform: scaleX(0.08);
  }

  12% {
    opacity: 0.45;
  }

  70%,
  88% {
    opacity: 0.45;
    transform: scaleX(1);
  }

  100% {
    opacity: 0;
    transform: scaleX(1);
  }
}

/* 12.6 Görünmeyen bölümde sürekli animasyonları duraklat */
.js section:not(.is-inview) :is(.i-rays, .i-bolt, .i-batt-fill),
.js section:not(.is-inview)::before,
.js section:not(.is-inview)::after {
  animation-play-state: paused;
}

/* 12.7 Performans katmanı (docs/DESIGN.md "Performans bütçesi ve kuralları")
   Dokunmatik cihazlarda (iPhone/Android) ve html.is-lowpower'da cam efektleri
   (backdrop-filter) yarı saydam düz zemine döner: iOS'ta sabit header ve cam rozetler
   kaydırmanın her karesinde arkalarını yeniden bulanıklaştırır. Animasyonlar kapanmaz. */
@media (hover: none), (pointer: coarse) {
  :root {
    --glass: none;
    --glass-solid: 1;
  }
}

html.is-lowpower {
  --glass: none;
  --glass-solid: 1;
}

/* Ekran dışı bölümler: tarayıcı yaklaşana dek bunların stil/yerleşim/boyamasını atlar
   (açılışta ve uzun sayfada daha az iş). Yalnızca sayfa içi bağlantı hedeflerinden SONRA
   gelen ve sticky/3D/galeri içermeyen bölümler (tahmini yükseklik bağlantı atlamasını
   kaydırmasın). "auto" bir kez çizilen gerçek yüksekliği hatırlar. */
:is(#simulator, #kesintisiz, #kurumlar, #urun-degerler, #kullanim-kurulum, #sonra, #sss, #cta),
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

/* --------------------------------------------------------------------------
   13. Eski ortak bileşenler
   Ürün / Teknik / Kullanım / İletişim sayfalarındaki bölümler bu sınıfları
   kullanır. Yeni dile uyarlanmıştır; YENİ işaretlemede tercih etmeyin
   (bkz. docs/DESIGN.md §7 "Eski sınıflar").
   -------------------------------------------------------------------------- */
.section-head {
  margin-bottom: clamp(32px, 4vw, 56px);
  max-width: 820px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

/* Eyebrow → sade kicker (çizgi/numara yok) */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-2);
}

.eyebrow svg {
  width: 16px;
  height: 16px;
  color: var(--accent-strong);
}

.section--navy .eyebrow {
  color: var(--on-dark-2);
}

.section-title {
  font-size: var(--fs-h2);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 20ch;
}

.section-head--center .section-title {
  margin-inline: auto;
}

.section--navy .section-title {
  color: var(--on-dark);
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--text-2);
  max-width: 40em;
}

.section-head--center .lead {
  margin-inline: auto;
}

.lead strong,
.lead--strong {
  color: var(--text);
  font-weight: 600;
}

/* Card: sade yüzey (yeni işaretlemede kart ızgaraları yerine split/feature-list) */
.card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out), border-color 0.5s var(--ease);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.card h3,
.card h4 {
  font-size: 1.1875rem;
  letter-spacing: -0.015em;
  margin-bottom: 8px;
}

.card p {
  color: var(--text-2);
  font-size: 0.975rem;
}

.card--green {
  background: var(--green-50);
  border-color: transparent;
}

.card--blue {
  background: var(--blue-100);
  border-color: transparent;
}

.card--static:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line);
}

.card--green.card--static:hover,
.card--blue.card--static:hover {
  border-color: transparent;
}

.card .icon-badge {
  margin-bottom: 18px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--accent-tint);
  color: var(--accent-strong);
  transition: transform 0.45s var(--ease), background-color 0.45s var(--ease);
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

.icon-badge--navy {
  background: var(--text);
  color: #fff;
}

.icon-badge--white {
  background: #fff;
  color: var(--accent-strong);
}

.icon-badge--lg {
  width: 56px;
  height: 56px;
}

.icon-badge--lg svg {
  width: 26px;
  height: 26px;
}

.card:not(.card--static):hover .icon-badge {
  transform: scale(1.06);
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 2.75rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat__value .unit {
  font-size: 0.5em;
  margin-left: 0.15em;
  color: var(--accent-strong);
}

.stat__label {
  font-weight: 600;
  color: var(--text);
}

.stat__note {
  font-size: 0.875rem;
  color: var(--text-3);
}

.section--navy .stat__value,
.section--navy .stat__label {
  color: var(--on-dark);
}

.section--navy .stat__note {
  color: var(--on-dark-2);
}

/* Callout → koyu, sade vurgu paneli */
.callout {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-lg);
  background: var(--night);
  color: var(--on-dark);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem);
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.015em;
}

.callout > * {
  position: relative;
}

.callout p {
  color: var(--on-dark);
}

.callout .hl {
  color: var(--accent-bright);
}

.callout__label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--font-text);
  font-size: var(--fs-kicker);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-dark-2);
}

/* Note → sakin bilgi kutusu */
.note {
  padding: 18px 22px;
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--text-2);
  font-size: 0.95rem;
}

.note strong {
  color: var(--text);
}

.note--amber {
  background: var(--amber-100);
}

.note--blue {
  background: var(--blue-100);
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  position: relative;
  padding-left: 30px;
}

.check-list li + li {
  margin-top: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
}

.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
