/* self-hosted fonts (restored after polish strip) */
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Oswald-400-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/Oswald-400-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Oswald-500-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url(../fonts/Oswald-500-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Oswald-600-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(../fonts/Oswald-600-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Oswald-700-normal-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url(../fonts/Oswald-700-normal-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   TELEMETRİ DEFTERİ — Aviator tur mekaniği teknik rehberi
   Dünya: uçuş telemetrisi / kayıt cihazı (black box)
   ============================================================ */

:root {
  --bg: #0B1014;
  --surface: #141C22;
  --surface-2: #1B262E;
  --surface-3: #22313A;
  --ink: #E8F1F4;
  --ink-body: #CDDBE1;
  --ink-soft: #94A8B2;
  --ink-faint: #7E939E;
  --accent: #2FB6C9;          /* cyan — fills, rules, curves */
  --accent-text: #4FCBDC;     /* brighter cyan for text on dark */
  --accent-deep: #1C7A88;
  --accent2: #E0A030;         /* amber — crash / warnings */
  --accent2-text: #EFB955;
  --line: rgba(232, 241, 244, 0.11);
  --line-strong: rgba(232, 241, 244, 0.22);
  --grid-line: rgba(47, 182, 201, 0.06);
  --grid-line-fine: rgba(47, 182, 201, 0.035);
  --ok: #57C98A;
  --radius: 4px;
  --radius-lg: 8px;
  --header-h: 64px;
  --sec-pad: clamp(56px, 8vw, 104px);
  --container: 1240px;

  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SFMono-Regular",
    "Consolas", "Liberation Mono", Menlo, monospace;
  --display: "Bahnschrift", "DIN Condensed", "DIN Alternate", "Oswald",
    "Arial Narrow", "Haettenschweiler", Impact, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, sans-serif;

  interpolate-size: allow-keywords;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  overflow-x: clip;
  max-width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  overflow-x: clip;
  max-width: 100%;
  background: var(--bg);
  color: var(--ink-body);
  font-family: var(--body);
  font-size: 16.5px;
  line-height: 1.72;
  letter-spacing: 0.002em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, canvas { max-width: 100%; display: block; }
img { height: auto; }
figure, figcaption, blockquote { margin: 0; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { color: var(--ink); }
h1, h2, h3, h4 { margin: 0; line-height: 1.14; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; }
button { font-family: inherit; }
strong { color: var(--ink); font-weight: 600; }
::selection { background: var(--accent); color: #04171a; }

/* ---------- utility ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-left: clamp(16px, 4vw, 34px);
  padding-right: clamp(16px, 4vw, 34px);
}
.skip-link {
  position: absolute; left: 10px; top: -60px;
  background: var(--accent); color: #04171a; font-family: var(--mono);
  font-size: 13px; padding: 10px 16px; border-radius: var(--radius);
  z-index: 2000; transition: top .2s ease; font-weight: 600;
}
.skip-link:focus { top: 10px; }
.eyebrow {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--accent-text);
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before {
  content: ""; width: 26px; height: 1px; background: var(--accent);
  display: inline-block;
}
.word-break { word-break: break-word; overflow-wrap: anywhere; }

main, .site-footer { position: relative; z-index: 1; }
main { padding-top: var(--header-h); }

:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--header-h);
  z-index: 1080;
  background: rgba(11, 16, 20, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background .24s ease, box-shadow .24s ease, height .24s ease;
}
.site-header.is-scrolled {
  background: rgba(10, 14, 18, 0.97);
  box-shadow: 0 10px 30px -22px rgba(0, 0, 0, 0.9);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 18px;
}
.brand {
  display: inline-flex; align-items: center; gap: 11px;
  color: var(--ink); font-family: var(--display);
  letter-spacing: 0.04em; text-transform: uppercase;
  font-size: 19px; font-weight: 700; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand .reticle {
  position: relative; width: 20px; height: 20px; flex: none;
  border: 1px solid var(--accent); border-radius: 50%;
}
.brand .reticle::before, .brand .reticle::after {
  content: ""; position: absolute; background: var(--accent);
}
.brand .reticle::before { left: 50%; top: 2px; bottom: 2px; width: 1px; translate: -50% 0; }
.brand .reticle::after { top: 50%; left: 2px; right: 2px; height: 1px; translate: 0 -50%; }
.brand b { font-weight: 700; }
.brand span { color: var(--accent-text); }

.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop {
    display: flex; align-items: center; gap: 22px;
    font-family: var(--mono); font-size: 13px; letter-spacing: 0.03em;
  }
  .nav-desktop a {
    position: relative; color: var(--ink-soft); padding: 6px 0;
    text-transform: uppercase; transition: color .2s ease;
  }
  .nav-desktop a::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: -2px;
    height: 1.5px; background: var(--accent); transition: right .24s ease;
  }
  .nav-desktop a:hover,
  .nav-desktop a.is-active { color: var(--ink); }
  .nav-desktop a:hover::after,
  .nav-desktop a.is-active::after { right: 0; }
}

.nav-desktop a.nav-cta,
header a.nav-cta {
  padding: 9px 20px; color: #04171a; background: var(--accent);
  border-radius: var(--radius); text-transform: uppercase; font-weight: 700;
  letter-spacing: 0.08em; white-space: nowrap;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}
.nav-desktop a.nav-cta::after { display: none; }
.nav-desktop a.nav-cta:hover,
header a.nav-cta:hover,
header a.nav-cta:focus-visible {
  background: var(--accent-text); color: #04171a; transform: translateY(-1px);
}

/* hamburger */
.nav-toggle {
  position: relative; width: 46px; height: 46px; padding: 0;
  display: inline-block; border: 1px solid var(--line-strong);
  background: rgba(27, 38, 46, 0.6); border-radius: var(--radius);
  color: var(--ink); cursor: pointer; z-index: 1100;
}
.nav-toggle span {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 2.5px;
  translate: -50% -50%; background: currentColor; border-radius: 2px;
  transition: transform .25s ease, opacity .2s ease;
}
.nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nav-toggle span:nth-child(3) { transform: translateY(7px); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg); opacity: 1; }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); opacity: 1; }
.nav-toggle { transition: border-color .2s ease, background .2s ease, box-shadow .2s ease; }
.nav-toggle:hover, .nav-toggle:focus-visible {
  border-color: var(--accent); background: rgba(27, 38, 46, 0.9);
  box-shadow: 0 0 0 3px rgba(47, 182, 201, 0.12);
}
.nav-toggle:hover span { background: var(--accent-text); }
@media (min-width: 1024px) { .nav-toggle { display: none; } }

/* ---------- drawer ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  opacity: 0; visibility: hidden; transition: opacity .24s ease, visibility .24s ease;
  z-index: 1040;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(360px, 92vw);
  background: #0E151A; border-left: 1px solid var(--line-strong);
  transform: translateX(100%); transition: transform .32s cubic-bezier(.2,.7,.2,1);
  z-index: 1050; padding: calc(var(--header-h) + 22px) 26px 32px;
  display: flex; flex-direction: column; gap: 4px; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); }
.drawer a {
  font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em;
  font-size: 22px; color: var(--ink); padding: 13px 0;
  border-bottom: 1px solid var(--line); transition: color .2s ease, padding-left .2s ease;
}
.drawer a:hover, .drawer a.is-active { color: var(--accent-text); padding-left: 8px; }
.drawer .drawer-tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.24em;
  color: var(--ink-soft); text-transform: uppercase; margin-top: 20px;
  border: 0; padding: 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--mono); font-size: 13.5px; letter-spacing: 0.06em;
  text-transform: uppercase; font-weight: 600;
  padding: 14px 26px; border-radius: var(--radius); cursor: pointer;
  border: 1px solid transparent; transition: background .2s ease, color .2s ease,
    transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary { background: var(--accent); color: #04171a; }
.btn-primary:hover, .btn-primary:focus-visible {
  background: var(--accent-text); color: #04171a; transform: translateY(-2px);
  box-shadow: 0 16px 34px -20px rgba(47, 182, 201, 0.8);
}
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover, .btn-ghost:focus-visible {
  background: var(--surface-2); color: var(--ink); border-color: var(--accent);
}
.btn .arr { transition: transform .2s ease; }
.btn:hover .arr { transform: translateX(4px); }

/* ============================================================
   SECTIONS / HEADINGS
   ============================================================ */
section { padding-block: var(--sec-pad); position: relative; }
.sec-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 44px); }
h2.sec-title {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2rem, 4.4vw, 3.3rem); color: var(--ink);
  letter-spacing: 0.005em; line-height: 1.08;
}
h3 {
  font-family: var(--display); text-transform: uppercase; color: var(--ink);
  font-size: clamp(1.25rem, 2.2vw, 1.6rem); letter-spacing: 0.02em;
}
.sec-head p { color: var(--ink-soft); font-size: 1.06rem; margin-top: 14px; }
.lead { font-size: 1.12rem; color: var(--ink); }
.muted { color: var(--ink-soft); }
.rule {
  height: 1px; background: linear-gradient(90deg, var(--accent-deep), transparent);
  border: 0; margin: 0;
}

