/* =========================================================
   Faturatik — Ön Yüz Stili
   Modern · Mavi tonlar · SEO + Erişilebilirlik odaklı
   ========================================================= */

:root {
  --primary: #0B5FFF;
  --primary-600: #0847C7;
  --primary-700: #073596;
  --primary-50: #EAF1FF;
  --primary-100: #D6E4FF;
  --accent: #00C2FF;
  --accent-soft: #BFF0FF;
  --navy: #0A1F44;
  --navy-soft: #142B5C;
  --slate-900: #0F172A;
  --slate-700: #334155;
  --slate-500: #64748B;
  --slate-300: #CBD5E1;
  --slate-100: #F1F5F9;
  --bg: #F5F9FF;
  --white: #FFFFFF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 28px;

  --shadow-sm: 0 1px 2px rgba(10, 31, 68, .06);
  --shadow: 0 8px 24px rgba(10, 31, 68, .08);
  --shadow-lg: 0 24px 48px rgba(11, 95, 255, .15);
  --shadow-blue: 0 16px 40px rgba(11, 95, 255, .25);

  --container: 1200px;
  --transition: .25s cubic-bezier(.4, 0, .2, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============== RESET ============== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--slate-900);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-600); }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
ul { list-style: none; padding: 0; margin: 0; }

h1, h2, h3, h4, h5 {
  font-family: var(--font);
  color: var(--navy);
  line-height: 1.2;
  letter-spacing: -.02em;
  margin: 0 0 .6em;
}
h1 { font-size: clamp(2.1rem, 4vw + 1rem, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 2vw + 1rem, 2.6rem); font-weight: 700; }
h3 { font-size: 1.35rem; font-weight: 700; }
p  { margin: 0 0 1rem; color: var(--slate-700); }

::selection { background: var(--primary); color: var(--white); }

/* ============== LAYOUT ============== */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { padding: clamp(64px, 8vw, 110px) 0; }

.eyebrow {
  display: inline-block;
  background: var(--primary-50);
  color: var(--primary-600);
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head p { font-size: 1.05rem; }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  font-weight: 600;
  font-size: .98rem;
  border-radius: 999px;
  transition: all var(--transition);
  white-space: nowrap;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-600) 100%);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 50px rgba(11, 95, 255, .35);
  color: var(--white);
}
.btn-ghost {
  background: var(--white);
  color: var(--primary);
  border-color: var(--primary-100);
}
.btn-ghost:hover {
  border-color: var(--primary);
  background: var(--primary-50);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,.4);
}
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); }
.btn-sm { padding: 10px 20px; font-size: .88rem; }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }

