/* MarineGard ana sayfa — "Su çizgisi" tasarımı
   Sadece index.html tarafından yüklenir. Diğer sayfalar styles.css kullanır. */

:root {
    --foam: #F5F8FC;
    --abyss: #04102B;
    --footer-bg: #18233B; /* footer: daha yumuşak, pastel lacivert */
    --gard: #2563EB;
    --gard-dark: #1D4FD0;
    --ink: #0A1A3A;
    --mist: #5F6D8A;
    --line: rgba(10, 26, 58, .12);
    --line-dark: rgba(255, 255, 255, .14);
    --ease: cubic-bezier(.2, .7, .1, 1);
    --gutter: clamp(20px, 4vw, 56px);
    --radius: 28px;
    --nav-h: 76px;
}
@media (max-width: 767px) {
    :root { --radius: 18px; --nav-h: 64px; }
}

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
/* Not: scroll-behavior: smooth kullanılmaz — Lenis'in kare kare scrollTop atamasıyla çakışır */
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body.menu-open { overflow: hidden; }
body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 17px;
    line-height: 1.55;
    color: var(--ink);
    background: var(--foam);
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--gard); outline-offset: 3px; border-radius: 4px; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* Tüm sayfanın arkasındaki deniz: rengi kaydırmayla akar (home.js) */
.sea { position: fixed; inset: 0; z-index: -1; background: var(--foam); }
/* Video karelerinden çizilen sahne: yüzeyden derine dalış (home.js) */
.scene { position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }

/* Hareket yokken (CDN yok / reduced-motion / JS yok): koyu bölümler kendi zeminini taşır */
.no-motion [data-bg="abyss"] { background: var(--abyss); color: #fff; }
.no-motion .scene { display: none; }

/* ---------- Butonlar ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 12px 22px; border-radius: 999px;
    font-weight: 600; font-size: 15px; line-height: 1.2; white-space: nowrap;
    border: 1px solid transparent;
    transition: transform .3s var(--ease), background .3s, border-color .3s, color .3s;
}
.btn-primary { background: var(--gard); color: #fff; }
.btn-primary:hover { background: var(--gard-dark); transform: translateY(-1px); }
.btn-secondary { border-color: var(--line); color: var(--ink); background: transparent; }
.btn-secondary:hover { border-color: var(--ink); }
[data-bg="abyss"] .btn-secondary { border-color: var(--line-dark); color: #fff; }

.link {
    display: inline-flex; align-items: center; gap: 12px;
    font-weight: 600; font-size: 15px; padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, .4);
    transition: border-color .3s, gap .3s var(--ease);
}
.link:hover { border-color: #fff; gap: 16px; }

/* ---------- Nav: cam ada ---------- */
.navbar {
    position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
    display: flex; justify-content: center;
    padding: 0 var(--gutter);
    color: var(--ink);
    pointer-events: none;
    transition: color .5s var(--ease), transform .6s var(--ease);
}
.navbar.hide { transform: translateY(calc(-100% - 20px)); }
.navbar:focus-within { transform: none; }
/* Tek ve sabit görünüm: buzlu açık cam. Koyu zeminde de aynı kalır (kullanıcı tercihi). */
.nav-pill {
    pointer-events: auto;
    display: flex; align-items: center; gap: 18px;
    min-height: 62px; padding: 8px 10px 8px 38px; border-radius: 999px;
    background: rgba(255, 255, 255, .62);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    border: 1px solid rgba(255, 255, 255, .6);
    box-shadow: 0 10px 40px rgba(4, 16, 43, .10), inset 0 1px 0 rgba(255, 255, 255, .6);
}
.logo { display: flex; align-items: center; min-height: 44px; margin-right: 40px; }
.logo-img { height: 20px; width: auto; }

.nav-menu { display: flex; align-items: center; gap: 14px; }
.nav-menu > li { position: relative; }
.nav-link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 24px; border-radius: 999px;
    font-size: 14px; font-weight: 500; opacity: .78; transition: opacity .25s, background .25s;
}
.nav-link:hover, .nav-link.active, .nav-item-dropdown.active > .nav-link { opacity: 1; }

