/* AsistanX — Modern Enterprise SaaS, light-default with dark variant */
:root {
  /* Light theme (default) */
  --bg: #fafbfc;
  --bg-1: #ffffff;
  --bg-2: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f4f6f8;
  --line: #e8ecef;
  --line-2: #dde3e8;
  --text: #0f1418;
  --text-2: #4b5560;
  --text-3: #8a949c;
  --accent: oklch(0.58 0.22 25);      /* AsistanX kırmızısı, light-mode için biraz koyulaştırıldı */
  --accent-2: oklch(0.52 0.22 25);
  --accent-soft: oklch(0.58 0.22 25 / 0.10);
  --warn: oklch(0.65 0.18 70);
  --rose: oklch(0.58 0.22 25);
  --violet: oklch(0.55 0.18 290);
  --blue: oklch(0.55 0.16 240);
  --green: oklch(0.58 0.18 158);

  --radius: 14px;
  --radius-sm: 10px;
  --radius-lg: 22px;

  --shadow-sm: 0 1px 2px rgba(15, 20, 24, 0.04), 0 0 0 1px rgba(15, 20, 24, 0.02);
  --shadow-md: 0 1px 2px rgba(15, 20, 24, 0.04), 0 12px 30px -10px rgba(15, 20, 24, 0.12);
  --shadow-glow: 0 0 0 1px color-mix(in oklab, var(--accent) 25%, transparent), 0 18px 40px -16px color-mix(in oklab, var(--accent) 30%, transparent);

  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-display: 'Inter Tight', 'Inter', ui-sans-serif, system-ui, sans-serif;

  --grid-line: rgba(15, 20, 24, 0.05);
}

/* Dark theme — explicit choice */
[data-theme="dark"] {
  --bg: #07090b;
  --bg-1: #0b0f12;
  --bg-2: #0f1418;
  --surface: #11161b;
  --surface-2: #161c22;
  --line: #1c242b;
  --line-2: #232c34;
  --text: #e7edf2;
  --text-2: #aab4bd;
  --text-3: #6f7a83;
  --accent: oklch(0.65 0.24 25);
  --accent-2: oklch(0.72 0.22 25);
  --accent-soft: oklch(0.65 0.24 25 / 0.14);
  --warn: oklch(0.78 0.16 70);
  --rose: oklch(0.65 0.24 25);
  --violet: oklch(0.72 0.14 290);
  --blue: oklch(0.74 0.13 240);
  --green: oklch(0.74 0.17 158);
  --shadow-sm: 0 1px 0 rgba(255,255,255,0.03) inset, 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 30px -10px rgba(0,0,0,0.6);
  --shadow-glow: 0 0 0 1px color-mix(in oklab, var(--accent) 30%, transparent), 0 18px 40px -16px color-mix(in oklab, var(--accent) 40%, transparent);
  --grid-line: rgba(255, 255, 255, 0.025);
}

/* System preference dark — only when user hasn't explicitly chosen */
@media (prefers-color-scheme: dark) {
  [data-theme="system"] {
    --bg: #07090b;
    --bg-1: #0b0f12;
    --bg-2: #0f1418;
    --surface: #11161b;
    --surface-2: #161c22;
    --line: #1c242b;
    --line-2: #232c34;
    --text: #e7edf2;
    --text-2: #aab4bd;
    --text-3: #6f7a83;
    --accent: oklch(0.65 0.24 25);
    --accent-2: oklch(0.72 0.22 25);
    --accent-soft: oklch(0.65 0.24 25 / 0.14);
    --shadow-sm: 0 1px 0 rgba(255,255,255,0.03) inset, 0 1px 2px rgba(0,0,0,0.4);
    --shadow-md: 0 1px 0 rgba(255,255,255,0.04) inset, 0 12px 30px -10px rgba(0,0,0,0.6);
    --grid-line: rgba(255, 255, 255, 0.025);
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.005em;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* Background grid */
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1200px 600px at 50% -200px, color-mix(in oklab, var(--accent) 18%, transparent), transparent 60%),
    radial-gradient(800px 400px at 90% 10%, color-mix(in oklab, var(--blue) 8%, transparent), transparent 60%),
    var(--bg);
}
.app-bg::after {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 0%, black 0%, transparent 70%);
}

