/* ============================================================================
   PIRATES OF BARBAROSSA — resmî site
   Tasarım dili giriş ekranı ve e-postalarla aynı: gece mavisi/kömür zemin,
   cam paneller, altın/kehribar vurgu ve düğme, Cinzel başlık + Roboto metin.
   Renk kaynağı: admin/src/Hesap/MailTemplates.php, config/login/pob-giris.json
   ========================================================================= */

/* ---------------------------------------------------------------- tokens -- */
:root {
    --night:     #0A0F15;   /* sayfa */
    --harbor:    #121A23;   /* kart */
    --deck:      #0F161E;   /* iç panel */
    --edge:      #26303A;   /* kart çerçevesi */
    --line:      #222C36;   /* ayırıcı */

    --gold:      #C9A25B;   /* altın çizgi / düğme kenarı */
    --gold-lit:  #E2BE70;   /* altın yazı */
    --gold-pale: #F2D9A2;
    --btn-ink:   #F8E9CB;   /* düğme yazısı */

    --head:      #F3F5F6;
    --body:      #C9CED3;
    --soft:      #AEB4B9;
    --muted:     #8E959B;

    --f-head: 'Cinzel', Georgia, 'Times New Roman', serif;
    --f-body: 'Roboto', 'Segoe UI', Arial, Helvetica, sans-serif;

    --nav-h: 72px;
    --wrap: 1180px;
    --gutter: clamp(16px, 4vw, 40px);
}