/* ============== HEADER / NAV ============== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition);
}
.site-header.scrolled { border-bottom-color: var(--slate-100); box-shadow: var(--shadow-sm); }

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.2rem;
  color: var(--navy);
  letter-spacing: -.02em;
  line-height: 1;
}
.brand:hover { color: var(--navy); }
.brand-logo {
  height: 36px;
  width: auto;
  display: block;
  transition: transform var(--transition);
}
.brand:hover .brand-logo { transform: translateY(-1px); }

.nav-menu {
  display: flex;
  gap: 4px;
  align-items: center;
}
.nav-menu .primary-menu,
.nav-menu ul {
  display: flex;
  gap: 4px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-menu li {
  list-style: none;
  margin: 0;
}
.nav-menu a {
  display: inline-block;
  padding: 10px 16px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: 10px;
  transition: all var(--transition);
}
.nav-menu a:hover,
.nav-menu a[aria-current="page"],
.nav-menu .current-menu-item > a,
.nav-menu .current_page_item > a {
  color: var(--primary);
  background: var(--primary-50);
}
.nav-actions { display: flex; gap: 10px; align-items: center; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--primary-50);
  position: relative;
}
.nav-toggle span {
  position: absolute;
  left: 12px;
  width: 20px; height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: all var(--transition);
}
.nav-toggle span:nth-child(1) { top: 16px; }
.nav-toggle span:nth-child(2) { top: 22px; }
.nav-toggle span:nth-child(3) { top: 28px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-menu, .nav-actions .btn-ghost { display: none; }
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: absolute;
    top: 76px; left: 0; right: 0;
    background: var(--white);
    padding: 16px;
    border-bottom: 1px solid var(--slate-100);
    box-shadow: var(--shadow);
    gap: 4px;
  }
  .nav-menu.open .primary-menu,
  .nav-menu.open ul {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .nav-menu.open a { padding: 12px 14px; display: block; }
}

/* ============== HERO ============== */
.hero {
  position: relative;
  padding: clamp(60px, 8vw, 100px) 0 clamp(80px, 8vw, 120px);
  background:
    radial-gradient(circle at 80% 0%, var(--accent-soft) 0%, transparent 40%),
    radial-gradient(circle at 0% 80%, var(--primary-100) 0%, transparent 35%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(11, 95, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11, 95, 255, .04) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 60% 50% at 50% 50%, #000 30%, transparent 70%);
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}
.hero h1 strong {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: inherit;
}
.hero p.lead {
  font-size: 1.15rem;
  color: var(--slate-700);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-trust {
  margin-top: 32px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--slate-500);
  font-size: .9rem;
}
.hero-trust .check {
  display: inline-flex; align-items: center; gap: 6px;
}
.hero-trust .check svg { color: var(--success); }

/* Hero Visual / Mockup */
.hero-visual {
  position: relative;
  perspective: 1000px;
}
.mockup {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: rotateY(-6deg) rotateX(4deg);
  transform-origin: center;
  border: 1px solid var(--slate-100);
}
.mockup-bar {
  display: flex; gap: 6px;
  padding: 12px 16px;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}
.mockup-bar i {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--slate-300);
  display: inline-block;
}
.mockup-bar i:nth-child(1) { background: #FF5F57; }
.mockup-bar i:nth-child(2) { background: #FEBC2E; }
.mockup-bar i:nth-child(3) { background: #28C840; }

.mockup-body { padding: 22px; background: var(--bg); }
.mockup-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.mockup-stat {
  background: var(--white);
  padding: 14px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}
.mockup-stat .label { font-size: .72rem; color: var(--slate-500); text-transform: uppercase; letter-spacing: .04em; }
.mockup-stat .value { font-size: 1.25rem; font-weight: 700; color: var(--navy); margin-top: 4px; }
.mockup-stat .delta { font-size: .72rem; color: var(--success); margin-top: 2px; font-weight: 600; }

.mockup-row {
  display: flex; align-items: center; gap: 12px;
  background: var(--white);
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  box-shadow: var(--shadow-sm);
  font-size: .85rem;
}
.mockup-row .badge {
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, .12);
  color: var(--success);
  font-weight: 600;
  margin-left: auto;
}
.mockup-row .badge.pending { background: rgba(245, 158, 11, .12); color: var(--warning); }
.mockup-row .platform-tag {
  font-size: .7rem; padding: 3px 8px; border-radius: 6px;
  background: var(--primary-50); color: var(--primary-600); font-weight: 600;
}

.float-card {
  position: absolute;
  background: var(--white);
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9rem;
  font-weight: 600;
  animation: float 4s ease-in-out infinite;
}
.float-card.tl { top: 20px; left: -30px; animation-delay: -1s; }
.float-card.br { bottom: 30px; right: -30px; }
.float-card .ico {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--primary-50);
  display: grid; place-items: center;
  color: var(--primary);
}
.float-card.success .ico { background: rgba(16, 185, 129, .12); color: var(--success); }
.float-card small { display: block; font-weight: 500; color: var(--slate-500); font-size: .75rem; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* === Dashboard mockup — Filament panelinin görsel alıntısı === */
.mockup-dash { background: #F9FAFB; }
.mockup-dash .mockup-bar {
  align-items: center;
  background: #FFFFFF;
  border-bottom: 1px solid #E5E7EB;
}
.mockup-dash .mockup-url {
  margin: 0 60px 0 14px;
  flex: 1;
  text-align: center;
  font-size: .7rem;
  color: #9CA3AF;
  background: #F3F4F6;
  padding: 4px 10px;
  border-radius: 6px;
  font-family: ui-monospace, monospace;
}

.dash-shell {
  display: flex;
  background: #F9FAFB;
}
.dash-side {
  flex: 0 0 48px;
  background: #FFFFFF;
  border-right: 1px solid #E5E7EB;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.dash-side-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, #6366F1, #4F46E5);
  color: #fff;
  font-size: .82rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
}
.dash-side-item {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #9CA3AF;
}
.dash-side-item.is-active {
  background: #EEF2FF;
  color: #4F46E5;
}
.dash-side-item svg { width: 16px; height: 16px; }

.dash-main {
  flex: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.dash-bar {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .7rem;
}
.dash-bar-icon {
  width: 26px; height: 26px;
  border-radius: 6px;
  background: #EEF2FF;
  display: grid;
  place-items: center;
  color: #6366F1;
  flex-shrink: 0;
}
.dash-bar-icon svg { width: 14px; height: 14px; }
.dash-bar-label {
  font-weight: 500;
  color: #374151;
  flex-shrink: 0;
}
.dash-bar-input {
  background: #F9FAFB;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
  padding: 4px 8px;
  color: #1F2937;
  font-size: .65rem;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  font-family: ui-monospace, monospace;
}
.dash-bar-input svg { width: 11px; height: 11px; color: #9CA3AF; flex-shrink: 0; }
.dash-bar-input span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-bar-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #EEF2FF;
  color: #4F46E5;
  border: 1px solid #C7D2FE;
  font-weight: 600;
  font-size: .62rem;
  padding: 4px 10px;
  border-radius: 999px;
  flex-shrink: 0;
}
.dash-bar-badge svg { width: 10px; height: 10px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.dash-stat-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 10px 11px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.dash-stat-card .stat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.dash-stat-card .stat-label {
  font-size: .58rem;
  color: #6B7280;
  text-transform: uppercase;
  letter-spacing: .04em;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.dash-stat-card .stat-icon {
  width: 20px; height: 20px;
  border-radius: 5px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.dash-stat-card .stat-icon svg { width: 11px; height: 11px; }
.dash-stat-card .stat-icon.indigo { background: #EEF2FF; color: #6366F1; }
.dash-stat-card .stat-icon.green  { background: #DCFCE7; color: #16A34A; }
.dash-stat-card .stat-icon.amber  { background: #FEF3C7; color: #D97706; }
.dash-stat-card .stat-icon.blue   { background: #DBEAFE; color: #2563EB; }
.dash-stat-card .stat-value {
  font-size: 1.02rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -.02em;
  line-height: 1.2;
}
.dash-stat-card .stat-delta {
  font-size: .62rem;
  font-weight: 600;
  color: #16A34A;
  display: flex;
  align-items: center;
  gap: 2px;
}
.dash-stat-card .stat-delta.muted { color: #9CA3AF; font-weight: 500; }

.dash-charts {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 8px;
}
.dash-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.dash-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dash-card-title {
  font-size: .72rem;
  font-weight: 600;
  color: #111827;
}
.dash-card-meta {
  font-size: .6rem;
  color: #6B7280;
  font-weight: 500;
  background: #F3F4F6;
  padding: 2px 7px;
  border-radius: 4px;
}

.dash-line { width: 100%; height: 70px; display: block; }
.dash-line-path { fill: none; stroke: #6366F1; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dash-line-area { fill: url(#dashLineGrad); }
.dash-line-grid { stroke: #F3F4F6; stroke-width: 1; }
.dash-line-dot { fill: #6366F1; stroke: #fff; stroke-width: 1.5; }

.dash-donut { display: flex; align-items: center; gap: 10px; }
.dash-donut-svg { width: 64px; height: 64px; flex-shrink: 0; transform: rotate(-90deg); }
.dash-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: .62rem;
  color: #374151;
  flex: 1;
  min-width: 0;
}
.dash-donut-legend .row { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.dash-donut-legend .swatch { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.dash-donut-legend .pct { margin-left: auto; font-weight: 600; color: #6B7280; }

@media (max-width: 700px) {
  .dash-stats { grid-template-columns: repeat(2, 1fr); }
  .dash-charts { grid-template-columns: 1fr; }
}

/* ============== TRUST BAR ============== */
.trust-bar {
  padding: 36px 0;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
  background: var(--white);
}
.trust-bar p {
  text-align: center;
  color: var(--slate-500);
  font-size: .85rem;
  margin: 0 0 20px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 600;
}
.trust-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(24px, 5vw, 64px);
  flex-wrap: wrap;
}
.trust-logos span {
  font-size: clamp(.95rem, 1.4vw, 1.2rem);
  font-weight: 700;
  color: var(--slate-500);
  letter-spacing: -.02em;
  filter: grayscale(1);
  opacity: .75;
  transition: all var(--transition);
}
.trust-logos span:hover { filter: grayscale(0); opacity: 1; color: var(--primary); }

/* ============== FEATURES ============== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s ease;
}
.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
}
.feature-card:hover::before { transform: scaleX(1); }

.feature-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary);
  display: grid; place-items: center;
  margin-bottom: 20px;
}
.feature-card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.feature-card p { font-size: .95rem; margin: 0; }

/* ============== HOW IT WORKS ============== */
.steps-section {
  background: linear-gradient(180deg, var(--bg) 0%, #FFFFFF 100%);
}
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  position: relative;
}
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; } }

.step {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  position: relative;
}
.step-num {
  position: absolute;
  top: -22px; left: 28px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 800;
  box-shadow: var(--shadow-blue);
}
.step h3 { margin-top: 14px; }
.step p { margin: 0; font-size: .95rem; }

/* ============== INTEGRATIONS ============== */
.integration-section { background: var(--navy); color: var(--white); position: relative; overflow: hidden; }
.integration-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(11, 95, 255, .25) 0%, transparent 40%),
    radial-gradient(circle at 80% 100%, rgba(0, 194, 255, .15) 0%, transparent 40%);
}
.integration-section .container { position: relative; }
.integration-section h2 { color: var(--white); }
.integration-section .section-head p { color: rgba(255,255,255,.75); }
.integration-section .eyebrow { background: rgba(11, 95, 255, .25); color: var(--accent); }

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 18px;
}
.integration-card {
  background: rgba(255, 255, 255, .04);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: all var(--transition);
  backdrop-filter: blur(10px);
}
.integration-card:hover {
  background: rgba(11, 95, 255, .15);
  border-color: var(--primary);
  transform: translateY(-4px);
}
.integration-card .name { font-weight: 700; font-size: 1rem; margin-bottom: 4px; }
.integration-card .type { font-size: .78rem; color: rgba(255,255,255,.55); }
.integration-card .ico {
  width: 52px; height: 52px;
  margin: 0 auto 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  display: grid; place-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
}

/* ============== PRICING ============== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }

.price-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-blue);
  transform: scale(1.03);
  background: linear-gradient(180deg, #FFFFFF 0%, var(--primary-50) 100%);
}
.price-card.featured:hover { transform: scale(1.03) translateY(-4px); }
.price-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .04em;
  padding: 6px 14px;
  border-radius: 999px;
  text-transform: uppercase;
}
.price-card h3 { font-size: 1.1rem; color: var(--primary); margin-bottom: 8px; }
.price-card .desc { color: var(--slate-500); font-size: .9rem; margin-bottom: 24px; }
.price {
  display: baseline;
  margin-bottom: 8px;
}
.price .amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -.03em;
}
.price .period { color: var(--slate-500); font-size: .9rem; }
.price-credits {
  margin: 0 0 24px;
  font-size: .92rem;
  color: var(--slate-500);
}
.price-credits strong {
  color: var(--primary);
  font-weight: 700;
}
.price-features { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.price-features li {
  padding: 10px 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .94rem;
  color: var(--slate-700);
  border-bottom: 1px dashed var(--slate-100);
}
.price-features li:last-child { border-bottom: 0; }
.price-features svg { flex-shrink: 0; color: var(--success); margin-top: 2px; }
.price-card .btn { width: 100%; }

/* ============== TESTIMONIALS ============== */
.testimonials {
  background: linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 28px;
  border: 1px solid var(--slate-100);
  transition: all var(--transition);
}
.testimonial:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary-100);
}
.stars { color: #F59E0B; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial p { font-size: 1rem; color: var(--slate-700); margin-bottom: 22px; }
.author { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: var(--white);
  display: grid; place-items: center;
  font-weight: 700;
}
.author-meta strong { display: block; color: var(--navy); font-size: .95rem; }
.author-meta span { color: var(--slate-500); font-size: .82rem; }

/* ============== FAQ ============== */
.faq-grid {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.faq-item[open] { border-color: var(--primary-100); box-shadow: var(--shadow-sm); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1rem;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--primary-50);
  color: var(--primary);
  display: grid; place-items: center;
  font-size: 1.3rem;
  font-weight: 400;
  flex-shrink: 0;
  transition: all var(--transition);
}
.faq-item[open] summary::after {
  content: '−';
  background: var(--primary);
  color: var(--white);
}
.faq-item .answer {
  padding: 0 26px 24px;
  color: var(--slate-700);
  line-height: 1.7;
}
.faq-item .answer p { margin: 0; }

/* ============== CTA BANNER ============== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-700) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 6vw, 80px);
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.cta-banner::before,
.cta-banner::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
}
.cta-banner::before { width: 300px; height: 300px; top: -100px; right: -80px; }
.cta-banner::after { width: 220px; height: 220px; bottom: -80px; left: -50px; }
.cta-banner > * { position: relative; }
.cta-banner h2 { color: var(--white); margin-bottom: 14px; }
.cta-banner p { color: rgba(255,255,255,.85); max-width: 580px; margin: 0 auto 28px; font-size: 1.1rem; }
.cta-banner .btn-primary {
  background: var(--white);
  color: var(--primary);
  box-shadow: 0 10px 30px rgba(0,0,0,.15);
}
.cta-banner .btn-primary:hover { color: var(--primary-700); }
.cta-banner-buttons { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============== FOOTER ============== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: 80px 0 30px;
  position: relative;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer .brand:hover { color: var(--white); }
.site-footer .brand-logo {
  filter: brightness(0) invert(1);
  opacity: .95;
}
.site-footer h4 {
  color: var(--white);
  font-size: .9rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.footer-list { list-style: none; margin: 0; padding: 0; }
.footer-list li { list-style: none; margin: 0 0 10px; font-size: .92rem; }
.footer-list a { color: rgba(255,255,255,.7); }
.footer-list a:hover { color: var(--accent); }

.footer-about p { color: rgba(255,255,255,.7); font-size: .92rem; max-width: 360px; }
.social { display: flex; gap: 10px; margin-top: 20px; }
.social a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.08);
  color: var(--white);
  display: grid; place-items: center;
  transition: all var(--transition);
}
.social a:hover { background: var(--primary); transform: translateY(-2px); color: var(--white); }

.footer-bottom {
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: rgba(255,255,255,.5);
}
.footer-bottom-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-bottom-links a { color: rgba(255,255,255,.6); }
.footer-bottom-links a:hover { color: var(--white); }

/* ============== UTILITY: PAGE HERO ============== */
.page-hero {
  padding: 70px 0 60px;
  background:
    radial-gradient(circle at 80% 20%, var(--accent-soft) 0%, transparent 35%),
    radial-gradient(circle at 0% 100%, var(--primary-100) 0%, transparent 40%),
    linear-gradient(180deg, #FFFFFF 0%, var(--bg) 100%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem); }
.page-hero p { max-width: 680px; margin: 0 auto; font-size: 1.05rem; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  list-style: none;
  font-size: .85rem;
  color: var(--slate-500);
  margin: 0 0 22px;
}
.breadcrumb a { color: var(--slate-500); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb li:not(:last-child)::after { content: '›'; margin-left: 8px; color: var(--slate-300); }

/* ============== CONTACT FORM ============== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 48px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}
.contact-info h2 { color: var(--white); }
.contact-info p { color: rgba(255,255,255,.8); }
.contact-list { margin-top: 30px; }
.contact-list li {
  display: flex; gap: 14px;
  margin-bottom: 22px;
  font-size: .95rem;
}
.contact-list .ico {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.contact-list strong { display: block; color: var(--white); margin-bottom: 2px; }
.contact-list span { color: rgba(255,255,255,.8); }

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  padding: 40px 36px;
}
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-weight: 600;
  font-size: .9rem;
  color: var(--navy);
  margin-bottom: 8px;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--slate-900);
  background: var(--bg);
  transition: all var(--transition);
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: 0;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-50);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.consent {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .85rem; color: var(--slate-500);
  margin: 14px 0 22px;
}
.consent input { margin-top: 4px; }

/* Contact Form 7 — mevcut .field/.field-row/.consent şablonuyla uyum */
.form-card .wpcf7-form-control-wrap { display: block; }
.form-card .wpcf7-not-valid-tip {
  display: block;
  margin-top: 6px;
  font-size: .82rem;
  color: var(--danger);
}
.form-card .wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--danger);
}
.form-card .wpcf7-response-output {
  margin: 0 0 18px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: .9rem;
  border: 1.5px solid var(--slate-100);
}
.form-card form.sent .wpcf7-response-output { border-color: var(--primary); color: var(--primary-700); }
.form-card form.failed .wpcf7-response-output,
.form-card form.aborted .wpcf7-response-output,
.form-card form.spam .wpcf7-response-output { border-color: var(--danger); color: var(--danger); }
.form-card .wpcf7-spinner { margin-left: 10px; }
.consent .wpcf7-list-item { margin: 0; }
.consent .wpcf7-list-item-label { font-size: .85rem; color: var(--slate-500); }

/* ============== ABOUT ============== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }

.values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 22px;
  margin-top: 40px;
}
.value {
  background: var(--white);
  padding: 26px;
  border-radius: var(--radius);
  border: 1px solid var(--slate-100);
}
.value h3 { font-size: 1.05rem; margin-bottom: 8px; }
.value p { font-size: .92rem; margin: 0; }

.stat-strip {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  color: var(--white);
  text-align: center;
}
@media (max-width: 700px) { .stat-strip { grid-template-columns: repeat(2, 1fr); } }
.stat .num { font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.stat .lbl { font-size: .9rem; color: rgba(255,255,255,.8); }

/* ============== 404 ============== */
.error-page {
  min-height: 70vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 60px 20px;
}
.error-code {
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 900;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -.04em;
  margin-bottom: 8px;
}

/* ============== ANIMATIONS ON SCROLL ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

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

/* ============== ACCESSIBILITY ============== */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============== API DOC ============== */
.api-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 960px) {
  .api-layout { grid-template-columns: 1fr; gap: 24px; }
  .api-toc { position: static !important; }
}
.api-toc {
  position: sticky;
  top: 100px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 22px 18px;
}
.api-toc h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-500);
  margin: 0 0 14px;
}
.api-toc ul { list-style: none; padding: 0; margin: 0; }
.api-toc li { margin-bottom: 4px; }
.api-toc a {
  display: block;
  padding: 8px 12px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--slate-700);
  border-radius: 8px;
  transition: all var(--transition);
}
.api-toc a:hover, .api-toc a.active {
  color: var(--primary);
  background: var(--primary-50);
}

.api-card {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 24px;
}
.api-card-head {
  padding: 22px 26px;
  border-bottom: 1px solid var(--slate-100);
  display: flex;
  align-items: center;
  gap: 16px;
}
.api-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary-50), var(--primary-100));
  color: var(--primary);
}
.api-card-icon.success { background: linear-gradient(135deg, #DCFCE7, #BBF7D0); color: #16A34A; }
.api-card-icon.warning { background: linear-gradient(135deg, #FEF3C7, #FDE68A); color: #D97706; }
.api-card-icon.danger  { background: linear-gradient(135deg, #FEF2F2, #FECACA); color: #DC2626; }
.api-card-icon.dark    { background: linear-gradient(135deg, var(--slate-100), #E2E8F0); color: var(--navy); }

.api-card-head h3 {
  font-size: 1.1rem;
  margin: 0 0 4px;
  font-weight: 700;
  color: var(--navy);
}
.api-card-head p {
  margin: 0;
  font-size: .9rem;
  color: var(--slate-500);
}
.api-card-body { padding: 26px; }

.api-info-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--primary-50);
  border-radius: var(--radius);
  border: 1px solid var(--primary-100);
}
.api-info-box svg { flex-shrink: 0; color: var(--primary); margin-top: 2px; }
.api-info-box p { margin: 0 0 8px; font-size: .92rem; color: var(--slate-700); }
.api-info-box p:last-child { margin: 0; }

.api-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--primary);
}
.api-link:hover { color: var(--primary-600); }

code.api-snippet, code.snippet {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .85em;
  background: var(--primary-50);
  color: var(--primary-700);
  padding: 2px 7px;
  border-radius: 5px;
  font-weight: 500;
}

.api-label {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-500);
  margin-bottom: 8px;
}

/* Method badges */
.method-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  min-width: 50px;
  text-align: center;
  font-family: ui-monospace, monospace;
}
.method-get    { background: #DCFCE7; color: #166534; }
.method-post   { background: #DBEAFE; color: #1D4ED8; }
.method-put    { background: #FEF3C7; color: #92400E; }
.method-delete { background: #FEE2E2; color: #B91C1C; }

/* Endpoint accordion */
.endpoint {
  border-top: 1px solid var(--slate-100);
}
.endpoint:first-child { border-top: 0; }
.endpoint summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
}
.endpoint summary::-webkit-details-marker { display: none; }
.endpoint-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  flex: 1;
}
.endpoint-path {
  font-family: ui-monospace, monospace;
  font-size: .92rem;
  font-weight: 600;
  color: var(--navy);
}
.endpoint-desc {
  font-size: .88rem;
  color: var(--slate-500);
}
.endpoint .chevron {
  width: 18px; height: 18px;
  color: var(--slate-500);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.endpoint[open] .chevron { transform: rotate(180deg); }
.endpoint-body {
  padding: 4px 0 24px;
}
.endpoint-body p {
  font-size: .92rem;
  color: var(--slate-700);
  margin: 0 0 16px;
}

/* Code blocks */
.code-wrap {
  position: relative;
  margin: 0 0 14px;
}
.code-block {
  background: #0F1936;
  color: #E2E8F0;
  border-radius: var(--radius);
  padding: 18px 22px;
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .82rem;
  line-height: 1.7;
  overflow-x: auto;
  white-space: pre;
  margin: 0;
  border: 1px solid #1E2B4F;
}
.code-block .tok-key  { color: #89DCEB; }
.code-block .tok-str  { color: #A6E3A1; }
.code-block .tok-num  { color: #FAB387; }
.code-block .tok-bool { color: #CBA6F7; }
.code-block .tok-com  { color: #6C7086; font-style: italic; }
.code-block .tok-fn   { color: #FAB387; }
.code-block .tok-var  { color: #CBA6F7; }

.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 6px;
  padding: 6px 8px;
  cursor: pointer;
  color: #94A3B8;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .72rem;
  font-weight: 500;
  transition: all .15s ease;
  line-height: 1;
}
.copy-btn:hover {
  background: rgba(255, 255, 255, .15);
  color: #E2E8F0;
}
.copy-btn.copied {
  color: #A6E3A1;
  border-color: rgba(166, 227, 161, .35);
}
.copy-btn .ico-check { display: none; }
.copy-btn.copied .ico-copy { display: none; }
.copy-btn.copied .ico-check { display: inline; }

/* Form fields in API page */
.api-form { display: flex; flex-direction: column; gap: 18px; }

/* Error rows */
.error-list { display: flex; flex-direction: column; gap: 8px; }
.error-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border: 1px solid var(--slate-100);
  border-radius: 10px;
  background: var(--slate-100);
  background: #FAFBFC;
  flex-wrap: wrap;
}
.error-status {
  font-size: .72rem;
  font-weight: 700;
  color: #B91C1C;
  background: #FEE2E2;
  padding: 4px 10px;
  border-radius: 6px;
  min-width: 42px;
  text-align: center;
  flex-shrink: 0;
  font-family: ui-monospace, monospace;
}
.error-code {
  font-family: ui-monospace, monospace;
  font-size: .82rem;
  color: var(--navy);
  font-weight: 600;
  min-width: 170px;
  flex-shrink: 0;
}
.error-desc {
  font-size: .85rem;
  color: var(--slate-500);
  flex: 1;
  min-width: 200px;
}

/* ============== BLOG ============== */
.blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}
@media (max-width: 960px) {
  .blog-layout { grid-template-columns: 1fr; gap: 40px; }
}

.blog-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--slate-100);
}
.blog-toolbar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: .88rem;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--slate-100);
  transition: all var(--transition);
  border: 1px solid transparent;
}
.blog-toolbar a:hover {
  color: var(--primary);
  background: var(--primary-50);
}
.blog-toolbar a.is-active {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  box-shadow: var(--shadow-blue);
}
.blog-toolbar a .count {
  font-size: .72rem;
  font-weight: 600;
  opacity: .7;
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}
.blog-layout .post-grid {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transition: all var(--transition);
  height: 100%;
}
.post-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
}
.post-card .post-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-soft));
  overflow: hidden;
}
.post-card .post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.post-card:hover .post-thumb img { transform: scale(1.04); }
.post-card .post-thumb-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--primary);
  opacity: .35;
}
.post-card .post-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 12px;
}
.post-card h3 {
  font-size: 1.15rem;
  margin: 0;
  line-height: 1.35;
}
.post-card h3 a { color: var(--navy); }
.post-card h3 a:hover { color: var(--primary); }
.post-card .post-excerpt {
  margin: 0;
  font-size: .92rem;
  color: var(--slate-700);
  line-height: 1.6;
}
.post-card .post-foot {
  margin-top: auto;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: .82rem;
  color: var(--slate-500);
  border-top: 1px solid var(--slate-100);
}

.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.cat-chip {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--primary-50);
  color: var(--primary-600);
  transition: all var(--transition);
}
.cat-chip:hover { background: var(--primary-100); color: var(--primary-700); }

.post-meta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .82rem;
  color: var(--slate-500);
  flex-wrap: wrap;
}
.post-meta-row .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--slate-300);
}
.post-meta-row time { font-weight: 500; }