/* section index tag (telemetry channel label) */
.chan {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.24em;
  color: var(--accent-text); text-transform: uppercase; display: block; margin-bottom: 14px;
}

/* millimeter grid decor layer */
.mm-grid {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    linear-gradient(var(--grid-line-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-fine) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  mask-image: linear-gradient(180deg, transparent, #000 12%, #000 86%, transparent);
}
section > .container { position: relative; z-index: 1; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding-top: clamp(40px, 7vw, 86px);
  padding-bottom: 0;
  position: relative; overflow: hidden;
}
.hero .mm-grid { mask-image: linear-gradient(180deg, transparent, #000 20%); }
.hero-top { position: relative; z-index: 2; }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 10px 26px; align-items: center;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 26px;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.hero-meta .dot.amber { background: var(--accent2); }
.hero h1 {
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.9rem, 9vw, 4.5rem); line-height: 0.98;
  letter-spacing: -0.006em; color: var(--ink); max-width: 15ch;
  margin: 0 0 22px;
}
.hero h1 .glow { color: var(--accent-text); }
.hero-sub {
  font-size: clamp(1.05rem, 1.7vw, 1.32rem); color: var(--ink-soft);
  max-width: 54ch; line-height: 1.58; margin-bottom: 30px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.trust-strip {
  display: flex; flex-wrap: wrap; gap: 8px 10px; margin-top: 30px;
}
.trust-strip .badge {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
  border: 1px solid var(--line); border-radius: 40px; padding: 7px 14px;
  background: rgba(20, 28, 34, 0.6);
}
.trust-strip .badge b { color: var(--accent-text); font-weight: 600; }

/* telemetry panel + live canvas */
.telemetry {
  position: relative; margin-top: clamp(38px, 5vw, 60px);
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 140% at 15% 0%, rgba(47,182,201,0.07), transparent 55%),
    var(--surface);
  overflow: hidden;
}
.telemetry-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; padding: 13px 18px; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-soft);
}
.telemetry-bar .live { display: inline-flex; align-items: center; gap: 9px; color: var(--accent2-text); }
.telemetry-bar .live .blip {
  width: 9px; height: 9px; border-radius: 50%; background: var(--accent2);
  box-shadow: 0 0 0 0 rgba(224, 160, 48, 0.6); animation: blip 1.8s infinite;
}
@keyframes blip {
  0% { box-shadow: 0 0 0 0 rgba(224, 160, 48, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(224, 160, 48, 0); }
  100% { box-shadow: 0 0 0 0 rgba(224, 160, 48, 0); }
}
.telemetry-stage { position: relative; }
.telemetry-stage canvas { display: block; width: 100%; height: auto; }
/* crosshair reticle following pointer */
.crosshair {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity .3s ease; z-index: 3;
  mix-blend-mode: screen;
}
.telemetry-stage:hover .crosshair { opacity: 1; }
.crosshair::before, .crosshair::after {
  content: ""; position: absolute; background: rgba(79, 203, 220, 0.5);
}
.crosshair::before { top: 0; bottom: 0; width: 1px; left: var(--mx, 50%); }
.crosshair::after { left: 0; right: 0; height: 1px; top: var(--my, 50%); }
.crosshair .ring {
  position: absolute; width: 34px; height: 34px; border: 1px solid rgba(79,203,220,0.7);
  border-radius: 50%; left: var(--mx, 50%); top: var(--my, 50%);
  transform: translate(-50%, -50%);
}
.readout {
  position: absolute; left: 18px; top: 16px; z-index: 4;
  font-family: var(--mono); pointer-events: none;
}
.readout .mult {
  font-size: clamp(2.4rem, 6vw, 4rem); font-weight: 700; color: var(--ink);
  line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
}
.readout .mult.crashed { color: var(--accent2-text); }
.readout .state {
  font-size: 11.5px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-soft); margin-top: 8px;
}
.readout .annot {
  margin-top: 6px; font-size: 12px; color: var(--accent-text); max-width: 26ch;
  letter-spacing: 0.02em; text-transform: none;
}
/* past-round strip */
.round-strip {
  display: flex; gap: 7px; overflow: hidden; padding: 12px 18px;
  border-top: 1px solid var(--line); background: rgba(10, 15, 19, 0.55);
}
.round-strip .chip {
  font-family: var(--mono); font-size: 12px; font-variant-numeric: tabular-nums;
  padding: 5px 9px; border-radius: 3px; white-space: nowrap;
  border: 1px solid var(--line); color: var(--ink-soft); background: var(--surface-2);
}
.round-strip .chip.hi { color: var(--accent-text); border-color: rgba(47,182,201,0.4); }
.round-strip .chip.lo { color: var(--accent2-text); border-color: rgba(224,160,48,0.35); }

/* ============================================================
   GENERIC CONTENT GRID / PROSE
   ============================================================ */
.prose p { max-width: 68ch; }
.prose p, .prose li { color: var(--ink-body); }
.split {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.split.reverse { grid-template-columns: 0.95fr 1.05fr; }
.split .media { position: relative; }
.media figure { position: relative; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line-strong); }
.media img { width: 100%; height: 100%; object-fit: cover; max-height: 520px; }
.media figcaption {
  position: absolute; left: 0; bottom: 0; right: 0;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); background: linear-gradient(0deg, rgba(5,9,12,0.9), transparent);
  padding: 26px 16px 12px;
}
.media figcaption b { color: var(--accent-text); }

