/* Bütçen Landing — uygulama temasıyla uyumlu (theme.dart) */
:root {
  color-scheme: light;
  --primary: #10B981;
  --primary-dark: #059669;
  --secondary: #6366F1;
  --expense: #EF4444;
  --gold: #D97706;

  --bg: #F4F7FB;
  --surface: #FFFFFF;
  --card: #FFFFFF;
  --muted: #64748B;
  --border: #E2E8F0;
  --text: #0F172A;
  --header-bg: rgba(255, 255, 255, 0.86);
  --ghost-bg: rgba(15, 23, 42, 0.04);
  --ghost-hover: rgba(15, 23, 42, 0.08);
  --grid-line: rgba(15, 23, 42, 0.045);
  --phone-start: #334155;
  --phone-end: #0F172A;
  --phone-notch: #0F172A;
  --mock-start: #059669;
  --mock-end: #4F46E5;
  --float-bg: rgba(255, 255, 255, 0.94);
  --ticker-bg: rgba(255, 255, 255, 0.78);
  --content: #334155;
  --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.09);
  --hover-shadow: 0 22px 50px rgba(15, 23, 42, 0.13);

  --radius: 20px;
  --header-h: 68px;
  --font: 'Manrope', system-ui, -apple-system, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0B1120;
  --surface: #111A2E;
  --card: #16213B;
  --muted: #8494B2;
  --border: #243453;
  --text: #E6EDF7;
  --header-bg: rgba(11, 17, 32, 0.84);
  --ghost-bg: rgba(255, 255, 255, 0.05);
  --ghost-hover: rgba(255, 255, 255, 0.1);
  --grid-line: rgba(230, 237, 247, 0.035);
  --phone-start: #1D2A47;
  --phone-end: #0D1526;
  --phone-notch: #0D1526;
  --mock-start: #0E3B2E;
  --mock-end: #14275A;
  --float-bg: rgba(22, 33, 59, 0.92);
  --ticker-bg: rgba(17, 26, 46, 0.7);
  --content: #D5DEEF;
  --card-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  --hover-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.18rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--card-shadow);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.brand-accent { color: var(--primary); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin-left: auto;
}

.nav-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.94rem;
  transition: color 0.2s;
}

.nav-links a:not(.btn):hover { color: var(--text); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  background: var(--card);
  box-shadow: var(--card-shadow);
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
  transform: translateY(-1px);
  border-color: rgba(16, 185, 129, 0.45);
}

.theme-toggle svg { width: 18px; height: 18px; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font);
  font-weight: 700;
  text-decoration: none;
  border-radius: 14px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  cursor: pointer;
  border: 0;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #052E1F;
  box-shadow: 0 6px 22px rgba(16, 185, 129, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.5);
}

.btn-ghost {
  color: var(--text);
  background: var(--ghost-bg);
  border: 1px solid var(--border);
}

.btn-ghost:hover { background: var(--ghost-hover); transform: translateY(-2px); }

.btn-light {
  background: #fff;
  color: var(--primary-dark);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.btn-light:hover { transform: translateY(-2px); }

.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ---------- Pill ---------- */
.pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.pill.center { display: table; margin: 0 auto 14px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 0;
  overflow: hidden;
}

.hero-bg { position: absolute; inset: 0; pointer-events: none; }

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 16s ease-in-out infinite alternate;
}

.blob-1 { width: 480px; height: 480px; background: rgba(16, 185, 129, 0.28); top: -160px; left: -120px; }
.blob-2 { width: 420px; height: 420px; background: rgba(99, 102, 241, 0.26); top: 40px; right: -140px; animation-delay: -5s; }
.blob-3 { width: 320px; height: 320px; background: rgba(217, 119, 6, 0.16); bottom: -80px; left: 34%; animation-delay: -9s; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to { transform: translate(46px, -34px) scale(1.12); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  padding-bottom: 72px;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 4.6vw, 3.55rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 18px 0;
}

.grad-text {
  background: linear-gradient(100deg, var(--primary) 10%, var(--secondary) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin-bottom: 14px;
}

.trust-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.28);
  max-width: 36rem;
}

