/* Dortonbir — site styles (AtBiStory kurumsal kimlik V07 paleti) */
:root {
  /* Koyu tonlar */
  --lacivert: #11132A;   /* başlıklar, önemli alanlar */
  --gece: #0B0C1D;       /* en koyu zemin: hero, koyu bölümler, altbilgi */
  --murekkep: #25244A;   /* gövde metni */
  /* Açık tonlar */
  --gri: #545A7A;        /* ikincil metin */
  --cizgi: #E1E3F0;      /* kenarlık */
  --zemin: #F7F8FC;      /* sayfa arka planı */
  --beyaz: #FFFFFF;      /* kart yüzeyi */
  --sis: #F4F5FB;        /* etiket zemini */
  /* Aksiyon ve vurgu */
  --aksiyon: #5160F7;
  --aksiyon-koyu: #3B47D9;
  --mor: #8750F5;
  /* Marka şeridi — her zaman soldan sağa, sekiz durak */
  --ribbon: linear-gradient(90deg, #0863FA, #5160F7, #8750F5, #B93BEC, #E72CE6, #F83AAE, #FC6B73, #FF9400);

  --r-sm: 6px;
  --r-btn: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(17, 19, 42, .04), 0 6px 18px rgba(17, 19, 42, .05);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 40px);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Manrope", "Inter", system-ui, sans-serif;
  --top-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font);
  color: var(--murekkep);
  background: var(--zemin);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--aksiyon); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--aksiyon-koyu); text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 .55em; color: var(--lacivert); }
h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.015em; }
p { margin: 0 0 1em; }
strong { color: var(--lacivert); font-weight: 600; }
code { font-size: .9em; background: var(--sis); padding: .1em .35em; border-radius: var(--r-sm); }
:focus-visible { outline: 2px solid var(--mor); outline-offset: 3px; border-radius: 4px; }

/* ---------- şerit bandı ---------- */
.ribbon-band { position: fixed; inset: 0 0 auto 0; height: calc(4px + env(safe-area-inset-top, 0px)); background: var(--ribbon); z-index: 60; }

/* ---------- üst bar ---------- */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  padding-top: calc(4px + env(safe-area-inset-top, 0px));
  background: rgba(255, 255, 255, .985);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.topbar.is-scrolled, .topbar.is-open { border-bottom-color: var(--cizgi); box-shadow: 0 4px 18px rgba(17, 19, 42, .04); }
.topbar__inner {
  max-width: var(--max); margin: 0 auto; height: var(--top-h);
  padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none !important; }
.brand__icon { width: 34px; height: 34px; flex: none; }
.brand__icon text { font: 800 12.5px var(--display); fill: var(--lacivert); letter-spacing: -.02em; }
.brand__name {
  font: 800 1.45rem/1 var(--display); letter-spacing: -.03em;
  background: var(--ribbon); -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: 3px;
}
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--murekkep); font-size: .94rem; font-weight: 500; text-decoration: none; }
.nav a:hover { color: var(--aksiyon); text-decoration: none; }
.topbar__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: var(--sis); border: 1px solid var(--cizgi); border-radius: var(--r-btn); padding: 3px; }
.lang button {
  border: 0; background: transparent; color: var(--gri); cursor: pointer;
  font: 600 .78rem/1 var(--font); letter-spacing: .06em; padding: 7px 11px; border-radius: 7px;
  transition: background .2s var(--ease), color .2s var(--ease);
}
.lang button[aria-pressed="true"] { background: var(--beyaz); color: var(--lacivert); box-shadow: 0 1px 2px rgba(17, 19, 42, .08); }
.menu-btn { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; position: relative; }
.menu-btn span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: var(--lacivert); transition: transform .25s var(--ease); }
.menu-btn span:first-child { top: 15px; }
.menu-btn span:last-child { top: 23px; }
.is-open .menu-btn span:first-child { transform: translateY(4px) rotate(45deg); }
.is-open .menu-btn span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- bölümler ---------- */
.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.section__inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.section__intro { max-width: 700px; margin-bottom: 44px; }
.section__intro p { color: var(--gri); font-size: 1.08rem; }
.section h2 + p { color: var(--gri); }

/* bölüm etiketi: yanında kısa şerit çizgisi */
.section h6 {
  display: flex; align-items: center; gap: 12px;
  font: 600 .78rem/1 var(--font); letter-spacing: .14em; text-transform: uppercase;
  color: var(--gri); margin: 0 0 18px;
}
.section h6::before { content: ""; width: 36px; height: 4px; border-radius: 4px; background: var(--ribbon); flex: none; }

