:root {
  --sky1: #0b1426;
  --sky2: #1b2a4a;
  --card: rgba(255, 255, 255, 0.94);
  --text: #1c1b19;
  --muted: #6b6862;
  --line: #e6e2da;
  --soft: #f3f1ec;
  --accent: #b5452b;
  --good: #2f7d4f;
  --warn: #c98a12;
  --bad: #b5452b;
  --amber: #ffc94a;
  --glass: rgba(10, 14, 24, 0.72);
  --serif: 'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, sans-serif;
  --mono: 'SF Mono', ui-monospace, Menlo, Consolas, 'Roboto Mono', monospace;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --card: rgba(27, 27, 25, 0.94); --text: #e9e6df; --muted: #a29e95; --line: #34322e; --soft: #262522; --accent: #e0805f; --good: #6cc08b; --warn: #e3b14b; --bad: #e0805f; }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; color: var(--text); font: 17px/1.65 var(--sans); -webkit-font-smoothing: antialiased; background: linear-gradient(180deg, var(--sky1), var(--sky2)) fixed; background-color: var(--sky1); transition: background 0.3s linear; min-height: 100vh; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }

.top { position: relative; z-index: 3; max-width: 76rem; margin: 0 auto; padding: 1.25rem 1.25rem 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.back { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; text-decoration: none; color: rgba(255,255,255,0.85); font-size: 0.9rem; background: rgba(0,0,0,0.15); backdrop-filter: blur(6px); }
.back:hover { color: #fff; border-color: rgba(255,255,255,0.6); }
.bk-short { display: none; }
.langs { display: inline-flex; border: 1px solid rgba(255,255,255,0.3); border-radius: 999px; padding: 3px; background: rgba(0,0,0,0.15); backdrop-filter: blur(6px); }
.langs button { border: 0; background: transparent; padding: 0.25rem 0.75rem; border-radius: 999px; cursor: pointer; font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.8); }
.langs button[aria-pressed='true'] { background: #fff; color: #111; }
@media (max-width: 520px) { .bk-long { display: none; } .bk-short { display: inline; } }

/* giriş */
.hero { min-height: 88vh; max-width: 76rem; margin: 0 auto; padding: 4rem 1.25rem 2rem; display: flex; flex-direction: column; justify-content: center; color: #f4f2ec; position: relative; }
.hero .kicker { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--amber); }
.hero h1 { margin: 0.6rem 0 0.8rem; font-size: clamp(2.6rem, 8vw, 5.6rem); max-width: 14ch; }
.hero p { margin: 0; max-width: 40rem; color: rgba(244,242,236,0.82); font-size: 1.12rem; }
.hero .meta { display: flex; gap: 1.6rem; flex-wrap: wrap; margin-top: 1.8rem; font-family: var(--mono); font-size: 0.85rem; color: rgba(244,242,236,0.75); }
.hero .meta b { display: block; color: #fff; font-size: 1.15rem; }
.hero .scroll { margin-top: 3rem; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(244,242,236,0.7); display: flex; align-items: center; gap: 0.6rem; }
.hero .scroll i { display: inline-block; width: 1px; height: 2.4rem; background: linear-gradient(rgba(255,255,255,0.8), transparent); animation: drip 1.8s ease-in-out infinite; }
@keyframes drip { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; } 100% { transform: scaleY(0); transform-origin: bottom; } }
.disclaimer { margin-top: 1.4rem; font-size: 0.78rem; color: rgba(244,242,236,0.6); max-width: 40rem; line-height: 1.5; }
.stars { position: absolute; inset: 0; pointer-events: none; opacity: var(--stars, 1); transition: opacity 0.4s; }

/* hikâye düzeni */
.story { max-width: 76rem; margin: 0 auto; padding: 0 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr) 27rem; gap: 2rem; align-items: start; }
.chapters { padding-bottom: 30vh; }
.chapter { min-height: 92vh; display: flex; align-items: center; padding: 6vh 0; }
.card { background: var(--card); border-radius: 20px; padding: 1.6rem 1.7rem 1.5rem; box-shadow: 0 20px 50px rgba(0,0,0,0.18); backdrop-filter: blur(10px); width: 100%; }
.card .time { font-family: var(--mono); font-weight: 700; font-size: 0.85rem; color: var(--accent); display: flex; align-items: center; gap: 0.6rem; }
.card .time span { color: var(--muted); font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.75rem; }
.card h2 { margin: 0.45rem 0 0.75rem; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.card p { margin: 0 0 0.8rem; }
.facts { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.9rem; }
.facts span { font-size: 0.78rem; border: 1px solid var(--line); border-radius: 999px; padding: 0.12rem 0.6rem; color: var(--muted); background: var(--soft); }
.card .more { display: inline-flex; margin-top: 0.4rem; font-weight: 600; color: var(--accent); }

/* yapışkan panel */
.panel { position: sticky; top: 1rem; margin-top: 6vh; background: var(--glass); color: #eef0f4; border-radius: 22px; padding: 1.1rem 1.15rem 1rem; backdrop-filter: blur(14px); box-shadow: 0 20px 60px rgba(0,0,0,0.3); border: 1px solid rgba(255,255,255,0.08); }
.clock { display: flex; align-items: baseline; justify-content: space-between; gap: 0.6rem; }
.clock b { font-family: var(--mono); font-size: 3.1rem; font-weight: 700; letter-spacing: 0.02em; color: #fff; line-height: 1; }
.clock small { font-family: var(--mono); font-size: 0.75rem; color: rgba(238,240,244,0.65); text-align: right; }
.status { margin-top: 0.55rem; font-size: 0.92rem; display: flex; align-items: center; gap: 0.5rem; min-height: 1.4em; }
.status i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--amber); flex: none; box-shadow: 0 0 0 4px rgba(255,201,74,0.18); }
.status.air i { background: #7fd69a; box-shadow: 0 0 0 4px rgba(127,214,154,0.2); }
.mapwrap { margin-top: 0.8rem; border-radius: 14px; overflow: hidden; background: #0f1a2c; }
.mapwrap svg { display: block; width: 100%; height: auto; }
.land { fill: #1f2e45; stroke: #2c3e5c; stroke-width: 0.5; }
.leg { fill: none; stroke: rgba(255,255,255,0.22); stroke-width: 1.6; stroke-dasharray: 4 4; }
.leg.done { stroke: var(--amber); stroke-dasharray: none; stroke-width: 2.2; }
.apt circle { fill: #0f1a2c; stroke: #fff; stroke-width: 1.6; }
.apt text { fill: #fff; font: 700 11px var(--mono); paint-order: stroke; stroke: #0f1a2c; stroke-width: 3px; }
.plane { fill: #fff; }
.dayline { position: relative; height: 34px; margin-top: 0.8rem; }
.dayline .track { position: absolute; left: 0; right: 0; top: 13px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.1); }
.dayline .blk { position: absolute; top: 13px; height: 8px; border-radius: 4px; background: rgba(255,201,74,0.55); }
.dayline .now { position: absolute; top: 6px; width: 2px; height: 22px; background: #fff; border-radius: 1px; }
.dayline .hrs { position: absolute; left: 0; right: 0; top: 24px; display: flex; justify-content: space-between; font: 10px var(--mono); color: rgba(238,240,244,0.5); }
.pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.9rem; }
.pstats div { background: rgba(255,255,255,0.06); border-radius: 10px; padding: 0.45rem 0.55rem; }
.pstats b { display: block; font-family: var(--mono); font-size: 1.05rem; color: #fff; }
.pstats span { font-size: 0.7rem; color: rgba(238,240,244,0.6); text-transform: uppercase; letter-spacing: 0.08em; }

@media (max-width: 980px) {
  .story { grid-template-columns: 1fr; gap: 0; }
  .panel { order: -1; position: sticky; top: 0.5rem; z-index: 2; margin-top: 0; padding: 0.7rem 0.8rem; border-radius: 16px; }
  .clock b { font-size: 2rem; }
  .mapwrap { display: none; }
  .pstats, .dayline .hrs { display: none; }
  .dayline { height: 18px; margin-top: 0.4rem; }
  .dayline .track, .dayline .blk { top: 6px; height: 6px; }
  .dayline .now { top: 2px; height: 14px; }
  .chapter { min-height: 80vh; }
  .card { padding: 1.25rem 1.2rem; }
}

/* araçlar (widget) */
.w { margin-top: 1.1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.w h4 { margin: 0 0 0.7rem; font: 700 0.75rem var(--sans); letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.ctrl { display: grid; grid-template-columns: 9.5rem 1fr 4.6rem; gap: 0.45rem 0.7rem; align-items: center; font-size: 0.88rem; }
.ctrl output { font-family: var(--mono); text-align: right; }
.ctrl input[type=range] { width: 100%; accent-color: var(--accent); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 999px; padding: 0.2rem 0.7rem; cursor: pointer; font-size: 0.82rem; color: var(--muted); }
.seg button[aria-pressed='true'] { background: var(--text); color: var(--card); }
.stack { display: flex; height: 2.1rem; border-radius: 10px; overflow: hidden; margin-top: 0.9rem; background: var(--soft); }
.stack div { height: 100%; transition: width 0.3s; }
.legend { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: 0.25rem 0.8rem; margin-top: 0.6rem; font-size: 0.82rem; }
.legend span { display: flex; align-items: center; gap: 0.4rem; }
.legend i { width: 0.7rem; height: 0.7rem; border-radius: 3px; flex: none; }
.legend b { margin-left: auto; font-family: var(--mono); font-weight: 600; }
.big { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-top: 0.8rem; flex-wrap: wrap; }
.big b { font-family: var(--mono); font-size: 1.6rem; }
.note { font-size: 0.78rem; color: var(--muted); margin-top: 0.6rem; line-height: 1.45; }
.verdict { font-weight: 700; }
.verdict.ok { color: var(--good); } .verdict.warn { color: var(--warn); } .verdict.no { color: var(--bad); }

.cabin { display: grid; grid-template-columns: 2.4rem repeat(3, 1fr) 2.4rem; gap: 0.35rem; align-items: stretch; margin: 0.6rem 0 0.9rem; }
.cabin .zone { border: 1px solid var(--line); border-radius: 8px; padding: 0.3rem; text-align: center; font-size: 0.75rem; background: var(--soft); position: relative; overflow: hidden; }
.cabin .zone .fill { position: absolute; left: 0; right: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 25%, transparent); transition: height 0.2s; }
.cabin .zone b { position: relative; display: block; font-family: var(--mono); font-size: 0.95rem; }
.cabin .zone span { position: relative; color: var(--muted); }
.cabin .nose, .cabin .tail { display: grid; place-items: center; font-size: 1.1rem; color: var(--muted); }
.gauge { position: relative; height: 2.4rem; border-radius: 10px; background: linear-gradient(90deg, color-mix(in srgb, var(--bad) 35%, var(--soft)) 0 14%, color-mix(in srgb, var(--good) 30%, var(--soft)) 14% 86%, color-mix(in srgb, var(--bad) 35%, var(--soft)) 86% 100%); margin-top: 0.4rem; }
.gauge .mk { position: absolute; top: -6px; bottom: -6px; width: 3px; background: var(--text); border-radius: 2px; transition: left 0.2s; }
.gauge .mk::after { content: attr(data-v); position: absolute; top: -1.35rem; left: 50%; transform: translateX(-50%); font: 700 0.75rem var(--mono); white-space: nowrap; }
.gauge .lbl { position: absolute; bottom: -1.3rem; font: 0.68rem var(--mono); color: var(--muted); transform: translateX(-50%); }

.dutybar { position: relative; height: 2.2rem; border-radius: 10px; background: var(--soft); margin-top: 0.8rem; overflow: hidden; }
.dutybar .used { position: absolute; top: 0; bottom: 0; left: 0; background: color-mix(in srgb, var(--accent) 30%, transparent); }
.dutybar .lim { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--bad); }
.dutybar .hr { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }

.gantt { margin-top: 0.6rem; position: relative; }
.grow { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.6rem; align-items: center; font-size: 0.8rem; height: 1.5rem; }
.grow .bar { position: relative; height: 0.85rem; background: var(--soft); border-radius: 5px; }
.grow .bar i { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: color-mix(in srgb, var(--muted) 45%, transparent); }
.grow .bar i.crit { background: color-mix(in srgb, var(--accent) 70%, transparent); }
.grow .bar i em { position: absolute; inset: 0; background: var(--good); border-radius: 5px; transform-origin: left; transform: scaleX(0); }
.gantt .cursor { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--text); pointer-events: none; }
.gantt-axis { display: grid; grid-template-columns: 8.5rem 1fr; gap: 0.6rem; font: 0.7rem var(--mono); color: var(--muted); margin-top: 0.2rem; }
.gantt-axis div { display: flex; justify-content: space-between; }
.btn { display: inline-flex; align-items: center; gap: 0.4rem; border: 1px solid var(--line); background: var(--soft); border-radius: 999px; padding: 0.4rem 0.95rem; cursor: pointer; font-weight: 600; font-size: 0.88rem; }
.btn:hover { border-color: var(--muted); }

.matrix { display: grid; grid-template-columns: 1.6rem repeat(5, 1fr); grid-template-rows: repeat(5, 3.1rem) 1.4rem; gap: 3px; margin-top: 0.5rem; }
.matrix .cell { border-radius: 6px; position: relative; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 3px; padding: 2px; }
.matrix .ax { font: 0.66rem var(--mono); color: var(--muted); display: grid; place-items: center; }
.matrix .dot { width: 1.35rem; height: 1.35rem; border-radius: 50%; border: 0; background: var(--card); color: var(--text); font: 700 0.7rem var(--mono); cursor: pointer; box-shadow: 0 1px 3px rgba(0,0,0,0.25); }
.matrix .dot[aria-pressed='true'] { background: var(--text); color: var(--card); }
.matrix-lab { display: flex; justify-content: space-between; font-size: 0.72rem; color: var(--muted); margin-top: 0.2rem; }
.hz { margin-top: 0.8rem; border-radius: 12px; background: var(--soft); padding: 0.75rem 0.9rem; font-size: 0.9rem; min-height: 5rem; }
.hz b { display: block; margin-bottom: 0.25rem; }
.hz ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }

.bank { display: flex; align-items: flex-end; gap: 2px; height: 8rem; margin-top: 0.6rem; }
.bank div { flex: 1; display: flex; flex-direction: column-reverse; gap: 1px; height: 100%; justify-content: flex-start; position: relative; }
.bank .a { background: color-mix(in srgb, #3b82c4 70%, transparent); border-radius: 2px 2px 0 0; }
.bank .d { background: color-mix(in srgb, var(--accent) 70%, transparent); border-radius: 2px 2px 0 0; }
.bank .ours { outline: 2px solid var(--text); outline-offset: 1px; }
.bank-axis { display: flex; justify-content: space-between; font: 0.68rem var(--mono); color: var(--muted); margin-top: 0.25rem; }

.dgantt { margin-top: 0.8rem; }
.drow { display: grid; grid-template-columns: 5.6rem 1fr; gap: 0.5rem; align-items: center; height: 1.7rem; font-size: 0.78rem; font-family: var(--mono); }
.drow .bar { position: relative; height: 1.1rem; }
.drow .bar i { position: absolute; top: 0; bottom: 0; border-radius: 4px; }
.drow .bar i.s { background: color-mix(in srgb, var(--muted) 25%, transparent); border: 1px dashed color-mix(in srgb, var(--muted) 60%, transparent); }
.drow .bar i.a { background: color-mix(in srgb, var(--accent) 70%, transparent); top: 3px; bottom: 3px; transition: left 0.25s; }
.drow .bar i.a.ok { background: color-mix(in srgb, var(--good) 70%, transparent); }
.dstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.5rem; margin-top: 0.8rem; }
.dstats div { background: var(--soft); border-radius: 10px; padding: 0.5rem 0.6rem; }
.dstats b { display: block; font-family: var(--mono); font-size: 1.15rem; }
.dstats span { font-size: 0.72rem; color: var(--muted); }

.sum { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.6rem; margin-top: 0.9rem; }
.sum div { background: var(--soft); border-radius: 12px; padding: 0.75rem 0.8rem; }
.sum b { display: block; font-family: var(--mono); font-size: 1.45rem; color: var(--accent); }
.sum span { font-size: 0.78rem; color: var(--muted); }
.end { text-align: center; color: rgba(244,242,236,0.85); padding: 6rem 1.25rem 3rem; max-width: 44rem; margin: 0 auto; }
.end h2 { font-size: clamp(1.8rem, 5vw, 2.8rem); margin: 0 0 0.8rem; color: #fff; }
.end p { margin: 0 0 1rem; }
.end a.cta { display: inline-block; margin: 0.4rem 0.3rem; padding: 0.6rem 1.1rem; border-radius: 999px; background: #fff; color: #111; text-decoration: none; font-weight: 600; }
.end .disclaimer { margin: 1.8rem auto 0; }

.foot { padding: 1.5rem 1.25rem 2.5rem; display: flex; justify-content: center; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; color: rgba(244,242,236,0.7); font-family: var(--serif); font-weight: 600; }
.foot-brand img { height: 2rem; width: auto; flex: none; }
.foot-brand img { filter: brightness(0) invert(0.95); }
@media (prefers-reduced-motion: reduce) { body { transition: none; } .hero .scroll i { animation: none; } }
.hero p.disclaimer { font-size: 0.78rem; margin-top: 1.4rem; }