.trust-line svg { flex-shrink: 0; color: #10b981; }

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 38px; }

.hero-stats { display: flex; gap: 38px; flex-wrap: wrap; }

.stat strong {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat span { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* ---------- Phone mockup ---------- */
.hero-visual { position: relative; display: flex; justify-content: center; }

.phone {
  width: 288px;
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(160deg, var(--phone-start), var(--phone-end));
  border: 1px solid var(--border);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: phoneFloat 7s ease-in-out infinite;
  position: relative;
}

@keyframes phoneFloat {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-16px) rotate(0.8deg); }
}

.phone-notch {
  position: absolute;
  top: 12px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: var(--phone-notch);
  border-radius: 0 0 16px 16px;
  z-index: 2;
}

.phone-screen {
  border-radius: 32px;
  background: var(--bg);
  overflow: hidden;
  padding: 40px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-header {
  background: linear-gradient(135deg, var(--mock-start), var(--mock-end));
  color: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.mock-hello { font-size: 0.72rem; color: rgba(255,255,255,0.78); }
.mock-title { font-size: 0.68rem; color: rgba(255,255,255,0.72); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700; }
.mock-amount { font-size: 1.5rem; font-weight: 800; }
.mock-badge { font-size: 0.7rem; color: #A7F3D0; font-weight: 700; }

.mock-row { display: flex; gap: 10px; }

.mock-chip {
  flex: 1;
  border-radius: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: var(--card);
  display: flex;
  flex-direction: column;
}

.mock-chip span { font-size: 0.66rem; color: var(--muted); font-weight: 600; }
.mock-chip strong { font-size: 0.9rem; font-weight: 800; }
.mock-chip.income strong { color: var(--primary); }
.mock-chip.expense strong { color: var(--expense); }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 74px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
}

.mock-chart .bar {
  flex: 1;
  height: var(--h);
  border-radius: 5px 5px 2px 2px;
  background: rgba(99, 102, 241, 0.45);
  animation: barGrow 1.2s cubic-bezier(0.2, 0.9, 0.3, 1.2) backwards;
}

.mock-chart .bar.accent { background: linear-gradient(to top, var(--primary-dark), var(--primary)); }

.mock-chart .bar:nth-child(1) { animation-delay: 0.35s; }
.mock-chart .bar:nth-child(2) { animation-delay: 0.45s; }
.mock-chart .bar:nth-child(3) { animation-delay: 0.55s; }
.mock-chart .bar:nth-child(4) { animation-delay: 0.65s; }
.mock-chart .bar:nth-child(5) { animation-delay: 0.75s; }
.mock-chart .bar:nth-child(6) { animation-delay: 0.85s; }

@keyframes barGrow { from { height: 4%; opacity: 0; } to { opacity: 1; } }

.mock-list { display: flex; flex-direction: column; gap: 8px; }

.mock-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.mock-item span { flex: 1; color: var(--muted); }
.mock-item b { font-weight: 800; }
.mock-item b.up { color: var(--primary); }

.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot.g { background: var(--gold); }
.dot.s { background: #94A3B8; }
.dot.u { background: var(--secondary); }

/* Floating cards */
.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--float-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 10px 14px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(8px);
  animation: cardFloat 5.5s ease-in-out infinite;
}

.float-card b { display: block; font-size: 0.8rem; }
.float-card small { color: var(--muted); font-size: 0.7rem; }
.fc-icon { font-size: 1.3rem; }

.fc-1 { top: 16%; left: -6%; animation-delay: -1.4s; }
.fc-2 { bottom: 12%; right: -8%; }

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

/* ---------- Ticker ---------- */
.ticker-wrap {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--ticker-bg);
  overflow: hidden;
  padding: 13px 0;
}

.ticker {
  display: inline-flex;
  gap: 44px;
  white-space: nowrap;
  animation: tickerScroll 80s linear infinite;
  will-change: transform;
}

.ticker-wrap:hover .ticker { animation-play-state: paused; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.tick { font-size: 0.88rem; font-weight: 700; color: var(--muted); }
.tick b { color: var(--text); }
.tick .up { color: var(--primary); }
.tick .down { color: var(--expense); }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-title {
  text-align: center;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin: 6px 0 52px;
}

.section-title.left { text-align: left; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--card-shadow);
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-7px);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: var(--hover-shadow);
}

