/* =========================================================
   Vendso — Tasarım sistemi (design.md token setine uygundur)
   Düz CSS: değişkenler + bileşen + yardımcı sınıflar.
   Layout/spacing için Tailwind CDN utility'leri kullanılır.
   ========================================================= */

:root {
  /* Renkler */
  --color-paper-white: #ffffff;
  --color-ink-black: #0a0a0a;
  --color-carbon: #171717;
  --color-smoke-50: #f5f5f5;
  --color-smoke-100: #e5e5e5;
  --color-smoke-200: #d4d4d4;
  --color-smoke-400: #a3a3a3;
  --color-smoke-500: #737373;
  --color-smoke-600: #525252;
  --color-smoke-700: #404040;
  --color-ember-orange: #ea580c;
  --color-pulse-green: #16a34a;
  --color-arc-violet: #7c3aed;
  --color-circuit-blue: #3b82f6;
  --color-mint-wash: #dcfce7;

  /* Tipografi */
  --font-satoshi: "Satoshi", "General Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-inter: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout */
  --page-max-width: 1200px;

  /* Gölgeler */
  --shadow-subtle: rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
  --shadow-card: rgba(0, 0, 0, 0.1) 0px 4px 6px -1px, rgba(0, 0, 0, 0.1) 0px 2px 4px -2px;
  --shadow-md: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.1) 0px 4px 6px -4px;
  --shadow-lg: rgba(0, 0, 0, 0.09) 0px 20px 20px 0px;
}

/* ----------------------------- Base ----------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-inter);
  font-size: 16px;
  line-height: 1.5;
  color: var(--color-ink-black);
  background: var(--color-paper-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: var(--color-ink-black); color: #fff; }

/* --------------------------- Tipografi -------------------------- */
.font-display {
  font-family: var(--font-satoshi);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.font-mono { font-family: var(--font-mono); }

.h-hero { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.08; }
.h-section { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; }
.h-sub { font-size: 24px; line-height: 1.3; }

/* --------------------------- Renk yardımcıları ------------------ */
.text-ink { color: var(--color-ink-black); }
.text-carbon { color: var(--color-carbon); }
.text-muted { color: var(--color-smoke-500); }
.text-helper { color: var(--color-smoke-600); }
.text-faint { color: var(--color-smoke-400); }
.text-orange { color: var(--color-ember-orange); }
.text-green { color: var(--color-pulse-green); }
.text-violet { color: var(--color-arc-violet); }

.bg-wash { background: var(--color-smoke-50); }
.bg-dark { background: var(--color-carbon); }

.border-hair { border: 1px solid var(--color-smoke-100); }
.border-def { border: 1px solid var(--color-smoke-200); }
.divide-hair { border-top: 1px solid var(--color-smoke-100); }

/* --------------------------- Layout ----------------------------- */
.container-page {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

/* --------------------------- Bileşenler ------------------------- */
/* Birincil siyah pill CTA */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: #000; color: #fff;
  font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 9999px; border: 0;
  box-shadow: var(--shadow-subtle); cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* İkincil ghost buton */
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent; color: var(--color-ink-black);
  font-size: 14px; font-weight: 500;
  padding: 10px 20px; border-radius: 9999px;
  border: 1px solid var(--color-smoke-200); cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.btn-ghost:hover { background: var(--color-smoke-50); border-color: var(--color-smoke-400); }

.btn-sm { padding: 7px 14px; font-size: 13px; }

/* Nav linki */
.nav-link {
  font-size: 14px; font-weight: 500; color: var(--color-ink-black);
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; border: 0; cursor: pointer;
  transition: opacity 0.15s ease;
}
.nav-link:hover { opacity: 0.6; }

/* Özellik kategori pill'i */
.cat-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--color-smoke-100);
  border-radius: 9999px; padding: 6px 12px;
  font-size: 13px; font-weight: 500; color: var(--color-ink-black);
}
.cat-pill .dot { width: 8px; height: 8px; border-radius: 2px; flex: none; }

/* Inline vurgu pill'i */
.hl { border-radius: 4px; padding: 2px 6px; font-weight: 500; white-space: nowrap; }
.hl-orange { background: color-mix(in srgb, var(--color-ember-orange) 10%, transparent); color: var(--color-ember-orange); }
.hl-green  { background: color-mix(in srgb, var(--color-pulse-green) 15%, transparent); color: var(--color-pulse-green); }
.hl-violet { background: color-mix(in srgb, var(--color-arc-violet) 10%, transparent); color: var(--color-arc-violet); }

/* Duyuru banner pill'i */
.announce {
  display: inline-flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--color-smoke-100);
  border-radius: 9999px; padding: 6px 8px 6px 16px;
  font-size: 13px; box-shadow: var(--shadow-subtle);
}

/* Ürün ekran kartı çerçevesi */
.screenshot-card {
  background: #fff; border: 1px solid var(--color-smoke-100);
  border-radius: 16px; box-shadow: var(--shadow-card); overflow: hidden;
}