/* corner ticks decor on panels */
.ticked { position: relative; }
.ticked::before, .ticked::after {
  content: ""; position: absolute; width: 12px; height: 12px; pointer-events: none;
  border-color: var(--accent); border-style: solid; opacity: 0.7;
}
.ticked::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.ticked::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ============================================================
   DIAGRAMS (SVG mechanics)
   ============================================================ */
.diagram {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--grid-line-fine) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-fine) 1px, transparent 1px),
    var(--surface);
  background-size: 28px 28px, 28px 28px, auto;
  padding: clamp(16px, 2.6vw, 28px); position: relative;
}
.diagram-cap {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px;
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.diagram-cap b { color: var(--accent-text); font-weight: 600; }
.diagram svg { width: 100%; height: auto; }
.diagram .axis { stroke: var(--line-strong); stroke-width: 1; }
.diagram .gridl { stroke: var(--line); stroke-width: 1; }
.diagram .curve { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; }
.diagram .curve-fill { fill: url(#curveFill); opacity: 0.9; }
.diagram .cut { stroke: var(--accent2); stroke-width: 1.6; stroke-dasharray: 5 5; }
.diagram .lbl { fill: var(--ink-soft); font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.diagram .lbl-ink { fill: var(--ink); }
.diagram .lbl-ac { fill: var(--accent-text); }
.diagram .lbl-am { fill: var(--accent2-text); }
.diagram .mark-ok { fill: var(--ok); }
.diagram .mark-crash { fill: var(--accent2); }
.diagram .draw-curve {
  stroke-dasharray: 1400; stroke-dashoffset: 1400;
}
html.no-js .diagram .draw-curve { stroke-dashoffset: 0; }
.diagram.is-in .draw-curve,
.reveal.is-in .diagram .draw-curve {
  animation: drawcurve 1.5s cubic-bezier(.2,.7,.2,1) forwards;
}
@keyframes drawcurve { to { stroke-dashoffset: 0; } }

.diagram-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

/* ============================================================
   PHASE / STEP CARDS (editorial, not SaaS)
   ============================================================ */
.phases { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-top: 6px; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.phase {
  padding: 24px 22px; border-right: 1px solid var(--line); background: var(--surface);
  position: relative; transition: background .24s ease;
}
.phase::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left;
  transition: transform .3s cubic-bezier(.2,.7,.2,1);
}
.phase:hover { background: var(--surface-2); }
.phase:hover::after { transform: scaleX(1); }
.phase:hover .pn { color: var(--ink); }
.phase:last-child { border-right: 0; }
.phase .pn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; color: var(--accent-text);
  margin-bottom: 14px; transition: color .2s ease;
}
.phase h4 { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: 1.15rem; letter-spacing: 0.02em; margin-bottom: 8px; line-height: 1.16; }
.phase p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }
.phase .tm { font-family: var(--mono); font-size: 11px; color: var(--ink-faint); margin-top: 12px; letter-spacing: 0.08em; }

/* reading-error list (editorial) */
.errors { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.error-card {
  border: 1px solid var(--line); border-left: 2px solid var(--accent2);
  border-radius: var(--radius); padding: 22px 22px 24px; background: var(--surface);
  transition: transform .24s cubic-bezier(.2,.7,.2,1), border-left-width .24s ease,
    box-shadow .24s ease, background .24s ease;
}
.error-card:hover {
  transform: translateY(-3px); border-left-width: 4px;
  background: var(--surface-2);
  box-shadow: -4px 14px 40px -26px rgba(224, 160, 48, 0.75);
}
.error-card .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--accent2-text); }
.error-card h4 { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: 1.22rem; margin: 10px 0 8px; letter-spacing: 0.015em; line-height: 1.16; }
.error-card p { font-size: 0.97rem; color: var(--ink-soft); margin: 0; }

/* ============================================================
   SIMULATOR TOOL
   ============================================================ */
.sim {
  border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(224,160,48,0.05), transparent 50%),
    var(--surface);
  overflow: hidden;
}
.sim-head {
  padding: 16px 22px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft);
}
.sim-grid { display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.sim-controls { padding: clamp(20px, 3vw, 30px); border-right: 1px solid var(--line); }
.sim-out { padding: clamp(20px, 3vw, 30px); min-width: 0; }
.field { margin-bottom: 22px; }
.field > label, .field .lab {
  display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink); margin-bottom: 10px;
}
.field .hint { color: var(--ink-faint); font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; }
.num-input {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong);
  color: var(--ink); font-family: var(--mono); font-size: 1.35rem; font-variant-numeric: tabular-nums;
  padding: 12px 14px; border-radius: var(--radius); letter-spacing: 0.02em;
}
.num-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(47,182,201,0.18); }
.stepper { display: flex; align-items: stretch; gap: 8px; }
.stepper .num-input { text-align: center; }
.stepper button {
  width: 46px; flex: none; background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--ink); font-size: 1.3rem; border-radius: var(--radius); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.stepper button:hover { background: var(--accent); color: #04171a; border-color: var(--accent); }
.range-wrap { position: relative; margin-top: 4px; }
.range-wrap input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 30px; background: transparent; cursor: pointer; margin: 0; position: relative; z-index: 2;
}
.range-wrap .range-track {
  position: absolute; left: 0; right: 0; top: 50%; height: 4px; translate: 0 -50%;
  background: var(--surface-3); border-radius: 4px; z-index: 0; pointer-events: none;
}
.range-wrap .range-fill {
  position: absolute; left: 0; top: 50%; height: 4px; translate: 0 -50%;
  background: var(--accent); border-radius: 4px; z-index: 1; pointer-events: none; width: 0;
}
.range-wrap input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent-text); border: 2px solid #04171a; box-shadow: 0 0 0 1px var(--accent);
}
.range-wrap input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: var(--accent-text); border: 2px solid #04171a;
}
.sim-warn {
  display: none; font-family: var(--mono); font-size: 12px; color: var(--accent2-text);
  background: rgba(224,160,48,0.1); border: 1px solid rgba(224,160,48,0.4);
  border-radius: var(--radius); padding: 10px 12px; margin-bottom: 18px; letter-spacing: 0.02em;
}
.sim-warn.show { display: block; }