/* Açılır menü oku (masaüstü): Products'ın açılır olduğu anlaşılsın */
.nav-item-dropdown > .nav-link { padding-right: 18px; }
.nav-item-dropdown > .nav-link::after {
    content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 9px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease);
}
.nav-item-dropdown.active > .nav-link::after { transform: translateY(1px) rotate(-135deg); }
.nav-link:hover { background: rgba(10, 26, 58, .06); }

.nav-actions { display: flex; align-items: center; gap: 14px; margin-left: 32px; }
.lang-select {
    appearance: none; -webkit-appearance: none; width: 64px;
    background: transparent; border: 0; min-height: 44px; padding: 0 22px 0 8px;
    font-size: 14px; font-weight: 500; opacity: .7; cursor: pointer; letter-spacing: .04em;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%230A1A3A' stroke-width='1.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 6px center;
}
.lang-select option { color: var(--ink); background: #fff; }
/* Dil seçimi: nav ile aynı dilde açılır menü (yerel select görünmez kalır, main.js onu dinler) */
.lang { position: relative; display: inline-flex; }
.lang-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px; width: 64px; min-height: 44px; padding: 0 8px 0 10px;
    border: 0; background: transparent; border-radius: 999px; cursor: pointer;
    font-size: 14px; font-weight: 500; letter-spacing: .04em; opacity: .78;
    transition: opacity .25s, background .25s;
}
.lang-btn::after {
    content: ""; display: inline-block; width: 7px; height: 7px;
    border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
    transform: translateY(-2px) rotate(45deg); transition: transform .35s var(--ease);
}
.lang-btn:hover, .lang.open .lang-btn { opacity: 1; background: rgba(10, 26, 58, .06); }
.lang.open .lang-btn::after { transform: translateY(1px) rotate(-135deg); }
.lang-list {
    position: absolute; top: calc(100% + 10px); right: 0; z-index: 5; min-width: 124px;
    padding: 6px; border-radius: 16px; list-style: none; margin: 0;
    background: rgba(255, 255, 255, .96); color: var(--ink);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 20px 60px rgba(4, 16, 43, .16), 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; transform: translateY(6px);
    transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s .3s;
}
.lang.open .lang-list { opacity: 1; visibility: visible; transform: none; transition: opacity .3s var(--ease), transform .3s var(--ease), visibility 0s; }
.lang-list li {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; letter-spacing: .04em; cursor: pointer;
}
.lang-list li:hover, .lang-list li:focus-visible { background: var(--foam); outline: none; }
.lang-list li[aria-selected="true"] { color: var(--gard); }
.lang-list li[aria-selected="true"]::after {
    content: ""; width: 5px; height: 9px; margin-right: 2px;
    border-right: 1.5px solid var(--gard); border-bottom: 1.5px solid var(--gard); transform: rotate(45deg);
}
.lang .lang-select-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }

