/* =====================================================================
   SAYBES v8 — Design System
   Dark editorial agency, Clash Display + General Sans, animated
   ===================================================================== */

/* ---------- Fonts (self-hosted — CDN'e bağımlı değil, tutarlı render) ---------- */
@font-face { font-family: "Clash Display"; src: url("/fonts/clash-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("/fonts/clash-display-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("/fonts/clash-display-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Clash Display"; src: url("/fonts/clash-display-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
ul { list-style: none; }
::selection { background: var(--accent); color: #0a0a0d; }

/* ---------- Tokens ---------- */
:root {
  --bg:        #0a0a0d;
  --bg-2:      #101015;
  --ink:       #f4f1ea;
  --muted:     rgba(244, 241, 234, 0.55);
  --faint:     rgba(244, 241, 234, 0.30);
  --line:      rgba(244, 241, 234, 0.12);
  --accent:    #6c4dff;
  --accent-2:  #c8ff5e;
  --cream:     #f2ede3;
  --cream-ink: #14110c;

  --font-display: "General Sans", system-ui, sans-serif;
  --font-body:    "General Sans", system-ui, sans-serif;

  --container: 1360px;
  --gutter: clamp(20px, 5vw, 80px);
  --radius: 18px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Base ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
  font-weight: 400;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(70px, 11vw, 170px); position: relative; }
.section--tight { padding-block: clamp(50px, 7vw, 100px); }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 0.98; letter-spacing: -0.02em; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-size: 12px; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: var(--accent); }

.display-1 { font-size: clamp(46px, 9vw, 148px); }
.display-2 { font-size: clamp(38px, 6.4vw, 104px); }
.display-3 { font-size: clamp(30px, 4.4vw, 68px); }
.stroke { -webkit-text-stroke: 1.4px var(--ink); color: transparent; }
.accent { color: var(--accent); }

.lead { font-size: clamp(18px, 2vw, 24px); line-height: 1.55; color: var(--muted); }

/* ---------- Preloader (A markı → header'a uçar) ---------- */
.pre {
  position: fixed; inset: 0; z-index: 9999; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.pre__mark { width: clamp(84px, 11vw, 138px); height: auto; will-change: transform, opacity; }

/* ---------- Custom cursor ---------- */
.cursor { position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none; mix-blend-mode: difference; will-change: transform; }
.cursor__dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; transform: translate(-50%, -50%); transition: width .3s var(--ease), height .3s var(--ease); }
.cursor.is-hover .cursor__dot { width: 54px; height: 54px; background: #fff; }
@media (pointer: coarse) { .cursor { display: none; } }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px var(--gutter);
  transition: transform 0.5s var(--ease), background 0.4s, backdrop-filter 0.4s;
  mix-blend-mode: difference;
}
.nav.is-hidden { transform: translateY(-102%); }
.nav--solid { background: rgba(10, 10, 13, .72); -webkit-backdrop-filter: blur(18px) saturate(140%); backdrop-filter: blur(18px) saturate(140%); mix-blend-mode: normal; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.nav__logo { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: -0.01em; color: #fff; }
.nav__logo b { color: var(--accent); }
.nav__menu { display: flex; gap: 34px; align-items: center; }
.nav__link { font-size: 14px; font-weight: 500; color: #fff; position: relative; padding: 4px 0; }
.nav__link::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: #fff; transition: width .35s var(--ease); }
.nav__link:hover::after, .nav__link.is-active::after { width: 100%; }
.nav__right { display: flex; align-items: center; gap: 26px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 500; transition: opacity .25s; }
.nav__phone i { font-size: 17px; opacity: .82; }
.nav__phone:hover { opacity: .65; }
.nav__wa { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-size: 14px; font-weight: 500; transition: opacity .3s; }
.nav__wa i { font-size: 22px; color: #25D366; }
.nav__wa:hover { opacity: .7; }
.checkbox { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 14px; line-height: 1.55; color: var(--muted); }
.checkbox input[type="checkbox"] { flex-shrink: 0; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--accent); cursor: pointer; }
.checkbox a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-underline-offset: 3px; }
.checkbox a:hover { color: var(--accent); }
.nav__lang { display: flex; gap: 7px; font-size: 14px; font-weight: 600; color: #fff; }
.nav__lang a { opacity: .45; transition: opacity .25s; }
.nav__lang a:hover, .nav__lang a.is-active { opacity: 1; }
.nav__lang span { opacity: .3; }
.nav__cta { --pad: 15px 30px; font-size: 14px; }
.nav__globe { display: none; align-items: center; justify-content: center; color: #fff; font-size: 22px;
  cursor: pointer; background: none; border: 0; padding: 6px; transition: opacity .3s; }
.nav__globe:hover { opacity: .6; }
.langpop { position: fixed; top: 70px; right: 20px; z-index: 850; min-width: 160px;
  background: #14141a; border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 6px;
  display: flex; flex-direction: column; gap: 2px; box-shadow: 0 22px 55px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease); }
.langpop.is-open { opacity: 1; transform: none; pointer-events: auto; }
.langpop a { display: flex; align-items: center; justify-content: space-between; padding: 12px 15px; border-radius: 10px;
  font-size: 15px; font-weight: 500; color: rgba(244,241,234,.65); transition: background .2s, color .2s; }
.langpop a:hover { background: rgba(255,255,255,.06); color: #fff; }
.langpop a.is-active { color: #fff; background: rgba(108,77,255,.2); }
.langpop a.is-active::after { content: "✓"; font-size: 13px; color: var(--accent); }
.nav__toggle {
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  width: 46px; height: 46px; padding: 0; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); cursor: pointer;
  transition: background .3s, border-color .3s;
}
.nav__toggle:hover { background: rgba(255,255,255,.13); border-color: rgba(255,255,255,.3); }
.nav__toggle span { display: block; width: 18px; height: 1.7px; background: #fff; border-radius: 2px;
  transition: transform .38s var(--ease), opacity .2s; }
.nav__toggle.is-active span:nth-child(1) { transform: translateY(3.4px) rotate(45deg); }
.nav__toggle.is-active span:nth-child(2) { transform: translateY(-3.4px) rotate(-45deg); }

/* ---- Fullscreen menu overlay ---- */
.menu { position: fixed; inset: 0; z-index: 900; display: flex; flex-direction: column; overflow-y: auto;
  clip-path: ellipse(160% 0% at 50% 0%); pointer-events: none;
  transition: clip-path .82s cubic-bezier(.86,0,.07,1); }
.menu.is-open { clip-path: ellipse(190% 170% at 50% 0%); pointer-events: auto; }
.menu__bg { position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(130% 82% at 50% -8%, rgba(108,77,255,.30), transparent 55%), #08080b; }
.menu__close { position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.15);
  transition: transform .45s var(--ease), border-color .3s; }
.menu__close::before, .menu__close::after { content: ""; position: absolute; width: 20px; height: 1.7px;
  background: #fff; border-radius: 2px; }
.menu__close::before { transform: rotate(45deg); }
.menu__close::after { transform: rotate(-45deg); }
.menu__close:hover { transform: translateX(-50%) rotate(90deg); border-color: var(--accent); }
.menu__nav { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: safe center;
  gap: clamp(2px, .5vw, 7px); padding: clamp(64px, 8vh, 84px) 20px 18px; }
.menu__link { font-family: var(--font-display); font-weight: 500; font-size: clamp(24px, 3.4vw, 42px);
  line-height: 1.14; letter-spacing: -.02em; color: rgba(244,241,234,.5); position: relative;
  opacity: 0; transform: translateY(42px);
  transition: color .3s, opacity .5s ease, transform .65s cubic-bezier(.2,.85,.25,1); }
.menu.is-open .menu__link { opacity: 1; transform: none; }
.menu__link:hover { color: #f4f1ea; }
.menu.is-open .menu__link:nth-child(1) { transition-delay: .22s; }
.menu.is-open .menu__link:nth-child(2) { transition-delay: .28s; }
.menu.is-open .menu__link:nth-child(3) { transition-delay: .34s; }
.menu.is-open .menu__link:nth-child(4) { transition-delay: .40s; }
.menu.is-open .menu__link:nth-child(5) { transition-delay: .46s; }
.menu.is-open .menu__link:nth-child(6) { transition-delay: .52s; }
.menu.is-open .menu__link:nth-child(7) { transition-delay: .58s; }
.menu.is-open .menu__link:nth-child(8) { transition-delay: .64s; }
.menu__foot { padding: 0 20px 42px; display: flex; flex-direction: column; align-items: center; gap: 16px;
  opacity: 0; transform: translateY(20px); transition: opacity .5s ease, transform .5s ease; }
.menu.is-open .menu__foot { opacity: 1; transform: none; transition-delay: .6s; }
.menu__socials { display: flex; gap: 14px; }
.menu__socials a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); color: rgba(244,241,234,.6); font-size: 18px;
  transition: color .3s, border-color .3s, background .3s, transform .3s; }
.menu__socials a:hover { color: #fff; border-color: var(--accent); background: rgba(108,77,255,.16); transform: translateY(-3px); }
.menu__socials a.is-wa { color: #25D366; border-color: rgba(37, 211, 102, .35); }
.menu__socials a.is-wa:hover { color: #fff; background: rgba(37, 211, 102, .18); border-color: #25D366; }
.menu__mail { font-size: 14px; color: rgba(244,241,234,.5); letter-spacing: .02em; transition: color .3s; }
.menu__mail:hover { color: #f4f1ea; }
body.menu-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
  .menu { transition-duration: .35s; }
  .menu__link { transition: opacity .3s ease; transform: none; }
}

/* ---------- Buttons ---------- */
.btn {
  --pad: 18px 30px;
  display: inline-flex; align-items: center; gap: 12px;
  padding: var(--pad); border-radius: 100px;
  font-family: var(--font-body); font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  transition: transform .3s var(--ease), background .3s, color .3s, border-color .3s;
  will-change: transform;
}
.btn__label { position: relative; }
.btn--solid { background: var(--ink); color: var(--bg); }
.btn--solid:hover { background: var(--accent); color: #fff; }
.btn--ghost { border: 1px solid var(--line); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.btn__arrow { transition: transform .3s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(4px); }

/* ---------- Reveal base ---------- */
[data-reveal] { will-change: transform, opacity; }
/* Animasyon öncesi içerik görünüp sonra "yeniden girmesin" (FOUC).
   Sadece JS varken gizlenir; JS kapalıysa her şey normal görünür. */
.js [data-reveal],
.js [data-split],
.js [data-stagger] > * { opacity: 0; }
.line-mask { overflow: hidden; display: block; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding-block: 140px 60px; }
.hero__grain { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: 0; pointer-events: none; opacity: .5;
  background:
    radial-gradient(50% 50% at 72% 22%, rgba(108,77,255,.18), transparent 70%),
    radial-gradient(45% 45% at 10% 88%, rgba(200,255,94,.05), transparent 70%);
}
.hero__inner { position: relative; z-index: 2; }
.hero__title { margin: 26px 0 0; }
.hero__title .row { display: block; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-end; justify-content: space-between; margin-top: 48px; }
.hero__lead { max-width: 460px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__scroll { position: absolute; bottom: 34px; right: var(--gutter); z-index: 2; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.hero__scroll .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: bob 1.6s var(--ease) infinite; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--line); padding-block: 26px; white-space: nowrap; }
.marquee__track { display: inline-flex; gap: 0; will-change: transform; }
.marquee__item { display: inline-flex; align-items: center; font-family: var(--font-display); font-size: clamp(22px, 3vw, 42px); font-weight: 500; letter-spacing: -0.01em; padding-inline: 34px; }
.marquee__item .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); margin-left: 34px; }
.marquee--reverse .marquee__item { color: var(--faint); -webkit-text-stroke: 1px var(--faint); color: transparent; }

/* ---------- Manifesto ---------- */
.manifesto__text { font-family: var(--font-display); font-weight: 500; font-size: clamp(26px, 4vw, 60px); line-height: 1.12; letter-spacing: -0.02em; max-width: 20ch; }
.manifesto__text .word { display: inline-block; }
.manifesto__grid { display: grid; grid-template-columns: 1fr; gap: 60px; }
.manifesto__aside { align-self: end; max-width: 380px; }

/* ---------- Services (hover-image list) ---------- */
.svc { position: relative; }
.svc__list { border-top: 1px solid var(--line); }
.svc__row {
  display: grid; grid-template-columns: 90px 1fr auto; align-items: center; gap: 28px;
  padding: clamp(24px, 3vw, 46px) 0; border-bottom: 1px solid var(--line);
  position: relative; transition: color .4s var(--ease);
}
.svc__row::before { content: ""; position: absolute; left: -100vw; right: -100vw; top: 0; bottom: 0; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .5s var(--ease); z-index: -1; }
.svc__row:hover { color: var(--bg); }
.svc__row:hover::before { transform: scaleY(1); transform-origin: top; }
.svc__num { font-family: var(--font-display); font-size: 15px; color: var(--faint); }
.svc__row:hover .svc__num { color: rgba(10,10,13,.5); }
.svc__name { font-family: var(--font-display); font-size: clamp(28px, 4.4vw, 66px); font-weight: 600; letter-spacing: -0.02em; }
.svc__tags { font-size: 13px; color: var(--muted); text-align: right; max-width: 260px; }
.svc__row:hover .svc__tags { color: rgba(10,10,13,.6); }
.svc__float { position: fixed; top: 0; left: 0; width: 300px; height: 220px; border-radius: 14px; overflow: hidden; pointer-events: none; z-index: 500; opacity: 0; transform: translate(-50%, -50%) scale(.8); transition: opacity .35s var(--ease), transform .35s var(--ease); }
.svc__float img { width: 100%; height: 100%; object-fit: cover; }
.svc__float.is-visible { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.svc__thumb { display: none; } /* sadece mobil kart görünümünde açılır */

/* ---------- Showreel ---------- */
.reel { position: relative; }
.reel__frame { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.reel__frame video { width: 100%; height: 100%; object-fit: cover; }
.reel__tag { position: absolute; top: 20px; left: 20px; z-index: 2; font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.35); backdrop-filter: blur(8px); padding: 8px 14px; border-radius: 100px; }

/* ---------- Work (cream) ---------- */
.work { background: var(--cream); color: var(--cream-ink); border-radius: 34px; }
.work .eyebrow { color: rgba(20,17,12,.55); }
.work .eyebrow::before { background: var(--accent); }
.work__head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(40px, 6vw, 80px); }
.work__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 56px); }
.work__card { display: block; }
.work__card:nth-child(even) { margin-top: clamp(0px, 8vw, 90px); }
.work__media { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; background: #dcd5c7; }
.work__media .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: clamp(28px,4vw,56px); font-weight: 600; color: rgba(20,17,12,.14); }
.work__media img { position: absolute; inset: 0; width: 100%; height: 112%; object-fit: cover; will-change: transform; }
.work__card:hover .work__media img { transform: scale(1.04); }
.work__card .work__media { transition: transform .5s var(--ease); }
.work__meta { display: flex; justify-content: space-between; align-items: baseline; margin-top: 22px; gap: 16px; }
.work__title { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 34px); font-weight: 600; }
.work__cat { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: rgba(20,17,12,.5); white-space: nowrap; }
.work__arrow { font-size: 22px; }

/* ---------- Products ---------- */
.prods__head { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: flex-end; margin-bottom: clamp(40px, 6vw, 72px); }
.prods__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prod {
  display: flex; flex-direction: column; padding: 26px; min-height: 300px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2);
  transition: border-color .35s, transform .35s var(--ease), background .35s;
}
.prod:hover { border-color: rgba(108,77,255,.5); transform: translateY(-4px); background: #14141b; }
.prod__icon { width: 62px; height: 62px; border-radius: 15px; object-fit: cover; box-shadow: 0 12px 30px rgba(0,0,0,.45); }
.prod__cat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-top: 22px; }
.prod__name { font-family: var(--font-display); font-size: 24px; font-weight: 600; margin-top: 8px; }
.prod__desc { font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.55; }
.prod__stores { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 20px; }
.prod__store { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; color: var(--muted); transition: color .25s; }
.prod__store i { font-size: 15px; }
a.prod__store:hover { color: var(--ink); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; border-block: 1px solid var(--line); padding-block: clamp(40px, 5vw, 70px); }
.stat__num { font-family: var(--font-display); font-size: clamp(48px, 7vw, 100px); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.stat__num .accent { color: var(--accent); }
.stat__label { font-size: 14px; color: var(--muted); margin-top: 14px; }

/* ---------- Process ---------- */
.proc__grid { display: grid; grid-template-columns: 1fr; }
.proc__row { display: grid; grid-template-columns: 120px 1fr; gap: 28px; padding: clamp(28px,3.4vw,50px) 0; border-top: 1px solid var(--line); align-items: start; }
.proc__row:last-child { border-bottom: 1px solid var(--line); }
.proc__step { font-family: var(--font-display); font-size: 15px; color: var(--accent); }
.proc__t { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); font-weight: 600; }
.proc__d { color: var(--muted); max-width: 640px; margin-top: 14px; }

/* ---------- CTA ---------- */
.cta { text-align: center; }
.cta__big { font-family: var(--font-display); font-size: clamp(44px, 9vw, 150px); font-weight: 600; letter-spacing: -0.03em; line-height: 0.98; }
.cta__mail { display: inline-block; margin-top: 40px; font-size: clamp(18px, 2.4vw, 30px); border-bottom: 1px solid var(--line); padding-bottom: 8px; transition: border-color .3s, color .3s; }
.cta__mail:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding-block: 60px 40px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.footer__logo { font-family: var(--font-display); font-size: clamp(40px, 8vw, 120px); font-weight: 600; line-height: .9; }
.footer__logo b { color: var(--accent); }
.footer__col h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 18px; font-family: var(--font-body); font-weight: 600; }
.footer__col a { display: block; color: var(--muted); padding: 6px 0; transition: color .25s; }
.footer__col a:hover { color: var(--ink); }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; margin-top: 60px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; color: var(--faint); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .work__grid, .prods__grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .work__card:nth-child(even) { margin-top: 0; }
}
/* ---- Homepage blog cards ---- */
.posts__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 44px; }
.post-card { display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; transition: transform .4s var(--ease), border-color .3s; }
.post-card:hover { transform: translateY(-6px); border-color: rgba(108, 77, 255, .4); }
.post-card__media { aspect-ratio: 16 / 10; overflow: hidden; background: #08080b; position: relative; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__media .ph { position: absolute; inset: 0; display: grid; place-items: center; color: var(--faint); font-family: var(--font-display); font-size: 19px; text-align: center; padding: 20px; }
.post-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-card__meta { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.post-card__title { font-family: var(--font-display); font-weight: 600; font-size: 21px; line-height: 1.25; letter-spacing: -.01em; color: var(--ink); }
.post-card__excerpt { margin-top: 12px; font-size: 15px; line-height: 1.6; color: var(--muted); flex: 1; }
.post-card__more { margin-top: 18px; font-size: 14px; font-weight: 500; color: var(--ink); transition: color .3s; }
.post-card:hover .post-card__more { color: var(--accent); }

/* ---- Blog: share + article meta ---- */
.share { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 46px 0 6px; padding-top: 30px; border-top: 1px solid var(--line); }
.share__label { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-right: 4px; }
.share a, .share button { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); color: var(--muted); background: none; font-size: 19px; cursor: pointer; transition: color .3s, border-color .3s, background .3s, transform .3s; }
.share a:hover, .share button:hover { color: #fff; border-color: var(--accent); background: rgba(108, 77, 255, .16); transform: translateY(-3px); }
.article-meta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 14px; }
.article-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--faint); }
.article-meta strong { color: var(--ink); font-weight: 600; }

/* ---- References: logo wall (beyaz kartlar, gerçek marka renkleri) ---- */
.logos__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-top: 52px; }
.logo-tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; padding: 24px;
  background: #fff; border-radius: 18px; box-shadow: 0 12px 30px rgba(0, 0, 0, .28);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease); }
.logo-tile:hover { transform: translateY(-6px); box-shadow: 0 20px 48px rgba(108, 77, 255, .3); }
.logo-tile img { height: 58px; width: auto; max-width: 100%; object-fit: contain; }
.logo-tile__mark { font-family: var(--font-display); font-size: 16px; line-height: 1.3; color: #5b5b66; text-align: center; }

@media (max-width: 1200px) { .logos__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 900px) { .logos__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) { .posts__grid { grid-template-columns: repeat(2, 1fr); } }

@media (max-width: 720px) {
  body { font-size: 16px; }
  .posts__grid { grid-template-columns: 1fr; }
  .logos__grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .logo-tile { padding: 18px; border-radius: 14px; }
  .logo-tile img { height: 44px; }
  .nav { padding-block: 15px; }
  .nav__right { gap: 14px; }
  .nav__phone { display: none; }
  .nav__wa { display: none; }   /* mobilde yer yok — WhatsApp tam ekran menüde */
  .nav__lang { display: none; }
  .nav__globe { display: inline-flex; }
  .nav__cta { --pad: 12px 20px; font-size: 12px; }
  .nav__toggle { width: 42px; height: 42px; }
  .hero__meta { flex-direction: column; align-items: flex-start; gap: 28px; }
  /* Hizmetler — mobilde thumbnail'lı kartlar (hero coverflow'dan farklı, statik & bilgilendirici) */
  .svc__list { border-top: 0; display: grid; gap: 12px; }
  .svc__row {
    grid-template-columns: 84px 1fr;
    grid-template-areas: "thumb name" "thumb tags";
    column-gap: 15px; row-gap: 3px; align-items: center;
    padding: 12px; border: 1px solid rgba(244,241,234,.1); border-radius: 16px;
    background: rgba(244,241,234,.035);
  }
  .svc__row::before { display: none; }
  .svc__row:hover { color: var(--ink); }
  .svc__thumb {
    display: block; grid-area: thumb; align-self: stretch; min-height: 80px;
    border-radius: 11px; background-color: #16161f; background-size: cover; background-position: center;
    border: 1px solid rgba(244,241,234,.08);
  }
  .svc__row--noimg .svc__thumb { background-image: radial-gradient(120% 90% at 20% 8%, rgba(120,87,255,.42), transparent 60%), linear-gradient(150deg, #1b1a2e, #0d0d14); }
  .svc__num { display: none; }
  .svc__name { grid-area: name; align-self: end; font-size: clamp(19px, 5.4vw, 25px); line-height: 1.06; }
  .svc__tags { grid-area: tags; align-self: start; display: block; text-align: left; font-size: 12px; line-height: 1.45; max-width: none; color: var(--muted); }
  .work__grid, .prods__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 28px; }
  .proc__row { grid-template-columns: 1fr; gap: 10px; }
  .footer__grid { grid-template-columns: 1fr; gap: 40px; }
  .manifesto__text { max-width: none; }
  .svc__float { display: none; }
}

/* =====================================================================
   INNER PAGES
   ===================================================================== */
.page-hero { padding-block: clamp(150px, 20vh, 260px) clamp(50px, 7vw, 90px); position: relative; }
.page-hero__grain { position: absolute; top: 0; bottom: 0; left: 50%; width: 100vw; transform: translateX(-50%); z-index: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(40% 60% at 74% 12%, rgba(108,77,255,.16), transparent 70%); }
.page-hero__inner { position: relative; z-index: 2; }
.page-hero__title { margin-top: 22px; }
.page-hero__lead { max-width: 620px; margin-top: 30px; }
.page-hero__crumb { font-size: 13px; color: var(--faint); }
.page-hero__crumb a:hover { color: var(--ink); }

/* Rich two-col text */
.rich { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(30px, 6vw, 90px); align-items: start; }
.rich__label { font-family: var(--font-display); font-size: clamp(24px, 3vw, 40px); font-weight: 600; }
.rich__body p { font-size: clamp(17px, 1.5vw, 21px); line-height: 1.7; color: var(--muted); margin-bottom: 22px; }
.rich__body p strong { color: var(--ink); font-weight: 500; }

/* Values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.value { border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; transition: border-color .3s, background .3s; }
.value:hover { border-color: rgba(108,77,255,.4); background: var(--bg-2); }
.value__i { font-size: 26px; color: var(--accent); }
.value__t { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 20px 0 10px; }
.value__d { color: var(--muted); font-size: 15px; line-height: 1.6; }

/* Team */
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.member__photo { aspect-ratio: 3/4; border-radius: var(--radius); background: var(--bg-2); overflow: hidden; display: flex; align-items: flex-end; justify-content: center; }
.member__ph { font-family: var(--font-display); font-size: 90px; font-weight: 600; color: rgba(244,241,234,.08); }
.member__n { font-family: var(--font-display); font-size: 20px; font-weight: 600; margin-top: 16px; }
.member__r { color: var(--muted); font-size: 14px; }

/* Service detail rows (accordion-like open list) */
.svc-detail { border-top: 1px solid var(--line); }
.svc-detail__item { border-bottom: 1px solid var(--line); padding: clamp(30px,4vw,60px) 0; display: grid; grid-template-columns: 90px 1.1fr 1fr; gap: 30px; align-items: start; }
.svc-detail__num { font-family: var(--font-display); color: var(--accent); font-size: 16px; }
.svc-detail__name { font-family: var(--font-display); font-size: clamp(26px,3.4vw,46px); font-weight: 600; letter-spacing: -0.02em; }
.svc-detail__d { color: var(--muted); font-size: 16px; line-height: 1.7; }
.svc-detail__tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.svc-detail__tags span { font-size: 12px; border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; color: var(--muted); }

/* Work index grid (bigger) */
.work-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 4vw, 60px); }
.work-index .work__card:nth-child(even) { margin-top: clamp(0px, 7vw, 80px); }
.work-index .work__media { aspect-ratio: 16/11; background: var(--bg-2); }
.work-index .work__media .ph { color: rgba(244,241,234,.08); }
.work-index .work__title { color: var(--ink); }
.work-index .work__cat { color: var(--muted); }

/* Contact */
.contact__grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.field { margin-bottom: 22px; }
.field label { display: block; font-size: 13px; letter-spacing: .04em; color: var(--muted); margin-bottom: 10px; }
.field input, .field textarea { width: 100%; background: transparent; border: none; border-bottom: 1px solid var(--line); color: var(--ink); font-family: var(--font-body); font-size: 17px; padding: 12px 0; transition: border-color .3s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { resize: vertical; min-height: 120px; }
/* iletişim formu geri bildirim */
.form-note { padding: 12px 16px; border-radius: 12px; font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.form-note--ok { background: rgba(61,220,132,.1); color: #7fe6ab; border: 1px solid rgba(61,220,132,.28); }
.form-note--err { background: rgba(255,95,102,.1); color: #ff9ba0; border: 1px solid rgba(255,95,102,.28); }
.form-status { font-size: 14px; line-height: 1.5; opacity: 0; transform: translateY(4px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.form-status.is-visible { opacity: 1; transform: none; margin-top: 16px; }
.form-status.is-ok { color: #7fe6ab; }
.form-status.is-err { color: #ff9ba0; }
.contact__form button[disabled] { opacity: .6; pointer-events: none; }
.info-block { margin-bottom: 34px; }
.info-block h5 { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; font-weight: 600; }
.info-block a, .info-block p { font-family: var(--font-display); font-size: clamp(20px, 2.2vw, 28px); font-weight: 500; }
.info-block a:hover { color: var(--accent); }

@media (max-width: 900px) {
  .rich, .contact__grid { grid-template-columns: 1fr; gap: 34px; }
  .values, .team { grid-template-columns: 1fr; }
  .svc-detail__item { grid-template-columns: 1fr; gap: 14px; }
  .work-index { grid-template-columns: 1fr; }
  .work-index .work__card:nth-child(even) { margin-top: 0; }
}

/* Service list rows as links */
a.svc-detail__item { cursor: pointer; }
a.svc-detail__item:hover .svc-detail__name { color: var(--accent); }
.svc-detail__go { display: block; margin-top: 14px; color: var(--accent); font-size: 14px; font-weight: 500; opacity: 0; transform: translateX(-6px); transition: opacity .35s var(--ease), transform .35s var(--ease); }
a.svc-detail__item:hover .svc-detail__go { opacity: 1; transform: translateX(0); }

/* ═══ HERO — iki kolon + animasyonlu hizmetler ═══ */
.hero__inner {
  width: 100%; max-width: 1680px; margin-inline: auto; padding-inline: var(--gutter);
  display: grid; grid-template-columns: 1.05fr 0.9fr; gap: clamp(40px, 5vw, 84px);
  align-items: center; position: relative; z-index: 2;
}
.hero__copy { max-width: 760px; }
.hero__title { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; font-size: clamp(38px, 4.3vw, 82px); margin: 24px 0 0; text-transform: none; }
.hero__title .row { display: block; }
.hero__lead { max-width: 500px; margin: 28px 0 0; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }

.hero__services { position: relative; }
/* --- Hizmet akışı: sinematik 3B coverflow --- */
.flow { position: relative; }
.flow__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.flow__head .eyebrow { margin: 0; }
.flow__count { font-family: var(--font-display); font-weight: 600; font-size: 14px; letter-spacing: .05em; color: var(--faint); }
.flow__count b { color: var(--accent); font-size: 17px; }

.flow__stage {
  position: relative; height: clamp(240px, 32vh, 330px); perspective: 1500px; margin: 6px 0 20px;
  overflow: hidden;
  -webkit-mask: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
  mask: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent);
}
.flow__stage::after {
  content: ""; position: absolute; left: 50%; bottom: 16px; width: 44%; height: 26px; transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(0,0,0,.55), transparent 70%); filter: blur(6px); pointer-events: none; z-index: 0;
}
.flow__track { position: absolute; inset: 0; transform-style: preserve-3d; }
.flow__card {
  position: absolute; left: 50%; top: 50%; width: clamp(215px, 27vw, 320px); aspect-ratio: 4 / 3;
  border-radius: 16px; overflow: hidden; display: block; text-decoration: none;
  background: var(--cover, none) center / cover no-repeat, #14141b;
  border: 1px solid rgba(244,241,234,.14);
  box-shadow: 0 34px 66px -30px rgba(0,0,0,.85);
  transform:
    translate(-50%, -50%)
    translateX(calc(var(--off, 0) * 52%))
    translateZ(calc(var(--offAbs, 0) * -145px))
    rotateY(calc(var(--off, 0) * -32deg))
    scale(var(--scale, 1));
  transition: transform .62s var(--ease), opacity .62s var(--ease), box-shadow .4s;
  will-change: transform, opacity; cursor: pointer;
}
.flow__card.is-active { box-shadow: 0 44px 80px -28px rgba(120,87,255,.5), 0 34px 66px -30px rgba(0,0,0,.85); border-color: rgba(120,87,255,.55); }
.flow__card--empty {
  background:
    radial-gradient(120% 90% at 22% 8%, rgba(120,87,255,.4), transparent 62%),
    linear-gradient(150deg, #1b1a2e, #0d0d14);
}
.flow__no {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(56px, 8vw, 96px);
  color: rgba(244,241,234,.16); letter-spacing: -.04em;
}
.flow__shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.06) 0%, transparent 26%, transparent 66%, rgba(8,8,12,.5) 100%); }

.flow__meta { position: relative; z-index: 2; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.flow__name { font-family: var(--font-display); font-weight: 600; font-size: clamp(24px, 2.4vw, 38px); letter-spacing: -.03em; line-height: 1.02; color: var(--ink); }
.flow__desc { margin-top: 9px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.flow__nav { display: flex; gap: 10px; flex: none; }
.flow__btn {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(244,241,234,.2);
  background: transparent; color: var(--ink); font-size: 17px; cursor: pointer; line-height: 1;
  transition: background .3s var(--ease), border-color .3s, transform .3s, color .3s;
}
.flow__btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; transform: translateY(-2px); }
@keyframes spotFill { from { width: 0 } to { width: 100% } }

@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: 30px; max-width: none; }
  .hero__title { font-size: clamp(38px, 9vw, 66px); }
  .hero__copy { max-width: none; }
  /* Hizmet akışı — mobilde tek kart, kaydırmalı (3B yerine düz geçiş) */
  .flow__stage { height: clamp(208px, 62vw, 320px); perspective: none; margin: 4px 0 16px;
    -webkit-mask: none; mask: none; }
  .flow__stage::after { display: none; }
  .flow__card {
    width: min(84%, 400px);
    transform: translate(-50%, -50%) translateX(calc(var(--off, 0) * 118%));
    box-shadow: 0 22px 44px -22px rgba(0,0,0,.75);
  }
  .flow__name { font-size: clamp(23px, 6.2vw, 34px); }
  .flow__meta { gap: 14px; }
}

/* ═══ İŞ DETAY — case study ═══ */
.work-cover { border-radius: var(--radius); overflow: hidden; margin-top: 10px; }
.work-cover img { width: 100%; height: auto; max-height: 660px; object-fit: cover; display: block; }
.case { display: grid; grid-template-columns: 1.55fr 0.75fr; gap: clamp(40px, 6vw, 92px); align-items: start; }
.case__body > p { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.8; color: var(--muted); margin-bottom: 22px; }
.case__body > p:first-child { color: var(--ink); font-size: clamp(20px, 1.8vw, 26px); line-height: 1.6; }
.case__h { font-family: var(--font-display); font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; margin: 44px 0 6px; }
.case__list { border-top: 1px solid var(--line); margin-top: 22px; }
.case__list li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink); font-size: 16px; }
.case__list li i { color: var(--accent); font-size: 20px; line-height: 1.3; flex-shrink: 0; }
.case__meta { border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; position: sticky; top: 100px; background: var(--bg-2); }
.case__meta dl { margin: 0; }
.case__meta dt { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.case__meta dd { font-family: var(--font-display); font-size: 19px; font-weight: 500; margin: 0 0 22px; }
.case__meta .btn { margin-top: 6px; }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 40px; }
  .case__meta { position: static; }
}

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

/* ═══ Marka logosu (nav lockup: A'sız wordmark + gap'e oturan A + ışık) ═══ */
.logo-lockup { position: relative; display: inline-block; line-height: 0; }
.logo-word { height: 46px; width: auto; display: block; }
.logo-a { position: absolute; left: 14.72%; top: 0%; width: 19.68%; line-height: 0; }
.logo-a__img { width: 100%; height: auto; display: block; }
.logo-a__shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url("/images/saybes-word-a.png") center / contain no-repeat;
  mask: url("/images/saybes-word-a.png") center / contain no-repeat;
  background: #7857ff;
  opacity: 0;
}
/* Yerine oturunca (body.loaded) A yavaşça MOR renge dönüp geri döner — pürüzsüz nabız */
.loaded .logo-a__shine { animation: aPulse 4s ease-in-out 1.3s infinite; }
@keyframes aPulse {
  0%, 100% { opacity: 0; }    /* A'nın kendi rengi (krem) */
  42%, 58% { opacity: 1; }    /* yavaşça tam mor, kısa bekle, yavaşça geri */
}
.footer__logo-img { width: clamp(220px, 26vw, 360px); height: auto; display: block; }
@media (max-width: 720px) { .logo-word { height: 34px; } }
@media (max-width: 900px) { .nav__wa span { display: none; } }
@media (max-width: 430px) {
  .logo-word { height: 32px; }
  .nav__right { gap: 12px; }
  .nav__cta { --pad: 11px 17px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .logo-a__shine { animation: none; } }

/* ============ Saybes AI Asistan ============ */
.ai { position: fixed; right: clamp(16px, 3vw, 30px); bottom: clamp(16px, 3vw, 30px); z-index: 700; }
.ai__orb { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0;
  background: radial-gradient(circle at 34% 30%, #cdbcff, var(--accent) 70%);
  box-shadow: 0 0 0 0 rgba(108,77,255,.55); animation: aiPulse 2.4s ease-in-out infinite; }
.ai__orb--sm { width: 11px; height: 11px; }
@keyframes aiPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(108,77,255,.5); } 50% { box-shadow: 0 0 0 8px rgba(108,77,255,0); } }
.ai__launcher { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px 12px 15px; border-radius: 100px;
  background: rgba(18,16,26,.72); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,.14); color: #fff; font-family: var(--font-body); font-size: 14px; font-weight: 500;
  cursor: pointer; box-shadow: 0 16px 44px rgba(0,0,0,.42); transition: transform .3s var(--ease), border-color .3s, background .3s; }