/* ------------------------------------------------------------------ base -- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
    font-family: var(--f-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--body);
    background: var(--night);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
/* sayfa zemini: hero sahnesinin önceden bulanıklaştırılmış küçük kopyası — bölümler aynı fırtınanın içinde durur */
body::before {
    content: "";
    position: fixed; inset: 0;
    z-index: -2;
    background: var(--night) url("../img/zemin-bulanik.jpg?v=geru2") center 35% / cover no-repeat;
    opacity: .55;
}
body::after {
    content: "";
    position: fixed; inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(90% 60% at 50% 0%, rgba(201,162,91,.06), transparent 60%),
        linear-gradient(180deg, rgba(10,15,21,.72) 0%, rgba(10,15,21,.86) 55%, rgba(8,12,17,.94) 100%);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
::selection { background: rgba(201,162,91,.85); color: #120d05; }

:focus-visible { outline: 2px solid var(--gold-lit); outline-offset: 3px; border-radius: 4px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.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;
}
.skip-link {
    position: fixed; left: 12px; top: -60px; z-index: 300;
    padding: 10px 16px;
    background: var(--harbor); color: var(--head);
    border: 1px solid var(--gold); border-radius: 8px;
    transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

/* satır içi simgeler */
.i, .ico {
    flex: none;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.i { width: 20px; height: 20px; }

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

/* --------------------------------------------------------------- düğmeler -- */
.btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-family: var(--f-body);
    font-weight: 700;
    font-size: 14px;
    line-height: 1.15;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
    transition: filter .25s ease, border-color .25s ease, background-color .25s ease, box-shadow .3s ease, transform .25s cubic-bezier(.2,.9,.3,1);
}
.btn:active { transform: translateY(1px); }
a.btn:hover, button.btn:not(:disabled):hover { transform: translateY(-2px); }

/* giriş ekranındaki kehribar düğme (pob-dugme.png): koyu bronz gövde, üst ve altta altın ışık, ince açık altın kenar */
.btn-gold {
    color: var(--btn-ink);
    border: 1px solid #D9B877;
    background:
        radial-gradient(60% 100% at 50% -18%, rgba(255,216,142,.55), transparent 62%),
        radial-gradient(55% 80% at 50% 122%, rgba(255,196,110,.32), transparent 62%),
        linear-gradient(180deg, #5E421D 0%, #3B2810 56%, #2A1C0B 100%);
    box-shadow:
        inset 0 1px 0 rgba(255,238,200,.35),
        inset 0 -1px 0 rgba(0,0,0,.45),
        0 0 0 1px rgba(0,0,0,.55),
        0 16px 36px -16px rgba(226,190,112,.5);
    text-shadow: 0 1px 2px rgba(0,0,0,.65);
    overflow: hidden;
    isolation: isolate;
}
/* parlama: altın plakanın üstünden geçen ışık şeridi (üzerine gelince; "yakında" düğmesinde arada bir kendiliğinden) */
.btn-gold::after {
    content: "";
    position: absolute; top: -20%; bottom: -20%; left: -70%;
    width: 45%;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(100deg, transparent, rgba(255,240,205,.38), transparent);
    transform: skewX(-18deg);
    transition: left .8s cubic-bezier(.2,.9,.3,1);
}
.btn-gold > * { position: relative; z-index: 2; }
.btn-gold:hover::after { left: 135%; }
.btn-gold:hover {
    filter: brightness(1.12) saturate(1.05);
    box-shadow:
        inset 0 1px 0 rgba(255,238,200,.4),
        inset 0 -1px 0 rgba(0,0,0,.45),
        0 0 0 1px rgba(0,0,0,.55),
        0 0 26px -4px rgba(226,190,112,.45),
        0 18px 40px -16px rgba(226,190,112,.6);
}
.btn-gold .i { width: 22px; height: 22px; color: var(--gold-pale); }

/* "Çok Yakında": aynı altın görünüm, tıklanamaz */
.btn.is-soon { cursor: default; }
.btn.is-soon:disabled { opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
    .btn-gold.is-soon::after { animation: soon-shine 6.5s cubic-bezier(.45,0,.25,1) 2.2s infinite; }
}
@keyframes soon-shine {
    0%, 78% { left: -70%; }
    100%    { left: 135%; }
}

.btn-ghost {
    color: var(--head);
    border: 1px solid rgba(201,162,91,.42);
    background: rgba(10,15,21,.5);
    -webkit-backdrop-filter: blur(4px);
    backdrop-filter: blur(4px);
}
.btn-ghost:hover {
    border-color: var(--gold-lit);
    background: rgba(201,162,91,.1);
    box-shadow: 0 0 22px -6px rgba(226,190,112,.45);
}

.btn-sm { min-height: 38px; padding: 0 16px; font-size: 12.5px; border-radius: 8px; }
.btn-lg { min-height: 64px; padding: 0 30px 0 24px; gap: 14px; }
.btn-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; }
.btn-main { font-size: 17px; letter-spacing: .13em; }
.btn-sub {
    font-weight: 500; font-size: 12.5px;
    letter-spacing: .02em; text-transform: none;
    color: #E6CF9F;
}

/* ------------------------------------------------------------- üst menü -- */
.topbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 100;
    height: var(--nav-h);
    background: linear-gradient(180deg, rgba(6,9,13,.9) 0%, rgba(6,9,13,.45) 70%, rgba(6,9,13,0) 100%);
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease, height .3s ease;
}
.topbar.is-scrolled {
    height: 62px;
    background: rgba(10,15,21,.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom-color: var(--line);
}
.topbar-inner {
    height: 100%;
    max-width: calc(1320px + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
    display: flex; align-items: center; justify-content: space-between; gap: 20px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 0; }
.brand img { width: 40px; height: auto; filter: drop-shadow(0 4px 8px rgba(0,0,0,.6)); }
.brand span {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 17px;
    letter-spacing: .04em;
    color: var(--gold-lit);
    white-space: nowrap;
}

.menu { display: flex; align-items: center; gap: clamp(14px, 2vw, 30px); }
.menu > a:not(.btn) {
    position: relative;
    font-weight: 500;
    font-size: 15px;
    color: var(--body);
    padding: 6px 0;
    transition: color .25s ease;
}
.menu > a:not(.btn)::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 1px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: 0 50%;
    transition: transform .3s ease;
}
.menu > a:not(.btn):hover { color: var(--head); }
.menu > a:not(.btn):hover::after { transform: scaleX(1); }

/* dil seçici: <details> (JS olmadan da açılır), 9 dil */
.lang-dd { position: relative; }
.lang-dd > summary {
    list-style: none;
    display: inline-flex; align-items: center; gap: 7px;
    min-height: 38px;
    padding: 0 10px 0 11px;
    border: 1px solid var(--edge);
    border-radius: 8px;
    background: rgba(10,15,21,.6);
    color: var(--body);
    font-weight: 500; font-size: 13px; letter-spacing: .06em;
    cursor: pointer;
    user-select: none;
    transition: border-color .25s ease, color .25s ease, background .25s ease;
}
.lang-dd > summary::-webkit-details-marker { display: none; }
.lang-dd > summary .i { width: 17px; height: 17px; color: var(--gold-lit); }
.lang-dd > summary .i-chev { width: 15px; height: 15px; color: var(--muted); transition: transform .3s ease; }
.lang-dd > summary:hover { border-color: rgba(201,162,91,.6); color: var(--head); }
.lang-dd[open] > summary { border-color: var(--gold); background: rgba(201,162,91,.1); }
.lang-dd[open] > summary .i-chev { transform: rotate(180deg); }
.lang-list {
    position: absolute; right: 0; top: calc(100% + 8px);
    z-index: 120;
    min-width: 236px;
    padding: 6px;
    background: #0C1219;
    border: 1px solid var(--edge);
    border-radius: 10px;
    box-shadow: 0 24px 50px -20px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.4);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}
.lang-dd[open] .lang-list { animation: dd-in .22s cubic-bezier(.2,.9,.3,1); }
@keyframes dd-in {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
}
.lang-list a {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 12px;
    border-radius: 7px;
    font-size: 14.5px;
    color: var(--body);
    transition: background .2s ease, color .2s ease;
}
.lang-list .lc {
    min-width: 26px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .08em;
    color: var(--muted);
}
.lang-list a:hover { background: rgba(201,162,91,.1); color: var(--head); }
.lang-list a[aria-current="true"] { color: var(--gold-pale); background: rgba(201,162,91,.14); }
.lang-list a[aria-current="true"] .lc { color: var(--gold-lit); }

.menu-btn {
    display: none;
    width: 44px; height: 44px;
    place-items: center;
    border: 1px solid var(--edge);
    border-radius: 10px;
    background: rgba(10,15,21,.7);
    color: var(--gold-lit);
}
.menu-btn .i { width: 22px; height: 22px; }
.menu-btn .i-shut { display: none; }
.menu-btn[aria-expanded="true"] .i-open { display: none; }
.menu-btn[aria-expanded="true"] .i-shut { display: block; }

/* ================================================================= HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex; align-items: center;
    padding: calc(var(--nav-h) + 36px) 0 120px;
    overflow: hidden;
    isolation: isolate;
    background: var(--night);
}
@supports (height: 100svh) { .hero { min-height: 100svh; } }

.hero-media {
    position: absolute; inset: 0;
    z-index: -1;
    overflow: hidden;
    container-type: size;
}
/* Sahne görselin oranında (16:10) ve "cover" gibi taşar; fener/şimşek katmanları
   yüzdelerle görsele kilitli kalır. */
.hero-stage {
    position: absolute;
    left: 50%; top: 50%;
    width: max(100%, 160vh);
    width: max(100cqw, 160cqh);
    aspect-ratio: 16 / 10;
    translate: -50% -50%;
    transform-origin: 56% 52%;
    animation: stage-drift 70s ease-in-out infinite alternate;
    will-change: scale;
}
@keyframes stage-drift {
    from { scale: 1.02; }
    to   { scale: 1.1; }
}
.hero-stage picture, .hero-img { width: 100%; height: 100%; }
.hero-img { object-fit: cover; }

/* deniz sisi / duman: kendi ürettiğimiz, yatayda kesintisiz döşenen alfa dokular (araclar/sis-uret.py).
   Her katman tam bir karo genişliği (--tw) kadar kayar → döngüde dikiş yok. Yalnız transform/opacity.
   Dış kutu (.fog) JS ile dikey parallax alır, iç şerit (i) yatay akar: iki ayrı transform, çakışmaz. */
.fog {
    position: absolute; left: 0; right: 0;
    height: var(--th);
    pointer-events: none;
    will-change: transform;
}
.fog > i {
    position: absolute; top: 0; left: 0;
    width: calc(100% + var(--tw));
    height: 100%;
    background-repeat: repeat-x;
    background-size: var(--tw) 100%;
    animation: fog-pan var(--dur) linear infinite;
    will-change: transform;
}
@keyframes fog-pan {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(calc(var(--tw) * -1), 0, 0); }
}
/* uzak: ufuk çizgisinde ince, yavaş */
.fog-far  { --th: 300px; --tw: calc(300px * 3.821); --dur: 150s; top: 30%; opacity: .42; }
.fog-far > i  { background-image: url("../img/sis-uzak.webp"); }
/* orta: geminin bel hizasında, ters yönde süzülür */
.fog-mid  { --th: 380px; --tw: calc(380px * 3.821); --dur: 105s; top: 44%; opacity: .5; }
.fog-mid > i  { background-image: url("../img/sis-uzak.webp"); background-position: 37% 0; animation-direction: reverse; }
/* yakın: suyun üstünde kalın, hızlı */
.fog-near { --th: 460px; --tw: calc(460px * 3.084); --dur: 62s; bottom: -14%; opacity: .62; }
.fog-near > i { background-image: url("../img/sis-yakin.webp"); }
@media (prefers-reduced-motion: no-preference) {
    /* sis yavaşça nefes alır: katmanlar birbirinden bağımsız koyulaşıp açılır */
    .fog-far  { animation: fog-breathe 19s ease-in-out infinite; }
    .fog-mid  { animation: fog-breathe 23s ease-in-out -7s infinite; }
    .fog-near { animation: fog-breathe 17s ease-in-out -3s infinite; }
}
@keyframes fog-breathe {
    0%, 100% { opacity: var(--o1, .38); }
    50%      { opacity: var(--o2, .62); }
}
.fog-far  { --o1: .3;  --o2: .5; }
.fog-mid  { --o1: .36; --o2: .6; }
.fog-near { --o1: .48; --o2: .72; }

/* şimşek: gökte seyrek, düzensiz çakma (JS rastgele tetikler) */
.flash {
    position: absolute; inset: 0;
    pointer-events: none;
    opacity: 0;
    mix-blend-mode: screen;
    background: radial-gradient(var(--fw) var(--fh) at var(--fx) var(--fy),
        rgba(214,232,255,.62), rgba(150,188,236,.16) 42%, transparent 72%);
}
.flash-a { --fx: 80%; --fy: 2%;  --fw: 46%; --fh: 44%; }
.flash-b { --fx: 44%; --fy: 0%;  --fw: 40%; --fh: 34%; }
.flash.now { animation: lightning 1.25s ease-out; }
@keyframes lightning {
    0%   { opacity: 0; }
    5%   { opacity: .95; }
    11%  { opacity: .12; }
    17%  { opacity: .7; }
    30%  { opacity: .08; }
    100% { opacity: 0; }
}

/* yağmur: yalnız transform ile akan iki katman (kompozitör), eğik */
.rain {
    position: absolute; inset: -10% -12%;
    rotate: 9deg;
    pointer-events: none;
    overflow: hidden;
}
.rain i {
    position: absolute;
    left: 0; right: 0; top: -260px;
    height: calc(100% + 260px);
    background-size: 210px 260px;
    background-repeat: repeat;
    animation: rain-fall .62s linear infinite;
    will-change: transform;
}
.rain-far {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='260'%3E%3Cg stroke='%23c8d6e6' stroke-linecap='round' stroke-width='1'%3E%3Cpath d='M18 10v26' opacity='.35'/%3E%3Cpath d='M64 92v20' opacity='.25'/%3E%3Cpath d='M112 30v24' opacity='.3'/%3E%3Cpath d='M150 160v22' opacity='.28'/%3E%3Cpath d='M190 70v18' opacity='.22'/%3E%3Cpath d='M38 190v24' opacity='.3'/%3E%3Cpath d='M96 214v18' opacity='.22'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .5;
    animation-duration: .9s;
}
.rain-near {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='210' height='260'%3E%3Cg stroke='%23dbe6f2' stroke-linecap='round' stroke-width='1.3'%3E%3Cpath d='M30 40v44' opacity='.32'/%3E%3Cpath d='M140 120v38' opacity='.26'/%3E%3Cpath d='M84 196v40' opacity='.24'/%3E%3C/g%3E%3C/svg%3E");
    opacity: .45;
}
@keyframes rain-fall {
    from { transform: translate3d(0, 0, 0); }
    to   { transform: translate3d(0, 260px, 0); }
}

/* renk düzeltme: üstte menü, solda metin kolonu, altta sayfaya geçiş */
.hero-grade {
    position: absolute; inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6,9,13,.82) 0%, rgba(6,9,13,.2) 15%, transparent 30%),
        linear-gradient(0deg, var(--night) 0%, rgba(10,15,21,.86) 9%, rgba(10,15,21,.18) 30%, transparent 44%),
        linear-gradient(90deg, rgba(7,10,15,.9) 0%, rgba(7,10,15,.68) 26%, rgba(7,10,15,.2) 48%, transparent 62%),
        radial-gradient(120% 100% at 56% 46%, transparent 52%, rgba(0,0,0,.42) 100%);
}

