/* Agent IO — tanitim sitesi ve yasal sayfalarin ortak stili.
   Marka vurgusu #FF3B30 / #DC2626.

   DIS KAYNAK YOK. Google Fonts @import'u kaldirildi: firebase.json'daki
   CSP `default-src 'none'` ile onu zaten engelliyordu, yani yazi tipi hic
   inmiyor ama her ziyaretci Google'a bir istek birakiyordu. Sifir-saklama
   iddiasi olan bir sitede bu celiskiydi; sistem yazi tipi yigini kullaniliyor. */

:root {
  --zemin: #07080a;
  --yuzey: #111318;
  --kart: #181b22;
  --kart-hover: #20242e;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --brand: #ff3b30;
  --brand-hover: #ff5247;
  --brand-glow: rgba(255, 59, 48, 0.3);
  --brand-light: rgba(255, 59, 48, 0.12);

  --text: #f5f6f8;
  --text-muted: #8e95a5;
  --text-dim: #606775;

  --accent-blue: #0a84ff;
  --accent-green: #30d158;
  --accent-purple: #bf5af2;
  --accent-orange: #ff9f0a;
  --uyari-bg: rgba(255, 159, 10, 0.1);

  --glass: rgba(17, 19, 24, 0.85);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-brand: 0 0 24px var(--brand-glow);

  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tema JS ile degil isletim sistemi tercihiyle secilir. Eski `[data-theme]`
   secicilerini yazan tek sey silinen app.js'ti; oznesiz kalan bir secici
   sessizce olu koda donusurdu. */
@media (prefers-color-scheme: light) {
  :root {
    --zemin: #f4f6fb;
    --yuzey: #ffffff;
    --kart: #ffffff;
    --kart-hover: #f8fafc;
    --border: rgba(0, 0, 0, 0.09);
    --border-strong: rgba(0, 0, 0, 0.16);

    --brand: #dc2626;
    --brand-hover: #b91c1c;
    --brand-glow: rgba(220, 38, 38, 0.18);
    --brand-light: rgba(220, 38, 38, 0.08);

    --text: #0f172a;
    --text-muted: #52607a;
    --text-dim: #7b8798;

    --accent-blue: #1d4ed8;
    --accent-green: #15803d;
    --accent-purple: #7e22ce;
    --accent-orange: #b45309;
    --uyari-bg: rgba(180, 83, 9, 0.08);

    --glass: rgba(255, 255, 255, 0.9);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.08);
  }
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--zemin);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }

p { color: var(--text-muted); }
strong { color: var(--text); }

a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
}

a:hover { color: var(--brand-hover); }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

/* ---------------------------------------------------------------- Kapsayici */

