/* ==========================================================================
   Pixel Section — ortak katman (tüm sayfalar)
   Ana renkler: turuncu, beyaz, siyah. Mavi yalnız dikkat çekilecek yerlerde.
   ========================================================================== */

:root {
  --ink: #02070A;
  --ink-2: #0B1013;
  --ink-3: #151B1F;
  --white: #FFFFFF;
  --paper: #F2F0EC;
  --paper-2: #E6E3DE;
  --orange: #FC734D;
  --orange-hot: #F2502A;
  --red: #E8263F;
  --amber: #FFC23A;
  --blue: #0297DE;
  --blue-soft: #5CC3F2;

  --text-dim: rgba(255, 255, 255, .62);
  --text-mute: rgba(255, 255, 255, .42);
  --ink-dim: rgba(2, 7, 10, .64);
  --line: rgba(255, 255, 255, .12);
  --line-ink: rgba(2, 7, 10, .12);

  --fire: linear-gradient(180deg, var(--red) 0%, var(--orange) 45%, var(--amber) 100%);
  --sun: radial-gradient(120% 90% at 50% 0%, #FF9A62 0%, var(--orange) 38%, var(--orange-hot) 70%, #C8341C 100%);

  --font-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-pixel: "Pixelify Sans", ui-monospace, monospace;

  --radius: 22px;
  --radius-sm: 14px;
  --pad: clamp(18px, 4vw, 56px);
  --max: 1320px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: var(--orange); color: var(--ink); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px;
  background: var(--blue); color: var(--white);
  font-weight: 600; text-decoration: none;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 16px; }

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

/* --------------------------------------------------------------------------
   Butonlar
   -------------------------------------------------------------------------- */

.btn {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink);
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 1px solid transparent; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: 15px; letter-spacing: -.01em;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--orange { box-shadow: 0 10px 30px -10px rgba(252, 115, 77, .7); }
.btn--orange:hover { --btn-bg: #FF8862; }

/* Mavi buton: sayfadaki tek ana eylem için. */
.btn--blue { --btn-bg: var(--blue); --btn-fg: var(--white); box-shadow: 0 10px 32px -8px rgba(2, 151, 222, .75); }
.btn--blue:hover { --btn-bg: #18A8EC; box-shadow: 0 14px 40px -8px rgba(2, 151, 222, .9); }

.btn--white { --btn-bg: var(--white); --btn-fg: var(--ink); }
.btn--white:hover { --btn-bg: var(--paper); }

.btn--ink { --btn-bg: var(--ink); --btn-fg: var(--white); }
.btn--ink:hover { --btn-bg: var(--ink-3); }

.btn--ghost {
  --btn-bg: rgba(255, 255, 255, .06); --btn-fg: var(--white);
  border-color: var(--line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .12); }

.btn--ghost-ink { --btn-bg: transparent; --btn-fg: var(--ink); border-color: var(--line-ink); }
.btn--ghost-ink:hover { --btn-bg: rgba(2, 7, 10, .06); }

.btn--lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }

.btn__icon {
  display: grid; place-items: center;
  width: 28px; height: 28px; margin-right: -12px;
  border-radius: 50%;
  background: var(--ink); color: var(--white);
}
.btn--ink .btn__icon, .btn--blue .btn__icon { background: var(--white); color: var(--ink); }
.btn__icon svg { width: 12px; height: 12px; }

/* --------------------------------------------------------------------------
   Etiketler
   -------------------------------------------------------------------------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 18px;
  font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-dim);
}
.eyebrow::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: var(--orange);
}
.eyebrow--blue::before { background: var(--blue); box-shadow: 0 0 0 4px rgba(2, 151, 222, .2); }
.on-paper .eyebrow { color: var(--ink-dim); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  border: 1px solid currentColor;
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.chip--blue { color: var(--white); background: var(--blue); border-color: var(--blue); }

.live-dot {
  position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--blue);
}
.live-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--blue); opacity: 0;
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-dot::after { animation: none; } }

/* --------------------------------------------------------------------------
   Üst menü
   -------------------------------------------------------------------------- */

.nav {
  position: fixed; inset: 16px var(--pad) auto; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: calc(var(--max) - 2 * var(--pad)); margin: 0 auto;
  padding: 8px 8px 8px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.is-scrolled, .nav--solid {
  background: rgba(2, 7, 10, .72);
  border-color: var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--white);
}
.brand__mark { width: 30px; height: 30px; }
.brand__name {
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  letter-spacing: .02em;
}

.nav__links { display: flex; gap: 6px; }
.nav__links a {
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 14px; font-weight: 500; text-decoration: none; color: rgba(255, 255, 255, .86);
  border-color: rgba(255, 255, 255, .24);
  transition: color .2s, border-color .2s, background .2s;
}
.nav__links a:hover, .nav__links a[aria-current="page"] {
  color: var(--white); border-color: var(--white); background: rgba(255, 255, 255, .14);
}

.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__login { font-size: 14px; font-weight: 500; color: rgba(255, 255, 255, .86); text-decoration: none; padding: 8px 10px; }
.nav__login:hover { color: var(--white); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--white);
  cursor: pointer;
}
.nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
  display: block; width: 16px; height: 1.5px; margin: 0 auto; background: currentColor;
  transition: transform .25s var(--ease), opacity .2s;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before, .nav__toggle span::after { content: ""; position: absolute; left: 0; }
.nav__toggle span::before { top: -5px; }
.nav__toggle span::after { top: 5px; }
.nav.is-open .nav__toggle span { background: transparent; }
.nav.is-open .nav__toggle span::before { transform: translateY(5px) rotate(45deg); }
.nav.is-open .nav__toggle span::after { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  .nav { inset: 10px 10px auto; padding-left: 14px; }
  .nav__toggle { display: block; }
  .nav__login { display: none; }
  .nav__links {
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    flex-direction: column; gap: 4px; padding: 10px;
    border-radius: var(--radius); border: 1px solid var(--line);
    background: rgba(2, 7, 10, .94);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity .2s, transform .2s var(--ease), visibility .2s;
  }
  .nav__links a { border: 0; padding: 14px 16px; font-size: 16px; }
  .nav.is-open { background: rgba(2, 7, 10, .9); border-color: var(--line); }
  .nav.is-open .nav__links { opacity: 1; visibility: visible; transform: none; }
}
@media (max-width: 420px) {
  .brand__name { display: none; }
}

/* --------------------------------------------------------------------------
   Alt sayfa başlığı (turuncu bant, 2. görsel)
   -------------------------------------------------------------------------- */

.page-hero {
  position: relative; overflow: hidden;
  padding: clamp(130px, 18vw, 190px) 0 clamp(90px, 12vw, 150px);
  background: var(--sun);
  color: var(--white);
  isolation: isolate;
}
.page-hero::after {
  /* ince doku */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, .18) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.page-hero__crumbs {
  display: flex; gap: 8px; margin: 0 0 22px;
  font-size: 13px; font-weight: 500; color: rgba(255, 255, 255, .8);
}
.page-hero__crumbs a { text-decoration: none; }
.page-hero__crumbs a:hover { text-decoration: underline; }
.page-hero__title {
  margin: 0; max-width: 14ch;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(44px, 8vw, 112px); line-height: .92; letter-spacing: -.035em;
  text-transform: lowercase;
}
.page-hero__lead {
  max-width: 54ch; margin: 26px 0 0;
  font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .9);
}
.page-hero__meta { margin: 18px 0 0; font-size: 13px; color: rgba(255, 255, 255, .75); }
.page-hero__ghost {
  /* alttan taşan dev kelime */
  position: absolute; left: -.04em; bottom: -.3em; z-index: -1;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(120px, 24vw, 360px); line-height: 1; letter-spacing: -.05em;
  text-transform: lowercase; white-space: nowrap;
  color: rgba(255, 255, 255, .14);
  pointer-events: none; user-select: none;
}

