/* SIMUMAV tanıtım sitesi — koyu zemin, neon turkuaz / amber; film tadında sahne geçişleri */
:root {
  --bg: #05070f; --bg2: #0b1326; --ink: #eaf2ff; --muted: #9db4d3;
  --cyan: #19e6d2; --amber: #ffb347; --line: rgba(25, 230, 210, .18);
  --font: Inter, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif;
  --ease: cubic-bezier(.22, .8, .2, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); }
body { line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; transition: background 1.2s var(--ease); }
body[data-scene="hero"] { background: #05070f; }
body[data-scene="modules"] { background: #070d1c; }
body[data-scene="physics"] { background: #050b14; }
body[data-scene="fpv"] { background: #0a0914; }
body[data-scene="cta"] { background: #04070f; }
img { display: block; max-width: 100%; }
a { color: var(--cyan); }
h1, h2, h3, h4 { margin: 0; line-height: 1.08; letter-spacing: -.01em; font-weight: 800; }
h1 { font-size: clamp(2.6rem, 7vw, 5.6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0; }
.wrap { width: min(1160px, 92vw); margin-inline: auto; }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; top: 8px; inset-inline-start: 8px; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); z-index: 100; }
.skip:focus { width: auto; height: auto; clip: auto; background: var(--amber); color: #000; padding: .4rem .8rem; }
.kicker { color: var(--amber); text-transform: uppercase; letter-spacing: .28em; font-size: .78rem; font-weight: 700; margin-bottom: 1rem; }
.lead { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.3rem); max-width: 56ch; margin-top: 1.1rem; }
.small { font-size: .85rem; color: var(--muted); }

/* düğmeler */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; padding: .62rem 1.3rem;
  font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s; }
.btn.lg { padding: .9rem 1.8rem; font-size: 1.05rem; }
.btn.wide { width: 100%; }
.btn.primary { background: linear-gradient(90deg, var(--cyan), #5ff0ff); color: #03141a; box-shadow: 0 0 0 0 rgba(25, 230, 210, .4); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(25, 230, 210, .35); }
.btn.ghost { color: var(--ink); border-color: rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .04); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--cyan); transform: translateY(-2px); }
.btn:disabled { opacity: .55; cursor: wait; transform: none; }

/* üst bant */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; display: flex; align-items: center; gap: 1.5rem; padding: .8rem clamp(1rem, 4vw, 2.5rem);
  transition: background .4s, backdrop-filter .4s, box-shadow .4s; }
.nav.scrolled { background: rgba(5, 7, 15, .72); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand img { height: 36px; width: auto; }
.nav-links { display: flex; gap: 1.4rem; margin-inline-start: auto; }
.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: .95rem; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -4px; height: 2px; background: var(--cyan); transition: right .3s var(--ease); }
.nav-links a:hover::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang select { background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; padding: .45rem .8rem; font: inherit; font-size: .9rem; }
.lang select option { color: #000; }

/* ---------- AÇILIŞ SAHNESİ ---------- */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.sky { position: absolute; inset: 0; z-index: -4; background:
  radial-gradient(ellipse 80% 50% at 70% 46%, rgba(255, 140, 60, .38) 0%, rgba(255, 120, 40, 0) 60%),
  linear-gradient(180deg, #02030a 0%, #070d22 42%, #1a2550 70%, #3a2a3c 86%, #05070f 100%); }
.sun { position: absolute; left: 70%; top: 44%; width: 22vmin; height: 22vmin; border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(circle, #ffd28a 0%, #ff9a3c 35%, rgba(255, 140, 60, 0) 70%); filter: blur(10px); opacity: .9; animation: sun 14s ease-in-out infinite alternate; }
@keyframes sun { from { transform: translate(-50%, -50%) scale(1); opacity: .8; } to { transform: translate(-50%, -46%) scale(1.08); opacity: 1; } }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; opacity: 0; transition: opacity 1.6s ease; }
#hero3d.on { opacity: 1; }
.grain { position: absolute; inset: -50%; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain .9s steps(4) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -4%); } 75% { transform: translate(-1%, 5%); } 100% { transform: translate(3%, -1%); } }
.bars::before, .bars::after { content: ""; position: absolute; left: 0; right: 0; height: 5vh; background: #000; z-index: 2; pointer-events: none; transition: transform 1.4s var(--ease) .4s; }
.bars::before { top: 0; } .bars::after { bottom: 0; }
.bars.open::before { transform: translateY(-100%); } .bars.open::after { transform: translateY(100%); }
.hero-fallback { position: absolute; inset: 0; z-index: -3; display: none; place-items: center;
  background: repeating-linear-gradient(90deg, rgba(25, 230, 210, .08) 0 1px, transparent 1px 64px), repeating-linear-gradient(0deg, rgba(25, 230, 210, .06) 0 1px, transparent 1px 44px); }
.hero-fallback img { filter: drop-shadow(0 0 40px rgba(25, 230, 210, .5)); animation: float 6s ease-in-out infinite; }
.hero.no-webgl .hero-fallback { display: grid; }
.hero-vignette { position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 70% 60% at 50% 50%, transparent 40%, rgba(5, 7, 15, .75) 100%),
  linear-gradient(180deg, rgba(5, 7, 15, .5), transparent 30%, transparent 70%, var(--bg) 100%); }
.hero-copy { position: relative; z-index: 1; width: min(1160px, 92vw); padding-top: 14vh; }
.hero-copy::before { content: ""; position: absolute; inset: -10% 25% -12% -12%; z-index: -1; pointer-events: none; border-radius: 50%;
  background: radial-gradient(ellipse at 35% 55%, rgba(5, 7, 15, .78) 0%, rgba(5, 7, 15, .45) 45%, transparent 72%); }
.hero-copy .lead { text-shadow: 0 2px 18px rgba(0, 0, 0, .8); }
.hero-copy h1 { background: linear-gradient(90deg, #fff 0%, #cfeeff 40%, var(--cyan) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 4px 22px rgba(0, 0, 0, .85)); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.scroll-hint { position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%); color: var(--muted); font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; display: grid; justify-items: center; gap: .4rem; }
.scroll-hint i { width: 1px; height: 44px; background: linear-gradient(var(--cyan), transparent); animation: drop 1.8s ease-in-out infinite; }
@keyframes drop { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-14px) rotate(2deg); } }

/* ---------- SAHNELER ---------- */
.scene { position: relative; padding: clamp(5rem, 12vh, 9rem) 0; overflow: hidden; scroll-margin-top: 64px; }
.scene::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--line), transparent); }
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
.mod-grid [data-reveal]:nth-child(2), .phys-grid [data-reveal]:nth-child(2) { transition-delay: .12s; }
.mod-grid [data-reveal]:nth-child(3), .phys-grid [data-reveal]:nth-child(3) { transition-delay: .24s; }
.mod-grid [data-reveal]:nth-child(4) { transition-delay: .36s; }
.mod-grid [data-reveal]:nth-child(5) { transition-delay: .48s; }
.mod-grid [data-reveal]:nth-child(6) { transition-delay: .6s; }
.parallax { will-change: transform; }

/* modüller */
.modules::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 40% at 20% 10%, rgba(25, 230, 210, .10), transparent 60%), radial-gradient(ellipse 50% 40% at 90% 90%, rgba(255, 179, 71, .08), transparent 60%); }
.mod-grid { list-style: none; padding: 0; margin: 3rem 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; counter-reset: mod; }
.mod-card { position: relative; padding: 1.6rem 1.5rem 1.6rem; border: 1px solid rgba(255, 255, 255, .08); border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .015));
  overflow: hidden; transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
