/* ==========================================================================
   KaliteCRM — Tasarım Sistemi
   ========================================================================== */

/* ---------- Tasarım Tokenleri ---------- */
:root {
  /* Renkler — Marka */
  --brand-900: #001f4d;
  --brand-800: #002d6b;
  --brand-700: #003d7a;
  --brand-600: #0050a3;
  --brand-500: #0066cc;
  --brand-400: #2b8cea;
  --brand-300: #5fa9f0;
  --brand-200: #a4cbf6;
  --brand-100: #d8e7fa;
  --brand-50:  #eef4fc;

  /* Vurgu — Turkuaz */
  --accent-700: #0e7490;
  --accent-600: #0891b2;
  --accent-500: #06b6d4;
  --accent-400: #22d3ee;
  --accent-300: #67e8f9;
  --accent-100: #cffafe;

  /* Semantik */
  --success: #10b981;
  --success-bg: #d1fae5;
  --warning: #f59e0b;
  --warning-bg: #fef3c7;
  --danger: #ef4444;
  --danger-bg: #fee2e2;
  --info: #3b82f6;
  --info-bg: #dbeafe;

  /* Nötr */
  --gray-950: #0f172a;
  --gray-900: #1e293b;
  --gray-800: #334155;
  --gray-700: #475569;
  --gray-600: #64748b;
  --gray-500: #94a3b8;
  --gray-400: #cbd5e1;
  --gray-300: #e2e8f0;
  --gray-200: #edf2f7;
  --gray-100: #f1f5f9;
  --gray-50:  #f8fafc;
  --white:    #ffffff;

  /* Tema (light default) */
  --bg:         var(--white);
  --bg-soft:    var(--gray-50);
  --bg-elevated: var(--white);
  --text:       var(--gray-900);
  --text-soft:  var(--gray-600);
  --text-muted: var(--gray-500);
  --border:     var(--gray-200);
  --border-strong: var(--gray-300);

  /* Tipografi */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Manrope', var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;

  /* Yazı boyutları (fluid) */
  --text-xs:   clamp(0.72rem, 0.70rem + 0.10vw, 0.75rem);
  --text-sm:   clamp(0.82rem, 0.80rem + 0.10vw, 0.875rem);
  --text-base: clamp(0.95rem, 0.92rem + 0.15vw, 1rem);
  --text-lg:   clamp(1.05rem, 1.00rem + 0.25vw, 1.125rem);
  --text-xl:   clamp(1.20rem, 1.10rem + 0.50vw, 1.375rem);
  --text-2xl:  clamp(1.40rem, 1.20rem + 1.00vw, 1.75rem);
  --text-3xl:  clamp(1.70rem, 1.40rem + 1.50vw, 2.25rem);
  --text-4xl:  clamp(2.00rem, 1.60rem + 2.00vw, 3rem);
  --text-5xl:  clamp(2.50rem, 1.80rem + 3.50vw, 4rem);

  /* Aralık */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Köşeler */
  --radius-sm: 6px;
  --radius:    10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Gölgeler */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow:    0 4px 12px rgba(15, 23, 42, 0.08), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.10), 0 4px 8px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.12), 0 8px 16px rgba(15, 23, 42, 0.06);
  --shadow-xl: 0 30px 60px rgba(15, 23, 42, 0.20);
  --shadow-brand: 0 18px 40px -12px rgba(0, 61, 122, 0.35);
  --shadow-accent: 0 18px 40px -12px rgba(6, 182, 212, 0.35);

  /* Geçişler */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 150ms var(--ease);
  --transition: 250ms var(--ease);
  --transition-slow: 400ms var(--ease);

  /* Layout */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;
  --header-height: 72px;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 100%);
  --gradient-brand-deep: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 50%, var(--brand-500) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent-600) 0%, var(--accent-400) 100%);
  --gradient-mix: linear-gradient(135deg, var(--brand-700) 0%, var(--accent-500) 100%);
  --gradient-soft: linear-gradient(180deg, var(--brand-50) 0%, var(--white) 100%);
}

