/* ==========================================================================
   sesyalitim.com — Temel katman: fontlar, tokenlar, sıfırlama, tipografi
   ========================================================================== */

/* ---------- Fontlar (yerel, variable) ---------- */
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/manrope-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/manrope-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: 'Sora'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/sora-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-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Sora'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url('/assets/fonts/sora-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;
}

/* ---------- Tokenlar ---------- */
:root {
  /* Kırmızı ölçek */
  --r-50:  #fff1f2;
  --r-100: #ffe0e2;
  --r-200: #ffc5c9;
  --r-300: #ff9ba3;
  --r-400: #ff6070;
  --r-500: #f8283c;
  --r-600: #e01120;   /* ana */
  --r-700: #bd0b19;
  --r-800: #9a0d18;
  --r-900: #7a0f18;
  --r-950: #430509;

  /* Nötrler */
  --ink-950: #08080c;
  --ink-900: #0e0e14;
  --ink-850: #14141c;
  --ink-800: #1c1c26;
  --ink-700: #2a2a37;
  --ink-600: #3d3d4d;
  --ink-500: #5c5c6e;
  --ink-400: #82828f;
  --ink-300: #a9a9b4;
  --ink-200: #cfcfd6;
  --ink-100: #e6e6ea;
  --ink-50:  #f4f4f6;
  --paper:   #ffffff;

  /* Anlamsal */
  --bg:        var(--paper);
  --bg-soft:   var(--ink-50);
  --fg:        var(--ink-900);
  --fg-muted:  var(--ink-500);
  --fg-faint:  var(--ink-400);
  --line:      var(--ink-100);
  --line-soft: #eeeef1;
  --brand:     var(--r-600);
  --brand-ink: var(--r-800);
  --brand-lit: var(--r-500);

  --ok:   #15803d;
  --warn: #b45309;
  --info: #1d4ed8;

  /* Tipografi */
  --font-display: 'Sora', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', 'Segoe UI', system-ui, -apple-system, sans-serif;

  --fs-xs:   0.75rem;
  --fs-sm:   0.8125rem;
  --fs-base: 0.9375rem;
  --fs-md:   1rem;
  --fs-lg:   1.125rem;
  --fs-xl:   clamp(1.15rem, 0.5vw + 1rem, 1.35rem);
  --fs-h4:   clamp(1.15rem, 0.7vw + 1rem, 1.45rem);
  --fs-h3:   clamp(1.35rem, 1.1vw + 1rem, 1.85rem);
  --fs-h2:   clamp(1.7rem, 2vw + 1rem, 2.75rem);
  --fs-h1:   clamp(2.1rem, 3.6vw + 1rem, 4.15rem);
  --fs-mega: clamp(2.6rem, 6.2vw + 0.5rem, 6.5rem);

  /* Aralık */
  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;
  --section-y: clamp(56px, 7vw, 112px);

  /* Biçim */
  --rad-xs: 4px;
  --rad-sm: 8px;
  --rad:    14px;
  --rad-lg: 22px;
  --rad-xl: 32px;
  --rad-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(10,10,18,.06);
  --shadow-sm: 0 2px 6px rgba(10,10,18,.06), 0 1px 2px rgba(10,10,18,.04);
  --shadow:    0 8px 24px -8px rgba(10,10,18,.14), 0 2px 6px rgba(10,10,18,.05);
  --shadow-lg: 0 24px 60px -18px rgba(10,10,18,.24), 0 6px 16px rgba(10,10,18,.06);
  --shadow-red:0 18px 44px -14px rgba(224,17,32,.45);

  /* Hareket */
  --ease:      cubic-bezier(.22,.61,.36,1);
  --ease-out:  cubic-bezier(.16,1,.3,1);
  --ease-in:   cubic-bezier(.5,0,.75,0);
  --ease-back: cubic-bezier(.34,1.56,.64,1);
  --dur-1: .16s;
  --dur-2: .28s;
  --dur-3: .5s;
  --dur-4: .85s;

  --container: 1240px;
  --container-wide: 1440px;
  --header-h: 82px;
  --z-header: 900;
  --z-drawer: 1000;
  --z-modal: 1100;
  --z-top: 1200;
}

/* ---------- Sıfırlama ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -moz-tab-size: 4; tab-size: 4;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'kern' 1, 'liga' 1, 'calt' 1;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; }

img, svg, video, canvas { display: block; max-width: 100%; }
img, video { height: auto; }
svg { flex-shrink: 0; }

input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.022em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }

p { text-wrap: pretty; }
ul, ol { padding-left: 1.15em; }

hr { border: 0; border-top: 1px solid var(--line); }

::selection { background: var(--r-600); color: #fff; }

:focus-visible {
  outline: 2px solid var(--r-600);
  outline-offset: 3px;
  border-radius: var(--rad-xs);
}
:where(a, button, input, select, textarea):focus:not(:focus-visible) { outline: none; }

/* Kaydırma çubuğu */
@supports selector(::-webkit-scrollbar) {
  ::-webkit-scrollbar { width: 11px; height: 11px; }
  ::-webkit-scrollbar-track { background: var(--ink-50); }
  ::-webkit-scrollbar-thumb {
    background: var(--ink-200); border-radius: 99px;
    border: 3px solid var(--ink-50);
  }
  ::-webkit-scrollbar-thumb:hover { background: var(--ink-300); }
}