.mod-card::before { counter-increment: mod; content: "0" counter(mod); position: absolute; right: 1.2rem; top: 1rem; font-weight: 800; font-size: 2.4rem; color: rgba(255, 255, 255, .06); }
.mod-card::after { content: ""; position: absolute; inset: auto -40% -60% -40%; height: 70%; background: radial-gradient(ellipse at center, rgba(25, 230, 210, .18), transparent 60%); opacity: 0; transition: opacity .5s; }
.mod-card:hover { transform: translateY(-6px); border-color: rgba(25, 230, 210, .45); box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.mod-card:hover::after { opacity: 1; }
.mod-card h3 { margin-top: 1rem; }
.mod-card p { color: var(--muted); margin-top: .5rem; font-size: .98rem; }
.mod-ico { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: rgba(25, 230, 210, .08); border: 1px solid var(--line); box-shadow: inset 0 0 30px rgba(25, 230, 210, .08); }
.mod-ico img { width: 52px; height: 52px; transition: transform .6s var(--ease); }
[data-mod="hangar"]:hover .mod-ico img { transform: translateY(-4px); }
[data-mod="crew"]:hover .mod-ico img { transform: scale(1.1); }
[data-mod="tracks"]:hover .mod-ico img { animation: float 2.4s ease-in-out infinite; }
[data-mod="missions"]:hover .mod-ico img { transform: rotate(-6deg) scale(1.06); }
[data-mod="fly"] .mod-ico img { animation: fly 3.2s ease-in-out infinite; }
[data-mod="ops"]:hover .mod-ico img { transform: translateX(4px); }
@keyframes fly { 0%, 100% { transform: translate(0, 0) rotate(-14deg); } 50% { transform: translate(5px, -6px) rotate(-8deg); } }

/* fizik */
.phys-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.4rem; margin-top: 3rem; }
.phys-card { padding: 1.4rem; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); }
.phys-card h3 { margin-top: 1.2rem; }
.phys-card p { color: var(--muted); margin-top: .5rem; }
.viz { position: relative; height: 180px; border-radius: 16px; overflow: hidden; background: #060b17; border: 1px solid var(--line); display: grid; place-items: center; }
.viz-sitl span { position: absolute; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--cyan); opacity: 0; animation: ring 3s ease-out infinite; }
.viz-sitl span:nth-child(2) { animation-delay: 1s; } .viz-sitl span:nth-child(3) { animation-delay: 2s; }
.viz-sitl b { width: 14px; height: 14px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 24px var(--amber); animation: blink 1.2s steps(2) infinite; }
@keyframes ring { from { transform: scale(.4); opacity: .9; } to { transform: scale(3.2); opacity: 0; } }
@keyframes blink { 50% { opacity: .4; } }
.viz-g3d .grid { position: absolute; left: -40%; right: -40%; bottom: -10px; height: 70%;
  background: repeating-linear-gradient(90deg, rgba(25, 230, 210, .35) 0 1px, transparent 1px 36px), repeating-linear-gradient(0deg, rgba(25, 230, 210, .3) 0 1px, transparent 1px 26px);
  transform: perspective(300px) rotateX(64deg); transform-origin: 50% 100%; animation: gridmove 2.4s linear infinite; mask-image: linear-gradient(to top, #000 30%, transparent); }
@keyframes gridmove { to { background-position: 0 26px, 0 26px; } }
.viz-g3d .peaks { position: absolute; inset: auto 0 36% 0; height: 50%; background: linear-gradient(180deg, #1c2d55, #0b1530);
  clip-path: polygon(0 100%, 8% 55%, 18% 70%, 30% 30%, 40% 58%, 52% 20%, 62% 50%, 72% 35%, 84% 62%, 92% 45%, 100% 70%, 100% 100%); }
.viz-mp svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.viz-mp .tele { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-dasharray: 600; stroke-dashoffset: 600; animation: draw 4s linear infinite; }
.viz-mp .tele.alt { stroke: var(--amber); animation-delay: .6s; opacity: .8; }
@keyframes draw { 0% { stroke-dashoffset: 600; } 70% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.viz-mp em { position: absolute; left: 12px; bottom: 10px; font-style: normal; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .8rem; color: var(--amber); }

/* FPV */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.checks { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .6rem; color: var(--ink); }
.checks li { padding-inline-start: 1.8rem; position: relative; }
.checks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
[dir="rtl"] .checks li::before { left: auto; right: 0; }
.fpv-view { position: relative; aspect-ratio: 4 / 3; border-radius: 28px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .12);
  background: linear-gradient(180deg, #6a8bc7 0%, #a9c1e6 48%, #3b5a3a 50%, #1e3620 100%); box-shadow: 0 30px 80px rgba(0, 0, 0, .6), inset 0 0 120px rgba(0, 0, 0, .5); }
.fpv-view .horizon { position: absolute; inset: -20%; background: linear-gradient(180deg, transparent 49.6%, rgba(255, 255, 255, .8) 49.6%, rgba(255, 255, 255, .8) 50.4%, transparent 50.4%); animation: bank 5s ease-in-out infinite; }
@keyframes bank { 0%, 100% { transform: rotate(-6deg) translateY(2%); } 50% { transform: rotate(7deg) translateY(-3%); } }
.fpv-view .flags span { position: absolute; left: 50%; top: 50%; width: 14px; height: 40px; background: linear-gradient(90deg, var(--amber), #ff7a1a); clip-path: polygon(0 0, 100% 20%, 0 40%, 0 100%, 12% 100%, 12% 0); transform-origin: bottom; animation: gate 3s linear infinite; }
.fpv-view .flags span:nth-child(2) { animation-delay: 1s; } .fpv-view .flags span:nth-child(3) { animation-delay: 2s; }
@keyframes gate { 0% { transform: translate(-50%, -60%) scale(.1); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-320%, 40%) scale(3.5); opacity: 0; } }
.fpv-view .cross { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; transform: translate(-50%, -50%); border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 12px var(--cyan); }
.fpv-view .cross::before, .fpv-view .cross::after { content: ""; position: absolute; background: var(--cyan); left: 50%; top: 50%; }
.fpv-view .cross::before { width: 60px; height: 2px; transform: translate(-50%, -50%); }
.fpv-view .cross::after { width: 2px; height: 60px; transform: translate(-50%, -50%); }
.fpv-view .osd { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: space-between; padding: 1rem; font-family: ui-monospace, Menlo, Consolas, monospace; color: #fff; text-shadow: 0 0 6px #000; font-size: .95rem; }
.fpv-view .osd b:nth-child(even) { text-align: end; }
.fpv-view .scan { position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 2px, transparent 2px 4px); mix-blend-mode: multiply; animation: scan 6s linear infinite; }
@keyframes scan { to { background-position: 0 24px; } }

/* CTA */
.cta { text-align: center; }
.cta::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse 50% 60% at 50% 110%, rgba(25, 230, 210, .22), transparent 70%); }
.cta .hero-actions { justify-content: center; }
.cta .lead { margin-inline: auto; }

/* altbilgi */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 2.5rem; color: var(--muted); font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.foot h4 { color: var(--ink); margin-bottom: .6rem; font-size: 1rem; }
.foot p { margin-top: .6rem; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.plain a { color: var(--muted); text-decoration: none; } .plain a:hover { color: var(--cyan); }

/* ---------- KAYIT / GİRİŞ ---------- */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-back { position: absolute; inset: 0; background: rgba(2, 4, 10, .7); backdrop-filter: blur(8px); animation: fade .3s; }
.panel { position: relative; width: min(440px, 100%); background: linear-gradient(170deg, #0f1a33, #080d1b); border: 1px solid rgba(25, 230, 210, .25); border-radius: 24px; padding: 2rem 1.8rem 1.6rem;
  box-shadow: 0 40px 100px rgba(0, 0, 0, .7), 0 0 60px rgba(25, 230, 210, .08); animation: rise .45s var(--ease); max-height: calc(100svh - 2rem); overflow: auto; }
@keyframes rise { from { transform: translateY(30px) scale(.97); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.panel .x { position: absolute; inset-inline-end: .8rem; top: .7rem; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .06); color: var(--ink); font-size: 1.3rem; cursor: pointer; }
.panel-logo { width: 56px; height: 56px; border-radius: 14px; margin-bottom: .8rem; }
.panel h2 { font-size: 1.6rem; margin-bottom: 1rem; }
.panel form, .panel [data-view] { display: grid; gap: .9rem; }
.panel label { display: grid; gap: .3rem; font-size: .85rem; color: var(--muted); }
.panel input { font: inherit; color: var(--ink); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .15); border-radius: 12px; padding: .7rem .9rem; transition: border-color .2s, box-shadow .2s; }
.panel input:focus { outline: 0; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 230, 210, .18); }
.panel .links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .6rem; font-size: .85rem; }
.panel .links a { color: var(--muted); text-decoration: none; } .panel .links a:hover { color: var(--cyan); }
.msg { border-radius: 12px; padding: .7rem .9rem; font-size: .9rem; margin-bottom: .9rem; border: 1px solid; }
.msg[hidden] { display: none; }
.msg.err { background: rgba(255, 90, 90, .12); border-color: rgba(255, 90, 90, .4); color: #ffb3b3; }
.msg.ok { background: rgba(25, 230, 210, .1); border-color: rgba(25, 230, 210, .4); color: #b9fff6; }
.msg.wait { background: rgba(255, 179, 71, .12); border-color: rgba(255, 179, 71, .45); color: #ffd9a3; }
.mail-anim { height: 90px; display: grid; place-items: center; }
.mail-anim i { width: 64px; height: 44px; border: 2px solid var(--cyan); border-radius: 8px; position: relative; animation: float 3s ease-in-out infinite; box-shadow: 0 0 30px rgba(25, 230, 210, .3); }
.mail-anim i::before { content: ""; position: absolute; inset: 0; clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 10%, 50% 68%, 0 10%); background: var(--cyan); }

/* ---------- yasal sayfalar ---------- */
.legal { width: min(760px, 92vw); margin: 0 auto; padding: 7rem 0 4rem; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: .5rem; }
.legal p { margin-top: 1rem; color: var(--ink); }
.legal .lead { margin-top: .4rem; }
.legal .legal-h2 { font-size: 1.2rem; margin-top: 1.6rem; color: var(--cyan); }
.legal .legal-links { margin-top: 2rem; color: var(--muted); } .legal .legal-links a { color: var(--muted); } .legal .legal-links a:hover { color: var(--cyan); }

/* ---------- AÇILIŞ: karartma perdesi + film künyesi (lower third) ---------- */
.hero-dip { position: absolute; inset: 0; z-index: -2; pointer-events: none; background: #02040a; opacity: var(--dip, 0); }
.hero.no-webgl .hero-dip { display: none; }
.reel { position: absolute; z-index: 3; inset-inline-end: clamp(1rem, 4vw, 2.75rem); bottom: clamp(4.5rem, 10vh, 7rem); width: min(460px, 84vw); color: #fff;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.reel-meta { display: grid; grid-template-columns: auto 1fr; column-gap: .8rem; row-gap: .1rem; align-items: baseline; }
.reel-idx { grid-row: span 2; align-self: start; padding-top: .45rem; font: 700 .72rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .14em; color: var(--amber); }
.reel-name { font-size: clamp(1.3rem, 2.1vw, 1.8rem); font-weight: 800; letter-spacing: .05em; line-height: 1.1; }
.reel-type { grid-column: 2; font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: #bfe9ff; }
.reel-spec { grid-column: 2; font: 600 .85rem/1.4 ui-monospace, Menlo, Consolas, monospace; color: #d7e4f5; opacity: .9; }
.reel.swap .reel-name, .reel.swap .reel-type, .reel.swap .reel-spec { animation: reelIn .9s var(--ease) both; }
.reel.swap .reel-type { animation-delay: .08s; } .reel.swap .reel-spec { animation-delay: .16s; }
@keyframes reelIn { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } }
.reel-bar { position: relative; height: 2px; margin: .8rem 0 .7rem; background: rgba(255, 255, 255, .18); overflow: hidden; border-radius: 2px; }
.reel-bar i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--cyan), #9ff8ff); transform-origin: 0 50%; transform: scaleX(0); }
[dir="rtl"] .reel-bar i { transform-origin: 100% 50%; }
.reel.static .reel-bar { display: none; }
.reel-ctl { display: flex; gap: .45rem; }
.reel-ctl button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .28); background: rgba(5, 10, 22, .45); color: #fff; font: 700 1.2rem/1 var(--font);
  cursor: pointer; backdrop-filter: blur(6px); display: grid; place-items: center; transition: border-color .25s, background .25s; }
.reel-ctl button:hover, .reel-ctl button:focus-visible { border-color: var(--cyan); background: rgba(25, 230, 210, .16); }
.i-pause { width: 10px; height: 12px; border-inline: 3px solid #fff; }
.paused .i-pause { width: 0; height: 0; border: 0; border-block: 6px solid transparent; border-inline-start: 10px solid #fff; margin-inline-start: 3px; }

/* ---------- tema düğmesi ---------- */
.theme-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .2); transition: border-color .25s, transform .4s var(--ease); }
.theme-btn:hover { border-color: var(--cyan); transform: rotate(-18deg); }
.theme-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; grid-area: 1 / 1; transition: opacity .35s, transform .5s var(--ease); }
.theme-btn .i-moon { fill: currentColor; stroke: none; }
:root[data-theme="light"] .theme-btn .i-moon, :root:not([data-theme="light"]) .theme-btn .i-sun { opacity: 0; transform: scale(.5) rotate(-60deg); }

/* ---------- modül kartı → bölüm ---------- */
.mod-card { cursor: pointer; }
.mod-link { color: inherit; text-decoration: none; }
.mod-link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.mod-link:focus-visible { outline: none; }
.mod-card:has(.mod-link:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 3px; }
.mod-more { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--cyan); }
.mod-more::after { content: "→"; transition: transform .35s var(--ease); }
[dir="rtl"] .mod-more::after { content: "←"; }
.mod-card:hover .mod-more::after { transform: translateX(5px); }
[dir="rtl"] .mod-card:hover .mod-more::after { transform: translateX(-5px); }
.kicker .num { display: inline-grid; place-items: center; min-width: 2.2em; padding: .15em .45em; margin-inline-end: .5em; border: 1px solid currentColor; border-radius: 999px; letter-spacing: .08em; }

/* ---------- HANGAR galerisi ---------- */
.hangar::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 0%, rgba(25, 230, 210, .10), transparent 65%), radial-gradient(ellipse 50% 40% at 0% 100%, rgba(255, 179, 71, .07), transparent 60%); }
.fleet-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2.2rem; }
.chip { font: 600 .85rem/1 var(--font); padding: .55rem .95rem; border-radius: 999px; cursor: pointer; color: var(--muted); background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12); transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--ink); border-color: var(--cyan); }
.chip[aria-pressed="true"] { color: #03141a; background: var(--cyan); border-color: var(--cyan); }
.fleet-grid { list-style: none; padding: 0; margin: 1.4rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.fleet-grid > li { animation: tileIn .8s var(--ease) both; }
.fleet-grid > li:nth-child(3n + 2) { animation-delay: .08s; } .fleet-grid > li:nth-child(3n) { animation-delay: .16s; }
@keyframes tileIn { from { opacity: 0; transform: translateY(18px) scale(.98); } }
.fleet-plain { padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 14px; color: var(--muted); }
.fleet-card { all: unset; box-sizing: border-box; display: grid; width: 100%; cursor: pointer; border-radius: 20px; overflow: hidden; position: relative;
  border: 1px solid rgba(255, 255, 255, .09); background: linear-gradient(170deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .012));
  transition: transform .45s var(--ease), border-color .45s, box-shadow .45s; }
.fleet-card:hover, .fleet-card:focus-visible { transform: translateY(-5px); border-color: rgba(25, 230, 210, .5); box-shadow: 0 22px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(25, 230, 210, .15); }
.fleet-card:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.fc-stage { position: relative; aspect-ratio: 4 / 3; display: block;
  background: radial-gradient(ellipse 70% 38% at 50% 78%, rgba(25, 230, 210, .16), transparent 70%), radial-gradient(circle at 50% 40%, #13213d, #070c18 75%); }
.fc-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.fc-load { position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50%; border: 2px solid rgba(25, 230, 210, .2); border-top-color: var(--cyan); animation: spin 1s linear infinite; }
.ready .fc-load, .fleet-view.ready .fc-load, .failed .fc-load { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.fc-meta { display: grid; gap: .15rem; padding: .85rem 1rem 1rem; }
.fc-name { font-size: 1.05rem; letter-spacing: .02em; }
.fc-type { font-size: .72rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan); }
.fc-type[data-type="interceptor"] { color: #ff6b5a; }
.fc-type[data-type="plane"], .fc-type[data-type="vtol"] { color: var(--amber); }
.fc-spec { font: 600 .82rem/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.fleet-hint { margin-top: 1rem; }

/* büyütülmüş model (diyalog) */
body.modal-open { overflow: hidden; }
.fleet-view { position: fixed; inset: 0; z-index: 92; display: grid; place-items: center; padding: clamp(.5rem, 3vw, 2rem); }
.fv-back { position: absolute; inset: 0; background: rgba(2, 4, 10, .78); backdrop-filter: blur(10px); animation: fade .3s; }
.fv-panel { position: relative; width: min(1180px, 100%); max-height: calc(100svh - 1rem); display: grid; grid-template-columns: 1.7fr 1fr; overflow: hidden;
  border-radius: 26px; border: 1px solid rgba(25, 230, 210, .25); background: linear-gradient(170deg, #0f1a33, #070c18); box-shadow: 0 40px 120px rgba(0, 0, 0, .75); animation: rise .5s var(--ease); }
.fv-stage { position: relative; min-height: min(68vh, 620px); cursor: grab; touch-action: none;
  background: radial-gradient(ellipse 60% 30% at 50% 80%, rgba(25, 230, 210, .18), transparent 70%), radial-gradient(circle at 50% 40%, #16264a, #050913 78%); }
.fv-stage:active { cursor: grabbing; }
.fv-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.fv-info { padding: 2.2rem 1.8rem 1.6rem; display: flex; flex-direction: column; gap: .6rem; overflow: auto; }
.fv-idx { font: 700 .75rem/1 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .18em; color: var(--amber); }
.fv-name { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: .03em; }
.fv-type { font-size: .8rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--cyan); }
.fv-spec { font: 600 .95rem/1.4 ui-monospace, Menlo, Consolas, monospace; color: var(--ink); }
.fv-desc { color: var(--muted); }
.fv-nav { display: flex; gap: .6rem; margin-top: auto; padding-top: 1rem; flex-wrap: wrap; }
.fv-panel .x { position: absolute; inset-inline-end: .8rem; top: .7rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--ink); font-size: 1.3rem; cursor: pointer; }

/* ---------- modül tanıtım bölümleri ---------- */
.feat { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.feature.alt .feat { grid-template-columns: 1.3fr 1fr; }
.feature.alt .feat-copy { order: 2; }
.feature::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(ellipse 55% 50% at 80% 50%, rgba(25, 230, 210, .07), transparent 70%); }
.feature.alt::after { background: radial-gradient(ellipse 55% 50% at 20% 50%, rgba(255, 179, 71, .06), transparent 70%); }
.shot { margin: 0; position: relative; border-radius: 18px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); background: #070c18;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(25, 230, 210, .06); transition: transform .8s var(--ease), box-shadow .8s; }
.shot img { width: 100%; height: auto; }
.feature .shot { transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); }
.feature.alt .shot { transform: perspective(1400px) rotateY(5deg) rotateX(2deg); }
.feature .shot:hover { transform: perspective(1400px) rotateY(0) rotateX(0) translateY(-4px); box-shadow: 0 40px 100px rgba(0, 0, 0, .6), 0 0 0 1px rgba(25, 230, 210, .3); }
.shot::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, rgba(255, 255, 255, .08), transparent 35%); }
.shot figcaption { position: relative; padding: .85rem 1.1rem 1rem; font-size: .95rem; color: var(--muted); border-top: 1px solid rgba(255, 255, 255, .07); background: rgba(255, 255, 255, .02); }
.shot figcaption b { color: var(--ink); margin-inline-end: .35rem; }

/* ---------- EO · radar · hedef ---------- */
.systems::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 60% 35% at 50% 0%, rgba(255, 90, 70, .08), transparent 70%), repeating-linear-gradient(0deg, rgba(25, 230, 210, .025) 0 1px, transparent 1px 4px); }
.shot.wide { margin-top: 2.6rem; }
.sys-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.4rem; }
.sys-card { padding: 1.1rem; border-radius: 22px; border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .025); display: grid; gap: .7rem; align-content: start; }
.sys-card h3 { margin-top: .3rem; }
.sys-card p { color: var(--muted); }
.sys-media { position: relative; aspect-ratio: 7 / 5; border-radius: 14px; overflow: hidden; background: #050913; border: 1px solid var(--line); }
.sys-media img { width: 100%; height: 100%; object-fit: cover; }
.eo-img { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; }
.eo-img.on { opacity: 1; }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .04); justify-self: start; }
.seg button { font: 700 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; padding: .55rem .9rem; border-radius: 999px; border: 0; cursor: pointer; color: var(--muted); background: transparent; }
.seg button[aria-pressed="true"] { background: var(--cyan); color: #03141a; }
.seg button[data-eo-btn="thermal"][aria-pressed="true"] { background: linear-gradient(90deg, #ffef9a, #ff7a1a); }
.seg button[data-eo-btn="night"][aria-pressed="true"] { background: #7dff8a; }
.sys-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.4rem; align-items: start; }

body[data-scene="hangar"] { background: #060b19; }
body[data-scene="crew"], body[data-scene="missions"], body[data-scene="ops"] { background: #070c1a; }
body[data-scene="tracks"], body[data-scene="fly"] { background: #080a17; }
body[data-scene="systems"] { background: #04070d; }

/* ---------- GÜNDÜZ TEMASI ---------- */
:root[data-theme="light"] { color-scheme: light; --bg: #eef3f9; --bg2: #ffffff; --ink: #0b1626; --muted: #4a5d78; --cyan: #0a8f86; --amber: #b8600a; --line: rgba(10, 110, 130, .2); }
:root[data-theme="light"] body, :root[data-theme="light"] body[data-scene] { background: #eef3f9; }
:root[data-theme="light"] body[data-scene="hangar"], :root[data-theme="light"] body[data-scene="systems"] { background: #e7eef7; }
:root[data-theme="light"] .nav:not(.scrolled) { color: #fff; }
:root[data-theme="light"] .nav:not(.scrolled) .nav-links a { color: rgba(255, 255, 255, .86); }
:root[data-theme="light"] .nav:not(.scrolled) .theme-btn, :root[data-theme="light"] .nav:not(.scrolled) .lang select, :root[data-theme="light"] .nav:not(.scrolled) .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(10, 25, 50, .22); }
:root[data-theme="light"] .nav.scrolled { background: rgba(244, 248, 252, .82); box-shadow: 0 1px 0 rgba(10, 40, 80, .1); }
:root[data-theme="light"] .lang select, :root[data-theme="light"] .theme-btn, :root[data-theme="light"] .btn.ghost, :root[data-theme="light"] .chip, :root[data-theme="light"] .seg { background: rgba(10, 30, 60, .04); border-color: rgba(10, 30, 60, .16); color: var(--ink); }
:root[data-theme="light"] .hero .btn.ghost { color: #fff; border-color: rgba(255, 255, 255, .5); background: rgba(10, 25, 50, .25); }
:root[data-theme="light"] .hero-vignette { background: linear-gradient(180deg, rgba(10, 25, 50, .28), transparent 22%, transparent 78%, var(--bg) 100%); }
:root[data-theme="light"] .hero-copy::before { background: radial-gradient(closest-side at 40% 52%, rgba(8, 20, 40, .5) 0%, rgba(8, 20, 40, .22) 55%, transparent 100%); filter: blur(18px); }
:root[data-theme="light"] .hero-copy .kicker { color: #ffcf8a; }
:root[data-theme="light"] .hero-copy .lead { color: #e3ecf8; }
:root[data-theme="light"] .scroll-hint { color: #24344c; }
:root[data-theme="light"] .reel-idx { color: #ffcf8a; }
:root[data-theme="light"] .reel { background: rgba(8, 20, 40, .42); backdrop-filter: blur(8px); padding: .8rem 1rem .9rem; border-radius: 16px; }
:root[data-theme="light"] .mod-card, :root[data-theme="light"] .phys-card, :root[data-theme="light"] .sys-card, :root[data-theme="light"] .fleet-card {
  background: linear-gradient(170deg, #ffffff, #f4f8fc); border-color: rgba(10, 40, 80, .1); box-shadow: 0 10px 30px rgba(20, 50, 90, .08); }
:root[data-theme="light"] .mod-card::before { color: rgba(10, 40, 80, .07); }
:root[data-theme="light"] .mod-card:hover, :root[data-theme="light"] .fleet-card:hover { box-shadow: 0 22px 50px rgba(20, 50, 90, .16); }
:root[data-theme="light"] .mod-ico { background: rgba(10, 143, 134, .08); }
:root[data-theme="light"] .fc-stage { background: radial-gradient(ellipse 70% 38% at 50% 78%, rgba(10, 143, 134, .18), transparent 70%), radial-gradient(circle at 50% 40%, #ffffff, #d9e4f1 78%); }
:root[data-theme="light"] .fv-panel { background: linear-gradient(170deg, #ffffff, #eef3f9); border-color: rgba(10, 110, 130, .25); }
:root[data-theme="light"] .fv-stage { background: radial-gradient(ellipse 60% 30% at 50% 80%, rgba(10, 143, 134, .18), transparent 70%), radial-gradient(circle at 50% 40%, #ffffff, #d4e0ee 80%); }
:root[data-theme="light"] .fv-back { background: rgba(200, 214, 232, .7); }
:root[data-theme="light"] .fv-panel .x, :root[data-theme="light"] .panel .x { background: rgba(10, 30, 60, .06); }
:root[data-theme="light"] .shot { border-color: rgba(10, 40, 80, .12); box-shadow: 0 30px 70px rgba(20, 50, 90, .22); }
:root[data-theme="light"] .shot figcaption { background: #fff; border-top-color: rgba(10, 40, 80, .08); }
:root[data-theme="light"] .viz { background: #0b1426; }
:root[data-theme="light"] .panel { background: linear-gradient(170deg, #ffffff, #f0f5fb); border-color: rgba(10, 110, 130, .25); }
:root[data-theme="light"] .panel input { background: #fff; border-color: rgba(10, 30, 60, .18); }
:root[data-theme="light"] .modal-back { background: rgba(200, 214, 232, .6); }
:root[data-theme="light"] .btn.primary { background: linear-gradient(90deg, #0fb3a5, #23c8e0); color: #021012; }
:root[data-theme="light"] .foot { border-top-color: rgba(10, 40, 80, .1); }
:root[data-theme="light"] .feature::after, :root[data-theme="light"] .modules::after, :root[data-theme="light"] .hangar::after { opacity: .6; }
:root[data-theme="light"] .systems::after { opacity: .5; }

/* ---------- RTL ---------- */
.fc-spec, .reel-spec, .fv-spec, .reel-idx, .fv-idx { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .fc-spec, [dir="rtl"] .reel-spec, [dir="rtl"] .fv-spec, [dir="rtl"] .fv-idx { text-align: right; }
[dir="rtl"] .nav-links { margin-inline-start: auto; }
[dir="rtl"] .mod-card::before { right: auto; left: 1.2rem; }
[dir="rtl"] .viz-mp em { left: auto; right: 12px; }

/* ---------- mobil ---------- */
@media (max-width: 860px) {
  .nav { gap: .8rem; padding: .6rem .9rem; }
  .nav-links { display: none; }
  .brand img { height: 28px; }
  .btn.ghost[data-auth="login"] { display: none; }
  .nav .btn { padding: .5rem 1rem; font-size: .95rem; }
  .lang select { padding: .4rem .5rem; font-size: .85rem; }
  .split { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-copy { padding-top: 18vh; }
  .scene { padding: 4rem 0; }
  .feat, .sys-grid, .sys-row { grid-template-columns: 1fr; }
  .feature.alt .feat-copy { order: 0; }
  .feature .shot, .feature.alt .shot { transform: none; }
  .fv-panel { grid-template-columns: 1fr; }
  .fv-stage { min-height: 46vh; }
  .fv-info { padding: 1.2rem 1.2rem 1.2rem; }
  .feature.alt .feat { grid-template-columns: 1fr; }
  .reel { inset-inline: 1rem auto; top: 4.3rem; bottom: auto; width: calc(100% - 2rem); display: grid; grid-template-columns: 1fr auto; column-gap: .8rem; align-items: center; }
  .reel-meta { column-gap: .55rem; }
  .reel-name { font-size: 1.05rem; }
  .reel-type { font-size: .66rem; letter-spacing: .16em; }
  .reel-spec { font-size: .74rem; }
  .reel-bar { grid-column: 1 / -1; grid-row: 2; margin: .45rem 0 0; }
  .reel-ctl { grid-column: 2; grid-row: 1; gap: .3rem; }
  .reel-ctl button { width: 32px; height: 32px; font-size: 1rem; }
  .scroll-hint { display: none; }
  .fleet-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .7rem; }
  .fc-meta { padding: .6rem .7rem .75rem; }
  .fc-name { font-size: .95rem; }
  .theme-btn { width: 34px; height: 34px; }
}

/* ---------- hareket azaltma ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .scroll-hint i { display: none; }
}