/* ---------- Karanlık Mod ---------- */
[data-theme="dark"] {
  --bg:         #0a1322;
  --bg-soft:    #0f1c30;
  --bg-elevated: #142340;
  --text:       #e8eef9;
  --text-soft:  #a3b1c7;
  --text-muted: #6f7e96;
  --border:     #1f2e4a;
  --border-strong: #2c3e60;
  --gradient-soft: linear-gradient(180deg, #0f1c30 0%, #0a1322 100%);
  --shadow:    0 4px 12px rgba(0, 0, 0, 0.4), 0 2px 4px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 10px 25px rgba(0, 0, 0, 0.5), 0 4px 8px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.55);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}
img, svg, video { max-width: 100%; height: auto; display: block; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--brand-200); color: var(--brand-900); }

/* ---------- Tipografi ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: var(--text-5xl); letter-spacing: -0.03em; }
h2 { font-size: var(--text-4xl); letter-spacing: -0.025em; }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
p  { color: var(--text-soft); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--brand-100);
}
[data-theme="dark"] .eyebrow {
  background: rgba(43, 140, 234, 0.12);
  color: var(--brand-300);
  border-color: rgba(43, 140, 234, 0.25);
}
.eyebrow.eyebrow-accent {
  background: var(--accent-100);
  color: var(--accent-700);
  border-color: rgba(6, 182, 212, 0.2);
}

.gradient-text {
  background: var(--gradient-mix);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-6);
}
.container-wide { max-width: var(--container-2xl); }
.container-narrow { max-width: var(--container-md); }

.section {
  padding: var(--space-24) 0;
}
.section-sm { padding: var(--space-16) 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--gradient-brand-deep);
  color: var(--white);
}
.section-dark h1, .section-dark h2, .section-dark h3,
.section-dark h4, .section-dark p { color: var(--white); }
.section-dark p { color: rgba(255,255,255,0.85); }

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--space-16);
}
.section-header .eyebrow { margin-bottom: var(--space-4); }
.section-header h2 { margin-bottom: var(--space-4); }
.section-header p { font-size: var(--text-lg); }

@media (max-width: 768px) {
  .section { padding: var(--space-16) 0; }
  .section-header { margin-bottom: var(--space-10); }
}

/* ---------- Buton ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: var(--text-base);
  letter-spacing: -0.01em;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-brand);
  color: var(--white);
  box-shadow: var(--shadow-brand);
}
.btn-primary:hover {
  box-shadow: 0 24px 48px -12px rgba(0, 61, 122, 0.45);
  filter: brightness(1.05);
}

.btn-accent {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  filter: brightness(1.05);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--brand-500);
  color: var(--brand-700);
  background: var(--brand-50);
}
[data-theme="dark"] .btn-outline:hover {
  background: rgba(43, 140, 234, 0.1);
  color: var(--brand-300);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-soft);
}

.btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-700);
}
.btn-light:hover { background: var(--white); }

.btn-lg { padding: 1.05rem 2rem; font-size: var(--text-lg); }
.btn-sm { padding: 0.55rem 1rem; font-size: var(--text-sm); }
.btn-block { display: flex; width: 100%; }

.btn .icon { width: 18px; height: 18px; flex-shrink: 0; }

/* ---------- Kart ---------- */
.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-xs);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-200);
}
[data-theme="dark"] .card:hover {
  border-color: var(--brand-600);
}
.card-compact { padding: var(--space-6); }
.card-feature { padding: var(--space-8); height: 100%; }

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--gradient-brand);
  color: var(--white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-brand);
}
.feature-icon.accent { background: var(--gradient-accent); box-shadow: var(--shadow-accent); }
.feature-icon.soft {
  background: var(--brand-50);
  color: var(--brand-700);
  box-shadow: none;
}
[data-theme="dark"] .feature-icon.soft {
  background: rgba(43, 140, 234, 0.12);
  color: var(--brand-300);
}

.card h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.card .card-meta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-600);
  margin-bottom: var(--space-2);
}

/* ---------- Form ---------- */
.form-group { margin-bottom: var(--space-5); }
.form-group label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: var(--text-base);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--brand-500);
  box-shadow: 0 0 0 4px rgba(0, 102, 204, 0.15);
}
.form-group textarea { resize: vertical; min-height: 140px; }
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-help { font-size: var(--text-xs); color: var(--text-muted); margin-top: var(--space-2); }