.card-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.i-green { background: rgba(16, 185, 129, 0.13); }
.i-indigo { background: rgba(99, 102, 241, 0.13); }
.i-gold { background: rgba(217, 119, 6, 0.13); }
.i-red { background: rgba(239, 68, 68, 0.13); }
.i-teal { background: rgba(20, 184, 166, 0.13); }
.i-purple { background: rgba(139, 92, 246, 0.13); }

.section-lead {
  max-width: 640px;
  margin: 0 auto 36px;
  text-align: center;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 20px;
  align-items: start;
}

.step { text-align: center; padding: 0 8px; }

.step-no {
  width: 54px;
  height: 54px;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  font-weight: 800;
  color: #052E1F;
  border-radius: 17px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
}

.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.92rem; }

.step-arrow {
  font-size: 1.6rem;
  color: var(--primary);
  align-self: center;
  animation: nudge 1.8s ease-in-out infinite;
}

@keyframes nudge {
  0%, 100% { transform: translateX(0); opacity: 0.6; }
  50% { transform: translateX(7px); opacity: 1; }
}

/* ---------- Split / platform ---------- */
.split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}

.split .section-title { margin-bottom: 18px; }

.check-list { list-style: none; margin: 22px 0 30px; }

.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  font-weight: 600;
  color: var(--text);
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #052E1F;
  background: var(--primary);
  border-radius: 50%;
}

.sync-diagram {
  position: relative;
  height: 300px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}

.sync-node, .sync-cloud {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 2rem;
}

.sync-node span, .sync-cloud span { font-size: 0.8rem; font-weight: 700; color: var(--muted); }

.n-web { left: 9%; top: 50%; transform: translateY(-50%); }
.n-mobile { right: 9%; top: 50%; transform: translateY(-50%); }

.sync-cloud {
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.sync-cloud .pulse {
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 2px solid rgba(16, 185, 129, 0.5);
  animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
  from { transform: scale(0.7); opacity: 1; }
  to { transform: scale(1.5); opacity: 0; }
}

.sync-lines { position: absolute; inset: 0; width: 100%; height: 100%; }

.sync-lines .line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  opacity: 0.55;
  animation: dashMove 1.4s linear infinite;
}

.sync-lines .l2 { stroke: var(--secondary); animation-direction: reverse; }

@keyframes dashMove { to { stroke-dashoffset: -32; } }

/* ---------- FAQ ---------- */
.faq details {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color 0.25s;
}

.faq details[open] { border-color: rgba(16, 185, 129, 0.45); }

.faq summary {
  padding: 18px 22px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 48px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.35rem;
  color: var(--primary);
  transition: transform 0.25s;
}

.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }

.faq details p { padding: 0 22px 18px; color: var(--muted); font-size: 0.94rem; }

/* ---------- CTA ---------- */
.cta-section { padding-top: 20px; }

.cta-box {
  text-align: center;
  padding: 64px 32px;
  border-radius: 28px;
  background:
    radial-gradient(600px 280px at 20% 0%, rgba(255,255,255,0.14), transparent 60%),
    linear-gradient(120deg, var(--primary-dark), var(--secondary));
  box-shadow: 0 30px 70px rgba(16, 185, 129, 0.25);
}

.cta-box h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.02em; }
.cta-box p { margin: 10px 0 28px; color: rgba(255, 255, 255, 0.85); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 56px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 36px;
  padding-bottom: 40px;
}

