/* ─────────────────────────────────────────────────────────
   Yuka CRM Landing — Tasarım Sistemi
   ───────────────────────────────────────────────────────── */
:root {
  /* Type */
  --font-sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, monospace;
  --font-serif: "Instrument Serif", "Times New Roman", serif;

  /* Spacing */
  --container: 1240px;
  --pad-x: 32px;
  --section-gap: 140px;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* Light theme tokens */
  --bg: oklch(0.985 0.004 90);
  --bg-alt: oklch(0.965 0.006 90);
  --surface: #ffffff;
  --surface-2: oklch(0.97 0.005 90);
  --ink: oklch(0.18 0.012 260);
  --ink-2: oklch(0.32 0.014 260);
  --muted: oklch(0.52 0.012 260);
  --muted-2: oklch(0.68 0.01 260);
  --border: oklch(0.91 0.005 260);
  --border-strong: oklch(0.84 0.008 260);

  /* Accent — emerald growth */
  --accent: oklch(0.62 0.16 150);
  --accent-ink: oklch(0.32 0.13 150);
  --accent-soft: oklch(0.94 0.06 150);
  --accent-fg: #ffffff;

  /* Secondary accent */
  --amber: oklch(0.78 0.13 75);
  --amber-soft: oklch(0.95 0.05 75);
  --rose: oklch(0.7 0.16 20);
  --violet: oklch(0.58 0.18 290);
  --sky: oklch(0.7 0.13 230);

  /* Channel brand colors (kanal logoları için) */
  --whatsapp: #25D366;
  --instagram: oklch(0.62 0.2 15);
  --telegram: #0088cc;
  --vk: #0077FF;
  --facebook: #1877F2;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 oklch(0.18 0.012 260 / 0.04);
  --shadow-md: 0 8px 24px -8px oklch(0.18 0.012 260 / 0.12), 0 2px 6px -2px oklch(0.18 0.012 260 / 0.08);
  --shadow-lg: 0 24px 60px -16px oklch(0.18 0.012 260 / 0.18), 0 8px 24px -8px oklch(0.18 0.012 260 / 0.1);
  --shadow-glow: 0 0 0 1px var(--accent), 0 8px 32px -4px oklch(0.62 0.16 150 / 0.3);
}

[data-theme="dark"] {
  --bg: oklch(0.14 0.012 260);
  --bg-alt: oklch(0.18 0.014 260);
  --surface: oklch(0.2 0.014 260);
  --surface-2: oklch(0.24 0.014 260);
  --ink: oklch(0.98 0.003 260);
  --ink-2: oklch(0.88 0.006 260);
  --muted: oklch(0.66 0.012 260);
  --muted-2: oklch(0.5 0.012 260);
  --border: oklch(0.28 0.014 260);
  --border-strong: oklch(0.36 0.014 260);

  --accent: oklch(0.7 0.17 150);
  --accent-ink: oklch(0.85 0.14 150);
  --accent-soft: oklch(0.28 0.08 150);
  --accent-fg: oklch(0.14 0.012 260);

  --amber-soft: oklch(0.32 0.07 75);

  --shadow-sm: 0 1px 2px 0 oklch(0 0 0 / 0.4);
  --shadow-md: 0 8px 24px -8px oklch(0 0 0 / 0.5), 0 2px 6px -2px oklch(0 0 0 / 0.4);
  --shadow-lg: 0 24px 60px -16px oklch(0 0 0 / 0.7), 0 8px 24px -8px oklch(0 0 0 / 0.5);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv11";
  transition: background 0.4s ease, color 0.4s ease;
}

::selection { background: var(--accent-soft); color: var(--accent-ink); }