/* result blocks */
.sim-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 26px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 16px 18px; background: var(--bg); }
.kpi .k {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-soft); line-height: 1.3;
}
.kpi .v {
  font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--ink);
  line-height: 1.05; margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.kpi .v small { font-size: 0.9rem; color: var(--ink-soft); font-family: var(--mono); }
.kpi.accent .v { color: var(--accent-text); }
.kpi.amber .v { color: var(--accent2-text); }

.histo-cap { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 14px; }
.histo { display: grid; grid-template-columns: repeat(var(--cols, 7), minmax(0, 1fr)); gap: 8px; align-items: end; height: 190px; }
.histo .bar-wrap { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 7px; min-width: 0; }
.histo .bar {
  width: 100%; background: var(--accent-deep); border-top: 2px solid var(--accent);
  border-radius: 2px 2px 0 0; min-height: 2px; transition: height .5s cubic-bezier(.2,.7,.2,1);
  position: relative;
}
.histo .bar.target-split { background: var(--accent2); border-top-color: var(--accent2-text); }
.histo .bar .n {
  position: absolute; top: -18px; left: 50%; translate: -50% 0; font-family: var(--mono);
  font-size: 11px; color: var(--ink-soft); font-variant-numeric: tabular-nums;
}
.histo .bl { font-family: var(--mono); font-size: 10px; color: var(--ink-faint); letter-spacing: 0.02em; text-align: center; white-space: nowrap; }
.histo-legend { display: flex; gap: 20px; margin-top: 16px; font-family: var(--mono); font-size: 11px; color: var(--ink-soft); letter-spacing: 0.04em; flex-wrap: wrap; }
.histo-legend span { display: inline-flex; align-items: center; gap: 8px; }
.histo-legend i { width: 12px; height: 12px; border-radius: 2px; display: inline-block; }
.histo-legend i.c1 { background: var(--accent-deep); border-top: 2px solid var(--accent); }
.histo-legend i.c2 { background: var(--accent2); }
.sim-note { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.02em; margin-top: 22px; line-height: 1.6; }

