/* Rotapia tanıtım sitesi. Düzen: transfer firmasına konuşan başlık + havalimanı "gelen yolcu" panosu (tek cesur öğe),
   bir transferin saat saat akışı, panel özellikleri ve ekran görüntüsü, açık ücret modeli, kısa demo formu.
   Sayfa sakin ve açık; pano havalimanı tabelasının siyah-sarı dilini taşır, iki temada da aynı kalır. */
:root {
  --bg: #f5f6f9;
  --surface: #ffffff;
  --ink: #0e1528;
  --muted: #59647b;
  --line: #dde2ec;
  --accent: #1d4ed8;
  --accent-ink: #ffffff;
  --accent-soft: #e5ecfd;
  --alt: #ecf0f7;
  --ok: #15803d;
  --err: #b91c1c;
  --shadow: 0 30px 70px -30px rgba(14, 21, 40, .45);

  /* Pano: iki temada da aynı (havalimanı tabelası) */
  --board-bg: #0b0f17;
  --board-row: #121826;
  --board-line: #222a3b;
  --map-road: #dfe4ee;
  --map-major: #cdd5e4;
  --board-ink: #e9edf5;
  --board-dim: #8a93a6;
  --board-sign: #ffcc00;
  --s-gate: #22c55e;
  --s-road: #ffcc00;
  --s-wait: #93a0b8;
  --s-idle: #fb923c;

  --sp-low: #16a34a;
  --sp-mid: #f59e0b;
  --sp-high: #dc2626;

  --f-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: ui-monospace, "SF Mono", "Cascadia Mono", Consolas, "Liberation Mono", monospace;
  --r: 14px;
  color-scheme: light;
}
/* Karanlık: işletim sistemi tercihi; data-theme ile elle seçim her iki yönde de kazanır */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0f1d;
    --surface: #111a2e;
    --ink: #e8edf7;
    --muted: #9ba7bf;
    --line: #253150;
    --accent: #5b8cff;
    --accent-ink: #061033;
    --accent-soft: #172447;
    --alt: #0d1528;
    --ok: #4ade80;
    --err: #f87171;
    --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
    --board-bg: #05080f;
    --board-line: #1d2536;
    --map-road: #18223a;
    --map-major: #22304f;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0f1d;
  --surface: #111a2e;
  --ink: #e8edf7;
  --muted: #9ba7bf;
  --line: #253150;
  --accent: #5b8cff;
  --accent-ink: #061033;
  --accent-soft: #172447;
  --alt: #0d1528;
  --ok: #4ade80;
  --err: #f87171;
  --shadow: 0 30px 70px -30px rgba(0, 0, 0, .8);
  --board-bg: #05080f;
  --board-line: #1d2536;
  --map-road: #18223a;
  --map-major: #22304f;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 var(--f-sans); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; margin: 0; line-height: 1.1; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-inline: 20px; }
.eyebrow { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }

/* Üst çubuk */
.top {
  position: sticky; top: 0; z-index: 10;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.top-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand img { border-radius: 8px; }
.nav { display: flex; gap: 22px; margin-left: 12px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; font-weight: 500; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 8px 16px; border-radius: 10px;
  font: 600 15px/1.2 var(--f-sans); text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background .15s, border-color .15s;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); }
.btn-ghost { color: var(--ink); border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--muted); }
.btn-link { color: var(--ink); padding-inline: 4px; }
.btn-link:hover { color: var(--accent); }
.btn-lg { min-height: 50px; padding: 12px 22px; font-size: 16px; border-radius: 12px; }
.btn-lg.btn-link { padding-inline: 4px; }
.btn:disabled { opacity: .6; cursor: progress; }

/* Giriş */
.hero { padding-block: 64px 72px; position: relative; overflow: hidden; isolation: isolate; }
/* Zemin: sayfanın çizdiği soluk şehir haritası; yazı tarafında ve altta solar */
.hero-map {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.45) 38%, #000 70%), linear-gradient(180deg, #000 70%, transparent);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(90deg, rgba(0,0,0,.18) 0%, rgba(0,0,0,.45) 38%, #000 70%), linear-gradient(180deg, #000 70%, transparent);
}
.hero-in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(38px, 5.6vw, 66px); font-weight: 850; letter-spacing: -.045em; margin-top: 14px; }
.h1-2 { display: block; color: var(--accent); }
.lead { margin-top: 22px; font-size: 19px; color: var(--muted); max-width: 33em; }
.hero-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 30px; }