/* ---------- Badge ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--text-xs);
  font-weight: 600;
  border: 1px solid var(--brand-100);
}
.badge-success { background: var(--success-bg); color: var(--success); border-color: rgba(16,185,129,0.2); }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: rgba(245,158,11,0.2); }
.badge-accent  { background: var(--accent-100); color: var(--accent-700); border-color: rgba(6,182,212,0.2); }

/* ---------- Liste ---------- */
.check-list { display: flex; flex-direction: column; gap: var(--space-3); }
.check-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-base);
  color: var(--text-soft);
}
.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient-accent);
  margin-top: 2px;
  background-image:
    linear-gradient(135deg, var(--accent-600), var(--accent-400)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6L5 8.5L9.5 4' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover, 14px 14px;
  background-position: center, center;
  background-repeat: no-repeat;
}

/* ---------- Tablo ---------- */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-base);
}
table.compare thead th {
  background: var(--gradient-brand);
  color: var(--white);
  text-align: left;
  padding: var(--space-4) var(--space-5);
  font-weight: 600;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}
table.compare tbody td {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid var(--border);
  color: var(--text);
}
table.compare tbody tr:hover { background: var(--bg-soft); }
table.compare .yes { color: var(--success); font-weight: 700; }
table.compare .no { color: var(--gray-400); }

/* ---------- Tab ---------- */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  justify-content: center;
  margin-bottom: var(--space-10);
  background: var(--bg-soft);
  padding: var(--space-2);
  border-radius: var(--radius-full);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid var(--border);
}
.tab-btn {
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius-full);
  font-weight: 600;
  color: var(--text-soft);
  transition: var(--transition);
}
.tab-btn:hover { color: var(--text); }
.tab-btn.is-active {
  background: var(--bg-elevated);
  color: var(--brand-700);
  box-shadow: var(--shadow-sm);
}
[data-theme="dark"] .tab-btn.is-active { color: var(--brand-300); }
.tab-panel { display: none; }
.tab-panel.is-active { display: block; animation: fadeUp 400ms var(--ease-out); }

/* ---------- Akordeon ---------- */
.accordion { display: flex; flex-direction: column; gap: var(--space-3); }
.accordion-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}
.accordion-item.is-open {
  border-color: var(--brand-300);
  box-shadow: var(--shadow);
}
.accordion-trigger {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  text-align: left;
  font-weight: 600;
  font-size: var(--text-lg);
  color: var(--text);
  transition: var(--transition);
}
.accordion-trigger:hover { background: var(--bg-soft); }
.accordion-trigger .chevron {
  width: 24px;
  height: 24px;
  transition: transform var(--transition);
  color: var(--brand-500);
  flex-shrink: 0;
}
.accordion-item.is-open .chevron { transform: rotate(180deg); }
.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 400ms var(--ease);
}
.accordion-content > div {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--text-soft);
  line-height: 1.7;
}
.accordion-item.is-open .accordion-content { max-height: 600px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
[data-theme="dark"] .site-header {
  background: rgba(10, 19, 34, 0.85);
}
.site-header.is-scrolled {
  box-shadow: var(--shadow-sm);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-6);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--gradient-brand);
  color: var(--white);
  font-size: 18px;
  box-shadow: var(--shadow-brand);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.nav-links a {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-soft);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.is-active { color: var(--brand-700); }
[data-theme="dark"] .nav-links a.is-active { color: var(--brand-300); }
.nav-actions { display: flex; align-items: center; gap: var(--space-2); }
.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--text-soft);
  transition: var(--transition);
}
.icon-btn:hover { background: var(--bg-soft); color: var(--text); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }

.menu-toggle { display: none; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    inset: var(--header-height) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--space-4) var(--space-6);
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    transform: translateY(-110%);
    transition: transform var(--transition);
  }
  .nav-links.is-open { transform: translateY(0); }
  .nav-links a {
    padding: var(--space-4);
    border-bottom: 1px solid var(--border);
  }
  .nav-actions .desktop-only { display: none; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--gray-950);
  color: rgba(255,255,255,0.75);
  padding-top: var(--space-20);
  padding-bottom: var(--space-10);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  width: 800px; height: 800px;
  transform: translateX(-50%) translateY(-60%);
  background: radial-gradient(circle, rgba(6,182,212,0.18), transparent 60%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}
