/* Luma Label — header + hero + istatistik
   Yalnız base.css token'ları kullanılır; ham renk yok. */

/* ============ HEADER ============ */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  transition: background 0.35s var(--ease-out), border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: color-mix(in srgb, var(--bg-0) 78%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.nav-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: var(--sp-4);
}

.nav-logo {
  display: inline-flex; align-items: center; gap: 0.62rem;
  color: var(--amber);
}
/* Kelime işareti çiple birlikte büyür: 38 px'lik çipin yanında 1.06rem cılız
   kalıyordu. */
.nav-logo-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.14rem; letter-spacing: 0.006em; color: var(--ink);
}
.nav-logo-text em { font-style: normal; color: var(--amber); }

.nav-links {
  display: flex; gap: var(--sp-3); margin-inline: auto;
}
.nav-links a {
  position: relative;
  font-size: 0.92rem; font-weight: 600; color: var(--ink-dim);
  padding: 0.35rem 0.1rem;
  transition: color 0.25s var(--ease-out);
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 2px; background: var(--amber); border-radius: 2px;
  transition: right 0.3s var(--ease-out);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-actions { display: flex; align-items: center; gap: var(--sp-1); margin-left: auto; }
.nav-actions .btn { padding: 0.6rem 1.25rem; font-size: 0.78rem; }

/* burger */
.nav-burger {
  display: none;
  width: 44px; height: 44px; margin-left: auto;
  flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
  cursor: pointer; z-index: 120;
}
.nav-burger span {
  display: block; width: 20px; height: 2px; border-radius: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease-out), opacity 0.2s;
}
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* mobil overlay
   DİKKAT — `inset: 0` KULLANILMAZ. Bu katman DOM'da .site-header'ın çocuğu ve
   header'da backdrop-filter var (simpra.css). Filtre uygulanan bir element,
   position:fixed torunları için CONTAINING BLOCK haline gelir; yani `inset: 0`
   viewport'a değil header kutusuna (yalnızca --header-h yüksekliğinde) çözülür
   ve menü ince bir şeride hapsolur — linkler ile alttaki butonlar kırpılır.
   Header viewport'un sol-üstüne sabit ve tam genişlikte olduğundan, köşeyi
   top/left ile sabitleyip boyutu viewport birimleriyle vermek katmanı yeniden
   tam ekran yapar. 100dvh: iOS'ta daralan adres çubuğuyla birlikte güncellenir
   (100vh sabit kalıp altı kesilirdi); dvh desteklemeyen tarayıcı için önce vh. */
.nav-mobile {
  position: fixed; top: 0; left: 0; z-index: 110;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  /* justify-content: center DEĞİL — içerik (linkler + gruplar + dil + butonlar)
     kısa telefonlarda viewport'u aşıyor; flex ortalama taşmayı iki uca birden
     yaydığı için üst kısım kaydırmayla dahi ERİŞİLEMEZ hale gelirdi. */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  gap: var(--sp-4);
  padding:
    calc(var(--header-h) + var(--sp-3)) var(--sp-3)
    calc(var(--sp-5) + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-0) 94%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s;
}
.nav-mobile.open { opacity: 1; visibility: visible; pointer-events: auto; }
.nav-mobile-links { display: flex; flex-direction: column; align-items: center; gap: var(--sp-2); }
.nav-mobile-links a {
  font-family: var(--font-display); font-size: 1.35rem; font-weight: 500;
  color: var(--ink); padding: 0.4rem 1rem;
  transition: color 0.25s;
}
.nav-mobile-links a:hover { color: var(--amber-hi); }
.nav-mobile-actions {
  display: flex; flex-direction: column; align-items: stretch; gap: var(--sp-1);
  width: min(320px, 100%); margin-top: var(--sp-2);
}
.nav-mobile-actions .btn { justify-content: center; }

/* klavye odağı */
.nav-links a:focus-visible,
.nav-mobile-links a:focus-visible,
.nav-logo:focus-visible,
.nav-burger:focus-visible,
.hero .btn:focus-visible,
.nav-actions .btn:focus-visible,
.nav-mobile-actions .btn:focus-visible {
  outline: 2px solid var(--amber); outline-offset: 3px; border-radius: var(--radius-sm);
}

/* ============ HERO ============ */
.hero {
  position: relative; overflow: hidden;
  min-height: 92vh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + var(--sp-4)) 0 var(--sp-5);
  background:
    radial-gradient(1100px 520px at 78% 8%, color-mix(in srgb, var(--glow) 34%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 72%);
}