/* ============================================================
   CALLOUT / para-yok band
   ============================================================ */
.band {
  background:
    radial-gradient(90% 120% at 10% 0%, rgba(224,160,48,0.07), transparent 60%),
    var(--surface);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.band .inner { border-left: 2px solid var(--accent2); padding-left: clamp(18px, 3vw, 34px); }
.disclaim-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.disclaim-list li {
  padding-left: 28px; position: relative; color: var(--ink-body); max-width: 72ch;
}
.disclaim-list li::before {
  content: ""; position: absolute; left: 0; top: 0.62em; width: 12px; height: 12px;
  border: 1px solid var(--accent2); border-radius: 50%;
}
.disclaim-list li::after {
  content: ""; position: absolute; left: 4px; top: calc(0.62em + 4px); width: 4px; height: 4px;
  background: var(--accent2); border-radius: 50%;
}

/* ============================================================
   AUTHORS / editorial
   ============================================================ */
.authors { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.author {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .26s cubic-bezier(.2,.7,.2,1), border-color .26s ease, box-shadow .26s ease;
}
.author:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 22px 46px -30px rgba(0, 0, 0, 0.85);
}
.author .ph { aspect-ratio: 4 / 3; overflow: hidden; border-bottom: 1px solid var(--line); }
.author .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.author:hover .ph img { transform: scale(1.045); }
.author .body { padding: 20px 22px 24px; }
.author .role { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); }
.author h4 { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: 1.3rem; margin: 8px 0 10px; letter-spacing: 0.02em; }
.author p { font-size: 0.95rem; color: var(--ink-soft); margin: 0; }