/* Gelen yolcu panosu */
.board { margin: 0; min-width: 0; background: var(--board-bg); color: var(--board-ink); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: var(--board-sign); color: #111; }
.board-title { font-weight: 850; font-size: 20px; letter-spacing: -.01em; display: flex; align-items: baseline; gap: 10px; }
.board-title small { font-weight: 600; font-size: 13px; opacity: .7; }
.board-clock { font: 700 22px/1 var(--f-mono); font-variant-numeric: tabular-nums; }
.board-scroll { overflow-x: auto; }
.board-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.board-table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--board-dim); padding: 12px 14px 8px; }
.board-table td { padding: 12px 14px; border-top: 1px solid var(--board-line); white-space: nowrap; vertical-align: middle; }
.board-table tbody tr:nth-child(odd) td { background: var(--board-row); }
.board-table th:first-child, .board-table td:first-child { padding-left: 20px; }
.board-table th:last-child, .board-table td:last-child { padding-right: 20px; }
.board-table .t { font: 700 16px/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--board-sign); }
.board-table i { display: block; margin-top: 4px; font: 500 12.5px/1.2 var(--f-sans); font-style: normal; color: var(--board-dim); }
.board figcaption, .board > figcaption { padding: 12px 20px 16px; font-size: 12.5px; color: var(--board-dim); border-top: 1px solid var(--board-line); }

.plate {
  display: inline-flex; align-items: stretch; gap: 6px; padding: 5px 7px 5px 0;
  background: #f4f6fa; color: #0e1528; border: 1.5px solid #10131b; border-radius: 4px; overflow: hidden;
  font: 700 14px/1 var(--f-mono); letter-spacing: .04em;
}
.plate b { background: #1d4ed8; color: #fff; font-size: 8px; padding: 0 3px 3px; margin-block: -5px; display: flex; align-items: flex-end; letter-spacing: 0; }

.flap {
  display: inline-block; min-width: 92px; padding: 6px 9px; border-radius: 4px;
  font: 700 13px/1 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; text-align: center;
  background: #1a2232; position: relative;
}
.flap::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid rgba(0, 0, 0, .55); }
.s-gate { color: var(--s-gate); }
.s-road { color: var(--s-road); }
.s-wait { color: var(--s-wait); }
.s-idle { color: var(--s-idle); }
.flap.flip { animation: flip .5s ease; }
@keyframes flip { 0% { transform: rotateX(0); } 50% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }

/* Bölümler */
.section { padding-block: 88px; }
.section-alt { background: var(--alt); }
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head h2, .panel-text h2, .demo-text h2 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.035em; margin-top: 10px; }
.section-head > p:last-child { margin-top: 14px; color: var(--muted); font-size: 18px; }

/* Bir transferin akışı: saat sütunu + dikey rota çizgisi */
.timeline { list-style: none; margin: 0; padding: 0; max-width: 820px; }
.timeline li { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 28px; position: relative; padding-bottom: 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ""; position: absolute; left: 132px; top: 8px; bottom: -8px; margin-left: 13px;
  border-left: 3px dotted var(--line);
}
.timeline li:last-child::before { display: none; }
.timeline li::after {
  content: ""; position: absolute; left: 132px; top: 4px; margin-left: 8px;
  width: 13px; height: 13px; border-radius: 50%; background: var(--surface); border: 3px solid var(--accent);
}
.timeline time { font: 700 20px/1.2 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--ink); text-align: right; }
.timeline li > div { padding-left: 14px; }
.timeline h3 { font-size: 20px; font-weight: 750; letter-spacing: -.015em; }
.timeline p { margin-top: 6px; color: var(--muted); max-width: 56ch; }
.timeline strong { color: var(--ink); }

/* Panel */
.panel-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.panel-lead { margin-top: 14px; color: var(--muted); font-size: 18px; }
.specs { margin: 32px 0 0; display: grid; gap: 0; }
.specs div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.specs dt { font-weight: 700; }
.specs dd { margin: 0; color: var(--muted); font-size: 15px; }
.bands { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font: 600 12px/1.4 var(--f-mono); color: var(--ink); margin-left: 4px; }
.sw { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
.sw-low { background: var(--sp-low); } .sw-mid { background: var(--sp-mid); } .sw-high { background: var(--sp-high); }
.shot { margin: 0; min-width: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--surface); }