/* Featured (sticky / lead) post */
.post-featured {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 0;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  margin-bottom: 40px;
  transition: all var(--transition);
}
.post-featured:hover {
  border-color: var(--primary-100);
  box-shadow: var(--shadow);
}
@media (max-width: 760px) { .post-featured { grid-template-columns: 1fr; } }
.post-featured .post-thumb {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-soft));
  position: relative;
  overflow: hidden;
}
.post-featured .post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-featured .post-body {
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.post-featured h2 {
  font-size: clamp(1.4rem, 1.5vw + 1rem, 1.9rem);
  margin: 0;
  line-height: 1.25;
}
.post-featured h2 a { color: var(--navy); }
.post-featured h2 a:hover { color: var(--primary); }
.post-featured .post-excerpt { font-size: 1rem; color: var(--slate-700); margin: 0; }
.post-featured .read-more {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

/* Sidebar (blog) */
.blog-sidebar { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 960px) { .blog-sidebar { position: static; } }

.widget {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 24px;
}
.widget h4 {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--slate-500);
  margin: 0 0 16px;
  font-weight: 700;
}
.widget ul { display: flex; flex-direction: column; gap: 4px; }
.widget li a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: .92rem;
  font-weight: 500;
  color: var(--slate-700);
  transition: all var(--transition);
}
.widget li a:hover { color: var(--primary); background: var(--primary-50); }
.widget li a .count {
  font-size: .75rem;
  background: var(--slate-100);
  color: var(--slate-500);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 600;
}
.widget li a:hover .count { background: var(--primary-100); color: var(--primary-600); }