/* Layout */
.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.container-tight { max-width: 980px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklab, var(--bg) 75%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; gap: 24px;
  height: 60px;
}
.nav-links { display: flex; gap: 4px; align-items: center; }
.nav-links a {
  padding: 8px 12px; border-radius: 8px; font-size: 13.5px; color: var(--text-2);
  transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-links a.active { color: var(--text); }
.nav-cta { margin-left: auto; display: flex; gap: 8px; align-items: center; }

/* ============ Mobile responsive nav ============ */
/* Hamburger butonu — desktop'ta gizli, mobil'de sağda */
.nav-burger {
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 7px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.nav-burger:hover { background: var(--surface); }
.nav-burger:active { transform: translateY(1px); }
.nav-burger svg { display: block; }

/* Mobile-only linkler — desktop'ta gizli, mobil'de hamburger menüsünde görünür */
.nav-mobile-only { display: none; }
.nav-mobile-cta { color: var(--accent) !important; font-weight: 600; }

@media (max-width: 900px) {
  /* Hamburger görünür */
  .nav-burger { display: inline-flex; }

  /* nav-cta: theme toggle hep görünür ama Destek/Demo butonları mobilde gizli
     (mobile linkleri zaten nav-links içindeki nav-mobile-only'lere taşındı) */
  .nav-cta { gap: 4px; }
  .nav-cta > a { display: none; }

  /* Theme toggle biraz kompaktlaştır */
  .theme-toggle { padding: 2px; }
  .theme-toggle button { padding: 4px 6px; }

  /* nav-links: hamburger açıldığında slide-down panel */
  .nav-links {
    position: fixed;
    top: 60px;       /* nav yüksekliği */
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-1);
    border-bottom: 1px solid var(--line);
    padding: 14px 24px 18px;
    gap: 4px;
    box-shadow: var(--shadow-md);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
    z-index: 49;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav-links a {
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 14.5px;
    color: var(--text);
    width: 100%;
    box-sizing: border-box;
  }
  .nav-links a.active {
    background: var(--surface-2);
    color: var(--text);
    font-weight: 500;
  }

  /* Mobile-only linkler görünsün */
  .nav-mobile-only {
    display: block;
    border-top: 1px solid var(--line);
    margin-top: 6px;
    padding-top: 14px !important;
  }
  .nav-mobile-only + .nav-mobile-only {
    border-top: none;
    margin-top: 0;
    padding-top: 12px !important;
  }
  .nav-mobile-cta {
    background: var(--accent);
    color: #fff !important;
    font-weight: 600;
    text-align: center;
    margin-top: 8px;
    border-top: none !important;
    padding-top: 12px !important;
  }

  /* Container padding hafif ayarla */
  .nav-inner { gap: 12px; }
}

/* Çok dar ekranlarda (telefon dikey) — logo + theme + hamburger sıkıştır */
@media (max-width: 480px) {
  .nav-cta { gap: 2px; }
  .theme-toggle button { padding: 3px 5px; }
}
/* ============ /Mobile responsive nav ============ */


/* Logo */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-family: var(--font-display); letter-spacing: -0.02em; font-size: 16px; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px;
  background: linear-gradient(135deg, color-mix(in oklab, var(--accent) 90%, white 10%), color-mix(in oklab, var(--accent) 60%, black 40%));
  display: grid; place-items: center; color: #04140d; font-weight: 800;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 40%, transparent), 0 6px 14px -6px color-mix(in oklab, var(--accent) 70%, transparent);
  position: relative; overflow: hidden;
}
.logo-mark svg { width: 18px; height: 18px; }
.logo-x { color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 10px;
  font-size: 13.5px; font-weight: 500;
  border: 1px solid transparent;
  transition: transform 0.08s ease, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 0 0 1px color-mix(in oklab, var(--accent) 50%, transparent), 0 8px 24px -8px color-mix(in oklab, var(--accent) 70%, transparent);
}
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--surface); border-color: var(--line-2); }
.btn-lg { padding: 12px 20px; font-size: 14.5px; border-radius: 12px; }

/* Typography */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 11px; border-radius: 999px;
  font-size: 12px; color: var(--text-2);
  border: 1px solid var(--line-2);
  background: color-mix(in oklab, var(--surface) 80%, transparent);
  font-weight: 500;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 99px; background: var(--accent); box-shadow: 0 0 8px var(--accent); }

h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -0.025em; line-height: 1.08; margin: 0; font-weight: 600; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; letter-spacing: -0.018em; }
h4 { font-size: 16px; }
.lede { color: var(--text-2); font-size: clamp(16px, 1.5vw, 19px); line-height: 1.55; max-width: 64ch; }

.text-accent { color: var(--accent); }
.mono { font-family: var(--font-mono); }

/* Cards */
.card {
  background: linear-gradient(180deg, var(--surface), var(--bg-1));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.card-elev {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

/* Section spacing */
section { padding: 80px 0; position: relative; }
.section-title { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-bottom: 48px; }
.section-title.center { align-items: center; text-align: center; margin-left: auto; margin-right: auto; }

/* Grid utilities */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Footer */
footer.site-footer {
  overflow: clip;          /* lens-ring SVG taşmasını kırp — fantom scroll önle */
  border-top: 1px solid var(--line);
  padding: 60px 0 40px;
  margin-top: 80px;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--accent) 4%, transparent));
}
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h5 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-3); margin: 0 0 14px; font-weight: 600; }
.footer-grid a { display: block; color: var(--text-2); padding: 4px 0; font-size: 13.5px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; color: var(--text-3); font-size: 12.5px; }

/* ============ Footer lens sahnesi (logo + CTA + odak halkası) ============
   asx-lens-stage = logo ile CTA'yı saran wrapper, position:relative —
   böylece içine mutlak pozisyonlu lens halkası koyabiliyoruz.
   Halka NETLEŞME ile senkron: scroll down → 0° → 50° döner, opacity peak
   koyu (focus anı) → settled açık (steady state). Scroll up → 0°'ye geri,
   opacity 0'a iner. Sürekli dönüş YOK. */
.asx-lens-stage {
  position: relative;
}

