/* =============================================================================
   Vidanya tanıtım sayfası v2 — TEMA ÇEKİRDEĞİ (AÇIK TEMA)
   Tokenlar, tipografi, yerleşim, butonlar, kart yüzeyleri, header ve footer.

   İSİM ALANI: her seçici `vd2-` ön ekiyle başlar. Gövde kuralları `body.vd2`
   altındadır; alt sayfalar aynı yığını yükler, çakışma olmaz.

   2026-08-08 (2. tur): sayfa KOYU laciverti bırakıp beyaza yakın açık zemine geçti.
   ⚠️ Cam (glass) dolguları için `rgba(255,255,255,…)` KULLANMA — açık zeminde
   görünmez olur. Bunun yerine `--vd2-glass` / `--vd2-glass-2` tokenlarını kullan;
   bunlar koyu-alfadır ve iki temada da çalışır.
   ========================================================================== */

:root {
  /* Zemin katmanları — yukarı çıktıkça beyazlaşan yüzeyler */
  --vd2-bg: #f7f9fd;
  --vd2-bg-deep: #eceff7;   /* footer */
  --vd2-bg-soft: #ffffff;
  --vd2-surface: #ffffff;
  --vd2-surface-2: #f2f6fc;

  --vd2-line: rgba(22, 40, 78, 0.10);
  --vd2-line-strong: rgba(22, 40, 78, 0.18);
  /* Yarı saydam dolgular (rozet, hayalet buton, hover) */
  --vd2-glass: rgba(22, 40, 78, 0.045);
  --vd2-glass-2: rgba(22, 40, 78, 0.085);

  /* Metin */
  --vd2-ink: #0f1c36;
  --vd2-ink-soft: #3b4a67;
  --vd2-muted: #6b7a99;

  /* Marka — açık zeminde okunur kalsın diye v1'e göre bir tık koyu */
  --vd2-blue: #2f6ef0;
  --vd2-blue-hi: #1d4fd0;
  --vd2-violet: #7c4dff;
  --vd2-violet-hi: #5b2ee0;
  --vd2-cyan: #0e9aae;
  --vd2-green: #16a34a;

  --vd2-grad: linear-gradient(115deg, var(--vd2-blue) 0%, var(--vd2-violet) 100%);

  /* Ölçü */
  --vd2-maxw: 1240px;
  --vd2-r-sm: 12px;
  --vd2-r: 18px;
  --vd2-r-lg: 26px;
  --vd2-r-xl: 34px;

  /* Gölge — açık zeminde kartları ayıran ana araç (koyuda kontrast yapıyordu) */
  --vd2-shadow: 0 22px 50px -26px rgba(15, 28, 54, 0.35);
  --vd2-shadow-sm: 0 8px 22px -12px rgba(15, 28, 54, 0.22);
}

/* ---------------------------------------------------------------- iskelet */

body.vd2 {
  margin: 0;
  background: var(--vd2-bg);
  color: var(--vd2-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* İmleci takip eden ortam ışığı. motion.js `.vd2-aurora > i` düğümlerini enjekte
   eder ve yalnızca `transform` yazar (GPU'da bileşiklenir, repaint yok). */
.vd2-aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: strict;
}
.vd2-aurora i {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  border-radius: 50%;
  will-change: transform;
}
.vd2-aurora i:nth-child(1) {
  width: 680px;
  height: 520px;
  background: radial-gradient(closest-side, rgba(47, 110, 240, 0.13), transparent 72%);
}
.vd2-aurora i:nth-child(2) {
  width: 840px;
  height: 620px;
  background: radial-gradient(closest-side, rgba(124, 77, 255, 0.11), transparent 72%);
}

.vd2-wrap {
  width: min(100% - 40px, var(--vd2-maxw));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.vd2-section {
  position: relative;
  z-index: 1;
  padding: clamp(72px, 9vw, 132px) 0;
}

.vd2-section--tight { padding: clamp(48px, 6vw, 80px) 0; }

/* Bölüm ayracı — ortadan solan çizgi */
.vd2-section--edge::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vd2-line-strong) 22%, var(--vd2-line-strong) 78%, transparent);
}

/* -------------------------------------------------------------- tipografi */