.widget-cta {
  background: linear-gradient(135deg, var(--primary), var(--primary-700));
  color: var(--white);
  border-color: transparent;
}
.widget-cta h4 {
  color: rgba(255,255,255,.7);
}
.widget-cta p {
  color: rgba(255,255,255,.85);
  font-size: .92rem;
  margin: 0 0 16px;
}
.widget-cta .btn { width: 100%; }

/* Single post */
.post-single {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
.post-single .post-thumb-hero {
  margin: -20px 0 36px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, var(--primary-50), var(--accent-soft));
}
.post-single .post-thumb-hero img { width: 100%; height: 100%; object-fit: cover; }

.post-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--slate-700);
}
.post-content > * { margin-top: 0; margin-bottom: 1.25em; }
.post-content h2 {
  font-size: 1.75rem;
  margin-top: 2.2em;
  margin-bottom: .6em;
  color: var(--navy);
}
.post-content h3 {
  font-size: 1.3rem;
  margin-top: 1.8em;
  margin-bottom: .5em;
  color: var(--navy);
}
.post-content h4 { font-size: 1.1rem; margin-top: 1.6em; color: var(--navy); }
.post-content p { color: var(--slate-700); }
.post-content a {
  color: var(--primary);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--primary-100);
  text-underline-offset: 3px;
}
.post-content a:hover { text-decoration-color: var(--primary); }
.post-content ul, .post-content ol {
  padding-left: 1.5em;
  list-style: revert;
}
.post-content ul li, .post-content ol li { margin-bottom: .4em; }
.post-content blockquote {
  border-left: 4px solid var(--primary);
  background: var(--primary-50);
  padding: 18px 24px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--navy);
  margin: 1.5em 0;
}
.post-content blockquote p:last-child { margin-bottom: 0; }
.post-content img,
.post-content figure {
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.5em 0;
}
.post-content figcaption {
  font-size: .85rem;
  color: var(--slate-500);
  text-align: center;
  margin-top: 8px;
}
.post-content code {
  font-family: ui-monospace, 'SF Mono', Menlo, Monaco, Consolas, monospace;
  font-size: .88em;
  background: var(--slate-100);
  color: var(--navy);
  padding: 2px 7px;
  border-radius: 5px;
}
.post-content pre {
  background: #0F1936;
  color: #E2E8F0;
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .88rem;
  line-height: 1.7;
  overflow-x: auto;
  margin: 1.5em 0;
}
.post-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}
.post-content hr {
  border: 0;
  border-top: 1px solid var(--slate-100);
  margin: 2.4em 0;
}
.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: .95rem;
}
.post-content th,
.post-content td {
  padding: 12px 16px;
  border: 1px solid var(--slate-100);
  text-align: left;
}
.post-content th {
  background: var(--slate-100);
  color: var(--navy);
  font-weight: 600;
}