.asx-lens-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(720px, 78vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;          /* CTA butonlarını engellemez */
  z-index: 2;
  color: var(--text);
  opacity: 0;                    /* default — gizli */
  transition: opacity 0.7s ease;
}

.asx-lens-ring svg {
  width: 100%;
  height: 100%;
  display: block;
  transform-origin: center;
  transform: rotate(0deg);
  transition: transform 0.6s cubic-bezier(.25, .1, .25, 1);
  will-change: transform;
}

/* Forward — netleşme ile senkron: halka 0 → 50° döner, opacity 2 fazlı:
   focus aşamasında peak koyu (~0.30), sonra settled açık (~0.12). */
@keyframes asx-lens-engage-rot {
  0%   { transform: rotate(0deg);  }   /* başlangıç */
  20%  { transform: rotate(30deg); }   /* Faz A: 5 adım ileri */
  34%  { transform: rotate(30deg); }   /* Bekle 1 (0.5s) */
  43%  { transform: rotate(18deg); }   /* Faz B: 2 adım geri (overshoot düzeltme) */
  57%  { transform: rotate(18deg); }   /* Bekle 2 (0.5s) */
  100% { transform: rotate(60deg); }   /* Faz C: sonuna kadar */
}

@keyframes asx-lens-engage-fade {
  0%   { opacity: 0;    }   /* gizli */
  20%  { opacity: 0.30; }   /* Faz A bitti — peak koyu */
  34%  { opacity: 0.30; }   /* Bekle 1 — koyu kalır */
  43%  { opacity: 0.30; }   /* Faz B bitti — hâlâ koyu */
  57%  { opacity: 0.30; }   /* Bekle 2 — koyu */
  100% { opacity: 0.12; }   /* Faz C bitti — settled, açık */
}