/* --------------------------------------------------------------------------
   Kâğıt (açık) bölüm, 1. görsel
   -------------------------------------------------------------------------- */

.on-paper { background: var(--paper); color: var(--ink); }
.on-white { background: var(--white); color: var(--ink); }

.page-body { padding: clamp(56px, 8vw, 110px) 0 clamp(70px, 10vw, 130px); }

.page-grid {
  display: grid; grid-template-columns: minmax(200px, 260px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 90px); align-items: start;
}
@media (max-width: 900px) { .page-grid { grid-template-columns: 1fr; } }

.toc { position: sticky; top: 110px; }
.toc__title {
  margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--ink-dim);
}
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 12px; padding: 8px 0;
  border-bottom: 1px solid var(--line-ink);
  font-size: 14px; font-weight: 500; text-decoration: none; color: var(--ink-dim);
}
.toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--font-pixel); color: var(--orange); }
.toc a:hover { color: var(--ink); }
@media (max-width: 900px) { .toc { position: static; } }

/* Uzun metin */
.prose { max-width: 72ch; font-size: 17px; line-height: 1.75; color: rgba(2, 7, 10, .82); }
.prose > :first-child { margin-top: 0; }
.prose h2 {
  margin: 2.4em 0 .6em; scroll-margin-top: 110px;
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -.02em;
  color: var(--ink);
}
.prose h3 { margin: 1.8em 0 .4em; font-size: 19px; font-weight: 600; color: var(--ink); scroll-margin-top: 110px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose li::marker { color: var(--orange); }
.prose a { color: var(--ink); text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose a:hover { color: var(--orange-hot); }
.prose strong { color: var(--ink); }
.prose hr { border: 0; height: 1px; background: var(--line-ink); margin: 2.4em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; font-size: 15px; }
.prose th, .prose td { padding: 12px 14px; border-bottom: 1px solid var(--line-ink); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; color: var(--ink); background: var(--paper-2); }

/* Dikkat kutusu: mavi = önemli bilgi */
.callout {
  display: grid; grid-template-columns: auto 1fr; gap: 14px;
  margin: 0 0 1.6em; padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: rgba(2, 151, 222, .08); border: 1px solid rgba(2, 151, 222, .35);
  color: var(--ink);
}
.callout::before { content: ""; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--blue); }
.callout p { margin: 0; }

/* --------------------------------------------------------------------------
   Kartlar
   -------------------------------------------------------------------------- */

.tile {
  position: relative;
  padding: 26px;
  border-radius: var(--radius);
  background: var(--white); color: var(--ink);
  box-shadow: 0 1px 0 rgba(2, 7, 10, .04), 0 20px 50px -30px rgba(2, 7, 10, .35);
}
.tile--ink { background: var(--ink-2); color: var(--white); box-shadow: none; border: 1px solid var(--line); }
.tile--orange { background: var(--orange); color: var(--ink); }
.tile__title { margin: 0 0 8px; font-family: var(--font-display); font-weight: 600; font-size: 20px; letter-spacing: -.02em; }
.tile__text { margin: 0; color: inherit; opacity: .75; }

.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* --------------------------------------------------------------------------
   Form
   -------------------------------------------------------------------------- */

.form { display: grid; gap: 18px; }
.form__row { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.field { display: grid; gap: 8px; }
.field__label { font-size: 14px; font-weight: 600; color: var(--ink); }
.field__hint { font-size: 13px; color: var(--ink-dim); }
.field__input, .field__select, .field__textarea {
  width: 100%; min-height: 50px; padding: 12px 16px;
  border: 1px solid rgba(2, 7, 10, .18); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
  font: inherit; font-size: 16px;
  transition: border-color .2s, box-shadow .2s;
}
.field__textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(2, 151, 222, .18);
}
.field__input[aria-invalid="true"], .field__textarea[aria-invalid="true"], .field__select[aria-invalid="true"] { border-color: var(--red); }
.field__error { font-size: 13px; font-weight: 500; color: #C21B33; }
.form__status { margin: 0; padding: 14px 16px; border-radius: var(--radius-sm); font-weight: 500; }
.form__status--ok { background: rgba(2, 151, 222, .1); color: var(--ink); border: 1px solid rgba(2, 151, 222, .4); }
.form__status--err { background: rgba(232, 38, 63, .08); color: #8E1426; border: 1px solid rgba(232, 38, 63, .35); }

/* --------------------------------------------------------------------------
   Akordeon (details/summary)
   -------------------------------------------------------------------------- */

.accordion { border-top: 1px solid var(--line-ink); }
.accordion details { border-bottom: 1px solid var(--line-ink); }
.accordion summary {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-size: clamp(16px, 1.6vw, 19px); font-weight: 600; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "+"; flex: none; display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-ink);
  font-family: var(--font-body); font-size: 20px; font-weight: 400; line-height: 1;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.accordion details[open] summary::after { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: var(--ink); }
.accordion summary:hover::after { border-color: var(--orange); }
.accordion__body { padding: 0 54px 24px 0; color: rgba(2, 7, 10, .78); line-height: 1.7; }
.accordion__body > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   Alt bilgi
   -------------------------------------------------------------------------- */

.footer {
  position: relative; overflow: hidden;
  padding: clamp(64px, 9vw, 110px) 0 0;
  background: var(--ink); color: var(--white);
  border-top: 1px solid var(--line);
}
.footer__top {
  display: grid; gap: 40px;
  grid-template-columns: minmax(240px, 1.3fr) repeat(3, minmax(140px, 1fr));
}
@media (max-width: 900px) { .footer__top { grid-template-columns: 1fr 1fr; } .footer__about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer__top { grid-template-columns: 1fr; } }

.footer__about p { max-width: 34ch; margin: 18px 0 22px; color: var(--text-dim); font-size: 15px; }
.footer__col h2 {
  margin: 0 0 16px; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mute);
}
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer__col a { font-size: 15px; text-decoration: none; color: var(--text-dim); transition: color .2s; }
.footer__col a:hover { color: var(--orange); }
.footer__col a[aria-current="page"] { color: var(--white); }

.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  margin-top: clamp(48px, 7vw, 80px); padding: 22px 0;
  border-top: 1px solid var(--line);
  font-size: 13px; color: var(--text-mute);
}
.footer__bottom a { text-decoration: none; }
.footer__bottom a:hover { color: var(--white); }

.footer__giant {
  /* 2. görseldeki gibi alttan kesilen dev yazı */
  margin: 0 0 -.2em; padding: 0 var(--pad);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(36px, 10.6vw, 168px); line-height: .9; letter-spacing: -.045em;
  white-space: nowrap; text-align: center;
  background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .95;
  user-select: none;
}

/* --------------------------------------------------------------------------
   Görünme animasyonu (site.js .js sınıfı ekler)
   -------------------------------------------------------------------------- */

.js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { opacity: 1; transform: none; transition: none; }
}