.post-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 20px;
  padding: 70px 24px 0;
}
.post-header .post-meta-row { justify-content: center; margin-bottom: 18px; }
.post-header h1 {
  font-size: clamp(1.9rem, 3vw + 1rem, 2.8rem);
  margin: 0 0 18px;
}
.post-header .post-lead {
  font-size: 1.1rem;
  color: var(--slate-500);
  max-width: 640px;
  margin: 0 auto;
}

.post-share {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 28px 0;
  margin-top: 48px;
  border-top: 1px solid var(--slate-100);
  border-bottom: 1px solid var(--slate-100);
}
.post-share span {
  font-size: .82rem;
  font-weight: 600;
  color: var(--slate-500);
  letter-spacing: .04em;
  text-transform: uppercase;
}
.post-share a {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: var(--slate-100);
  color: var(--slate-700);
  display: grid;
  place-items: center;
  transition: all var(--transition);
}
.post-share a:hover {
  background: var(--primary);
  color: var(--white);
  transform: translateY(-2px);
}

.post-tags {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.post-tags a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: .82rem;
  font-weight: 500;
  background: var(--slate-100);
  color: var(--slate-700);
  transition: all var(--transition);
}
.post-tags a:hover { background: var(--primary-50); color: var(--primary-600); }

.related-posts {
  background: var(--bg);
  padding: clamp(56px, 6vw, 80px) 0;
}
.related-posts h2 {
  text-align: center;
  font-size: 1.7rem;
  margin-bottom: 36px;
}