.hero-orb-1 { top: -140px; right: -120px; width: 420px; height: 420px; background: var(--glow); opacity: 0.55; }
/* bottom pozitif tutulur: bakır ışık bölüm alt sınırına ulaşmadan söner, böylece .hero'nun overflow:hidden'ı sol-altta sert bir çizgi oluşturmaz */
.hero-orb-2 { bottom: 150px; left: -140px; width: 380px; height: 380px; background: color-mix(in srgb, var(--copper) 40%, transparent); opacity: 0.5; }
.hero-orb-3 { top: 34%; left: 44%; width: 240px; height: 240px; background: var(--glow); opacity: 0.25; }

#hero-particles {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}

.hero-grid {
  position: relative; z-index: 2;
  display: grid;
  /* minmax(0,…): metin sütununun min-content genişliği (Almanca'daki uzun
     bileşik sözcükler) payından fazlasını almasın. Sağdaki minmax(320px,…)
     e-etiket kartına taban genişlik verir — kart tüm dillerde aynı görünür,
     fiyat ve barkod satırı sıkışıp kırpılmaz. */
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: center; gap: var(--sp-5);
}
@keyframes hero-pulse {
  0%   { box-shadow: 0 0 0 0 var(--glow); }
  70%  { box-shadow: 0 0 0 9px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

.hero-title {
  margin: 0 0 var(--sp-3);
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 5.2vw, 4rem);
  line-height: 1.08; letter-spacing: -0.015em;
  text-wrap: balance;
  /* Almanca bileşik sözcükler (Betriebsmanagement) sütuna sığmıyor:
     <html lang> motor tarafından ayarlandığı için tireleme dile göre çalışır;
     break-word tireleme desteklenmeyen tarayıcılarda taşmayı önler. */
  hyphens: auto;
  overflow-wrap: break-word;
}

.hero-lead {
  margin: 0 0 var(--sp-4);
  max-width: 34rem;
  color: var(--ink-dim);
  font-size: 1.06rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

/* --- sağ sütun: 3B e-etiket kompozisyonu --- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.hero-stack {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 5 / 4.4;
  transform-style: preserve-3d;
}

/* e-etiket kartı: koyu çerçeve */
.hero-tag {
  position: absolute;
  width: 78%; left: 4%; top: 10%;
  border-radius: var(--radius);
  background: linear-gradient(150deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line);
  padding: 8%;
  box-shadow: 0 30px 60px -25px color-mix(in srgb, var(--bg-0) 90%, transparent);
}

.hero-tag-b1, .hero-tag-b2 { aspect-ratio: 5 / 3.6; }
.hero-tag-b1 {
  transform: translateZ(-45px) translate(9%, -7%) rotate(5deg);
  opacity: 0.65;
  animation: hero-float 7s ease-in-out infinite 0.8s;
}
.hero-tag-b2 {
  transform: translateZ(-90px) translate(19%, -13%) rotate(10deg);
  opacity: 0.35;
  animation: hero-float 8s ease-in-out infinite 1.6s;
}

.hero-tag-main {
  transform: translateZ(30px);
  animation: hero-float 6s ease-in-out infinite;
}

@keyframes hero-float {
  0%, 100% { margin-top: 0; }
  50%      { margin-top: -14px; }
}

/* canlı güncelleme rozeti */
.hero-tag-chip {
  position: absolute; top: -13px; right: -10px; z-index: 2;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: var(--amber); color: var(--bg-0);
  font-family: var(--font-display); font-size: 0.58rem; font-weight: 600;
  letter-spacing: 0.06em; white-space: nowrap;
  box-shadow: 0 8px 24px -6px var(--glow);
}

/* açık e-kağıt ekranı */
.hero-epaper {
  background: var(--ink);
  color: var(--bg-0);
  border-radius: var(--radius-sm);
  padding: var(--sp-2);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--bg-0) 18%, transparent);
}
.hero-epaper-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: var(--sp-1);
}
.hero-epaper-code {
  font-family: var(--font-display); font-size: 0.6rem; font-weight: 600;
  letter-spacing: 0.16em; color: var(--ink-faint);
}
.hero-epaper-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--copper); }
.hero-epaper-name {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(0.95rem, 2vw, 1.15rem); line-height: 1.2;
}
.hero-epaper-price {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.3rem); letter-spacing: -0.02em;
  margin: 0.35rem 0 var(--sp-1);
}
.hero-epaper-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-1); }
.hero-epaper-unit { font-size: 0.68rem; font-weight: 700; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.1em; }