/* correction log / editor note */
.log { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 4px 0; }
.log-row { display: grid; grid-template-columns: 150px minmax(0,1fr); gap: 16px; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.log-row:last-child { border-bottom: 0; }
.log-row .d { font-family: var(--mono); font-size: 12px; color: var(--accent-text); letter-spacing: 0.04em; }
.log-row .t { color: var(--ink-body); font-size: 0.97rem; }
.editor-note { border: 1px solid var(--line); border-left: 2px solid var(--accent); border-radius: var(--radius); padding: 22px 24px; background: var(--surface); }
.editor-note .q { font-size: 1.1rem; color: var(--ink); line-height: 1.6; }
.editor-note .by { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; color: var(--ink-soft); margin-top: 14px; text-transform: uppercase; }

/* ============================================================
   FAQ (pure CSS)
   ============================================================ */
.faq { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); background: var(--surface); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px clamp(18px, 3vw, 26px);
  font-family: var(--display); text-transform: uppercase; color: var(--ink);
  font-size: 1.12rem; letter-spacing: 0.02em; display: flex; justify-content: space-between;
  gap: 16px; align-items: center; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 18px; height: 18px; flex: none; }
.faq summary .pm::before, .faq summary .pm::after {
  content: ""; position: absolute; background: var(--accent); transition: transform .3s ease, opacity .3s ease;
}
.faq summary .pm::before { top: 50%; left: 0; right: 0; height: 2px; translate: 0 -50%; }
.faq summary .pm::after { left: 50%; top: 0; bottom: 0; width: 2px; translate: -50% 0; }
.faq details[open] summary .pm::after { opacity: 0; transform: scaleY(0); }
.faq .answer {
  height: 0; overflow: hidden; padding: 0 clamp(18px, 3vw, 26px);
  transition: height .36s cubic-bezier(.4,0,.2,1), padding-block-end .36s cubic-bezier(.4,0,.2,1);
}
.faq details[open] .answer { height: auto; padding-block-end: 24px; }
.faq .answer p { color: var(--ink-soft); margin: 0 0 0.8em; max-width: 72ch; }
.faq .answer p:last-child { margin-bottom: 0; }
@media (prefers-reduced-motion: reduce) { .faq .answer { transition: none; } }

/* ============================================================
   CONTACT cards
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 16px; }
.contact-card {
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 24px;
  background: var(--surface); transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}
.contact-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 18px 40px -28px rgba(0,0,0,0.8); }
.contact-card .ico {
  width: 46px; height: 46px; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--bg); display: grid; place-items: center; font-family: var(--mono);
  color: var(--accent-text); font-size: 14px; letter-spacing: 0.06em; margin-bottom: 16px;
}
.contact-card .ck { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.contact-card .cv { display: block; color: var(--ink); font-size: 1.08rem; margin: 6px 0 4px; word-break: break-word; }
a.contact-card .cv, .contact-card a.cv { color: var(--ink); }
.contact-card a.cv:hover { color: var(--accent-text); }
.contact-card .cs { font-size: 0.9rem; color: var(--ink-soft); }

/* hours */
.hours { display: grid; gap: 2px; }
.hours .hrow {
  display: flex; justify-content: space-between; gap: 14px; padding: 11px 16px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em;
}
.hours .hrow .day { color: var(--ink); text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.hours .hrow .tm { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.hours .hrow.closed .tm { color: var(--ink-faint); }

/* ============================================================
   FORM
   ============================================================ */
.form-wrap { border: 1px solid var(--line-strong); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(22px, 3.5vw, 40px); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-field { margin-bottom: 18px; }
.form-field label.fl { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field select,
.form-field textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line-strong); color: var(--ink);
  font-family: var(--body); font-size: 1rem; padding: 12px 14px; border-radius: var(--radius);
  border-bottom-width: 2px; transition: border-color .2s ease, box-shadow .2s ease;
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field select { font-family: var(--body); appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--accent-text) 50%), linear-gradient(135deg, var(--accent-text) 50%, transparent 50%); background-position: right 16px center, right 11px center; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 2px 0 -1px var(--accent);
}
.kvkk { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; margin: 6px 0 22px; font-size: 0.95rem; color: var(--ink-soft); }
.kvkk a { color: var(--accent-text); }
.field input[type="checkbox"],
.kvkk input[type="checkbox"] {
  appearance: auto; -webkit-appearance: auto; width: 18px; height: 18px;
  min-width: 18px; min-height: 18px; padding: 0; border: 0; margin: 3px 0 0; accent-color: var(--accent);
}

/* ============================================================
   TABLES
   ============================================================ */
.table-scroll {
  display: block; width: 100%; max-width: 100%; min-width: 0;
  overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 18px 0;
  border: 1px solid var(--line); border-radius: var(--radius);
}
.table-scroll > table { margin: 0 !important; min-width: 480px; width: 100%; border-collapse: collapse; }
:where(*:has(> .table-scroll), *:has(> * > .table-scroll), *:has(> * > * > .table-scroll)) { min-width: 0; }
table th, table td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
table th { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); background: var(--surface-2); }
table td { color: var(--ink-body); }
table tr:last-child td { border-bottom: 0; }