.vd2-h1,
.vd2-h2,
.vd2-h3 {
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.028em;
  line-height: 1.08;
  color: var(--vd2-ink);
}

.vd2-h1 { font-size: clamp(2.6rem, 5.6vw, 4.4rem); font-weight: 900; }
.vd2-h2 { font-size: clamp(1.95rem, 3.6vw, 3rem); }
.vd2-h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); letter-spacing: -0.02em; }

.vd2-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--vd2-blue);
}

.vd2-lede {
  margin: 18px 0 0;
  max-width: 62ch;
  font-size: clamp(1rem, 1.25vw, 1.14rem);
  color: var(--vd2-ink-soft);
}

.vd2-head {
  max-width: 780px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(40px, 5vw, 66px);
}
.vd2-head .vd2-lede { margin-inline: auto; }

/* Vurgu kelimesi — sonsuz akan degrade (motion.css canlandırır) */
.vd2-grad-text {
  background: linear-gradient(90deg, var(--vd2-blue), var(--vd2-violet), var(--vd2-cyan), var(--vd2-blue));
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------- butonlar */

.vd2-btn {
  --vd2-btn-tx: 0px;
  --vd2-btn-ty: 0px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 0.97rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transform: translate3d(var(--vd2-btn-tx), var(--vd2-btn-ty), 0);
  transition: transform 220ms cubic-bezier(.22,1,.36,1), box-shadow 240ms ease, background 240ms ease, border-color 240ms ease;
}

.vd2-btn svg { width: 17px; height: 17px; flex: none; }

.vd2-btn--primary {
  position: relative;
  background: var(--vd2-grad);
  color: #fff;
  box-shadow: 0 12px 28px -12px rgba(47, 110, 240, 0.85);
  overflow: hidden;
}
/* Butonun üzerinden geçen ışık huzmesi (motion.css süreyi verir) */
.vd2-btn--primary::after {
  content: "";
  position: absolute;
  top: 0;
  left: -140%;
  width: 60%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
}
.vd2-btn--primary:hover { box-shadow: 0 18px 38px -12px rgba(47, 110, 240, 1); }

.vd2-btn--ghost {
  background: var(--vd2-surface);
  border-color: var(--vd2-line-strong);
  color: var(--vd2-ink);
  box-shadow: var(--vd2-shadow-sm);
}
.vd2-btn--ghost:hover { background: var(--vd2-surface-2); border-color: var(--vd2-blue); }

/* Degrade blokların (toptan / son CTA) üzerinde kullanılan beyaz buton */
.vd2-btn--light { background: #fff; color: #10203f; }
.vd2-btn--light:hover { background: #eaf1ff; }

.vd2-btn--lg { padding: 17px 32px; font-size: 1.03rem; }

.vd2-link {
  color: var(--vd2-ink);
  text-decoration: none;
  font-weight: 600;
  position: relative;
}
.vd2-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 100%;
  height: 1.5px;
  background: var(--vd2-grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 300ms cubic-bezier(.22,1,.36,1);
}
.vd2-link:hover::after { transform: scaleX(1); }

/* ---------------------------------------------------------------- yüzeyler */

.vd2-card {
  position: relative;
  background: var(--vd2-surface);
  border: 1px solid var(--vd2-line);
  border-radius: var(--vd2-r-lg);
  box-shadow: var(--vd2-shadow-sm);
  overflow: hidden;
}

/* İmleci takip eden ışık noktası — motion.js --cx/--cy yazar */
.vd2-card--spot::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(320px 220px at var(--cx, 50%) var(--cy, 50%), rgba(47, 110, 240, 0.09), transparent 70%);
  transition: opacity 320ms ease;
}
.vd2-card--spot:hover::before { opacity: 1; }

/* İmleç yönüne göre dönen degrade kenarlık */
.vd2-card--edge::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  pointer-events: none;
  opacity: 0;
  background: conic-gradient(from var(--ang, 0deg), transparent 0%, var(--vd2-blue) 12%, var(--vd2-violet) 24%, transparent 38%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transition: opacity 320ms ease;
}
.vd2-card--edge:hover::after { opacity: 1; }

.vd2-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--vd2-line);
  background: var(--vd2-surface);
  box-shadow: var(--vd2-shadow-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--vd2-ink-soft);
}
.vd2-chip svg { width: 15px; height: 15px; color: var(--vd2-blue); }