body.lens-focusing .asx-lens-ring {
  animation: asx-lens-engage-fade 3.5s cubic-bezier(.4, 0, .2, 1) forwards;
}
body.lens-focusing .asx-lens-ring svg {
  animation: asx-lens-engage-rot 3.5s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Reverse — class kalktığında smooth geri dönüş (rotate 0, opacity 0) */
body:not(.lens-focusing) .asx-lens-ring {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(.25, .1, .25, 1);
}
body:not(.lens-focusing) .asx-lens-ring svg {
  transform: rotate(0deg);
}

@media (prefers-reduced-motion: reduce) {
  .asx-lens-ring svg { animation: none !important; transform: rotate(0deg) !important; }
  body.lens-focusing .asx-lens-ring { animation: none; opacity: 0.12; }
}

@media (max-width: 600px) {
  .asx-lens-ring { width: 88vw; }
}
/* ============ /Lens sahnesi ============ */

/* ============ Footer büyük marka amblemi + lens odaklama efekti ============
   Footer'ın en altında, full-width amblem.
   Kullanıcı sayfanın altına geldiğinde lens manuel ayarlanıyormuş gibi
   logo netlenir, geri kalan içerik flu olur. Yukarı scroll'da geri döner. */
.asx-footer-logo {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  width: 100%;
  pointer-events: none;
}
.asx-footer-logo svg {
  width: 100%;
  max-width: 1100px;
  height: auto;
  display: block;
  opacity: 0.92;
  /* Default — logo flu, lensi henüz odaklanmamış */
  filter: blur(15px);
  transition: filter 0.5s ease, opacity 0.3s;
  will-change: filter;
}
.asx-footer-logo svg .st0,
.asx-footer-logo svg .st1,
.asx-footer-logo svg .st2,
.asx-footer-logo svg .st3 {
  fill: var(--text);
  transition: fill 0.3s;
}
.asx-footer-logo svg .st4 {
  fill: var(--accent);
}

/* Lens odak halkası — body.lens-focusing class'ı IntersectionObserver tarafından eklenir */

/* Pürüzsüz lens-focus — 7 keyframe smooth ama hafif "manuel ayar" overshoot ile */
@keyframes asx-lens-focus {
  0%   { filter: blur(15px); }     /* başlangıç — flu */
  20%  { filter: blur(9px); }      /* Faz A: 5 adım ileri — netlik biraz arttı */
  34%  { filter: blur(9px); }      /* Bekle 1 */
  43%  { filter: blur(11px); }     /* Faz B: 2 adım geri — overshoot düzeltme */
  57%  { filter: blur(11px); }     /* Bekle 2 */
  100% { filter: blur(0); }        /* Faz C: tam net */
}

/* DEPTH OF FIELD — 3 katman blur (odaktan uzaklık arttıkça flu artar)
   Nav (en uzak) → main (orta) → footer-grid/bottom (yakın) → logo (odak) */

/* En uzak — header (14px hedef, portre modu — neredeyse tanınmaz) */
@keyframes asx-defocus-far {
  0%   { filter: blur(0); }
  20%  { filter: blur(5px); }      /* Faz A */
  34%  { filter: blur(5px); }      /* Bekle 1 */
  43%  { filter: blur(4px); }      /* Faz B */
  57%  { filter: blur(4px); }      /* Bekle 2 */
  100% { filter: blur(14px); }     /* Faz C */
}

/* Orta uzaklık — ana içerik (9px hedef, belirgin portre blur) */
@keyframes asx-defocus-mid {
  0%   { filter: blur(0); }
  20%  { filter: blur(3.5px); }    /* Faz A */
  34%  { filter: blur(3.5px); }    /* Bekle 1 */
  43%  { filter: blur(2.5px); }    /* Faz B */
  57%  { filter: blur(2.5px); }    /* Bekle 2 */
  100% { filter: blur(9px); }      /* Faz C */
}

/* Yakın — footer içeriği (4px hedef, okunaklı ama belirgin flu) */
@keyframes asx-defocus-near {
  0%   { filter: blur(0); }
  20%  { filter: blur(1.5px); }    /* Faz A */
  34%  { filter: blur(1.5px); }    /* Bekle 1 */
  43%  { filter: blur(1px); }      /* Faz B */
  57%  { filter: blur(1px); }      /* Bekle 2 */
  100% { filter: blur(4px); }      /* Faz C */
}

/* Logo görünür olunca — pürüzsüz netlenme animasyonu */
body.lens-focusing .asx-footer-logo svg {
  animation: asx-lens-focus 3.5s cubic-bezier(.4, 0, .2, 1) forwards;
}

/* Depth of field katmanları — uzaktan yakına 3 farklı seviye */
body.lens-focusing > nav {
  animation: asx-defocus-far 3.5s cubic-bezier(.4, 0, .2, 1) forwards;
  will-change: filter;
}
body.lens-focusing > main {
  animation: asx-defocus-mid 3.5s cubic-bezier(.4, 0, .2, 1) forwards;
  will-change: filter;
}
body.lens-focusing .site-footer > .container > .footer-grid,
body.lens-focusing .site-footer > .container > .footer-bottom {
  animation: asx-defocus-near 3.5s cubic-bezier(.4, 0, .2, 1) forwards;
  will-change: filter;
}

/* Yukarı scroll — class kalktığında smooth geri dönüş (hepsi 0'a) */
body:not(.lens-focusing) > nav,
body:not(.lens-focusing) > main,
body:not(.lens-focusing) .site-footer > .container > .footer-grid,
body:not(.lens-focusing) .site-footer > .container > .footer-bottom {
  filter: blur(0);
  transition: filter 0.6s cubic-bezier(.25, .1, .25, 1);
}

@media (max-width: 700px) {
  .asx-footer-logo { margin-top: 24px; }
  .asx-footer-logo svg { opacity: 0.85; }
}

/* Erişilebilirlik — kullanıcı reduced-motion tercih ediyorsa animasyonu kapat */
@media (prefers-reduced-motion: reduce) {
  .asx-footer-logo svg { filter: none !important; animation: none !important; }
  body.lens-focusing > nav,
  body.lens-focusing > main,
  body.lens-focusing .site-footer > .container > .footer-grid,
  body.lens-focusing .site-footer > .container > .footer-bottom {
    animation: none !important;
    filter: none !important;
  }
}
/* ============ /Footer logo + lens efekti ============ */

/* ============ Footer manşet CTA bölümü ============
   Logo'nun altında. Lens odaklandığında logodan biraz sonra fade-in olur,
   "ikinci akt" hissi verir. */
.asx-footer-cta {
  text-align: center;
  margin: 28px auto 56px;
  padding: 0 24px;
  max-width: 720px;
  /* default — logo gibi flu, lens henüz odaklanmamış */
  filter: blur(15px);
  opacity: 0.4;
  transition: filter 0.5s ease, opacity 0.5s ease;
  will-change: filter, opacity;
}

.asx-footer-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 16px;
}

.asx-footer-sub {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-2);
  line-height: 1.55;
  margin: 0 auto 28px;
  max-width: 580px;
}
.asx-footer-sub strong { color: var(--text); font-weight: 600; }

.asx-footer-cta-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* Lens odaklandığında — logo netleştikten 0.6s sonra fade-in */
@keyframes asx-cta-reveal {
  0%   { filter: blur(15px); opacity: 0.4;  transform: translateY(8px); }   /* başlangıç — flu */
  20%  { filter: blur(9px);  opacity: 0.65; transform: translateY(5px); }   /* Faz A: 5 adım ileri */
  34%  { filter: blur(9px);  opacity: 0.65; transform: translateY(5px); }   /* Bekle 1 */
  43%  { filter: blur(11px); opacity: 0.55; transform: translateY(6px); }   /* Faz B: 2 adım geri */
  57%  { filter: blur(11px); opacity: 0.55; transform: translateY(6px); }   /* Bekle 2 */
  100% { filter: blur(0);    opacity: 1;    transform: translateY(0); }     /* Faz C: tam net */
}

body.lens-focusing .asx-footer-cta {
  animation: asx-cta-reveal 3.5s cubic-bezier(.4, 0, .2, 1) forwards;
}

@media (prefers-reduced-motion: reduce) {
  .asx-footer-cta { filter: none !important; opacity: 1 !important; animation: none !important; }
}