/* ============================================================
   LEGAL / DOC PAGES
   ============================================================ */
.doc-hero { padding-top: clamp(40px, 7vw, 76px); padding-bottom: clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.doc-hero h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(2.2rem, 6vw, 4rem); color: var(--ink); line-height: 1.04; letter-spacing: 0.005em; }
.doc-hero p { color: var(--ink-soft); margin-top: 14px; max-width: 60ch; }
.doc-body { max-width: 820px; }
.doc-body h2 { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: clamp(1.4rem, 3vw, 2rem); margin: 42px 0 14px; letter-spacing: 0.01em; line-height: 1.14; }
.doc-body h3 { font-size: 1.15rem; margin: 28px 0 10px; }
.doc-body p, .doc-body li { color: var(--ink-body); }
.doc-body ul { padding-left: 22px; }
.doc-body li { margin-bottom: 8px; }
.doc-body .updated { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--ink-soft); text-transform: uppercase; }
.legal-table dt { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-soft); }
.legal-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: clamp(20px, 3vw, 30px); }
.legal-card dl { display: grid; grid-template-columns: 220px minmax(0,1fr); gap: 10px 20px; margin: 0; }
.legal-card dt { align-self: start; padding-top: 2px; }
.legal-card dd { margin: 0; color: var(--ink); word-break: break-word; }
@media (max-width: 620px) { .legal-card dl { grid-template-columns: 1fr; gap: 2px 0; } .legal-card dd { margin-bottom: 12px; } }

/* sitemap page */
.sitemap-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.sitemap-cols ul { list-style: none; padding: 0; }
.sitemap-cols li { border-bottom: 1px solid var(--line); }
.sitemap-cols a { display: block; padding: 12px 0; color: var(--ink); font-family: var(--display); text-transform: uppercase; letter-spacing: 0.03em; font-size: 1.1rem; }
.sitemap-cols a:hover { color: var(--accent-text); padding-left: 6px; transition: padding-left .2s ease; }

/* 404 */
.nf { min-height: calc(100vh - var(--header-h) - 300px); display: grid; place-items: center; text-align: center; padding-block: 60px; }
.nf .code { font-family: var(--display); font-size: clamp(5rem, 20vw, 13rem); color: var(--accent-text); line-height: 0.9; letter-spacing: 0.02em; }
.nf h1 { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 10px 0 14px; }
.nf p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 26px; }