.footer-grid h4 {
  color: var(--white);
  font-size: var(--text-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-4);
}
.footer-grid p { color: rgba(255,255,255,0.6); font-size: var(--text-sm); }
.footer-grid ul { display: flex; flex-direction: column; gap: var(--space-3); }
.footer-grid a {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.7);
  transition: var(--transition);
}
.footer-grid a:hover { color: var(--white); }
.footer-brand { display: flex; flex-direction: column; gap: var(--space-4); }
.footer-brand .brand { color: var(--white); }
.footer-social {
  display: flex; gap: var(--space-3);
}
.footer-social a {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}
.footer-social a:hover { background: rgba(255,255,255,0.12); }
.footer-social svg { width: 18px; height: 18px; color: var(--white); }
.footer-bottom {
  position: relative;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-24) 0 var(--space-20);
  overflow: hidden;
  background: var(--gradient-soft);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 80% 0%, rgba(6,182,212,0.18), transparent 60%),
    radial-gradient(50% 60% at 0% 30%, rgba(43,140,234,0.20), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,61,122,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,61,122,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 80%);
  pointer-events: none;
  opacity: 0.7;
}
[data-theme="dark"] .hero::after {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.hero-content { max-width: 600px; }
.hero-content .eyebrow { margin-bottom: var(--space-5); }
.hero h1 {
  margin-bottom: var(--space-5);
}
.hero p.lede {
  font-size: var(--text-xl);
  color: var(--text-soft);
  margin-bottom: var(--space-8);
}
.hero-cta {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-8);
}
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  font-size: var(--text-sm);
  color: var(--text-muted);
}
.hero-trust span {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}
.hero-trust svg { width: 16px; height: 16px; color: var(--success); }

.hero-visual {
  position: relative;
  perspective: 1200px;
}
.hero-mockup {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1deg);
  transition: transform 600ms var(--ease-out);
}
.hero-mockup:hover { transform: rotate(0deg) scale(1.01); }
.browser-bar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots span {
  width: 12px; height: 12px; border-radius: 50%;
}
.browser-dots span:nth-child(1) { background: #ff5f57; }
.browser-dots span:nth-child(2) { background: #febc2e; }
.browser-dots span:nth-child(3) { background: #28c840; }
.browser-url {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.hero-mockup img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-floating {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 500;
  animation: floatY 4s ease-in-out infinite;
}
.hero-floating .badge-dot {
  width: 36px; height: 36px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.hero-floating-1 {
  top: 12%;
  left: -8%;
  animation-delay: 0s;
}
.hero-floating-1 .badge-dot { background: var(--success-bg); color: var(--success); }
.hero-floating-2 {
  bottom: 8%;
  right: -8%;
  animation-delay: 1.5s;
}
.hero-floating-2 .badge-dot { background: var(--accent-100); color: var(--accent-700); }
[data-theme="dark"] .hero-floating-1 .badge-dot {
  background: rgba(16,185,129,0.15);
}
[data-theme="dark"] .hero-floating-2 .badge-dot {
  background: rgba(6,182,212,0.15);
}

@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-12); }
  .hero-content { max-width: none; }
  .hero-floating { display: none; }
}
@media (max-width: 600px) {
  .hero { padding: var(--space-16) 0; }
}

/* ---------- Trust Bar ---------- */
.trust-bar {
  padding: var(--space-8) 0;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}
.trust-bar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  text-align: center;
}
.trust-bar .stat .num {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--brand-700);
  display: block;
  letter-spacing: -0.03em;
}
[data-theme="dark"] .trust-bar .stat .num { color: var(--brand-300); }
.trust-bar .stat .label {
  font-size: var(--text-sm);
  color: var(--text-soft);
  font-weight: 500;
}
@media (max-width: 720px) {
  .trust-bar-inner { grid-template-columns: repeat(2, 1fr); gap: var(--space-8); }
}