@media (max-width: 600px) {
  .asx-footer-cta { margin: 20px auto 36px; padding: 0 16px; }
  .asx-footer-headline { font-size: clamp(28px, 8vw, 40px); margin-bottom: 12px; }
  .asx-footer-sub { font-size: 14px; margin-bottom: 20px; }
  .asx-footer-cta-actions { flex-direction: column; gap: 8px; }
  .asx-footer-cta-actions .btn { width: 100%; justify-content: center; }
}
/* ============ /Footer CTA ============ */

@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* Animations */
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@keyframes float-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(8px, -10px); } }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.fade-in { animation: float-up 0.6s ease both; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }

/* Module page specifics */
.module-hero { padding: 60px 0 32px; }
.module-meta { display: flex; gap: 12px; align-items: center; color: var(--text-3); font-size: 13px; margin-bottom: 12px; }
.module-meta .chip { padding: 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); }
.module-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .module-grid { grid-template-columns: 1fr; } }

/* Module index list */
.modules-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: var(--surface);
}
@media (max-width: 700px) { .modules-list { grid-template-columns: 1fr; } }
.module-row {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
  transition: background 0.15s;
  cursor: pointer;
}
.module-row:hover { background: color-mix(in oklab, var(--accent) 5%, transparent); }
.module-row .num { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-3); width: 28px; }
.module-row .body { flex: 1; min-width: 0; }
.module-row .title { font-size: 14.5px; font-weight: 500; color: var(--text); margin-bottom: 2px; }
.module-row .sub { font-size: 12.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.module-row .arrow { color: var(--text-3); transition: transform 0.15s, color 0.15s; }
.module-row:hover .arrow { color: var(--accent); transform: translateX(3px); }

.cat-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 6px;
  font-size: 11px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text-2);
}
.cat-badge .cat-dot { width: 6px; height: 6px; border-radius: 999px; }

/* Category dot colors */
.cat-orders   { background: oklch(0.65 0.24 25); }    /* red */
.cat-stock    { background: oklch(0.74 0.13 240); }   /* blue */
.cat-market   { background: oklch(0.72 0.14 290); }   /* violet */
.cat-finance  { background: oklch(0.78 0.16 70); }    /* amber */
.cat-customer { background: oklch(0.72 0.16 18); }    /* rose */
.cat-system   { background: oklch(0.78 0.04 240); }   /* steel */

/* Code-ish chrome window */
.win {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.win-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
  font-size: 12px; color: var(--text-3);
}
.win-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--line-2); }
.win-bar .url { flex: 1; text-align: center; font-family: var(--font-mono); }

/* ============ Hero grid (anasayfa) ============ */
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
}

/* Yan absolute float etiketleri — mobile'de gizli (telefon mockup ile beraber kalkar) */
.hero-float { display: block; }
@media (max-width: 768px) {
  .hero-float { display: none; }
}