/* film greni — data URI, ek istek yok */
.grain {
    position: absolute; inset: -4%;
    pointer-events: none;
    opacity: .14;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
    animation: grain-shift 1.2s steps(3) infinite;
}
@keyframes grain-shift {
    0%   { transform: translate(0, 0); }
    33%  { transform: translate(-2%, 1%); }
    66%  { transform: translate(1%, -2%); }
    100% { transform: translate(0, 0); }
}

/* ------------------------------------------------------------ hero metin -- */
.hero-inner {
    width: 100%;
    max-width: calc(1320px + var(--gutter) * 2);
    margin: 0 auto;
    padding: 0 var(--gutter);
}
.hero-copy { max-width: 540px; }

.hero-logo { margin: 0 0 22px -6px; line-height: 0; }
.hero-logo img {
    width: clamp(168px, 16vw, 236px);
    filter: drop-shadow(0 22px 34px rgba(0,0,0,.75)) drop-shadow(0 0 1px rgba(0,0,0,.9));
}

.tagline {
    font-size: clamp(17px, 1.45vw, 20px);
    line-height: 1.6;
    color: #DCE1E5;
    max-width: 30em;
    margin-bottom: 30px;
    text-shadow: 0 2px 8px rgba(0,0,0,.9);
}

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 18px; }