/* ---------- Modül Showcase Grid ---------- */
.module-category {
  margin-bottom: var(--space-16);
}
.module-category-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}
.module-category-head h3 {
  font-size: var(--text-2xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}
.module-category-head h3 .dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gradient-mix);
}
.module-category-head .meta {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-5);
}
.module-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
  height: 100%;
  overflow: hidden;
}
.module-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: var(--gradient-mix);
  opacity: 0;
  z-index: -1;
  transition: opacity var(--transition);
}
.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--brand-300);
}
.module-card .module-icon {
  font-size: 32px;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: var(--brand-50);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
[data-theme="dark"] .module-card .module-icon {
  background: rgba(43, 140, 234, 0.12);
}
.module-card h4 { font-size: var(--text-lg); }
.module-card p {
  font-size: var(--text-sm);
  flex: 1;
  color: var(--text-soft);
  line-height: 1.5;
}
.module-card .module-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--brand-600);
  margin-top: var(--space-2);
}
.module-card .module-link::after {
  content: "→";
  transition: transform var(--transition);
}
.module-card:hover .module-link::after { transform: translateX(4px); }

/* ---------- Capability Strip (öne çıkan yetenekler) ---------- */
.capability-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-4);
}
.capability {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-5);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}
.capability:hover {
  border-color: var(--brand-300);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}
.capability .cap-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--brand-50);
  color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
[data-theme="dark"] .capability .cap-icon {
  background: rgba(43, 140, 234, 0.12);
  color: var(--brand-300);
}
.capability .cap-title { font-weight: 600; font-size: var(--text-sm); color: var(--text); margin-bottom: 2px; }
.capability .cap-desc { font-size: var(--text-xs); color: var(--text-soft); line-height: 1.4; }

/* ---------- Platform Tabs ---------- */
.platform-section { background: var(--bg-soft); }
.platform-frame {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.platform-frame.reverse { grid-template-columns: 1fr 1.1fr; }
.platform-frame.reverse .platform-image { order: 2; }

.device-frame {
  position: relative;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-phone {
  width: 280px;
  aspect-ratio: 9/19;
  background: var(--brand-900);
  border-radius: 38px;
  padding: 12px;
  box-shadow: var(--shadow-xl);
}
.device-phone .screen {
  width: 100%; height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-tablet {
  width: 460px;
  aspect-ratio: 4/3;
  background: var(--brand-900);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow-xl);
}
.device-tablet .screen {
  width: 100%; height: 100%;
  border-radius: 12px;
  overflow: hidden;
  background: var(--gradient-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.device-browser {
  width: 100%;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-elevated);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border);
}
.device-browser img { width: 100%; display: block; }
.placeholder-image {
  background: linear-gradient(135deg, var(--brand-100) 0%, var(--accent-100) 100%);
  color: var(--brand-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 64px;
  width: 100%; height: 100%;
}

.device-selector {
  display: inline-flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 4px;
  margin: 0 auto var(--space-8);
}
.device-selector button {
  padding: 0.5rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-soft);
  transition: var(--transition);
}
.device-selector button.is-active {
  background: var(--gradient-brand);
  color: var(--white);
}
.device-view { display: none; }
.device-view.is-active { display: flex; justify-content: center; animation: fadeUp 400ms var(--ease-out); }

@media (max-width: 900px) {
  .platform-frame, .platform-frame.reverse {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .platform-frame.reverse .platform-image { order: 0; }
  .device-tablet { width: 100%; max-width: 400px; }
}

/* ---------- Logo Cloud ---------- */
.logo-cloud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-8);
  align-items: center;
  justify-items: center;
  opacity: 0.7;
}
.logo-cloud img,
.logo-cloud .logo-placeholder {
  max-height: 40px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.9;
  transition: var(--transition);
}
.logo-cloud img:hover { filter: grayscale(0%); opacity: 1; }
.logo-cloud .logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 140px;
  height: 50px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: var(--text-xs);
  background: var(--bg-soft);
  filter: none;
}