/* thank you */
.ty { min-height: calc(100vh - var(--header-h) - 300px); display: grid; place-items: center; text-align: center; padding-block: 60px; position: relative; overflow: hidden; }
.ty .big { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: clamp(2.2rem, 6vw, 4rem); line-height: 1.04; }
.ty .glow { color: var(--accent-text); }
.ty p { color: var(--ink-soft); max-width: 50ch; margin: 16px auto 28px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: #090D11; border-top: 1px solid var(--line-strong); padding-top: clamp(48px, 6vw, 72px); position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-col h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--ink-body); font-size: 0.95rem; }
.footer-col a:hover { color: var(--accent-text); }
.footer-brand .brand { font-size: 22px; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-soft); font-size: 0.92rem; max-width: 34ch; }
.footer-contact { font-family: var(--mono); font-size: 12.5px; color: var(--ink-body); line-height: 1.9; }
.footer-contact a { color: var(--ink-body); }
.footer-contact a:hover { color: var(--accent-text); }
.footer-bottom {
  margin-top: clamp(36px, 5vw, 56px); border-top: 1px solid var(--line); padding: 24px 0 30px;
  display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; justify-content: space-between;
}
.footer-legal-links { display: flex; flex-wrap: wrap; gap: 10px 20px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; }
.footer-legal-links a { display: inline; color: var(--ink-soft); }
.footer-legal-links a:hover { color: var(--accent-text); }
.footer-notice {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--accent2-text);
  border: 1px solid rgba(224,160,48,0.3); border-radius: 40px; padding: 8px 16px;
  background: rgba(224,160,48,0.06);
}
.footer-fine { font-family: var(--mono); font-size: 11.5px; color: var(--ink-faint); letter-spacing: 0.03em; }

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px; margin: 0 auto;
  background: #0E151A; border: 1px solid var(--line-strong); border-radius: var(--radius-lg);
  padding: 20px 22px; z-index: 1030; transform: translateY(140%); opacity: 0;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), opacity .24s ease;
  box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9);
}
.cookie-banner.is-visible { transform: translateY(0); opacity: 1; }
/* keep the cookie banner from covering an open mobile drawer */
body:has(.drawer.is-open) .cookie-banner { display: none; }
@media (min-width: 720px) { .cookie-banner { left: 24px; right: auto; max-width: 420px; } }
.cookie-banner h2 { font-family: var(--display); text-transform: uppercase; color: var(--ink); font-size: 1.2rem; letter-spacing: 0.02em; margin-bottom: 8px; }
.cookie-banner p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 16px; }
.cookie-banner p a { color: var(--accent-text); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions button {
  flex: 1 1 auto; min-height: 44px; padding: 10px 16px; border-radius: var(--radius);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer; border: 1px solid var(--line-strong); transition: background .18s ease, color .18s ease, border-color .18s ease;
}
.cookie-actions button[data-consent="accept"] { background: var(--accent); color: #04171a; border-color: var(--accent); font-weight: 700; }
.cookie-actions button[data-consent="accept"]:hover { background: var(--accent-text); }
.cookie-actions button[data-consent="reject"] { background: var(--surface-2); color: var(--ink); }
.cookie-actions button[data-consent="reject"]:hover { border-color: var(--accent); }
.cookie-actions button[data-consent="settings"] { background: transparent; color: var(--ink-soft); flex: 1 1 100%; }
.cookie-actions button[data-consent="settings"]:hover { color: var(--ink); border-color: var(--accent); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }
.reveal[data-d] { transition-delay: calc(var(--d, 0) * 1ms); }
[style*="--i"] { }
.stagger > * { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.stagger.is-in > * { opacity: 1; transform: none; }
.stagger.is-in > * { transition-delay: calc(var(--i, 0) * 70ms); }
html.no-js .reveal, html.no-js .stagger > * { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .blip, .diagram.is-in .draw-curve,
  .reveal.is-in .diagram .draw-curve { animation: none !important; }
  /* без анимации кривая обязана быть просто нарисованной, а не стёртой */
  .diagram .draw-curve { stroke-dashoffset: 0 !important; }
  .error-card:hover, .author:hover, .contact-card:hover, .author:hover .ph img,
  .btn-primary:hover, .btn-primary:focus-visible, .phase:hover::after { transform: none !important; }
}

/* ambient radar sweep on hero telemetry */
.sweep { position: absolute; inset: 0; pointer-events: none; z-index: 1; overflow: hidden; }
.sweep::before {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(47,182,201,0.05), transparent);
  animation: sweep 7s linear infinite;
}
@keyframes sweep { 0% { left: -40%; } 100% { left: 100%; } }
@media (prefers-reduced-motion: reduce) { .sweep::before { animation: none; display: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 860px) {
  .split, .split.reverse { grid-template-columns: 1fr; gap: 26px; }
  .split .media { order: -1; }
  .diagram-pair { grid-template-columns: 1fr; }
  .phases { grid-template-columns: 1fr 1fr; }
  .phase { border-right: 0; border-bottom: 1px solid var(--line); }
  .sim-grid { grid-template-columns: 1fr; }
  .sim-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .authors { grid-template-columns: 1fr; }
  .sim-kpis { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .footer-top { grid-template-columns: 1fr; gap: 26px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .phases { grid-template-columns: 1fr; }
  .phase { border-right: 0; }
  .log-row { grid-template-columns: 1fr; gap: 4px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .histo { height: 160px; }
  .hero h1 { max-width: 100%; }
}
/* narrow phones: histogram band labels must not collide into an unreadable run */
@media (max-width: 540px) {
  .histo { gap: 5px; }
  .histo .bl {
    white-space: normal; overflow-wrap: anywhere; word-break: break-word;
    font-size: 8.5px; letter-spacing: 0; line-height: 1.2;
  }
  .histo .bar .n { font-size: 10px; }
}
@media (max-width: 420px) {
  .contact-card, .error-card { padding: 18px; }
  .telemetry-bar { font-size: 10.5px; }
}

.scroll-progress{position:fixed;top:0;left:0;height:3px;width:100%;transform:scaleX(0);transform-origin:0 50%;will-change:transform;background:var(--accent);z-index:9998;transition:transform 80ms linear;pointer-events:none}

/* autofix@1440: 263px void between sections — section paddings trimmed */
#tur-anatomisi{padding-bottom:72px !important}
#carpan-nasil-buyur{padding-top:72px !important}

/* autofix@1440: 274px void between sections — section paddings trimmed */
#carpan-nasil-buyur{padding-bottom:72px !important}
#erken-mi-gec-mi{padding-top:72px !important}

/* autofix@1440: 310px void between sections — section paddings trimmed */
#simulator{padding-bottom:72px !important}
#neden-gercek-para-yok{padding-top:72px !important}

/* autofix@1440: 266px void between sections — section paddings trimmed */
#neden-gercek-para-yok{padding-bottom:72px !important}
#okuma-hatalari{padding-top:72px !important}

/* autofix@390: 212px void between sections — section paddings trimmed */
@media (max-width:760px){#simulator{padding-bottom:48px !important}#neden-gercek-para-yok{padding-top:48px !important}}