/* Özellik kartı */
.feature-card {
  background: #fff; border: 1px solid var(--color-smoke-100);
  border-radius: 16px; padding: 24px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

/* Tag chip */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 9999px; padding: 4px 8px;
  font-size: 12px; font-weight: 500;
}
.chip-green { background: var(--color-mint-wash); color: var(--color-pulse-green); }
.chip-mono { font-family: var(--font-mono); background: var(--color-smoke-50); color: var(--color-smoke-600); border: 1px solid var(--color-smoke-100); }

/* Dark section banner */
.dark-banner {
  background: var(--color-carbon); color: #fff;
  border-radius: 16px; padding: 28px 24px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.dark-banner .icon-box {
  width: 44px; height: 44px; border-radius: 12px;
  background: #262626; border: 1px solid var(--color-smoke-700);
  display: flex; align-items: center; justify-content: center; flex: none;
}

/* Mock arayüz inputları */
.mock-label {
  font-size: 12px; font-weight: 500; color: var(--color-smoke-600);
  margin-bottom: 6px; display: block;
}
.mock-input {
  border: 1px solid var(--color-smoke-200); border-radius: 8px;
  padding: 9px 12px; font-size: 13px; color: var(--color-smoke-600);
  background: #fff; display: flex; align-items: center; justify-content: space-between;
}
.mock-input.focus { border-color: var(--color-ink-black); box-shadow: rgba(0,0,0,0.1) 0 0 0 4px; color: var(--color-ink-black); }

/* Browser chrome (mockup başlığı) */
.browser-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--color-smoke-100);
  background: var(--color-smoke-50);
}
.browser-bar .dot { width: 10px; height: 10px; border-radius: 9999px; }

/* Karşılaştırma / liste işareti */
.check {
  width: 18px; height: 18px; border-radius: 9999px; flex: none;
  background: var(--color-mint-wash); color: var(--color-pulse-green);
  display: inline-flex; align-items: center; justify-content: center;
}

/* SSS accordion */
.faq-item { border-top: 1px solid var(--color-smoke-100); }
.faq-q {
  width: 100%; text-align: left; background: transparent; border: 0; cursor: pointer;
  padding: 20px 0; font-size: 16px; font-weight: 500; color: var(--color-ink-black);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: var(--color-smoke-600); font-size: 15px;
}
.faq-item.open .faq-a { max-height: 320px; padding-bottom: 20px; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-icon { transition: transform 0.2s ease; color: var(--color-smoke-500); flex: none; }

/* Fiyatlandırma: "yakında" kilitli durum */
.pricing-locked { position: relative; }
.pricing-locked .pricing-grid {
  filter: blur(6px);
  opacity: 0.5;
  pointer-events: none;
  user-select: none;
  transition: filter 0.3s ease;
}
.pricing-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 16px; z-index: 2;
}
.pricing-overlay .card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(160%) blur(2px);
  border: 1px solid var(--color-smoke-100);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  padding: 40px 32px;
  text-align: center;
  max-width: 460px;
}
.pricing-pulse { position: relative; display: inline-flex; width: 8px; height: 8px; }
.pricing-pulse span { position: absolute; inset: 0; border-radius: 9999px; background: var(--color-pulse-green); }
.pricing-pulse span:first-child { animation: pricing-ping 1.6s cubic-bezier(0,0,0.2,1) infinite; }
@keyframes pricing-ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }

/* Reveal animasyonu */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Logo bulutu */
.logo-cell {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  height: 64px; color: var(--color-smoke-600);
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
}
.logo-cell img {
  max-height: 40px; max-width: 150px; width: auto; height: auto; object-fit: contain;
  /* Markaya uygun: gri tonlama, hover'da renklenir */
  filter: grayscale(1); opacity: 0.72;
  transition: filter 0.2s ease, opacity 0.2s ease;
}
.logo-cell img:hover { filter: grayscale(0); opacity: 1; }

/* Dropdown */
.dropdown-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(6px);
  min-width: 320px; background: #fff; border: 1px solid var(--color-smoke-100);
  border-radius: 16px; box-shadow: var(--shadow-md); padding: 8px;
  opacity: 0; visibility: hidden; transition: opacity 0.18s ease, transform 0.18s ease; z-index: 50;
}
.dropdown:hover .dropdown-panel,
.dropdown:focus-within .dropdown-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.dropdown-item {
  display: flex; gap: 12px; padding: 12px; border-radius: 12px;
  transition: background 0.15s ease;
}
.dropdown-item:hover { background: var(--color-smoke-50); }

@media (max-width: 767px) {
  .dropdown-panel { display: none; }
}

/* =========================================================
   Utility katmanı — kullanılan Tailwind sınıflarının
   statik (derlenmiş) karşılıkları. Tailwind browser CDN
   gerektirmez; production için derlenmiş davranır.
   ========================================================= */
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-40 { z-index: 40; }
.flex { display: flex; }
.grid { display: grid; }
.hidden { display: none; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.text-center { text-align: center; }
.gap-2 { gap: 8px; }
.gap-4 { gap: 16px; }
.gap-8 { gap: 32px; }
.gap-12 { gap: 48px; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (min-width: 640px) {
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (min-width: 768px) {
  .md\:flex { display: flex; }
  .md\:hidden { display: none; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:grid-cols-\[1fr_320px\] { grid-template-columns: 1fr 320px; }
  .md\:grid-cols-\[2fr_1fr_1fr_1fr\] { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