/* Pagination */
.pagination,
nav.pagination,
.post-grid + .pagination {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 48px;
}
.pagination .page-numbers,
.nav-links .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: .92rem;
  font-weight: 600;
  color: var(--slate-700);
  background: var(--white);
  border: 1px solid var(--slate-100);
  transition: all var(--transition);
}
.pagination a.page-numbers:hover {
  color: var(--primary);
  border-color: var(--primary-100);
  background: var(--primary-50);
}
.pagination .page-numbers.current {
  color: var(--white);
  background: linear-gradient(135deg, var(--primary), var(--primary-600));
  border-color: transparent;
  box-shadow: var(--shadow-blue);
}
.pagination .page-numbers.dots {
  border: 0;
  background: transparent;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 60px 24px;
  background: var(--white);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius-lg);
}
.blog-empty h3 { color: var(--navy); }
.blog-empty p { color: var(--slate-500); }


/* ============== COMMENTS ============== */
.post-comments {
  max-width: 760px;
  margin: 60px auto 0;
  padding: 0 24px;
}
.comments-head {
  margin-bottom: 28px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--slate-100);
}
.comments-title {
  font-size: 1.5rem;
  margin: 0 0 6px;
  color: var(--navy);
}
.comments-sub {
  margin: 0;
  font-size: .95rem;
  color: var(--slate-500);
}
.comments-closed {
  text-align: center;
  padding: 24px;
  background: var(--slate-100);
  color: var(--slate-500);
  border-radius: var(--radius);
  font-size: .92rem;
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.comment-list,
.comment-list .children {
  list-style: none;
  padding: 0;
}
.comment-list .children {
  margin-top: 18px;
  padding-left: 28px;
  border-left: 2px solid var(--slate-100);
}
.comment-list > .comment-item:not(:last-child) {
  margin-bottom: 18px;
}
.comment-list .children .comment-item:not(:last-child) {
  margin-bottom: 14px;
}

.comment-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius);
  padding: 20px;
  transition: border-color var(--transition);
}
.comment-body:hover { border-color: var(--primary-100); }
.comment-item.is-admin > .comment-body {
  background: linear-gradient(180deg, var(--primary-50) 0%, var(--white) 100%);
  border-color: var(--primary-100);
}