/* ============ Phone mock + WhatsApp UI (rafine) ============ */
.wa-wrap { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.phone {
  width: 280px; aspect-ratio: 9/19; background: #0a0a0a; border: 1px solid #1a1a1a;
  border-radius: 36px; padding: 10px; box-shadow: var(--shadow-md), inset 0 0 0 2px #050505;
  margin: 0 auto;
  position: relative;
}
.phone::before {
  /* çentik (notch) */
  content: ''; position: absolute; top: 14px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 22px; background: #000; border-radius: 99px; z-index: 3;
}
/* Status bar — saat sol, sinyal/wifi/batarya sağ */
.phone-status {
  position: absolute; top: 18px; left: 22px; right: 22px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 10.5px; font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  z-index: 4; pointer-events: none;
}
.phone-status .ps-time { font-feature-settings: "tnum"; letter-spacing: -0.02em; }
.phone-status .ps-icons { display: inline-flex; align-items: center; gap: 5px; }
.phone-status svg { display: block; }

.phone-screen { width: 100%; height: 100%; border-radius: 26px; background: #0b1418; overflow: hidden; position: relative; }

/* WhatsApp ekranı */
.wa {
  height: 100%;
  background: #0b1418;
  display: flex; flex-direction: column;
  font-size: 12px;
}

/* Header — geri ok + avatar + isim/durum + ikonlar */
.wa-header {
  position: relative;
  padding: 38px 12px 8px;
  background: #1f2c34;
  border-bottom: 1px solid #182229;
  display: flex; gap: 8px; align-items: center;
  flex-shrink: 0;
}
.wa-back { color: #00a884; font-size: 22px; line-height: 1; padding-right: 2px; flex-shrink: 0; }
.wa-header .av {
  width: 32px; height: 32px; border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 50%, black));
  display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 11.5px;
  flex-shrink: 0;
}
.wa-meta { flex: 1; min-width: 0; }
.wa-name { color: #e7edf2; font-weight: 500; font-size: 12.5px; }
.wa-presence { color: #8b9da6; font-size: 10.5px; margin-top: 1px; }
.wa-icons { display: inline-flex; align-items: center; gap: 14px; color: #aebac1; flex-shrink: 0; padding-right: 2px; }
.wa-icons svg { display: block; }
.wa-kind {
  position: absolute; top: 38px; right: 12px;
  font-size: 8.5px; color: #7a8a92;
  text-transform: uppercase; letter-spacing: .08em;
  padding: 2px 6px; background: rgba(255, 255, 255, 0.06);
  border-radius: 4px; font-weight: 600;
}

/* Mesajlar — gap arttırıldı (6→11px), padding genişledi */
.wa-msgs {
  flex: 1;
  padding: 14px 10px 10px;
  display: flex; flex-direction: column;
  gap: 11px;
  overflow-y: auto;
  justify-content: flex-end;
  background: #0b1418
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.015) 0, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255,255,255,.01)  0, transparent 50%);
}
.wa-msgs::-webkit-scrollbar { display: none; }

/* Senaryo açıklaması (sub) */
.wa-sub {
  align-self: center;
  font-size: 9.5px; color: #aab4ba;
  text-align: center; padding: 4px 10px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 6px; max-width: 85%;
  margin-bottom: 4px;
}

/* Mesaj baloncukları */
.wa-msg {
  padding: 7px 10px 6px;
  border-radius: 8px;
  max-width: 86%;
  line-height: 1.45; font-size: 11.5px;
  word-wrap: break-word;
  position: relative;
  box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.13);
}
.wa-msg.in  { background: #1f2c34; border-top-left-radius: 3px; align-self: flex-start; color: #e7edf2; }
.wa-msg.out { background: #005c4b; border-top-right-radius: 3px; align-self: flex-end; color: #e7edf2; }
.wa-time {
  font-size: 9.5px; color: rgba(231, 237, 242, 0.55);
  margin-top: 3px; text-align: right; line-height: 1;
}

/* Yazıyor placeholder (...) */
.wa-msg.in.typing {
  background: #1f2c34;
  font-size: 16px;
  letter-spacing: 2px;
  padding: 8px 14px;
  color: #6f7c84;
}

/* Mesaj input alanı (alt) */
.wa-input {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 8px;
  background: #1f2c34;
  border-top: 1px solid #182229;
  flex-shrink: 0;
}
.wa-input-bar {
  flex: 1;
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  background: #2a3942;
  border-radius: 99px;
  font-size: 10.5px;
  color: #6b7882;
}
.wa-input-text { flex: 1; }
.wa-input-mic {
  width: 28px; height: 28px;
  background: #00a884;
  border-radius: 99px;
  display: grid; place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}

/* Scene dotları — telefonun DIŞINDA, altında ortalı */
.wa-dots-out {
  display: flex; justify-content: center; align-items: center; gap: 6px;
  padding: 4px 0;
}
.wa-dots-out button {
  border: none; padding: 0; cursor: pointer;
  background: var(--text-3);
  opacity: 0.4;
  width: 6px; height: 6px;
  border-radius: 99px;
  transition: width 0.3s, opacity 0.3s, background 0.3s;
}
.wa-dots-out button:hover { opacity: 0.7; }
.wa-dots-out button.active {
  width: 22px;
  opacity: 1;
  background: var(--accent);
}
/* ============ Mobile WhatsApp — telefon mockup'ı kaldır, WA UI tam genişlik ============
   Mantık: kullanıcı zaten telefonda, "telefon içinde telefon" tuhaf duruyor +
   sayfa genişliyordu. Bunun yerine WhatsApp arayüzü direkt kart olarak görünür. */
@media (max-width: 768px) {
  .wa-wrap { gap: 10px; width: 100%; }

  /* Telefon çerçevesi düz karta dönüşüyor */
  .phone {
    background: transparent;
    border: 1px solid var(--line-2);
    border-radius: 16px;
    padding: 0;
    box-shadow: var(--shadow-md);
    width: 100%;
    max-width: 100%;
    aspect-ratio: auto;
    margin: 0 auto;
  }
  .phone::before { display: none; }      /* çentik gizli */
  .phone-status { display: none; }       /* status bar gizli (zaten gerçek tel'inde var) */

  .phone-screen {
    border-radius: 16px;
    height: auto;
    min-height: 480px;
  }

  .wa {
    border-radius: 16px;
    height: auto;
    min-height: 480px;
    max-height: 580px;
  }

  /* Header üst padding az (status bar yok artık) */
  .wa-header { padding: 12px 12px 10px; }
  .wa-kind { top: 12px; }

  /* Mesaj listesi mobile'de scroll'lu kompakt */
  .wa-msgs {
    flex: 1;
    max-height: 360px;
    overflow-y: auto;
  }
}

/* ============ /Phone + WhatsApp UI ============ */

/* Misc */
.kbd {
  font-family: var(--font-mono); font-size: 11px;
  padding: 2px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--line-2);
  color: var(--text-2);
}

.divider { height: 1px; background: var(--line); margin: 64px 0; }

/* Stat strip */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}
.stat { padding: 24px 20px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .v { font-family: var(--font-display); font-size: 32px; font-weight: 600; letter-spacing: -0.02em; }
.stat .l { color: var(--text-3); font-size: 12.5px; margin-top: 4px; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr 1fr; } .stat:nth-child(2) { border-right: none; } }

/* Tooltip-ish hover */
.feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.15s, transform 0.15s, background 0.15s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover { border-color: color-mix(in oklab, var(--accent) 40%, var(--line-2)); }
.feature-card .icon-wrap {
  width: 38px; height: 38px; border-radius: 10px;
  display: grid; place-items: center; margin-bottom: 14px;
  background: var(--accent-soft); color: var(--accent);
  border: 1px solid color-mix(in oklab, var(--accent) 22%, transparent);
}
.feature-card h4 { margin: 0 0 6px; font-size: 15px; }
.feature-card p { margin: 0; color: var(--text-2); font-size: 13.5px; line-height: 1.55; }