/* barkod çizgileri */
.hero-barcode { display: flex; align-items: stretch; gap: 3px; height: 26px; }
.hero-barcode i { display: block; width: 2px; background: var(--bg-0); }
.hero-barcode i:nth-child(3n)  { width: 4px; }
.hero-barcode i:nth-child(4n)  { width: 1px; opacity: 0.75; }
.hero-barcode i:nth-child(5n)  { width: 6px; }
.hero-barcode i:nth-child(7n)  { width: 3px; opacity: 0.85; }

/* yüzen QR menü telefonu */
.hero-phone {
  position: absolute; right: -2%; bottom: -4%;
  width: 34%; aspect-ratio: 9 / 18.5;
  transform: translateZ(75px) rotate(6deg);
  border-radius: calc(var(--radius) + 6px);
  background: linear-gradient(165deg, var(--bg-2), var(--bg-1));
  border: 1px solid var(--line);
  padding: 6% 5%;
  box-shadow: 0 34px 70px -28px color-mix(in srgb, var(--bg-0) 95%, transparent),
              0 0 40px -18px var(--glow);
  animation: hero-float 5s ease-in-out infinite 0.4s;
}
.hero-phone-notch {
  width: 34%; height: 5px; margin: 0 auto 8%;
  border-radius: 999px; background: var(--line);
}
.hero-phone-screen { display: flex; flex-direction: column; gap: 9%; height: 82%; }
.hero-phone-title {
  height: 9%; width: 55%;
  border-radius: 999px; background: var(--amber); opacity: 0.9;
}
.hero-phone-row {
  display: grid; grid-template-columns: 16% 1fr 22%; align-items: center; gap: 7%;
  padding: 5% 6%; min-height: 15%;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}
.hero-phone-row i, .hero-phone-row b, .hero-phone-row u { display: block; border-radius: 999px; }
.hero-phone-row i { aspect-ratio: 1; border-radius: 6px; background: var(--copper); opacity: 0.55; }
.hero-phone-row b { height: 5px; background: var(--ink-faint); }
.hero-phone-row u { height: 5px; background: var(--ink-dim); }
.hero-phone-row.is-active { border-color: color-mix(in srgb, var(--amber) 45%, transparent); }
.hero-phone-row.is-active u { background: var(--amber); }

/* ============ İSTATİSTİK ============ */
.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
}
.stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding-block: var(--sp-4);
}
.stat-item {
  padding: var(--sp-1) var(--sp-3);
  border-left: 1px solid var(--line);
}
.stat-item:first-child { border-left: none; }
.stat-val {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.1;
  color: var(--amber);
  margin-bottom: 0.45rem;
  font-variant-numeric: tabular-nums;
}
.stat-desc { margin: 0; font-size: 0.9rem; color: var(--ink-dim); max-width: 15rem; }

/* ============ MOBİL ============ */
@media (max-width: 860px) {
  .nav-links, .nav-actions { display: none; }
  .nav-burger { display: flex; }

  .hero { min-height: auto; padding-bottom: var(--sp-4); }
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-4); }
  .hero-lead { max-width: none; }

  .hero-visual { order: 2; }
  .hero-stack { width: min(300px, 88%); }
  .hero-tag-chip { right: 0; }

  .stat-grid { grid-template-columns: 1fr 1fr; row-gap: var(--sp-3); }
  .stat-item { border-left: none; padding-inline: var(--sp-1); }
  .stat-item:nth-child(even) { border-left: 1px solid var(--line); }
}

@media (max-width: 400px) {
  .hero-title { font-size: 2.1rem; }
}

/* hareket azaltma: yüzen animasyonlar dursun */
@media (prefers-reduced-motion: reduce) {
  .hero-tag-main, .hero-tag-b1, .hero-tag-b2, .hero-phone{
    animation: none;
  }
}

/* zümrüt vurgu — hero 'Luma’da' */
.hl-emerald { color: #10b981; }

/* Hero CTA butonları — büyük harf (header CTA'larıyla tutarlı; lang=tr ile İ/I doğru) */
.hero-cta .btn { text-transform: uppercase; letter-spacing: 0.03em; }