.hero-meta {
    font-size: 14px;
    color: var(--soft);
    margin-bottom: 10px;
    text-shadow: 0 1px 6px rgba(0,0,0,.9);
}
.hero-note {
    display: inline-flex; align-items: flex-start; gap: 10px;
    max-width: 34em;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--body);
    background: rgba(10,15,21,.62);
    border: 1px solid var(--edge);
    border-left: 3px solid var(--gold);
    border-radius: 0 8px 8px 0;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.hero-note .i { width: 18px; height: 18px; margin-top: 1px; color: var(--gold-lit); }

/* açılış: logo, slogan, düğmeler bir kez sırayla yükselir. Yalnız CSS — JS'i beklemez, ilk boyamada titremez. */
@media (prefers-reduced-motion: no-preference) {
    .hero-copy > * { animation: rise .95s cubic-bezier(.16,.84,.3,1) both; }
    .hero-copy > :nth-child(1) { animation-name: logo-in; animation-duration: 1.2s; }
    .hero-copy > :nth-child(2) { animation-delay: .2s; }
    .hero-copy > :nth-child(3) { animation-delay: .34s; }
    .hero-copy > :nth-child(4) { animation-delay: .48s; }
    .hero-copy > :nth-child(5) { animation-delay: .58s; }
    .topbar { animation: bar-in .8s cubic-bezier(.16,.84,.3,1) .1s both; }
}
@keyframes rise {
    from { opacity: 0; transform: translateY(22px); }
    to   { opacity: 1; transform: none; }
}
@keyframes logo-in {
    0%   { opacity: 0; transform: translateY(14px) scale(.9); filter: brightness(1.8) drop-shadow(0 0 0 rgba(226,190,112,0)); }
    60%  { opacity: 1; filter: brightness(1.15) drop-shadow(0 0 28px rgba(226,190,112,.45)); }
    100% { opacity: 1; transform: none; filter: none; }
}
@keyframes bar-in {
    from { opacity: 0; transform: translateY(-14px); }
    to   { opacity: 1; transform: none; }
}