/* büyük başlıkta tek vurgulu kelime */
h1 em, h2 em { font-style: normal; background: var(--ribbon); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .04em; }

.reveal { opacity: 0; transform: translateY(16px); transition: opacity .36s var(--ease), transform .36s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- butonlar ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--r-btn);
  font: 600 .96rem/1.2 var(--font); text-decoration: none !important;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .14s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--aksiyon); color: #fff !important; }
.btn--primary:hover { background: var(--aksiyon-koyu); }
.btn--ghost { color: var(--lacivert) !important; border: 1px solid var(--cizgi); background: var(--beyaz); }
.btn--ghost:hover { border-color: var(--aksiyon); color: var(--aksiyon) !important; }

/* ---------- koyu bölüm ortakları (gece zemin) ---------- */
.section--steps, .section--cta, .section--footer { background: var(--gece); color: rgba(255, 255, 255, .78); }
.section--steps h2, .section--steps h3,
.section--cta h2, .section--steps strong, .section--footer strong { color: #fff; }
.section--steps h6, .section--cta h6 { color: rgba(255, 255, 255, .7); }
.section--cta .btn--ghost { background: transparent; color: #fff !important; border-color: rgba(255, 255, 255, .28); }
.section--cta .btn--ghost:hover { border-color: #fff; }

/* çapraz şerit çubukları (kapak motifi) */
.hero__stripes { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.hero__stripes span {
  position: absolute; right: -8%; height: 26px; border-radius: 26px; background: var(--ribbon);
  transform: rotate(-15deg); transform-origin: right center; opacity: .95;
}
.hero__stripes span:nth-child(1) { width: 62%; top: 50%; }
.hero__stripes span:nth-child(2) { width: 54%; top: calc(50% + 46px); }
.hero__stripes span:nth-child(3) { width: 46%; top: calc(50% + 92px); }

/* silk şerit (WebGL) */
.silk { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
.has-silk .hero__stripes { display: none; }
@media (max-width: 860px) { .has-silk .silk { opacity: .4 !important; } }

/* ---------- hero (açık zemin + sağda silk şerit, AtBiStory ana sayfası gibi) ---------- */
.section--hero {
  min-height: min(100svh, 820px); display: flex; align-items: center; overflow: hidden;
  background: var(--zemin); color: var(--murekkep); border-bottom: 1px solid var(--cizgi);
  padding-top: calc(var(--top-h) + 80px + env(safe-area-inset-top, 0px));
}
.hero__silk { position: absolute; inset: 0; overflow: hidden; pointer-events: none; opacity: .3; }
.hero__silk img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: right bottom; user-select: none; }
.hero__silk .silk { opacity: 0; transition: opacity .7s var(--ease); }
@media (min-width: 1024px) {
  .hero__silk {
    inset: 0 0 0 auto; width: 66%; opacity: 1;
    -webkit-mask-image: linear-gradient(to right, transparent, #000 30%);
    mask-image: linear-gradient(to right, transparent, #000 30%);
  }
}
.hero__bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .25; }
.section--hero .section__inner { z-index: 1; width: 100%; }
.section--hero h1 { max-width: 13ch; color: var(--lacivert); }
.section--hero p { color: var(--gri); font-size: clamp(1.05rem, 1.5vw, 1.22rem); max-width: 50ch; }
.section--hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--lacivert); padding: 8px 14px; border: 1px solid var(--cizgi); border-radius: 999px; margin-bottom: 28px;
  background: var(--beyaz);
}
.section--hero .eyebrow::before { content: ""; width: 22px; height: 4px; border-radius: 4px; background: var(--ribbon); }

/* ---------- split ---------- */
.section--split { background: var(--beyaz); }
.section--split .section__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split__media { margin: 0; }
.split__media img { width: 100%; aspect-ratio: 4 / 3.5; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--cizgi); }
.split__text p { color: var(--gri); }
.split__text ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.split__text li { position: relative; padding-left: 34px; }
.split__text li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 22px; height: 22px; border-radius: var(--r-sm);
  background: var(--sis); border: 1px solid var(--cizgi);
}
.split__text li::after {
  content: ""; position: absolute; left: 8px; top: calc(.22em + 5px); width: 5px; height: 10px;
  border: solid var(--aksiyon); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

/* ---------- kartlar ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.card {
  background: var(--beyaz); border: 1px solid var(--cizgi); border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card__media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--sis); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .36s var(--ease); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 24px 24px 26px; }
.card__body p { color: var(--gri); font-size: .96rem; margin-bottom: .6em; }
.card__body ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.card__body li { font-size: .78rem; font-weight: 500; color: var(--murekkep); background: var(--sis); border: 1px solid var(--cizgi); padding: 4px 10px; border-radius: var(--r-sm); }
/* görselsiz kart (değerler) */
.card--plain .card__body { padding: 28px 26px 30px; }
.card--plain .card__body::before { content: ""; display: block; width: 36px; height: 4px; border-radius: 4px; background: var(--ribbon); margin-bottom: 22px; }
#degerler .cards, #values .cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* ---------- süreç ---------- */
.section--steps .section__inner > p { color: rgba(255, 255, 255, .7); max-width: 660px; }
.steps { list-style: none; counter-reset: s; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.steps li {
  counter-increment: s; position: relative; padding: 28px 24px; border-radius: var(--r-lg);
  background: var(--lacivert); border: 1px solid rgba(255, 255, 255, .08); font-size: .95rem; color: rgba(255, 255, 255, .72);
}
.steps li::before {
  content: "0" counter(s); display: block; font: 800 1.6rem/1 var(--display); color: #fff; letter-spacing: -.02em;
  padding-bottom: 14px; margin-bottom: 18px;
  background: var(--ribbon) left bottom / 36px 4px no-repeat;
}
.steps strong { display: block; font: 700 1.15rem/1.3 var(--display); margin-bottom: 8px; }

/* ---------- teknolojiler ---------- */
.section--logos { padding-block: 80px; background: var(--beyaz); border-top: 1px solid var(--cizgi); border-bottom: 1px solid var(--cizgi); }
.section--logos .section__inner > p { text-align: center; color: var(--gri); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; }
.logos { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; }
.logos li { font: 700 .98rem/1 var(--display); color: var(--lacivert); padding: 12px 18px; border: 1px solid var(--cizgi); border-radius: var(--r-btn); background: var(--zemin); }

/* ---------- çağrı ---------- */
.section--cta { overflow: hidden; }
.section--cta .hero__stripes span { opacity: .35; }
.section--cta .section__inner { z-index: 1; max-width: 860px; }
.section--cta p, .section--cta h2 + p { color: rgba(255, 255, 255, .78); font-size: 1.1rem; max-width: 60ch; }

/* ---------- iletişim ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.contact-item { padding: 28px; border: 1px solid var(--cizgi); border-radius: var(--r-lg); background: var(--beyaz); }
.contact-item h3 { font: 600 .78rem/1 var(--font); letter-spacing: .12em; text-transform: uppercase; color: var(--gri); margin-bottom: 16px; }
.contact-item p { margin: 0 0 .3em; color: var(--lacivert); font-weight: 500; overflow-wrap: anywhere; }

/* ---------- altbilgi ---------- */
.section--footer { padding-block: 56px calc(40px + env(safe-area-inset-bottom, 0px)); font-size: .92rem; }
.section--footer .section__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; align-items: center; }
.section--footer p { margin: 0; color: rgba(255, 255, 255, .7); }
.section--footer p strong { font: 800 1.3rem/1 var(--display); letter-spacing: -.03em; margin-right: 14px; }
.section--footer a { color: #fff; }
.section--footer ul { list-style: none; display: flex; flex-wrap: wrap; gap: 22px; margin: 0; padding: 0; }

/* ---------- yükleniyor / hata ---------- */
.loading { min-height: 70vh; display: grid; place-items: center; text-align: center; color: var(--gri); padding: 140px var(--gutter) 40px; }

/* ---------- duyarlı ---------- */
@media (max-width: 980px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .section--split .section__inner { grid-template-columns: 1fr; }
  .split__media { order: -1; }
  .contact-grid { grid-template-columns: 1fr 1fr; }
  .hero__stripes span { height: 18px; }
  .hero__stripes span:nth-child(1) { top: 72%; }
  .hero__stripes span:nth-child(2) { top: calc(72% + 32px); }
  .hero__stripes span:nth-child(3) { top: calc(72% + 64px); }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .topbar__actions { margin-left: auto; }
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; gap: 0; margin: 0;
    background: var(--beyaz); border-bottom: 1px solid var(--cizgi); padding: 6px var(--gutter) 18px; display: none;
  }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--cizgi); font-size: 1.02rem; }
  .is-open .nav { display: flex; }
}
@media (max-width: 600px) {
  .brand__name { display: none; } /* dar ekranda yalnız simge */
  .steps, .contact-grid { grid-template-columns: 1fr; }
  .hero__stripes span { opacity: .55; height: 14px; }
  .hero__stripes span:nth-child(1) { top: 86%; }
  .hero__stripes span:nth-child(2) { top: calc(86% + 26px); }
  .hero__stripes span:nth-child(3) { top: calc(86% + 52px); }
  .section--footer .section__inner { flex-direction: column; align-items: flex-start; }
}