/* ---------- Yerleşim yardımcıları ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 32px);
}
.container--wide { max-width: var(--container-wide); }
.container--narrow { max-width: 820px; }

.section { padding-block: var(--section-y); position: relative; }
.section--tight { padding-block: clamp(40px, 5vw, 72px); }
.section--soft { background: var(--bg-soft); }
.section--dark { background: var(--ink-950); color: #fff; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }

.grid { display: grid; gap: var(--sp-5); }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-auto { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (max-width: 1024px) { .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); } .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 680px)  { .g-2, .g-3 { grid-template-columns: 1fr; } .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; } }
@media (max-width: 360px)  { .g-4 { grid-template-columns: 1fr; } }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); } .gap-3 { gap: var(--sp-3); }
.gap-4 { gap: var(--sp-4); } .gap-5 { gap: var(--sp-5); }
.wrap { flex-wrap: wrap; }

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-4 { margin-top: var(--sp-4); } .mt-5 { margin-top: var(--sp-5); }
.mt-6 { margin-top: var(--sp-6); } .mt-7 { margin-top: var(--sp-7); }
.mb-4 { margin-bottom: var(--sp-4); } .mb-5 { margin-bottom: var(--sp-5); }
.hidden { display: none !important; }

.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;
}

.muted { color: var(--fg-muted); }
.small { font-size: var(--fs-sm); }
.mono { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum' 1; }

/* ---------- Yüzey dokuları ---------- */
.grain::before {
  content: '';
  position: absolute; inset: 0;
  pointer-events: none;
  opacity: .5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.42'/%3E%3C/svg%3E");
}

.glow {
  position: absolute; border-radius: 50%;
  filter: blur(70px);
  pointer-events: none;
  background: radial-gradient(circle, rgba(224,17,32,.55), transparent 68%);
}

/* ---------- Bölüm başlıkları ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-display);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--brand);
}
.eyebrow::before {
  content: ''; width: 26px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--r-600), rgba(224,17,32,.15));
}
.section--dark .eyebrow { color: var(--r-400); }
.section--dark .eyebrow::before { background: linear-gradient(90deg, var(--r-500), rgba(255,96,112,.15)); }

.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 56px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-head h2 { margin-top: 14px; }
.sec-head p { margin-top: 14px; color: var(--fg-muted); font-size: var(--fs-lg); }
.section--dark .sec-head p { color: var(--ink-300); }

.sec-head--split {
  max-width: none; display: flex; align-items: flex-end;
  justify-content: space-between; gap: var(--sp-6);
}
.sec-head--split > div:first-child { max-width: 680px; }
@media (max-width: 780px) { .sec-head--split { flex-direction: column; align-items: flex-start; } }

/* Vurgulu kelime */
.hl { position: relative; display: inline-block; color: var(--brand); }
.hl::after {
  content: ''; position: absolute; left: -2px; right: -2px; bottom: .08em; height: .26em;
  background: linear-gradient(90deg, rgba(224,17,32,.2), rgba(224,17,32,.05));
  border-radius: 3px; z-index: -1;
  transform: scaleX(0); transform-origin: left;
  animation: hlIn .7s var(--ease-out) .3s forwards;
}
@keyframes hlIn { to { transform: scaleX(1); } }
.section--dark .hl { color: var(--r-400); }

.stroke-text {
  -webkit-text-stroke: 1.4px currentColor;
  color: transparent;
  opacity: .28;
}

/* ---------- Animasyon anahtar kareleri ---------- */
@keyframes fadeUp   { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeIn   { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeLeft { from { opacity: 0; transform: translate3d(-28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes fadeRight{ from { opacity: 0; transform: translate3d(28px, 0, 0); } to { opacity: 1; transform: none; } }
@keyframes zoomIn   { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes floaty   { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes spinSlow { to { transform: rotate(360deg); } }
@keyframes pulseRing{ 0% { transform: scale(.85); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes marquee  { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes shimmer  { 100% { transform: translateX(220%); } }
@keyframes barGrow  { from { transform: scaleY(.15); } }
@keyframes dashFlow { to { stroke-dashoffset: -420; } }

/* Kaydırma ile ortaya çıkış */
[data-reveal] {
  opacity: 0;
  will-change: transform, opacity;
}
[data-reveal].in {
  animation: fadeUp var(--dur-4) var(--ease-out) forwards;
  animation-delay: var(--d, 0ms);
}
[data-reveal='left'].in  { animation-name: fadeLeft; }
[data-reveal='right'].in { animation-name: fadeRight; }
[data-reveal='zoom'].in  { animation-name: zoomIn; }
[data-reveal='fade'].in  { animation-name: fadeIn; }

/* Harf harf başlık */
.split-line { display: block; overflow: hidden; }
.split-line > span {
  display: inline-block;
  transform: translateY(105%);
  transition: transform .95s var(--ease-out);
  transition-delay: var(--d, 0ms);
}
.in .split-line > span, .split-line.in > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; animation: none !important; }
  .split-line > span { transform: none !important; }
  .hl::after { transform: scaleX(1); animation: none; }
}