.scroll-cue {
    position: absolute; left: 50%; bottom: 22px;
    translate: -50% 0;
    display: grid; justify-items: center; gap: 8px;
    font-size: 12px; letter-spacing: .12em;
    color: rgba(201,206,211,.6);
}
.scroll-cue span {
    width: 1px; height: 40px;
    background: linear-gradient(180deg, transparent, var(--gold), transparent);
    animation: cue 2.4s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--gold-lit); }
@keyframes cue {
    0%   { opacity: 0; transform: scaleY(.2) translateY(-10px); }
    40%  { opacity: 1; transform: none; }
    100% { opacity: 0; transform: scaleY(.2) translateY(12px); }
}

/* ============================================================== BÖLÜMLER == */
.section { position: relative; padding: clamp(72px, 9vw, 128px) 0; }
/* hero'nun koyu alt kenarı ile sayfa zemini arasında dikiş görünmesin */
.hero + .section::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0;
    height: 140px;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, var(--night), rgba(10,15,21,0));
}
/* yandan kayarak gelen bloklar (rv-left/right) yatay kaydırma çubuğu açmasın; clip kaydırma kabı oluşturmaz */
.section, .site-footer { overflow-x: hidden; overflow-x: clip; }
body { overflow-x: clip; }

.section-head { text-align: center; max-width: 720px; margin: 0 auto clamp(40px, 5vw, 64px); }
.section-head > p { color: var(--soft); font-size: 17px; max-width: 60ch; margin: 0 auto; }

h2 {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: clamp(28px, 3.4vw, 42px);
    line-height: 1.2;
    letter-spacing: .02em;
    color: var(--head);
    text-wrap: balance;
}
h3 {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 19px;
    line-height: 1.3;
    letter-spacing: .02em;
    color: var(--head);
}