/* ── Layout ─────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }

/* ── Type ─────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.eyebrow .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px oklch(from var(--accent) l c h / 0.2);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(0.9); }
}

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.025em; line-height: 1.05; }
.h-display {
  font-size: clamp(48px, 7vw, 92px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}
.h-display .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.h-section {
  font-size: clamp(36px, 4.4vw, 56px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.h-section .serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
}

p { margin: 0; line-height: 1.55; color: var(--ink-2); }
.lead { font-size: 20px; color: var(--ink-2); max-width: 620px; }
.mono { font-family: var(--font-mono); }
.mute { color: var(--muted); }

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.35) inset, 0 8px 20px -8px oklch(0.62 0.16 150 / 0.5);
}
.btn-primary:hover {
  background: oklch(from var(--accent) calc(l - 0.04) c h);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.35) inset, 0 12px 28px -8px oklch(0.62 0.16 150 / 0.65);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--border-strong);
}
.btn-ghost:hover { background: var(--surface-2); }

.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card-hover { transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.card-hover:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* ── Decorative ─────────────────────────────── */
.grain {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

[data-theme="dark"] .grain {
  mix-blend-mode: screen;
  opacity: 0.3;
}

.dot-grid {
  background-image: radial-gradient(oklch(from var(--ink) l c h / 0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

/* ── Header ─────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: oklch(from var(--bg) l c h / 0.78);
  border-bottom: 1px solid oklch(from var(--border) l c h / 0.6);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), oklch(from var(--accent) calc(l + 0.1) c calc(h - 30)));
  display: grid;
  place-items: center;
  color: var(--accent-fg);
  font-weight: 700;
  font-size: 15px;
  font-family: var(--font-serif);
  font-style: italic;
  box-shadow: 0 4px 12px -2px oklch(0.62 0.16 150 / 0.5);
}
.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav a {
  color: var(--ink-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  transition: color 0.15s ease;
}
.nav a:hover { color: var(--ink); }

/* ── Hero ─────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 0 40px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 700px;
  z-index: 0;
  pointer-events: none;
}
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 60% at 30% 20%, oklch(from var(--accent) l c h / 0.18), transparent 70%),
    radial-gradient(ellipse 40% 50% at 80% 30%, oklch(from var(--amber) l c h / 0.14), transparent 70%);
  filter: blur(40px);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.hero-copy h1 { margin-top: 24px; }
.hero-copy .lead { margin-top: 24px; font-size: 21px; }
.hero-cta { margin-top: 36px; display: flex; gap: 12px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 13px;
}
.hero-meta .dot-sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }

/* ── Scroll-marquee ─────────────────────────────── */
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee-track {
  display: flex;
  gap: 64px;
  animation: marquee 32s linear infinite;
  width: max-content;
}
@keyframes marquee {
  to { transform: translateX(-50%); }
}
.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.marquee-item .ic {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--accent);
  opacity: 0.8;
}

/* ── Section header ─────────────────────────────── */
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 { margin-top: 16px; }
.section-head p { margin-top: 18px; font-size: 18px; }

/* ── Feature demos ─────────────────────────────── */
.demo-row {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 80px;
  align-items: center;
  margin-bottom: 140px;
}
.demo-row.reverse { grid-template-columns: 1.15fr 1fr; }
.demo-row.reverse .demo-canvas { order: -1; }
@media (max-width: 980px) {
  .demo-row, .demo-row.reverse { grid-template-columns: 1fr; gap: 40px; }
  .demo-row.reverse .demo-canvas { order: 0; }
}

.demo-text .demo-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-text h3 {
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  margin-top: 12px;
  line-height: 1.1;
}
.demo-text h3 .accent { color: var(--accent-ink); }
.demo-text p { margin-top: 18px; font-size: 17px; }
.demo-text ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-text li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--ink-2);
}
.demo-text li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  margin-top: 9px;
  flex-shrink: 0;
}

.demo-canvas {
  position: relative;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  min-height: 420px;
}
.demo-canvas .demo-frame {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}

.demo-titlebar {
  height: 36px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.demo-titlebar .traffic {
  display: flex;
  gap: 6px;
  margin-right: 12px;
}
.demo-titlebar .traffic span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* ── Pricing ─────────────────────────────── */
.price-card {
  position: relative;
  padding: 36px;
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.price-card.feature {
  background: linear-gradient(180deg, oklch(from var(--accent) l c h / 0.08), transparent 50%), var(--surface);
  border-color: var(--accent);
  box-shadow: 0 24px 60px -24px oklch(0.62 0.16 150 / 0.3);
}
.price-card .badge {
  position: absolute;
  top: -12px;
  left: 32px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.price-amount .num { font-size: 64px; line-height: 1; }
.price-amount .per { color: var(--muted); font-size: 16px; }

/* ── FAQ ─────────────────────────────── */
.faq-item {
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
  cursor: pointer;
}
.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  width: 18px;
  height: 18px;
  position: relative;
  transition: transform 0.25s ease;
  color: var(--muted);
}
.faq-item[open] summary .chev { transform: rotate(45deg); color: var(--accent-ink); }
.faq-item summary .chev::before, .faq-item summary .chev::after {
  content: "";
  position: absolute;
  background: currentColor;
  border-radius: 2px;
}
.faq-item summary .chev::before { left: 50%; top: 0; bottom: 0; width: 2px; transform: translateX(-50%); }
.faq-item summary .chev::after { top: 50%; left: 0; right: 0; height: 2px; transform: translateY(-50%); }
.faq-item p { margin-top: 12px; max-width: 70ch; font-size: 16px; }

/* ── Footer ─────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 80px 0 48px;
  background: var(--bg-alt);
}

/* ── Reveal on scroll ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.8s ease, transform 0.8s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
