/*
  AcilAsist — Pazarlama Sitesi Ortak Stil Sayfası

  Token'lar mobil uygulamanın kendi tasarım sistemiyle (DESIGN_SYSTEM.md,
  mobile/src/theme/tokens.ts) BİREBİR AYNIDIR — yeni bir görsel dil icat
  edilmedi. Renkler:
    Primary  #2563EB · Accent #06B6D4 · Midnight #0F172A · Background #F8FAFC
*/

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --accent: #06b6d4;
  --midnight: #0f172a;
  --bg: #f8fafc;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-subtle: #edf1f7;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-tertiary: #94a3b8;
  --text-inverse: #ffffff;
  --success: #10b981;
  --success-soft: #ecfdf5;
  --critical: #dc2626;
  --critical-soft: #fef2f2;

  --radius-sm: 10px;
  --radius-md: 12px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-xxl: 26px;
  --radius-pill: 999px;

  --shadow-card: 0 3px 10px rgba(15, 23, 42, 0.05);
  --shadow-raised: 0 8px 20px rgba(15, 23, 42, 0.1);

  --container: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  /* Güvenlik ağı: grid/flex öğeleri (özellikle görsel içerenler)
     varsayılan `min-width: auto` nedeniyle küçük ekranda büzülmeyip
     sayfayı yatay taşırabilir. Kök neden aşağıda `min-width: 0` ile
     düzeltildi; bu satır olası gelecekteki benzer hatalara karşı ek
     bir güvencedir. */
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Üst gezinme ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
}

.nav-brand img {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
}

.nav-brand span {
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: var(--radius-pill);
  background: var(--midnight);
  color: var(--text-inverse) !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

/* ---------- Bölüm iskeleti ---------- */

section {
  padding: 88px 0;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--text-primary);
}

h2 {
  font-size: 34px;
  line-height: 1.15;
}

h3 {
  font-size: 19px;
  line-height: 1.3;
}

p {
  color: var(--text-secondary);
  margin: 0;
}

.lede {
  font-size: 18px;
  line-height: 1.6;
  max-width: 640px;
}

.pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: var(--card);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- Kartlar ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 28px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--text-inverse);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.28);
}

.btn-secondary {
  background: var(--card);
  color: var(--text-primary);
  border: 1px solid var(--border);
}

/* ---------- Alt bilgi (footer) ---------- */

.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 48px 0;
  background: var(--card);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.footer-brand img {
  width: 26px;
  height: 26px;
  border-radius: 7px;
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  font-weight: 600;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--primary);
}

.footer-meta {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* ---------- Yasal doküman sayfaları (Gizlilik / Kullanım) ---------- */

.legal-hero {
  padding: 56px 0 32px;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-hero .meta {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-tertiary);
}

.legal-body {
  padding: 48px 0 96px;
  max-width: 760px;
}

.legal-body h2 {
  font-size: 21px;
  margin-top: 40px;
  margin-bottom: 12px;
}

.legal-body h2:first-child {
  margin-top: 0;
}

.legal-body p,
.legal-body li {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* Global `p { margin: 0 }` kuralı (index.html'in kendi manuel boşluk
   düzenine göredir) yasal metinde paragrafları birbirine yapıştırıyordu —
   burada ayrıca boşluk verilir. */
.legal-body p {
  margin: 0 0 16px;
}

.legal-body p:last-child {
  margin-bottom: 0;
}

.legal-body ul {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-body li + li {
  margin-top: 6px;
}

.placeholder {
  margin-top: 10px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: #fffbeb;
  border: 1px dashed #f59e0b;
  color: #92400e;
  font-size: 13.5px;
  line-height: 1.6;
}

.placeholder strong {
  color: #78350f;
}

/* ---------- Sayfa grid'leri (index.html) ---------- */

/* Her grid hücresine `min-width: 0` — aksi halde içindeki görsel/metin
   kendi doğal (min-content) genişliğini dayatıp hücreyi `1fr`in izin
   verdiğinden daha geniş tutabilir ve sayfa yatay taşar (klasik grid/flex
   tuzağı). */
.grid-hero,
.grid-features,
.grid-showcase,
.grid-split {
  min-width: 0;
}
.grid-hero > *,
.grid-features > *,
.grid-showcase > *,
.grid-split > * {
  min-width: 0;
}

.grid-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.grid-showcase {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.grid-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---------- Telefon çerçevesi ---------- */
/* mockup.png ön-ölçülmüş koordinatları (bkz. marketing/ üreteci ile AYNI
   oranlar — MK 1022x2082, ekran 52,46 / 918x1990). */

.phone {
  position: relative;
  aspect-ratio: 1022 / 2082;
}

.phone img.frame {
  position: relative;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.phone .screen {
  position: absolute;
  z-index: 2;
  overflow: hidden;
  left: 5.088%;
  top: 2.209%;
  width: 89.824%;
  height: 95.581%;
  border-radius: 13.725% / 6.332%;
}

.phone .screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

/* ---------- Duyarlılık ---------- */

@media (max-width: 980px) {
  .grid-hero {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-hero > div:first-child {
    text-align: center;
  }

  .grid-hero .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .grid-hero > div:first-child > div {
    justify-content: center;
  }

  .grid-features {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-showcase {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  h1 {
    font-size: 36px !important;
  }

  h2 {
    font-size: 27px;
  }

  section {
    padding: 56px 0;
  }

  .grid-features {
    grid-template-columns: 1fr;
  }

  .grid-showcase {
    grid-template-columns: 1fr;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
  }
}