.container,
.sarmal {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Yasal sayfalarda `sarmal` metin sutunu: uzun paragraf 1240px'te okunmaz. */
main.sarmal {
  max-width: 820px;
  padding-top: 48px;
  padding-bottom: 64px;
}

/* -------------------------------------------------------------------- Baslik */

header.app-header,
header.ust {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

header.ust .sarmal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand-logo,
.marka {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.5px;
}

.brand-logo:hover,
.marka:hover { color: var(--text); }

.brand-logo .dot {
  width: 9px;
  height: 9px;
  background: var(--brand);
  border-radius: 50%;
  box-shadow: var(--shadow-brand);
}

.brand-logo .accent,
.marka span { color: var(--brand); }

nav.main-nav,
nav.ust-menu {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
}

nav.main-nav a,
nav.ust-menu a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

nav.main-nav a:hover,
nav.ust-menu a:hover { color: var(--text); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

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

.btn-primary,
.btn-secondary,
.btn-icon,
.tus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--transition);
}

.btn-primary,
.tus {
  background: linear-gradient(135deg, var(--brand), #c81b10);
  border: 1px solid transparent;
  color: #ffffff;
  padding: 11px 22px;
  box-shadow: var(--shadow-brand);
}

.btn-primary:hover,
.tus:hover {
  color: #ffffff;
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.btn-secondary {
  background: var(--kart);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 11px 20px;
}

.btn-secondary:hover {
  color: var(--text);
  background: var(--kart-hover);
  border-color: var(--brand);
}

.btn-icon {
  background: var(--kart);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  font-size: 0.85rem;
}

.btn-icon:hover {
  color: var(--text);
  background: var(--kart-hover);
  border-color: var(--border-strong);
}

/* ----------------------------------------------------------------- Hero alani */

.hero-section {
  padding: 72px 0 56px;
  position: relative;
  overflow: hidden;
}

/* Parlama bir ISARET tasimiyor; bos bir <div> yerine sozde-eleman. */
.hero-section::before {
  content: "";
  position: absolute;
  top: -110px;
  left: 50%;
  transform: translateX(-50%);
  width: 620px;
  height: 340px;
  max-width: 100%;
  background: radial-gradient(circle, var(--brand-glow) 0%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  text-align: center;
  max-width: 840px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  background: var(--brand-light);
  border: 1px solid var(--brand-glow);
  color: var(--brand);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.hero-title { margin-bottom: 20px; }

.hero-subtitle {
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 720px;
  margin: 0 auto 32px;
}

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

.hero-note {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin-top: 18px;
}

/* --------------------------------------------------------------- Sayi seridi */

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 48px;
}

.metric-card {
  background: var(--kart);
  border: 1px solid var(--border);
  padding: 20px;
  border-radius: var(--radius-md);
  text-align: center;
}

.metric-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 4px;
}

.metric-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
}

/* ------------------------------------------------------------ Bolum basligi */

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 72px auto 36px;
}

.section-header p {
  margin-top: 10px;
  font-size: 1.03rem;
}

/* ------------------------------------------------------------- Kart izgaralari */

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.tool-card {
  background: var(--kart);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: var(--transition);
}

.tool-card:hover {
  background: var(--kart-hover);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.tool-icon {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--radius-sm);
  background: var(--zemin);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
}

.tool-info h3,
.tool-info h4 { font-size: 1rem; }

.tool-info .sayac {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.tool-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ------------------------------------------------------------- Kanal kartlari */

.bot-showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.bot-card {
  background: var(--kart);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px;
}

.bot-card h3 { margin-bottom: 10px; }
.bot-card p + p { margin-top: 10px; }

.channel-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.bot-card.whatsapp .channel-badge { background: rgba(37, 211, 102, 0.16); color: var(--accent-green); }
.bot-card.telegram .channel-badge { background: rgba(10, 132, 255, 0.16); color: var(--accent-blue); }
.bot-card.viber .channel-badge { background: rgba(191, 90, 242, 0.16); color: var(--accent-purple); }

/* Kanalin gercekte NE yaptigini soyleyen satir. Kartin en onemli cumlesi
   bu — pazarlama cumlesinden ayirt edilebilir durmasi gerekiyor. */
.kanal-durum {
  display: block;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* --------------------------------------------------------------- Fiyat kartlari */

.fiyat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.fiyat-kart {
  background: var(--kart);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
}

.fiyat-kart h3 { margin-bottom: 6px; }

.fiyat-kart .tutar {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  margin-bottom: 12px;
}

.fiyat-kart ul {
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.fiyat-kart li {
  padding-left: 18px;
  position: relative;
  margin-top: 8px;
}

.fiyat-kart li::before {
  content: "·";
  position: absolute;
  left: 4px;
  color: var(--brand);
  font-weight: 700;
}

/* ------------------------------------------- Yasal sayfa govdesi (`main.sarmal`) */

main.sarmal h2 {
  font-size: 1.35rem;
  margin: 36px 0 12px;
}

main.sarmal h3 {
  font-size: 1.05rem;
  margin: 24px 0 8px;
}

main.sarmal p,
main.sarmal li { margin-top: 10px; }

main.sarmal ul,
main.sarmal ol { padding-left: 22px; }

.giris {
  font-size: 1.08rem;
  color: var(--text);
  margin-top: 12px;
}

.tarih {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-dim);
}

.kutu {
  background: var(--kart);
  border: 1px solid var(--border);
  border-left: 3px solid var(--brand);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  margin: 24px 0;
}

.kutu.uyari {
  background: var(--uyari-bg);
  border-left-color: var(--accent-orange);
}

/* Genis tablo sayfayi yatay kaydirtmasin; kaydirma KUTUNUN icinde kalir. */
.kaydir {
  overflow-x: auto;
  margin: 20px 0;
}

.kaydir table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.kaydir th,
.kaydir td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--text-muted);
}

.kaydir th {
  background: var(--kart);
  color: var(--text);
  font-weight: 600;
}

.kanallar {
  font-size: 0.84rem;
  line-height: 1.7;
}

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

footer.app-footer,
footer.sarmal {
  border-top: 1px solid var(--border);
  background: var(--yuzey);
  margin-top: 72px;
  padding-top: 36px;
  padding-bottom: 36px;
}

footer.app-footer { padding: 36px 0; }

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links,
footer.sarmal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a,
footer.sarmal nav a {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover,
footer.sarmal nav a:hover { color: var(--brand); }

.footer-note {
  font-size: 0.82rem;
  color: var(--text-dim);
}

footer.sarmal p { margin-top: 12px; font-size: 0.88rem; }

/* ------------------------------------------------------------------ Duyarlilik */

@media (max-width: 860px) {
  nav.main-nav { display: none; }
  .hero-section { padding-top: 48px; }
  .footer-content { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ------------------------------------------------------------------ Yardimcilar

   Bunlar eskiden `style="..."` olarak HTML'in icindeydi. Tasindilar cunku tek
   bir inline nitelik bile CSP'de `style-src 'unsafe-inline'` acmayi zorunlu
   kiliyor — ve o izin, sayfaya enjekte edilen HER stilin de onunu aciyor.
   On bir onemsiz genislik/bosluk degeri icin verilecek bir odun degil. */

.w20 { width: 20%; }
.w22 { width: 22%; }
.w24 { width: 24%; }
.w28 { width: 28%; }
.w34 { width: 34%; }
.w36 { width: 36%; }

.mt-28 { margin-top: 28px; }
.mb-0  { margin-bottom: 0; }