.comment-avatar { flex-shrink: 0; }
.comment-avatar-img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: block;
}

.comment-main { min-width: 0; }
.comment-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
  font-size: .88rem;
}
.comment-author {
  font-weight: 600;
  color: var(--navy);
}
.comment-badge {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: var(--primary);
  color: var(--white);
  padding: 3px 8px;
  border-radius: 6px;
}
.comment-date {
  color: var(--slate-500);
  font-size: .82rem;
  margin-left: auto;
}
.comment-date:hover { color: var(--primary); }

.comment-pending {
  font-size: .82rem;
  color: var(--warning);
  background: rgba(245, 158, 11, .08);
  padding: 6px 10px;
  border-radius: 6px;
  margin: 0 0 10px;
}

.comment-content {
  font-size: .95rem;
  line-height: 1.7;
  color: var(--slate-700);
}
.comment-content p { margin: 0 0 .8em; color: var(--slate-700); }
.comment-content p:last-child { margin-bottom: 0; }
.comment-content a {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-color: var(--primary-100);
  text-underline-offset: 2px;
}
.comment-content a:hover { text-decoration-color: var(--primary); }

.comment-actions {
  margin-top: 14px;
  font-size: .82rem;
  color: var(--slate-500);
}
.comment-reply-link,
.comment-actions a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  color: var(--primary);
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--primary-50);
  transition: all var(--transition);
}
.comment-reply-link:hover,
.comment-actions a:hover {
  background: var(--primary-100);
  color: var(--primary-700);
}
.comment-actions .comment-edit-link {
  background: var(--slate-100);
  color: var(--slate-700);
  margin-left: 8px;
}