.nav-btn { min-height: 42px; padding: 10px 18px; font-size: 14px; background: var(--ink); color: #fff; }
.nav-btn:focus-visible, .nav-link:focus-visible { outline-offset: 0; }
.nav-btn:hover { background: var(--gard); }

.nav-toggle {
    display: none; position: relative; width: 44px; height: 44px;
    background: transparent; border: 0; cursor: pointer; border-radius: 50%;
}
.nav-toggle span {
    position: absolute; left: 12px; width: 20px; height: 1.5px; background: currentColor;
    transition: transform .4s var(--ease), opacity .3s, top .4s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 21.5px; }
.nav-toggle span:nth-child(3) { top: 27px; }
.nav-toggle.active span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { top: 21.5px; transform: rotate(-45deg); }

/* Mega menü (masaüstü): buzlu panel, 4 ürün kartı, hover'da ok */
.mega-menu {
    position: absolute; top: calc(100% + 12px); left: 50%; transform: translate(-50%, 8px);
    width: min(1040px, calc(100vw - 2 * var(--gutter)));
    padding: 14px; border-radius: 24px;
    background: rgba(255, 255, 255, .94); color: var(--ink);
    -webkit-backdrop-filter: blur(20px) saturate(1.4); backdrop-filter: blur(20px) saturate(1.4);
    box-shadow: 0 30px 80px rgba(4, 16, 43, .18), 0 0 0 1px var(--line);
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s .35s;
}
.nav-item-dropdown.active .mega-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0);
    transition: opacity .35s var(--ease), transform .35s var(--ease), visibility 0s;
}
.mega-menu-content { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mega-menu-item {
    display: flex; flex-direction: column; gap: 14px; padding: 10px 10px 14px; border-radius: 18px;
    transition: background .3s, transform .3s var(--ease);
}
.mega-menu-item:hover { background: var(--foam); transform: translateY(-2px); }
.mega-menu-image { aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; background: var(--abyss); }
.mega-menu-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.mega-menu-item:hover .mega-menu-image img { transform: scale(1.05); }
.mega-menu-text { padding: 0 4px; }
.mega-menu-text h4 { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.mega-menu-text h4::after {
    content: ""; width: 10px; height: 10px; margin-left: auto;
    border-right: 1.5px solid var(--gard); border-top: 1.5px solid var(--gard);
    transform: translateX(-6px) rotate(45deg); opacity: 0; transition: transform .3s var(--ease), opacity .3s;
}
.mega-menu-item:hover .mega-menu-text h4::after { opacity: 1; transform: translateX(0) rotate(45deg); }
.mega-menu-text p { font-size: 13px; color: var(--mist); line-height: 1.45; }

/* ---------- Hero: ortalı metin, açık gökyüzünün üzerinde; alt yarı deniz ---------- */
.hero {
    position: relative; overflow: hidden;
    height: 100vh; height: 100svh; min-height: 600px;
    display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
    padding: calc(var(--nav-h) + clamp(72px, 15vh, 150px)) var(--gutter) 0;
    text-align: center;
}
/* Okunabilirlik için üst kısımda hafif ışık perdesi */
.hero { --veil: 1; }
.hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: var(--veil);
    background: linear-gradient(180deg, rgba(245, 248, 252, .55) 0%, rgba(245, 248, 252, .25) 40%, rgba(245, 248, 252, 0) 62%);
}
.hero-top {
    position: relative; width: 100%; max-width: 980px;
    display: flex; flex-direction: column; align-items: center;
}
.hero-title {
    font-size: clamp(34px, min(5.2vw, 9.5vh), 76px);
    font-weight: 600; line-height: 1.02; letter-spacing: -.03em;
    max-width: 18ch; text-wrap: balance;
}
.hero-title .ln { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero-title .ln span { display: inline-block; }
.hero-aside { display: flex; flex-direction: column; align-items: center; gap: 26px; margin-top: 26px; }
.hero-lede { max-width: 56ch; color: var(--ink); opacity: .8; font-size: clamp(16px, 1.3vw, 19px); line-height: 1.55; text-wrap: balance; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.hero .btn-secondary { border-color: rgba(10, 26, 58, .28); background: rgba(255, 255, 255, .35); }

.hero-hint {
    position: absolute; left: 50%; bottom: 26px; width: 1px; height: 44px;
    transform: translateX(-50%); overflow: hidden; background: rgba(10, 26, 58, .18);
}
.hero-hint span {
    position: absolute; left: 0; top: 0; width: 100%; height: 50%; background: var(--ink);
    animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(200%); } }

/* Hareketsiz mod / JS gelmeden önceki an: eski görsel yerine sakin bir yüzey degradesi (flaş yok) */
.no-motion .hero { background: linear-gradient(180deg, #F5F8FC 0%, #E3ECF7 55%, #BFD3EA 100%); }
.no-motion .hero-hint { display: none; }

/* ---------- Hakkımızda: solda büyük başlık + buton, sağda rahat okunan paragraf ---------- */
.about { padding: 24vh var(--gutter) 20vh; color: #fff; }
.about-inner {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 2.1fr; grid-template-rows: auto 1fr; gap: 18px clamp(40px, 6vw, 96px);
    grid-template-areas: "t p" "b p"; align-items: start; align-content: start;
}
.about h2 {
    grid-area: t;
    font-size: clamp(40px, 5.2vw, 76px); font-weight: 600; line-height: .98; letter-spacing: -.03em;
}
.about p {
    grid-area: p;
    font-size: clamp(26px, 2.85vw, 43px);
    font-weight: 500; line-height: 1.2; letter-spacing: -.02em;
    max-width: 28ch; margin: .1em 0 0;
}
.about .btn { grid-area: b; justify-self: start; align-self: start; margin-top: 0; }
.about .w { color: rgba(255, 255, 255, .22); }
.no-motion .about .w, .no-motion .about p { color: #fff; }

/* ---------- Ürünler ---------- */
.products { position: relative; color: #fff; }
.p-intro h2 {
    font-size: clamp(40px, 5.4vw, 84px);
    font-weight: 600; letter-spacing: -.035em; line-height: .95; margin-bottom: 24px;
    text-wrap: balance;
}
.p-intro p { color: rgba(255, 255, 255, .62); max-width: 32ch; }
.panel { position: relative; border-radius: var(--radius); overflow: hidden; background: #0b1d47; }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.panel-body .kind { font-size: clamp(16px, 1.3vw, 19px); font-weight: 500; color: #9DBBFF; margin-bottom: 12px; }
.panel-body h3 {
    font-size: clamp(36px, 4.4vw, 68px);
    font-weight: 600; letter-spacing: -.035em; line-height: .95; margin-bottom: 18px;
}
.panel-body .desc { font-size: clamp(16px, 1.2vw, 18px); color: rgba(255, 255, 255, .78); max-width: 42ch; margin-bottom: 26px; }
.wave path { fill: none; stroke-width: 1.5; }
.wave .bg { stroke: rgba(255, 255, 255, .24); }
.wave .fg { stroke: #7FA6FF; }

/* Kart tamamen tıklanabilir; buton site butonlarıyla aynı */
.panel { cursor: pointer; }
.panel-cta { position: relative; z-index: 3; transition: background .3s, color .3s; }
.panel:hover .panel-cta { background: var(--gard-dark); }

/* Dikey düzen (tablet, mobil, dokunmatik): paneller alt alta, metin görselin altında,
   kalabalık video zemininde okunabilsin diye buzlu yarı saydam kap */
.products { padding: 14vh var(--gutter) 8vh; }
.track { display: grid; gap: 32px; }
.p-intro { margin-bottom: 8px; }
.panel {
    overflow: hidden; padding: 10px 10px 22px; border-radius: var(--radius);
    background: transparent; /* sadece buzlu cam, renk tonu yok */
    -webkit-backdrop-filter: blur(16px) saturate(1.2); backdrop-filter: blur(16px) saturate(1.2);
    border: 1px solid rgba(255, 255, 255, .12);
}
.panel img { position: relative; inset: auto; height: auto; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 6px); background: #0b1d47; }
.panel-body { position: static; padding: 20px 10px 0; }
.panel-body h3 { font-size: clamp(32px, 4.4vw, 48px); }
.wave, .wave-meta { display: none; }
/* Dikey düzende dalga: ekranın altında sabit ilerleme çizgisi (home.js .wave-on) */
.products.wave-on .wave {
    display: block; position: fixed; left: 0; right: 0; bottom: 14px; z-index: 5;
    width: 100%; max-width: none; height: 32px; pointer-events: none;
}

@media (max-width: 767px) {
    .panel img { aspect-ratio: 4 / 3; }
}

/* Yatay yolculuk: sadece fareli masaüstü (home.js pin'ler) */
@media (min-width: 1024px) and (hover: hover) and (pointer: fine) {
    /* overflow: clip — hidden olsaydı klavye odağı bölümü yana kaydırırdı */
    .products { height: 100vh; height: 100svh; padding: 0; overflow: hidden; overflow: clip; }
    .track {
        position: absolute; top: 0; left: 0; height: 100%;
        display: flex; align-items: center; gap: 3vw; padding: 0 var(--gutter);
        will-change: transform;
    }
    .p-intro { flex: 0 0 min(36vw, 520px); margin: 0; }
    /* Kenar çizgisi yok: zemin saydam, görsel 1px taşırılır, yuvarlak kırpma GPU katmanında
       (-webkit-mask) yapılır; böylece hareket halinde köşelerde ince çizgi oluşmaz */
    .products { cursor: grab; }
    .products.dragging { cursor: grabbing; user-select: none; }
    .panel {
        flex: 0 0 min(64vw, 960px); height: 72vh; overflow: hidden; background: transparent;
        padding: 0; border: 0; -webkit-backdrop-filter: none; backdrop-filter: none;
        isolation: isolate; transform: translateZ(0);
        -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
    }
    .panel img { position: absolute; top: -1px; left: -12%; width: 124%; height: calc(100% + 2px); aspect-ratio: auto; border-radius: 0; will-change: transform; }
    .panel::after {
        content: ""; position: absolute; inset: -1px;
        background: linear-gradient(90deg, rgba(4, 16, 43, .86) 0%, rgba(4, 16, 43, .35) 50%, rgba(4, 16, 43, 0) 75%);
    }
    .panel-body { position: absolute; left: clamp(28px, 3.6vw, 56px); bottom: clamp(56px, 9vh, 104px); right: 38%; padding: 0; z-index: 2; }
    .panel-body h3 { font-size: clamp(36px, 4.4vw, 68px); }
    /* Ses dalgası ilerleme çizgisi tam genişlik; sayaç sağ üstünde */
    .wave {
        display: block; position: absolute; height: 40px; bottom: 4vh;
        left: 0; right: 0; width: 100%; max-width: none; /* SVG'nin öz oranı (1000px) genişliği kısıtlamasın */
    }
    .wave-meta {
        display: block; position: absolute; right: var(--gutter); bottom: calc(4vh + 48px);
        font-size: 15px; color: rgba(255, 255, 255, .6); font-variant-numeric: tabular-nums;
    }
    .no-motion .products { height: auto; padding: 14vh var(--gutter) 8vh; overflow: visible; }
    .no-motion .track { position: static; flex-direction: column; align-items: stretch; height: auto; padding: 0; gap: 40px; }
    .no-motion .panel { flex-basis: auto; height: auto; overflow: hidden; background: rgba(4, 16, 43, .5); padding: 10px 10px 22px; border: 1px solid rgba(255, 255, 255, .12); }
    .no-motion .panel img { position: relative; inset: auto; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: calc(var(--radius) - 6px); }
    .no-motion .panel::after { display: none; }
    .no-motion .panel-body { position: static; padding: 20px 10px 0; }
    .no-motion .panel-body h3 { font-size: clamp(32px, 4.4vw, 48px); }
    .no-motion .wave, .no-motion .wave-meta { display: none; }
}

/* ---------- Çağrı ---------- */
/* Yüzeyde, sakin bir kart: solda başlık + metin, sağda buton; sonar halkaları kartın sağından yayılır */
.cta {
    position: relative;
    /* Üstte geniş boşluk: yüzeye çıkış (sahne parça 3) bu mesafede oynar */
    padding: clamp(360px, 70vh, 720px) var(--gutter) 18vh;
}
.cta-content {
    position: relative; z-index: 1; overflow: hidden;
    max-width: 1120px; margin: 0 auto;
    display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "t b" "p b";
    gap: 16px 48px; align-items: center;
    padding: clamp(40px, 6vw, 80px);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff 0%, var(--foam) 60%, #E9EFF8 100%);
    border: 1px solid var(--line);
    box-shadow: 0 30px 80px rgba(4, 16, 43, .08);
}
.cta h2 {
    grid-area: t; align-self: end;
    font-size: clamp(30px, 3.8vw, 56px);
    font-weight: 600; letter-spacing: -.03em; line-height: 1.02; margin: 0;
    text-wrap: balance; max-width: 18ch;
}
.cta p { grid-area: p; align-self: start; color: var(--mist); max-width: 50ch; margin: 0; font-size: clamp(16px, 1.2vw, 18px); }
.cta-actions { grid-area: b; justify-self: end; align-self: center; }
.cta-actions .btn { min-height: 54px; padding: 14px 28px; font-size: 16px; }
/* Halkalar kartın içinde, sağ kenardan yayılır (dekoratif) */
.ping {
    position: absolute; left: 50%; top: 50%; z-index: 0;
    width: min(120vw, 1300px); aspect-ratio: 1; border-radius: 50%;
    border: 1.5px solid rgba(37, 99, 235, .28);
    transform: translate(-50%, -50%) scale(0); opacity: 0; pointer-events: none;
}
.no-motion .ping { display: none; }

/* ---------- Footer: okyanus laciverti, düz kenar, bol boşluk ---------- */
.footer {
    position: relative; color: rgba(255, 255, 255, .62); font-size: 15px;
    padding: 0 var(--gutter) 40px;
    background: var(--footer-bg);
}
.footer-content {
    max-width: 1280px; margin: 0 auto;
    display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 48px clamp(32px, 5vw, 80px);
    padding: 88px 0 72px;
}
.footer-logo { color: #fff; font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 8px; }
.footer-brand > p { color: #fff; opacity: .75; margin-bottom: 22px; }
.footer-contact p { line-height: 1.85; }
.footer h4 { color: #fff; font-weight: 600; font-size: 14px; margin-bottom: 18px; }
.footer li { line-height: 1.6; margin-bottom: 8px; }
.footer a { display: inline-block; min-height: 24px; border-bottom: 1px solid transparent; transition: color .25s, border-color .25s; }
.footer a:hover { color: #fff; border-color: rgba(255, 255, 255, .35); }
/* Footer: sosyal bağlantı (LinkedIn) */
.footer .footer-social {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; min-height: 0; margin-top: 18px; padding: 0;
    border: 1px solid var(--line-dark); border-radius: 12px; color: rgba(255, 255, 255, .8);
    transition: background .3s, color .3s, border-color .3s;
}
.footer .footer-social:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .35); }
.footer .footer-social svg { width: 18px; height: 18px; display: block; }

.footer-bottom {
    max-width: 1280px; margin: 0 auto;
    display: flex; justify-content: space-between; font-size: 13px;
    padding-top: 24px; border-top: 1px solid var(--line-dark);
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
    .nav-link { padding: 0 10px; }
}
@media (max-width: 1023px) {
    .navbar { top: 10px; padding: 0 12px; }
    .nav-pill { gap: 2px; min-height: 52px; padding: 4px 6px 4px 16px; }
    .nav-toggle { display: block; }
    .nav-btn { display: none; }
    /* Menü açıkken cam/filtre kalksın: fixed overlay pill'e hapsolmasın (.menu-open home.js'ten, :has gerekmez) */
    .navbar.menu-open .nav-pill, .navbar:has(.nav-menu.active) .nav-pill {
        background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none;
        border-color: transparent; box-shadow: none;
    }
    .navbar.menu-open { color: var(--ink); transform: none; }
    .navbar.menu-open .logo-img { filter: none; }

    /* Tam ekran mobil menü (main.js #navMenu.active ile açar) */
    .nav-menu {
        position: fixed; inset: 0; z-index: -1;
        display: flex; flex-direction: column; align-items: stretch; gap: 4px;
        padding: calc(var(--nav-h) + 24px) var(--gutter) 40px;
        background: var(--foam); color: var(--ink);
        overflow-y: auto; -webkit-overflow-scrolling: touch;
        transform: translateY(-100%);
        transition: transform .6s var(--ease), visibility 0s .6s;
        visibility: hidden;
    }
    .nav-menu.active { transform: none; visibility: visible; transition: transform .6s var(--ease), visibility 0s; }
    .navbar:has(.nav-menu.active) { color: var(--ink); }
    .navbar:has(.nav-menu.active) .logo-img { filter: none; }
    .nav-link { font-size: 32px; font-weight: 600; letter-spacing: -.03em; padding: 10px 0; min-height: 56px; opacity: 1; }
    .nav-item-dropdown > .nav-link::after {
        content: ""; display: inline-block; width: 10px; height: 10px; margin-left: 14px;
        border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
        transform: translateY(-4px) rotate(45deg); transition: transform .4s var(--ease);
    }
    .nav-item-dropdown.active > .nav-link::after { transform: translateY(2px) rotate(-135deg); }
    .mega-menu {
        position: static; transform: none; width: auto; padding: 0 0 12px;
        background: transparent; box-shadow: none; border-radius: 0;
        display: none; opacity: 1; visibility: visible; pointer-events: auto; transition: none;
    }
    .nav-item-dropdown.active .mega-menu { display: block; transform: none; }
    .mega-menu-content { grid-template-columns: 1fr; gap: 6px; }
    .mega-menu-item { flex-direction: row; align-items: center; gap: 14px; padding: 8px 0; border-radius: 12px; }
    .mega-menu-item:hover { background: transparent; }
    .mega-menu-image { flex: 0 0 64px; width: 64px; aspect-ratio: 1; border-radius: 10px; }
    .mega-menu-text h4 { font-size: 17px; }

    .hero-aside { gap: 20px; margin-top: 20px; }
    .about-inner { grid-template-columns: 1fr; grid-template-areas: "t" "p" "b"; gap: 20px; }
    .about p { max-width: 60ch; margin-top: 0; }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    body { font-size: 16px; }
    .hero { min-height: 560px; padding-top: calc(var(--nav-h) + 6vh); }
    .hero-title { font-size: clamp(32px, 9.2vw, 44px); max-width: 14ch; }
    .hero-lede { font-size: 15px; max-width: 40ch; }
    .hero-hint { bottom: 18px; height: 36px; }
    .about { padding: 16vh var(--gutter) 14vh; }
    .about h2 { font-size: clamp(36px, 11vw, 48px); }
    .about p { font-size: clamp(22px, 6vw, 28px); }
    .products { padding: 12vh var(--gutter) 6vh; }
    .track { gap: 48px; }
    .cta { padding: 50vh var(--gutter) 12vh; }
    .cta-content { grid-template-columns: 1fr; grid-template-areas: "t" "p" "b"; gap: 16px; padding: 32px 24px; }
    .cta-actions { margin-top: 8px; }
    .cta-actions { justify-self: stretch; }
    .cta-actions .btn { width: 100%; }
    .footer-content { grid-template-columns: 1fr; gap: 36px; padding: 56px 0 44px; }
    .footer-brand { grid-column: auto; }
    .footer-bottom { flex-direction: column; gap: 6px; }
}
@media (max-width: 399px) {
    .hero-actions .btn, .cta-actions .btn { width: 100%; }
    .nav-actions { gap: 6px; }
}

/* ---------- Hareketi azalt ---------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
    .hero-hint { display: none; }
}

/* Mobil menü: ayraçlı satırlar, sağda ok, ürünler alt listesi daha derli toplu */
@media (max-width: 1023px) {
    .nav-menu > li { border-bottom: 1px solid var(--line); }
    .nav-menu > li:last-child { border-bottom: 0; }
    .nav-link { font-size: 28px; padding: 14px 0; min-height: 60px; width: 100%; }
    .nav-item-dropdown > .nav-link { display: flex; justify-content: space-between; align-items: center; padding-right: 6px; }
    .nav-item-dropdown > .nav-link::after { width: 11px; height: 11px; margin-left: auto; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); }
    .nav-item-dropdown.active > .nav-link::after { transform: translateY(3px) rotate(-135deg); }
    .mega-menu { padding: 0 0 14px; -webkit-backdrop-filter: none; backdrop-filter: none; }
    .mega-menu-content { gap: 2px; }
    .mega-menu-item { flex-direction: row; align-items: center; gap: 14px; padding: 10px 4px; border-radius: 14px; transform: none; }
    .mega-menu-item:hover { background: transparent; transform: none; }
    .mega-menu-image { flex: 0 0 56px; width: 56px; aspect-ratio: 1; border-radius: 12px; }
    .mega-menu-text { padding: 0; }
    .mega-menu-text h4 { font-size: 16px; margin-bottom: 2px; }
    .mega-menu-text h4::after { display: none; }
    .mega-menu-text p { font-size: 13px; }
}
