/*
 * Cargoverse web sitesi — "Lunapark" görünümü (kullanıcı seçimi, 2026-11-20).
 * Üç renk: mor ve sarı (zıt çift) + nane (çarpıcı üçüncü renk). Solda mor yol; sayfa kaydıkça nane minibüs aşağı iner
 * (yapışkan konum, betik yok).
 */
@font-face {
  font-family: 'Baloo 2';
  src: url('fonts/Baloo2-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --violet: #3d1fb8;
  --violet-dark: #2a1285;
  --yellow: #ffd43b;
  --mint: #19d3a2;
  --mint-dark: #0e8e6c;
  --deep: #1a0f55;

  --bg: #ffd43b;
  --surface: #ffffff;
  --ink: #1a0f55;
  --ink-soft: #3b2f7a;
  --muted: #5b4f99;
  --heading: #3d1fb8;
  --link: #3d1fb8;
  --line: rgba(61, 31, 184, 0.22);
  --shadow: 0 10px 0 #3d1fb8;
  --radius: 28px;
  --wrap: 1160px;
  --road: #3d1fb8;
  --road-line: #ffd43b;
  --orange: #19d3a2;
  --font-head: 'Baloo 2', 'Trebuchet MS', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a0f55;
    --surface: #2a1c7a;
    --ink: #f4f1ff;
    --ink-soft: #ddd6ff;
    --muted: #b9afe8;
    --heading: #ffd43b;
    --link: #ffd43b;
    --line: rgba(255, 255, 255, 0.18);
    --shadow: 0 10px 0 #0d0733;
    --road: #2a1285;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 3px;
  border-radius: 8px;
}

h1,
h2,
h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.1;
  color: var(--heading);
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 6vw, 3.9rem);
}

h2 {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
}

h3 {
  font-size: 1.4rem;
}

p {
  margin: 0 0 1em;
}

code {
  font-size: 0.9em;
  background: rgba(61, 31, 184, 0.08);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}

mark.eksik {
  background: #fff1a8;
  color: #6b4e00;
  padding: 0 0.25em;
  border-radius: 4px;
  font-weight: 700;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 32px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 8px 14px;
  border-radius: 10px;
  z-index: 10;
}

.skip:focus {
  left: 12px;
}

/* ── solda yol ve minibüs ── */
.shell {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  min-height: 100vh;
}

.yol {
  background-color: var(--road);
  background-image: linear-gradient(to bottom, var(--road-line) 0 40%, transparent 40% 100%);
  background-size: 5px 36px;
  background-repeat: repeat-y;
  background-position: center top;
}