/* Form */
.comment-form-wrap {
  background: var(--white);
  border: 1px solid var(--slate-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 12px;
}
.comment-respond .comment-reply-title {
  font-size: 1.25rem;
  margin: 0 0 18px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.comment-respond .comment-reply-title small a {
  font-size: .85rem;
  font-weight: 500;
  color: var(--slate-500);
  background: var(--slate-100);
  padding: 4px 10px;
  border-radius: 6px;
}
.comment-respond .comment-reply-title small a:hover {
  background: var(--primary-50);
  color: var(--primary);
}

.comment-form .field { margin-bottom: 16px; }
.comment-form .field label {
  display: block;
  font-weight: 600;
  font-size: .88rem;
  color: var(--navy);
  margin-bottom: 6px;
}
.comment-form .field .required { color: var(--danger); }
.comment-form .field input,
.comment-form .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--slate-100);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: .95rem;
  color: var(--slate-900);
  background: var(--bg);
  transition: all var(--transition);
}
.comment-form .field input:focus,
.comment-form .field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 4px var(--primary-50);
}
.comment-form .field textarea { resize: vertical; min-height: 130px; }

.comment-form-cookies-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .85rem;
  color: var(--slate-500);
  margin: 8px 0 18px;
}
.comment-form-cookies-consent input { margin-top: 4px; }

.comment-form .form-submit {
  margin: 0;
}
.comment-form .form-submit .btn {
  padding-top: 14px;
  padding-bottom: 14px;
}

.logged-in-as {
  font-size: .88rem;
  color: var(--slate-500);
  margin: 0 0 16px;
}
.logged-in-as a { font-weight: 500; }

@media (max-width: 600px) {
  .comment-body { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
  .comment-avatar-img { width: 40px; height: 40px; }
  .comment-list .children { padding-left: 14px; }
  .comment-form-wrap { padding: 22px; }
  .comment-date { margin-left: 0; }
}