/* Ücret */
.terms { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.terms div { padding: 20px 22px 0 0; min-width: 0; }
.terms div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.terms dt { font-weight: 750; font-size: 17px; }
.terms dd { margin: 8px 0 0; color: var(--muted); font-size: 15px; }

/* Demo formu */
.section-demo { background: var(--surface); border-top: 1px solid var(--line); }
.demo-in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: start; }
.demo-text > p { margin-top: 14px; color: var(--muted); font-size: 18px; max-width: 30em; }
.demo-text .demo-note { font: 600 13px/1.5 var(--f-mono); color: var(--muted); margin-top: 22px; }
.demo-form { display: grid; gap: 16px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.row2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.demo-form label { display: grid; gap: 6px; font-size: 14px; font-weight: 600; min-width: 0; }
.opt { font-weight: 400; color: var(--muted); }
.demo-form input, .demo-form select {
  width: 100%; font: 400 16px/1.4 var(--f-sans); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
.demo-form input:focus, .demo-form select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.demo-form .consent { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; color: var(--muted); }
.consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--accent); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { font-size: 15px; font-weight: 600; min-height: 1.4em; }
.form-msg.ok { color: var(--ok); }
.form-msg.err { color: var(--err); }

/* Alt bilgi */
.foot { border-top: 1px solid var(--line); padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 24px; font-size: 14px; color: var(--muted); }
.brand-sm { font-size: 16px; gap: 8px; }
.brand-sm img { border-radius: 6px; }
.foot-in a { margin-left: auto; }

@media (max-width: 960px) {
  .hero-in, .panel-in, .demo-in { grid-template-columns: 1fr; gap: 40px; }
  .terms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .terms div:nth-child(3) { padding-left: 0; border-left: 0; }
  .terms div:nth-child(n+3) { padding-top: 24px; }
  .nav { display: none; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 16px; }
  .hero { padding-block: 36px 48px; }
  .top-actions .btn-ghost { display: none; }
  .board-table { font-size: 14px; }
  .board-table i { white-space: normal; }
  .board-table td, .board-table th { padding-inline: 10px; }
  .flap { min-width: 0; }
  .timeline li { grid-template-columns: 1fr; gap: 6px; padding-left: 34px; }
  .timeline li::before { left: 0; margin-left: 6px; top: 22px; }
  .timeline li::after { left: 0; margin-left: 1px; }
  .timeline time { text-align: left; font-size: 17px; }
  .timeline li > div { padding-left: 0; }
  .specs div { grid-template-columns: 1fr; gap: 4px; }
  .terms, .row2 { grid-template-columns: 1fr; }
  .terms div, .terms div + div, .terms div:nth-child(n+3) { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .section { padding-block: 64px; }
  .demo-form { padding: 20px; }
  .foot-in a { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flap.flip { animation: none; }
  .btn { transition: none; }
}

/* Sektör sekmeleri */
.sectors { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.tabs { display: grid; gap: 6px; position: sticky; top: calc(84px + env(safe-area-inset-top, 0px)); }
.tab {
  text-align: left; font: 600 16px/1.3 var(--f-sans); color: var(--muted); cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 10px; padding: 12px 14px;
}
.tab:hover { color: var(--ink); background: var(--surface); }
.tab[aria-selected="true"] { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: inset 4px 0 0 var(--board-sign); }
@media (max-width: 960px) {
  .sectors { grid-template-columns: 1fr; gap: 28px; }
  .tabs { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 4px; }
  .tab { white-space: nowrap; border-color: var(--line); background: var(--surface); }
  .tab[aria-selected="true"] { box-shadow: inset 0 -3px 0 var(--board-sign); }
}

/* Dil menüsü */
.lang-menu { position: relative; }
.lang-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 10px;
  font: 700 13px/1 var(--f-mono); letter-spacing: .06em; color: var(--muted); border-radius: 10px;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
.lang-menu summary:hover, .lang-menu[open] summary { color: var(--ink); background: var(--surface); }
.lang-menu ul {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; list-style: none; margin: 0; padding: 6px; min-width: 160px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow);
}
.lang-menu a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.lang-menu a:hover { background: var(--alt); }
.lang-menu a[aria-current="page"] { color: var(--accent); font-weight: 700; }