.yol-arac {
  position: sticky;
  top: calc(50vh - 36px);
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.yol-arac svg {
  width: 34px;
  height: 62px;
}

.govde {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.govde main {
  flex: 1 0 auto;
}

/* ── üst bölüm ── */
.site-header {
  padding-top: 8px;
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 12px;
  padding-bottom: 6px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--heading);
  text-decoration: none;
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.85rem;
  line-height: 1;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 50% 50% 50% 12px;
  background: var(--mint);
  border: 3px solid var(--violet);
}

.lang-link {
  color: var(--heading);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid currentColor;
  padding: 4px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav ul {
  list-style: none;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-top: 6px;
  padding-bottom: 10px;
}

.site-nav a {
  display: block;
  color: var(--heading);
  text-decoration: none;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
}

.site-nav a:hover {
  background: rgba(61, 31, 184, 0.1);
}

.site-nav a[aria-current='page'] {
  color: var(--yellow);
  background: var(--violet);
}

.site-nav .nav-cta {
  margin-left: auto;
  color: var(--deep);
  background: var(--mint);
  font-weight: 800;
}

.site-nav .nav-cta:hover {
  background: #2ee6b5;
}

/* ── düğmeler ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.02rem;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 999px;
  border: 2px solid transparent;
  line-height: 1.2;
}

.btn-play {
  background: var(--yellow);
  color: var(--deep);
}

.btn-play:hover {
  background: #ffe066;
}

.btn-soon {
  background: var(--yellow);
  color: var(--deep);
  cursor: default;
}

.btn-ghost {
  color: var(--heading);
  border-color: currentColor;
}

.btn-ghost:hover {
  background: rgba(61, 31, 184, 0.08);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.4em;
}

.hero .btn-ghost {
  color: #ffffff;
  border-color: var(--mint);
}

.hero .btn-ghost:hover {
  background: rgba(25, 211, 162, 0.15);
}

/* ── ana sayfa ── */
.hero {
  padding: 16px 0 56px;
}

/* Kutular yoldan ve kenardan ayrı dursun: geniş ekranda sütuna hizalı, dar ekranda 16 px boşluk */
.hero-grid,
.story,
.privacy-box,
.prose {
  width: auto;
  margin-left: max(32px, calc((100% - var(--wrap)) / 2 + 32px));
  margin-right: max(32px, calc((100% - var(--wrap)) / 2 + 32px));
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  background: var(--violet);
  color: #ffffff;
  border-radius: 48px;
  padding: 56px;
  max-width: calc(var(--wrap) - 64px);
}

.hero h1 {
  color: var(--yellow);
}

.eyebrow {
  display: inline-block;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--deep);
  margin-bottom: 1em;
}

.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.hero .lead {
  color: #e6e0ff;
}

.hero-art {
  position: relative;
  max-width: 380px;
  width: 100%;
  justify-self: center;
  aspect-ratio: 1 / 1;
}

.hero-daire {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: var(--mint);
}

.hero-halka {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 10px dotted var(--yellow);
}

/* Oyun görseli birebir değil: beyaz kontur ve sarı kaydırılmış gölgeyle "çıkartma" görünümü */
.hero-nermin {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 42%;
  transform: translateX(-50%);
  filter: drop-shadow(4px 0 0 #fff) drop-shadow(-4px 0 0 #fff) drop-shadow(0 4px 0 #fff) drop-shadow(0 -4px 0 #fff)
    drop-shadow(-12px 10px 0 var(--yellow));
}

.section {
  padding: 40px 0;
}

.section-alt {
  background: none;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.steps li,
.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.steps h3 {
  color: var(--heading);
}

.steps p,
.card p {
  margin: 0;
  color: var(--ink-soft);
}

.step-n {
  display: inline-grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: var(--mint);
  color: var(--deep);
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.6rem;
  margin-bottom: 14px;
}

.story {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 32px;
  align-items: center;
  background: var(--mint);
  color: var(--deep);
  border-radius: 48px;
  padding: 40px 48px;
  max-width: calc(var(--wrap) - 64px);
}

.story h2 {
  color: var(--deep);
}

.story p {
  font-size: 1.1rem;
  color: var(--deep);
  margin: 0;
}

.story-face {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: var(--yellow);
  border: 6px solid var(--violet);
}

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.cards .card {
  background: var(--violet);
  box-shadow: none;
}

.cards .card h3 {
  color: var(--yellow);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 800;
  line-height: 1.3;
}

.cards .card p {
  color: #e6e0ff;
}

.privacy-box {
  background: var(--surface);
  border-radius: 48px;
  padding: 48px;
  max-width: calc(var(--wrap) - 64px);
}

.checks {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
  display: grid;
  gap: 12px;
}

.checks li {
  position: relative;
  padding-left: 40px;
}

.checks li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--deep);
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ── SSS ── */
.faq-group {
  margin-bottom: 36px;
}

.faq-group h2 {
  font-size: 1.6rem;
}

.faq {
  background: var(--surface);
  border-radius: 22px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 52px 16px 22px;
  font-weight: 700;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  border-radius: 10px;
  background: var(--mint);
  color: var(--deep);
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 28px;
  text-align: center;
}

.faq[open] summary::after {
  content: '−';
}

.faq .answer {
  padding: 0 22px 18px;
  color: var(--ink-soft);
}

.faq .answer p:last-child {
  margin-bottom: 0;
}

/* ── metin sayfaları: sarı zeminde beyaz kâğıt ── */
.page {
  padding: 16px 0 56px;
}

.prose {
  max-width: 860px;
  background: var(--surface);
  border-radius: 40px;
  padding: 40px 48px;
}

.prose h2 {
  margin-top: 1.8em;
  scroll-margin-top: 16px;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

.prose h3 {
  margin-top: 1.4em;
}

.prose ul,
.prose ol {
  padding-left: 1.3em;
  margin: 0 0 1em;
}

.prose li {
  margin-bottom: 0.4em;
}

.prose .faq {
  background: rgba(61, 31, 184, 0.06);
}

.updated {
  color: var(--muted);
  font-size: 0.95rem;
}

.toc {
  background: rgba(61, 31, 184, 0.06);
  border-radius: 20px;
  padding: 14px 20px;
  margin: 20px 0 8px;
}

.toc summary {
  cursor: pointer;
  font-weight: 800;
}

.toc ol {
  margin: 10px 0 0;
  padding-left: 1.3em;
}

.table-wrap {
  overflow-x: auto;
  margin: 0 0 1.2em;
}

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 440px;
  font-size: 0.95rem;
}

th,
td {
  border: 1px solid var(--line);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th {
  background: rgba(61, 31, 184, 0.08);
}

.note {
  border-left: 4px solid var(--mint);
  padding: 12px 16px;
  border-radius: 0 12px 12px 0;
  background: rgba(25, 211, 162, 0.12);
}

.facts {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  background: rgba(61, 31, 184, 0.06);
  border-radius: 20px;
  padding: 18px 22px;
}

.facts dt {
  font-weight: 700;
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.crumbs {
  font-size: 0.92rem;
  color: var(--muted);
  margin-bottom: 18px;
}

.crumbs a {
  color: inherit;
}

/* ── alt bölüm ── */
.site-footer {
  margin-top: 24px;
  background: var(--violet);
  color: #e6e0ff;
  padding: 32px 0;
  font-size: 0.95rem;
  border-radius: 40px 40px 0 0;
}

.site-footer a {
  color: var(--yellow);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-meta {
  margin: 0;
  color: #c9c0f5;
}

/* ── koyu tema ayrıntıları ── */
@media (prefers-color-scheme: dark) {
  .site-nav a[aria-current='page'] {
    color: var(--deep);
    background: var(--yellow);
  }

  .lang-link,
  .site-nav a,
  .brand {
    color: var(--yellow);
  }

  .hero-grid,
  .cards .card {
    background: var(--violet);
  }

  .prose .faq,
  .toc,
  .facts,
  th,
  code {
    background: rgba(255, 255, 255, 0.07);
  }

  .site-footer {
    background: #0d0733;
  }
}

/* ── dar ekran ── */
@media (max-width: 960px) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    font-size: 16px;
  }

  .shell {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .yol {
    background-size: 3px 28px;
  }

  .yol-arac {
    padding-top: 20px;
  }

  .yol-arac svg {
    width: 18px;
    height: 33px;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero-grid,
  .story,
  .privacy-box,
  .prose {
    margin-left: 16px;
    margin-right: 16px;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    border-radius: 28px;
    padding: 32px 20px;
  }

  .hero-art {
    max-width: 280px;
  }

  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .story {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
    border-radius: 28px;
    padding: 32px 20px;
  }

  .story-face {
    width: 120px;
    height: 120px;
  }

  .privacy-box,
  .prose {
    border-radius: 28px;
    padding: 28px 20px;
  }

  .section {
    padding: 28px 0;
  }

  .site-nav .nav-cta {
    margin-left: 0;
  }
}

@media (max-width: 520px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
  }

  .facts dd {
    margin-bottom: 10px;
  }

  .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