/* e-postalardaki altın üst çizginin karşılığı: ortası açık altın, ortada elmas */
.ornament {
    position: relative;
    width: 180px; height: 9px;
    margin: 16px auto 22px;
}
.ornament::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 4px;
    height: 1px;
    background: linear-gradient(90deg, transparent, #6E5328 18%, var(--gold) 40%, var(--gold-pale) 50%, var(--gold) 60%, #6E5328 82%, transparent);
}
.ornament::after {
    content: "";
    position: absolute; left: 50%; top: 0;
    width: 9px; height: 9px;
    translate: -50% 0;
    rotate: 45deg;
    background: var(--night);
    border: 1px solid var(--gold-lit);
}

/* cam panel + giriş ekranı kartındaki altın köşe parçaları */
.panel {
    position: relative;
    background: linear-gradient(180deg, rgba(22,31,41,.8), rgba(13,19,26,.88));
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 6px;
    box-shadow: 0 34px 60px -42px rgba(0,0,0,.95), inset 0 1px 0 rgba(255,255,255,.04);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}
.panel::before {
    content: "";
    position: absolute; inset: -1px;
    pointer-events: none;
    border-radius: 6px;
    --c: rgba(201,162,91,.75);
    --l: 18px;
    background:
        linear-gradient(var(--c), var(--c)) left top / var(--l) 1px,
        linear-gradient(var(--c), var(--c)) left top / 1px var(--l),
        linear-gradient(var(--c), var(--c)) right top / var(--l) 1px,
        linear-gradient(var(--c), var(--c)) right top / 1px var(--l),
        linear-gradient(var(--c), var(--c)) left bottom / var(--l) 1px,
        linear-gradient(var(--c), var(--c)) left bottom / 1px var(--l),
        linear-gradient(var(--c), var(--c)) right bottom / var(--l) 1px,
        linear-gradient(var(--c), var(--c)) right bottom / 1px var(--l);
    background-repeat: no-repeat;
}

/* ------------------------------------------------- kaydırınca beliren bloklar
   Yalnız JS kökü .rv-on ile işaretlediyse gizlenir: JS yoksa (no-js) ya da hareket
   azaltılmışsa her şey baştan görünür. Gecikme (--rv-d) grubun sırasına göre JS'ten gelir. */
.rv-on .rv {
    opacity: 0;
    transform: translate3d(0, 34px, 0);
    transition:
        opacity .85s cubic-bezier(.16,.84,.3,1) var(--rv-d, 0ms),
        transform 1s cubic-bezier(.16,.84,.3,1) var(--rv-d, 0ms);
}
.rv-on .rv.rv-scale { transform: translate3d(0, 26px, 0) scale(.94); }
.rv-on .rv.rv-left  { transform: translate3d(-44px, 0, 0); }
.rv-on .rv.rv-right { transform: translate3d(44px, 0, 0); }
.rv-on .rv.rv-line  { transform: scaleX(.15); opacity: 0; }
.rv-on .rv.is-in { opacity: 1; transform: none; }
.rv-prep .rv { transition: none !important; }
/* Belirme bitince JS .rv'yi kaldırır: gecikme ve "transform: none" kalkar, kartların üzerine gelme tepkisi çalışır. */

/* kart üzerine gelme: hafif kalkış, altın kenar ve ışıma */
.feature, .soon, .specs {
    transition: transform .45s cubic-bezier(.2,.9,.3,1), box-shadow .45s ease, border-color .35s ease;
}
.feature::after, .soon::after {
    content: "";
    position: absolute; inset: 0;
    border-radius: inherit;
    pointer-events: none;
    background: radial-gradient(120% 90% at 50% 120%, rgba(226,190,112,.14), transparent 60%);
    opacity: 0;
    transition: opacity .5s ease;
}
@media (hover: hover) {
    .feature:hover, .soon:hover {
        transform: translateY(-7px);
        border-color: rgba(201,162,91,.38);
        box-shadow:
            0 0 0 1px rgba(201,162,91,.12),
            0 26px 50px -28px rgba(0,0,0,.95),
            0 0 34px -12px rgba(226,190,112,.35);
    }
    .feature:hover::after, .soon:hover::after { opacity: 1; }
    .feature:hover .ico { transform: translateY(-3px) scale(1.08); color: var(--gold-pale); filter: drop-shadow(0 0 10px rgba(226,190,112,.55)); }
    .soon:hover .ico { color: var(--gold-lit); transform: rotate(-6deg) scale(1.08); }
    .specs:hover { border-color: rgba(201,162,91,.3); box-shadow: 0 34px 60px -42px rgba(0,0,0,.95), 0 0 40px -18px rgba(226,190,112,.3); }
    .chips li:hover { background: rgba(201,162,91,.2); border-color: var(--gold-lit); transform: translateY(-2px); }
    .steps li:hover::before { box-shadow: 0 0 18px -2px rgba(226,190,112,.55); transform: scale(1.06); }
}
.feature .ico, .soon .ico { transition: transform .45s cubic-bezier(.2,.9,.3,1), color .35s ease, filter .35s ease; }
.chips li { transition: background .25s ease, border-color .25s ease, transform .25s ease; }
.steps li::before { transition: box-shadow .35s ease, transform .35s ease; }