/* E-ticaret zinciri — FlowDiagram grid */
.flow-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .flow-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 540px) {
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Demo flow nodes */
.flow-node {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 13px;
  display: flex; align-items: center; gap: 10px;
  position: relative;
}
.flow-node .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--accent); flex-shrink: 0; }
.flow-node { transition: all 0.4s ease; }
.flow-node.is-active {
  background: color-mix(in oklab, var(--accent) 10%, var(--surface));
  border-color: color-mix(in oklab, var(--accent) 40%, var(--line-2));
  transform: translateY(-2px);
}
.flow-node-icon { background: var(--surface-2); color: var(--text-2); transition: all 0.4s ease; }
.flow-node.is-active .flow-node-icon { background: var(--accent); color: #fff; }
.flow-arrow { color: var(--text-3); }

/* Dashboard-ish card */
.dash {
  display: grid; grid-template-columns: 240px 1fr; gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
  min-height: 460px;
}
.dash-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px; }
.dash-side .item { padding: 8px 10px; border-radius: 8px; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 10px; cursor: pointer; }
.dash-side .item:hover { background: var(--surface); color: var(--text); }
.dash-side .item.active { background: var(--accent-soft); color: var(--accent); }
.dash-main { padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.dash-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px; }
.dash-card .l { color: var(--text-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; }
.dash-card .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin-top: 4px; }
.dash-card .delta { font-size: 11.5px; margin-top: 4px; }
.dash-card .delta.up { color: var(--green); }
.dash-card .delta.down { color: var(--accent); }

/* Inline ticker */
.ticker { font-family: var(--font-mono); font-size: 12px; color: var(--text-3); }

/* Skeleton bar */
.bar { height: 8px; border-radius: 99px; background: var(--surface-2); position: relative; overflow: hidden; }
.bar::after { content: ''; position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); border-radius: 99px; transition: width 0.6s; }

/* Avoid double anchors causing flicker */
.no-anchor { color: inherit; }

/* Theme-aware logo swap */
[data-theme="dark"] .logo-img-light { display: none !important; }
[data-theme="dark"] .logo-img-dark  { display: block !important; }
@media (prefers-color-scheme: dark) {
  [data-theme="system"] .logo-img-light { display: none !important; }
  [data-theme="system"] .logo-img-dark  { display: block !important; }
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex; align-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 99px;
  padding: 3px;
  gap: 1px;
}
.theme-toggle button {
  width: 28px; height: 24px;
  display: grid; place-items: center;
  background: transparent; border: none;
  color: var(--text-3); border-radius: 99px;
  cursor: pointer; transition: all 0.15s;
  padding: 0;
}
.theme-toggle button:hover { color: var(--text-2); }
.theme-toggle button.active {
  background: var(--surface);
  color: var(--accent);
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}


/* Report Dash — anasayfadaki sipariş raporu simülasyon widget'ı */
.report-dash {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-1);
  min-height: 460px;
}
.rd-side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 12px; }
.rd-side-head { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; padding: 4px 10px 12px; }
.rd-side-item {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 8px;
  font-size: 13px; color: var(--text-2);
  cursor: default; transition: background 0.15s, color 0.15s;
}
.rd-side-item.active { background: var(--surface); color: var(--text); font-weight: 500; }
.rd-main { padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }

.rd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rd-title { font-family: var(--font-display); font-size: 18px; font-weight: 600; letter-spacing: -.015em; }
.rd-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.rd-btn {
  padding: 5px 11px; font-size: 11.5px; border-radius: 7px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2);
  white-space: nowrap;
}
.rd-btn-primary { background: color-mix(in oklab, var(--green) 18%, var(--surface)); color: var(--green); border-color: color-mix(in oklab, var(--green) 35%, var(--line-2)); font-weight: 500; }

.rd-query {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px;
}
.rd-query-icon { color: var(--accent); font-size: 14px; flex-shrink: 0; }
.rd-query-text { flex: 1; font-size: 13px; color: var(--text); font-family: var(--font-mono); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rd-cursor { color: var(--accent); animation: pulse-dot 1s infinite; margin-left: 1px; }
.rd-cursor.hidden { opacity: 0; }
.rd-submit {
  padding: 7px 13px; font-size: 12px; font-weight: 500;
  background: var(--accent); color: #fff; border: none; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 6px;
  cursor: default; flex-shrink: 0;
  transition: filter 0.15s, box-shadow 0.2s;
}
.rd-submit.flash {
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--accent) 30%, transparent);
  filter: brightness(1.1);
}

.rd-applied {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 12px 14px;
  background: color-mix(in oklab, var(--green) 8%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--green) 22%, var(--line-2));
  border-radius: 10px;
  animation: rd-fade-in .35s ease;
}
@keyframes rd-fade-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.rd-applied-check {
  width: 22px; height: 22px; border-radius: 99px;
  background: var(--green); color: #fff;
  display: grid; place-items: center; flex-shrink: 0; margin-top: 1px;
}
.rd-applied-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.rd-applied-desc  { font-size: 12px; color: var(--text-2); }
.rd-applied-confidence { font-size: 11.5px; color: var(--text-3); margin-top: 3px; }