/* ================================================================ HEADER */

.vd2-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(247, 249, 253, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(150%) blur(10px);
  transition: background 300ms ease, border-color 300ms ease, box-shadow 300ms ease;
}
.vd2-header.is-stuck {
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: var(--vd2-line);
  box-shadow: 0 6px 24px -18px rgba(15, 28, 54, 0.5);
}

/* Üstteki okuma ilerlemesi çubuğu — motion.js --p (0..1) yazar */
.vd2-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 100%;
  transform: scaleX(var(--p, 0));
  transform-origin: left;
  background: linear-gradient(90deg, var(--vd2-blue), var(--vd2-violet), var(--vd2-cyan));
}

.vd2-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 70px;
}

.vd2-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--vd2-ink);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.02rem;
  flex: none;
}
.vd2-brand svg { width: 30px; height: 30px; }
.vd2-brand small {
  display: block;
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--vd2-muted);
  margin-top: -3px;
}

.vd2-navlinks {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto 0 14px;
  padding: 0;
  list-style: none;
}
.vd2-navlinks a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--vd2-ink-soft);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 550;
  transition: color 200ms ease, background 200ms ease;
}
.vd2-navlinks a:hover { color: var(--vd2-ink); background: var(--vd2-glass); }

.vd2-navactions { display: flex; align-items: center; gap: 10px; flex: none; }

.vd2-burger {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 12px;
  border: 1px solid var(--vd2-line-strong);
  background: var(--vd2-surface);
  color: var(--vd2-ink);
  cursor: pointer;
}
.vd2-burger svg { width: 20px; height: 20px; }

/* Mobil panel */
.vd2-mobile {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 92px 24px 32px;
  background: rgba(255, 255, 255, 0.985);
  opacity: 0;
  visibility: hidden;
  transition: opacity 280ms ease, visibility 280ms;
}
.vd2-mobile.is-open { opacity: 1; visibility: visible; }
.vd2-mobile a {
  padding: 14px 4px;
  border-bottom: 1px solid var(--vd2-line);
  color: var(--vd2-ink);
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 600;
}
.vd2-mobile .vd2-btn { margin-top: 18px; justify-content: center; }
.vd2-mobile-close {
  position: absolute;
  top: 22px;
  right: 22px;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--vd2-line-strong);
  background: var(--vd2-surface);
  color: var(--vd2-ink);
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;
}

/* ================================================================ FOOTER */

.vd2-footer {
  position: relative;
  z-index: 1;
  padding: clamp(56px, 6vw, 84px) 0 34px;
  background: var(--vd2-bg-deep);
  border-top: 1px solid var(--vd2-line);
}
.vd2-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(4, 1fr);
  gap: 40px 28px;
}
.vd2-footer h4 {
  margin: 0 0 16px;
  font-size: 0.83rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vd2-ink);
}
.vd2-footer ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 11px; }
.vd2-footer ul a {
  color: var(--vd2-muted);
  text-decoration: none;
  font-size: 0.93rem;
  transition: color 200ms ease, transform 200ms ease;
  display: inline-block;
}
.vd2-footer ul a:hover { color: var(--vd2-blue); transform: translateX(3px); }
.vd2-footer-about p { margin: 14px 0 0; color: var(--vd2-muted); font-size: 0.93rem; max-width: 30ch; }
.vd2-footer-base {
  margin-top: 46px;
  padding-top: 24px;
  border-top: 1px solid var(--vd2-line);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: space-between;
  color: var(--vd2-muted);
  font-size: 0.87rem;
}

/* ============================================================== DUYARLI */

@media (max-width: 1080px) {
  .vd2-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .vd2-footer-about { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .vd2-navlinks { display: none; }
  .vd2-navactions .vd2-btn { display: none; }
  .vd2-burger { display: inline-grid; place-items: center; }
}

@media (max-width: 620px) {
  .vd2-footer-grid { grid-template-columns: 1fr 1fr; }
  .vd2-wrap { width: calc(100% - 32px); }
}