/* ---------------------------------------------------------- özellikler -- */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}
.feature { padding: 30px 28px 30px; }
.feature .ico { width: 42px; height: 42px; color: var(--gold-lit); margin-bottom: 18px; stroke-width: 1.3; }
.feature h3 { margin-bottom: 10px; }
.feature p { font-size: 15.5px; line-height: 1.7; color: #B9C0C7; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chips li {
    padding: 4px 12px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--gold-pale);
    border: 1px solid rgba(201,162,91,.42);
    border-radius: 999px;
    background: rgba(201,162,91,.08);
}

/* --------------------------------------------------------------- indir -- */
.section-download::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, rgba(8,12,17,.55) 18%, rgba(8,12,17,.55) 82%, transparent 100%);
}
.download-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, .9fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: start;
}
.download-main h2 { text-align: left; }
.download-main .ornament { margin-left: 0; margin-right: 0; }
.download-main .lead { font-size: 17px; color: var(--soft); max-width: 56ch; margin-bottom: 28px; }

.steps-title { margin: 44px 0 18px; }
.steps { counter-reset: step; display: grid; gap: 0; }
.steps li {
    counter-increment: step;
    position: relative;
    padding: 0 0 22px 58px;
    min-height: 40px;
}
.steps li::before {
    content: counter(step);
    position: absolute; left: 0; top: -2px;
    width: 36px; height: 36px;
    display: grid; place-items: center;
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 16px;
    color: var(--gold-pale);
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 30%, #3B2810, #1b1309);
}
.steps li:not(:last-child)::after {
    content: "";
    position: absolute; left: 18px; top: 38px; bottom: 2px;
    width: 1px;
    background: linear-gradient(180deg, rgba(201,162,91,.5), rgba(201,162,91,.08));
}
.steps strong { display: block; color: var(--head); font-weight: 700; font-size: 16.5px; margin-bottom: 2px; }
.steps span { display: block; color: #B9C0C7; font-size: 15.5px; }
.steps small {
    display: block;
    margin-top: 8px;
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--soft);
    background: rgba(23,32,42,.7);
    border-left: 2px solid var(--gold);
    border-radius: 0 6px 6px 0;
}

.specs { padding: 30px 28px 26px; }
.specs h3 { margin-bottom: 4px; }
.specs-note { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.specs dl > div {
    display: grid;
    grid-template-columns: 128px minmax(0, 1fr);
    gap: 14px;
    padding: 12px 0;
    border-top: 1px solid var(--line);
}
.specs dt { font-size: 14px; color: var(--muted); }
.specs dd { font-size: 15px; font-weight: 500; color: #ECEEF0; }
.platform-note {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    font-size: 14px;
    color: var(--soft);
}

/* ------------------------------------------------------------ topluluk -- */
.soon-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: 860px;
    margin: 0 auto;
}
.soon {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
}
.soon .ico { width: 28px; height: 28px; color: var(--muted); }
.soon-name { font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--body); }
.soon-tag {
    font-size: 12.5px; font-weight: 500;
    color: var(--muted);
    padding: 3px 10px;
    border: 1px dashed rgba(142,149,155,.5);
    border-radius: 999px;
}

.support {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 10px;
    margin-top: 36px;
    font-size: 15.5px;
    color: var(--soft);
    text-align: center;
}
.support .i { color: var(--gold-lit); }
.support a, .footer-links a[href^="mailto"] { color: var(--gold-lit); border-bottom: 1px solid rgba(226,190,112,.35); }
.support a:hover { border-bottom-color: var(--gold-lit); }