/* ---------- Testimonial ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
}
.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  position: relative;
}
.testimonial-card::before {
  content: "“";
  position: absolute;
  top: -16px; left: var(--space-6);
  font-size: 96px;
  font-family: Georgia, serif;
  color: var(--brand-300);
  line-height: 1;
  opacity: 0.5;
}
.testimonial-card p {
  font-size: var(--text-lg);
  color: var(--text);
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: var(--space-6);
}
.testimonial-meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  border-top: 1px solid var(--border);
  padding-top: var(--space-4);
}
.testimonial-avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--gradient-mix);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-lg);
}
.testimonial-name { font-weight: 700; color: var(--text); font-size: var(--text-base); }
.testimonial-role { font-size: var(--text-sm); color: var(--text-muted); }

/* ---------- CTA Bandı ---------- */
.cta-band {
  background: var(--gradient-brand-deep);
  color: var(--white);
  padding: var(--space-20) 0;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(40% 60% at 0% 0%, rgba(6,182,212,0.3), transparent 60%),
    radial-gradient(40% 60% at 100% 100%, rgba(43,140,234,0.3), transparent 60%);
}
.cta-band-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-8);
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); font-size: var(--text-3xl); margin-bottom: var(--space-2); }
.cta-band p { color: rgba(255,255,255,0.85); font-size: var(--text-lg); }
.cta-band .btn-primary {
  background: var(--white);
  color: var(--brand-700);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.4);
}
.cta-band .btn-primary:hover { background: var(--brand-50); }

/* ---------- Sayfa Başlık (alt sayfalar) ---------- */
.page-hero {
  padding: var(--space-20) 0 var(--space-16);
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 50% 0%, rgba(43,140,234,0.15), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: var(--text-4xl); margin-bottom: var(--space-4); }
.page-hero p { font-size: var(--text-lg); max-width: 720px; margin: 0 auto; }

/* ---------- Modül detay sayfa bileşenleri ---------- */
.module-hero {
  padding: var(--space-20) 0 var(--space-12);
  background: var(--gradient-soft);
  position: relative;
  overflow: hidden;
}
.module-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 60% at 80% 0%, rgba(6,182,212,0.18), transparent 60%);
  pointer-events: none;
}
.module-hero .container { position: relative; }
.module-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.module-hero h1 { font-size: var(--text-4xl); margin: var(--space-4) 0 var(--space-4); }
.module-hero .lede { font-size: var(--text-lg); color: var(--text-soft); margin-bottom: var(--space-6); }

@media (max-width: 900px) {
  .module-hero-grid { grid-template-columns: 1fr; }
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
  margin-bottom: var(--space-16);
}
.feature-row:last-child { margin-bottom: 0; }
.feature-row.reverse > div:first-child { order: 2; }
.feature-row h3 { margin-bottom: var(--space-3); }
.feature-row p { margin-bottom: var(--space-4); }
@media (max-width: 800px) {
  .feature-row, .feature-row.reverse { grid-template-columns: 1fr; gap: var(--space-6); }
  .feature-row.reverse > div:first-child { order: 0; }
}

.module-mockup {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.module-mockup::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 60% at 0% 0%, rgba(43,140,234,0.08), transparent 60%);
  pointer-events: none;
}
.mock-toolbar {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--border);
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  color: var(--text-soft);
}
.mock-toolbar .pill {
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-700);
  font-size: var(--text-xs);
  font-weight: 600;
}
[data-theme="dark"] .mock-toolbar .pill {
  background: rgba(43, 140, 234, 0.12);
  color: var(--brand-300);
}
.mock-rows { display: flex; flex-direction: column; gap: var(--space-2); }
.mock-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.6fr;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-soft);
  border-radius: var(--radius);
  font-size: var(--text-sm);
}
.mock-row.head { color: var(--text-muted); font-weight: 600; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.05em; }
.mock-status { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; color: var(--success); }
.mock-status.warn { color: var(--warning); }
.mock-status.dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* ---------- Animasyonlar ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out);
  will-change: opacity, transform;
}
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Yardımcı Sınıflar ---------- */
.text-center { text-align: center; }
.text-balance { text-wrap: balance; }
.text-soft { color: var(--text-soft); }
.text-muted { color: var(--text-muted); }
.flex { display: flex; }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.hidden { display: none; }

@media (min-width: 961px)  { .mobile-only  { display: none !important; } }
@media (max-width: 960px)  { .desktop-only { display: none !important; } }

/* Erişilebilirlik */
:focus-visible {
  outline: 3px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--brand-700);
  color: var(--white);
  padding: var(--space-3) var(--space-4);
  z-index: 200;
  transition: top var(--transition);
}
.skip-link:focus { top: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