.rd-chips { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.rd-chips-label { font-size: 12px; color: var(--text-3); margin-right: 4px; }
.rd-chip {
  padding: 5px 10px; border-radius: 99px;
  font-size: 11.5px; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line-2);
  white-space: nowrap; transition: all 0.2s;
}
.rd-chip.active {
  background: color-mix(in oklab, var(--accent) 14%, transparent);
  color: var(--accent);
  border-color: color-mix(in oklab, var(--accent) 40%, transparent);
  font-weight: 500;
}

.rd-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.rd-stat {
  padding: 12px 10px; text-align: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  transition: transform 0.2s, border-color 0.2s;
}
.rd-stat.bumping { transform: translateY(-2px); border-color: color-mix(in oklab, var(--accent) 30%, var(--line-2)); }
.rd-stat-v { font-family: var(--font-display); font-size: 18px; font-weight: 600; color: var(--text); letter-spacing: -.015em; }
.rd-stat-v.muted { color: var(--text-3); font-weight: 400; }
.rd-stat-l { font-size: 10.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .05em; margin-top: 4px; font-weight: 500; }

@media (max-width: 800px) {
  .report-dash { grid-template-columns: 1fr; }
  .rd-side { display: none; }
  .rd-stats { grid-template-columns: repeat(2, 1fr); }
  .rd-actions { display: none; }
}

/* Modules filter pills — JSX state-driven inline style'ın CSS karşılığı */
.cat-pill { cursor: pointer; transition: all 0.15s; font-family: inherit; }
.cat-pill:hover { background: var(--surface-2); }
.cat-pill[data-mf-cat="all"] { background: var(--surface); color: var(--text-2); border: 1px solid var(--line-2); }
.cat-pill[data-mf-cat="all"].active { background: var(--accent); color: #fff; border-color: var(--accent); }
.cat-pill:not([data-mf-cat="all"]) { background: var(--surface); color: var(--text-2); border: 1px solid var(--line); }
.cat-pill:not([data-mf-cat="all"]).active { background: var(--surface-2); color: var(--text); border-color: var(--line-2); }

/* ============ Cookie consent banner — responsive ============ */
.cookie-banner {
  position: fixed;
  bottom: 16px; left: 16px; right: 16px;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  box-shadow: var(--shadow-md);
  padding: 16px 20px;
  max-width: 960px;
  margin: 0 auto;
  transform: translateY(calc(100% + 24px));
  opacity: 0;
  transition: transform .35s cubic-bezier(.2,.7,.2,1), opacity .35s;
  box-sizing: border-box;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; }
.cookie-banner[hidden] { display: none !important; }

.cookie-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
}
.cookie-text strong {
  display: block;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 4px;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.cookie-text p {
  margin: 0;
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}
.cookie-link {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 2px;
  white-space: nowrap;
}
.cookie-actions {
  display: flex; gap: 8px; flex-shrink: 0; align-items: center;
}
.cookie-actions .btn { white-space: nowrap; }

/* ---- Tablet & mobile (≤900px): 2 sütundan tek sütuna geç ---- */
@media (max-width: 900px) {
  .cookie-banner {
    left: 12px; right: 12px; bottom: 12px;
    padding: 14px 16px;
    border-radius: 12px;
  }
  .cookie-inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .cookie-text strong { font-size: 13.5px; }
  .cookie-text p { font-size: 12.5px; }
  .cookie-actions {
    width: 100%;
    gap: 8px;
  }
  .cookie-actions .btn {
    flex: 1;
    justify-content: center;
    min-width: 0;
    padding: 10px 12px;
    font-size: 13px;
  }
}

/* ---- Dar mobile (≤480px): butonlar alt alta + daha kompakt ---- */
@media (max-width: 480px) {
  .cookie-banner {
    left: 8px; right: 8px; bottom: 8px;
    padding: 12px 14px;
  }
  .cookie-text strong { font-size: 13px; margin-bottom: 3px; }
  .cookie-text p { font-size: 12px; line-height: 1.5; }
  .cookie-actions {
    flex-direction: column-reverse; /* primary üstte, ghost altta — UX */
    gap: 6px;
  }
  .cookie-actions .btn {
    width: 100%;
    padding: 11px 12px;
    font-size: 13px;
  }
}

/* ---- Çok kısa yükseklik (yatay telefon vb.) — banner ekran çok kaplamasın ---- */
@media (max-height: 480px) and (max-width: 900px) {
  .cookie-banner { padding: 10px 14px; }
  .cookie-text strong { display: inline; margin-right: 6px; }
  .cookie-text p { font-size: 12px; }
}

/* ---- Footer alt link grup ---- */
.footer-bottom-links {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.footer-bottom-links a {
  color: var(--text-3);
  text-decoration: none;
  transition: color .15s;
}
.footer-bottom-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 2px; }
/* ============ /Cookie consent banner ============ */

/* Page transition */
.page-enter { animation: float-up 0.4s ease both; }