/* -------------------------------------------------------------- footer -- */
.site-footer {
    position: relative;
    padding: 40px 0 34px;
    background: rgba(8,12,17,.9);
}
.site-footer::before {
    content: "";
    position: absolute; left: 0; right: 0; top: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #6E5328 15%, var(--gold) 35%, var(--gold-pale) 50%, var(--gold) 65%, #6E5328 85%, transparent);
    opacity: .8;
}
.footer-inner {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
    gap: 18px 32px;
}
.brand-footer img { width: 34px; }
.brand-footer span { font-size: 15px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 14.5px; }
.footer-links a { color: var(--soft); transition: color .2s ease; }
.footer-links a:hover { color: var(--head); }
.copy { width: 100%; font-size: 13px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line); }

/* ========================================================== RESPONSIVE ==== */
@media (max-width: 1080px) {
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .menu-btn { display: grid; }
    .menu {
        position: absolute;
        top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        gap: 0;
        padding: 0 var(--gutter);
        max-height: 0;
        overflow: hidden;
        visibility: hidden;
        background: var(--night);   /* tam opak: arkadaki hero yazısı sızmasın */
        border-bottom: 1px solid var(--line);
        transition: max-height .4s cubic-bezier(.16,.84,.3,1), padding .3s ease, visibility 0s linear .4s;
    }
    .menu.is-open {
        max-height: 420px;
        padding: 8px var(--gutter) 20px;
        visibility: visible;
        transition: max-height .4s cubic-bezier(.16,.84,.3,1), padding .3s ease, visibility 0s;
    }
    .menu.is-open { max-height: 760px; overflow-y: auto; }
    .menu > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
    .menu > a:not(.btn)::after { display: none; }
    .menu .lang-dd { align-self: stretch; margin: 16px 0 14px; }
    .menu .lang-dd > summary { min-height: 46px; width: 100%; padding: 0 14px; font-size: 14px; }
    .menu .lang-dd > summary .i-chev { margin-left: auto; }
    .menu .lang-list {
        position: static;
        margin-top: 8px;
        min-width: 0;
        display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
        box-shadow: none;
    }
    .menu .lang-list a { padding: 10px 10px; font-size: 14px; }
    .menu .btn-sm { min-height: 48px; font-size: 14px; }

    .download-grid { grid-template-columns: minmax(0, 1fr); }
    .scroll-cue { display: none; }
}

@media (max-width: 760px) {
    /* Telefon: içerik menünün hemen altından başlar (üstte boş görsel kalmaz); gemi ortalanır,
       metnin arkasında ve altında görünür. İlk ekranda logo + slogan + ana düğme kaydırmadan görünür. */
    .hero {
        align-items: flex-start;
        min-height: 0;
        padding: calc(var(--nav-h) + 26px) 0 64px;
    }
    @supports (height: 100svh) { .hero { min-height: 0; } }
    .hero-stage { translate: -66% -50%; }
    .fog-far  { --th: 200px; --tw: calc(200px * 3.821); top: 22%; }
    .fog-mid  { --th: 250px; --tw: calc(250px * 3.821); top: 40%; }
    .fog-near { --th: 300px; --tw: calc(300px * 3.084); bottom: -8%; }
    .hero-grade {
        background:
            linear-gradient(180deg, rgba(6,9,13,.9) 0%, rgba(6,9,13,.55) 12%, rgba(8,12,17,.42) 40%, rgba(10,15,21,.6) 72%, var(--night) 100%),
            linear-gradient(90deg, rgba(7,10,15,.55) 0%, rgba(7,10,15,.2) 70%, transparent 100%);
    }
    .hero-logo { margin: 0 0 16px -4px; }
    .hero-logo img { width: 128px; }
    .tagline { font-size: 16.5px; line-height: 1.55; margin-bottom: 20px; }
    .cta-row { gap: 10px; margin-bottom: 14px; }
    .hero-meta { margin-bottom: 8px; }
    .cta-row .btn-lg { width: 100%; justify-content: flex-start; }
    .cta-row .btn-ghost { width: 100%; }
    .feature-grid { grid-template-columns: minmax(0, 1fr); }
    .soon-list { grid-template-columns: minmax(0, 1fr); }
    .brand span { font-size: 15px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 380px) {
    .brand span { font-size: 13.5px; letter-spacing: .02em; }
    .specs dl > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}

/* ====================================================== REDUCED MOTION ==== */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }
    .rain, .grain, .flash { display: none; }
    /* sis durağan kalır (görünür, hareketsiz) */
    .fog > i { animation: none !important; transform: none !important; }
    .rv-on .rv { opacity: 1 !important; transform: none !important; }
}