.ai__launcher:hover { transform: translateY(-3px); border-color: rgba(108,77,255,.55); background: rgba(28,23,44,.85); }
.ai__launcher-txt b { color: #b7a4ff; font-weight: 600; margin-left: 3px; }
.ai.is-open .ai__launcher { opacity: 0; transform: scale(.6); pointer-events: none; }

.ai__panel { position: absolute; right: 0; bottom: 0;
  width: min(384px, calc(100vw - 32px)); height: min(580px, calc(100vh - 96px));
  display: flex; flex-direction: column; overflow: hidden;
  background: rgba(13,12,19,.94); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  border: 1px solid rgba(255,255,255,.12); border-radius: 22px; box-shadow: 0 30px 80px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(24px) scale(.96); transform-origin: bottom right; pointer-events: none;
  transition: opacity .4s var(--ease), transform .45s var(--ease); }
.ai.is-open .ai__panel { opacity: 1; transform: none; pointer-events: auto; }
.ai__head { display: flex; align-items: center; justify-content: space-between; padding: 17px 16px 14px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.ai__head-l { display: flex; align-items: center; gap: 11px; }
.ai__title { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: #fff; line-height: 1.1; }
.ai__status { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
.ai__close { width: 30px; height: 30px; border-radius: 50%; color: var(--muted); font-size: 14px; display: grid; place-items: center; transition: background .2s, color .2s; }
.ai__close:hover { background: rgba(255,255,255,.08); color: #fff; }
.ai__body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 11px; }
.ai__msg { max-width: 88%; padding: 11px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.ai__msg--bot { align-self: flex-start; background: rgba(255,255,255,.06); color: #ece9f2; border-bottom-left-radius: 5px; }
.ai__msg--me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 5px; }
.ai__typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 14px 15px; background: rgba(255,255,255,.06); border-radius: 16px; border-bottom-left-radius: 5px; }
.ai__typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: aiDot 1.2s infinite; }
.ai__typing span:nth-child(2) { animation-delay: .18s; } .ai__typing span:nth-child(3) { animation-delay: .36s; }
@keyframes aiDot { 0%,60%,100% { opacity: .3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.ai__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 18px 12px; }
.ai__chips button { font-size: 12.5px; padding: 7px 12px; border-radius: 100px; border: 1px solid rgba(255,255,255,.14); color: var(--muted); transition: color .2s, border-color .2s, background .2s; }
.ai__chips button:hover { color: #fff; border-color: var(--accent); background: rgba(108,77,255,.14); }
.ai__input { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid rgba(255,255,255,.08); }
.ai__input input { flex: 1; min-width: 0; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: 100px; padding: 11px 16px; color: #fff; font-family: var(--font-body); font-size: 14px; transition: border-color .2s; }
.ai__input input::placeholder { color: rgba(244,241,234,.4); }
.ai__input input:focus { outline: none; border-color: var(--accent); }
.ai__send { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 18px; line-height: 1; display: grid; place-items: center; transition: transform .2s, opacity .2s; }
.ai__send:hover { transform: scale(1.07); }
.ai__send:disabled { opacity: .5; transform: none; cursor: default; }
@media (max-width: 480px) { .ai__panel { height: calc(100dvh - 84px); width: calc(100vw - 24px); } }