.footer-brand p { color: var(--muted); font-size: 0.9rem; margin-top: 14px; max-width: 26rem; }

.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--muted);
  margin-bottom: 14px;
}

.footer-col a {
  display: block;
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 10px;
  transition: color 0.2s;
}

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

.fine { color: var(--muted); font-size: 0.82rem; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
  padding: 18px 24px;
  color: var(--muted);
  font-size: 0.84rem;
}

.to-top {
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
}

/* ---------- Reveal animasyonları ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.reveal.in { opacity: 1; transform: none; }

.d-1 { transition-delay: 0.1s; }
.d-2 { transition-delay: 0.2s; }
.d-3 { transition-delay: 0.3s; }
.d-4 { transition-delay: 0.42s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-cta, .hero-stats { justify-content: center; }
  .hero-visual { margin-top: 12px; }
  .fc-1 { left: 0; }
  .fc-2 { right: 0; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .step-arrow { transform: rotate(90deg); justify-self: center; }
  .split { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 24px 20px;
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.25s, opacity 0.25s, visibility 0.25s;
  }
  .nav-links.open { transform: none; opacity: 1; visibility: visible; }
  .nav-links li { padding: 10px 0; }
  .nav-links .btn { justify-content: center; margin-top: 8px; }

  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 68px 0; }
  .float-card { display: none; }
}

/* ---------- CMS (blog / sayfa) ---------- */
.cms-main { padding: calc(var(--header-h) + 32px) 0 80px; min-height: 60vh; }
.cms-hero { margin-bottom: 32px; }
.cms-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; }
.cms-hero p { color: var(--muted); margin-top: 8px; }
.cms-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.cms-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  box-shadow: var(--card-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.cms-card-thumb { display: block; overflow: hidden; }
.cms-card-thumb img { width: 100%; height: 180px; object-fit: cover; display: block; transition: transform 0.3s; }
.cms-card-thumb:hover img { transform: scale(1.03); }
.cms-card h2 { font-size: 1.1rem; margin-bottom: 8px; padding: 0 22px; }
.cms-card .cms-meta { padding: 0 22px; }
.cms-card > p:last-child { padding: 0 22px 22px; margin: 0; color: var(--muted); font-size: 0.95rem; }
.cms-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.cms-related h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 20px; }
.cms-related-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.cms-related-card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--card-shadow); transition: transform 0.25s, border-color 0.25s; }
.cms-related-card:hover { transform: translateY(-4px); border-color: rgba(16, 185, 129, 0.4); }
.cms-related-card a { text-decoration: none; color: inherit; display: block; }
.cms-related-card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.cms-related-card h3 { font-size: 1rem; font-weight: 700; padding: 14px 16px 6px; line-height: 1.35; }
.cms-related-card p { padding: 0 16px 16px; margin: 0; color: var(--muted); font-size: 0.88rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cms-content .cms-inline-img { width: 100%; max-height: 360px; object-fit: cover; border-radius: 12px; margin: 1.2em 0; }
.cms-content .cta-box-inline { background: linear-gradient(135deg, rgba(16,185,129,0.12), rgba(99,102,241,0.1)); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; margin: 2em 0; }
.cms-content .cta-box-inline a { font-weight: 700; }
.cms-card h2 { font-size: 1.1rem; margin-bottom: 8px; }
.cms-card h2 a { color: var(--text); text-decoration: none; }
.cms-card h2 a:hover { color: var(--primary); }
.cms-meta { color: var(--muted); font-size: 0.85rem; margin-bottom: 8px; }
.cms-article h1 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.cms-featured { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--radius); margin: 16px 0 24px; }
.cms-content { line-height: 1.75; color: var(--content); }
.cms-content h2, .cms-content h3 { margin: 1.4em 0 0.6em; font-weight: 800; }
.cms-content p { margin-bottom: 1em; }
.cms-content a { color: var(--primary); }
.cms-content ul, .cms-content ol { margin: 0 0 1em 1.2em; }
.cms-content img { max-width: 100%; border-radius: 12px; }
