/* =============================================================================
   Vidanya tanıtım sayfası v2 — SAYFANIN ALT YARISI
   30+ modül · toptan (B2B) bloğu · mağaza vitrinleri · güvenlik · fiyatlandırma · son CTA
   ========================================================================== */

/* ========================================================== 30+ MODÜL */

.vd2-mods-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.vd2-mod {
  padding: 24px 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 400ms cubic-bezier(.22,1,.36,1), border-color 300ms ease;
}
.vd2-mod:hover { border-color: var(--vd2-line-strong); }

.vd2-mod-ic {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(47, 110, 240, 0.10);
  border: 1px solid rgba(47, 110, 240, 0.22);
  color: var(--vd2-blue);
  flex: none;
}
.vd2-mod-ic svg { width: 20px; height: 20px; }

.vd2-mod h3 { margin: 0 0 6px; }
.vd2-mod > p { margin: 0; font-size: 0.92rem; color: var(--vd2-muted); }

/* Modül içindeki özellik listesi — görünürlükte sırayla düşer */
.vd2-mod-list {
  margin: auto 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--vd2-line);
  display: grid;
  gap: 9px;
}
.vd2-mod-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.87rem;
  color: var(--vd2-ink-soft);
}
.vd2-mod-list li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--vd2-blue);
  flex: none;
  box-shadow: 0 0 0 3px rgba(47, 110, 240, 0.14);
}

/* Başlıktaki "30+" sayacı */
.vd2-count { font-variant-numeric: tabular-nums; }

/* ============================================================ TOPTAN (B2B) */

.vd2-b2b {
  position: relative;
  border-radius: var(--vd2-r-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(24px, 4vw, 54px);
  padding: clamp(32px, 4.4vw, 60px);
  background: linear-gradient(122deg, #7b3fe4 0%, #6b4ff0 42%, #3f7ff5 100%);
  color: #fff;
  isolation: isolate;
}

/* Akışkan renk bulutu — canvas gerekmeden hareket eden mesh degrade */
.vd2-b2b::before {
  content: "";
  position: absolute;
  inset: -35%;
  z-index: -1;
  background:
    radial-gradient(38% 44% at 22% 30%, rgba(255, 138, 220, 0.55), transparent 62%),
    radial-gradient(42% 46% at 78% 68%, rgba(56, 224, 216, 0.45), transparent 62%),
    radial-gradient(46% 40% at 62% 18%, rgba(120, 96, 255, 0.6), transparent 66%);
}

.vd2-b2b h2 { color: #fff; }
.vd2-b2b-list {
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 18px;
}
.vd2-b2b-list li { display: flex; gap: 15px; align-items: flex-start; }
.vd2-b2b-list .ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex: none;
}
.vd2-b2b-list .ic svg { width: 18px; height: 18px; color: #fff; }
.vd2-b2b-list b { display: block; font-size: 1rem; font-weight: 700; }
.vd2-b2b-list span { font-size: 0.89rem; color: rgba(255, 255, 255, 0.78); }

/* B2B panel taklidi (aydınlık kart) */
.vd2-b2b-panel {
  border-radius: 16px;
  background: #fff;
  color: #22304f;
  box-shadow: 0 40px 80px -28px rgba(24, 8, 60, 0.6);
  overflow: hidden;
  font-size: 11.5px;
}
.vd2-b2b-panel .hd {
  padding: 11px 14px;
  background: #f2f5fc;
  border-bottom: 1px solid #e2e8f6;
  font-weight: 700;
  font-size: 11px;
  color: #45557a;
}
.vd2-b2b-panel .bd { padding: 15px; display: grid; gap: 12px; }
.vd2-b2b-field { display: grid; gap: 5px; }
.vd2-b2b-field small { font-size: 9.5px; font-weight: 700; color: #8b99b6; }
.vd2-b2b-field span {
  padding: 8px 10px;
  border: 1px solid #e2e8f6;
  border-radius: 8px;
  background: #fbfcff;
  font-weight: 600;
  font-size: 11px;
}
.vd2-b2b-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* Minimum sipariş ilerleme çubuğu — dolma animasyonu */
.vd2-b2b-progress {
  height: 8px;
  border-radius: 999px;
  background: #e8eefb;
  overflow: hidden;
}
.vd2-b2b-progress i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #4f8dff, #8b6cff);
  transition: width 1400ms cubic-bezier(.22,1,.36,1);
}
.is-live .vd2-b2b-progress i { width: var(--w, 72%); }
.vd2-b2b-meta {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  font-weight: 700;
  color: #8b99b6;
}
.vd2-b2b-cta {
  padding: 10px;
  border-radius: 9px;
  background: #2f6ef0;
  color: #fff;
  text-align: center;
  font-weight: 700;
  font-size: 11px;
}

/* ===================================================== MAĞAZA VİTRİNLERİ */
/* Kartlar GERÇEK mağaza ekran görüntüleri taşır. Görüntüler geniş (≈2.2:1) olduğu
   için ızgara 2 sütun — 3-4 sütunda tasarımlar okunmuyordu. */

.vd2-stores-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px;
  align-items: start;
}

.vd2-store {
  position: relative;
  margin: 0;
  border-radius: var(--vd2-r-lg);
  overflow: hidden;
  border: 1px solid var(--vd2-line);
  background: var(--vd2-surface);
  box-shadow: var(--vd2-shadow-sm);
  /* Her kart farklı hızda kayar — motion.js --py yazar (parallax) */
  transform: translate3d(0, var(--py, 0px), 0);
  transition: box-shadow 380ms ease, border-color 380ms ease;
}
.vd2-store:hover { box-shadow: var(--vd2-shadow); border-color: var(--vd2-line-strong); }

/* Tarayıcı çerçevesi */
.vd2-store-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--vd2-surface-2);
  border-bottom: 1px solid var(--vd2-line);
}
.vd2-store-bar i { width: 8px; height: 8px; border-radius: 50%; background: #cfd9ec; display: block; flex: none; }
.vd2-store-bar u {
  flex: 1;
  margin-left: 8px;
  font-style: normal;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--vd2-muted);
  background: var(--vd2-surface);
  border: 1px solid var(--vd2-line);
  border-radius: 999px;
  padding: 4px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vd2-store-bar em {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--vd2-green);
  flex: none;
}

/* Ekran — görüntü hover'da hafifçe yakınlaşır */
.vd2-store-view { position: relative; overflow: hidden; background: var(--vd2-surface-2); }
.vd2-store-view img {
  width: 100%;
  height: auto;
  display: block;
  transform: scale(1.01);
  transition: transform 900ms cubic-bezier(.22,1,.36,1);
}
.vd2-store:hover .vd2-store-view img { transform: scale(1.045); }

/* Ekran görüntüsü henüz alınmamış mağaza — marka baş harfiyle sade kart.
   Amaç: yeni müşteri, görüntüsü alınana kadar da vitrinde görünsün. */
.vd2-store-blank {
  aspect-ratio: 2.2 / 1;
  display: grid;
  place-items: center;
  background: linear-gradient(150deg, #eef3fb, #e3ebf7);
}
.vd2-store-blank span {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  background: var(--vd2-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Ekranın üzerinden geçen ışık huzmesi (yalnız hover'da) */
.vd2-store-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, 0.42) 50%, transparent 62%);
  transform: translateX(-120%);
}
.vd2-store:hover .vd2-store-shine { animation: vd2-store-sweep 900ms cubic-bezier(.4,0,.2,1); }

/* Alt bilgi */
.vd2-store-foot {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  border-top: 1px solid var(--vd2-line);
}
.vd2-store-foot b { display: block; font-size: 0.98rem; font-weight: 800; letter-spacing: -0.02em; color: var(--vd2-ink); }
.vd2-store-foot small { font-size: 0.82rem; color: var(--vd2-muted); }
.vd2-store-foot a {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--vd2-line-strong);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--vd2-ink);
  text-decoration: none;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(8px);
  transition: opacity 320ms ease, transform 320ms cubic-bezier(.22,1,.36,1), background 220ms ease, border-color 220ms ease;
}
.vd2-store-foot a svg { width: 14px; height: 14px; }
.vd2-store:hover .vd2-store-foot a,
.vd2-store-foot a:focus-visible { opacity: 1; transform: none; }
.vd2-store-foot a:hover { background: var(--vd2-blue); border-color: var(--vd2-blue); color: #fff; }

.vd2-stores-note {
  margin: 34px 0 0;
  text-align: center;
  color: var(--vd2-muted);
  font-size: 0.95rem;
}

/* =============================================================== GÜVENLİK */

.vd2-sec {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 480px;
}

.vd2-sec-core {
  position: relative;
  z-index: 2;
  width: clamp(200px, 24vw, 300px);
  aspect-ratio: 1;
}
.vd2-sec-core img { width: 100%; height: 100%; object-fit: contain; display: block; }
.vd2-sec-core::before {
  content: "";
  position: absolute;
  inset: -22%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(47, 110, 240, 0.18), transparent 70%);
}
/* Kalkanı yukarıdan aşağı tarayan ışık çizgisi (motion.css sürer) */
.vd2-sec-core::after {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, transparent, var(--vd2-cyan), transparent);
  opacity: 0.85;
  will-change: transform;
}

/* Kalkan çevresinde yörüngede duran rozetler — --x/--y ile konumlanır */
.vd2-sec-badge {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  z-index: 3;
}

/* Masaüstü: sarmalayıcı yerleşimden ÇEKİLİR (`display: contents`) ki içindeki rozetler
   `.vd2-sec`e göre mutlak konumlansın. ⚠️ Burada `display: none` kullanmak rozetleri de
   yok eder — mutlak konumlu çocuklar gizli bir ebeveynden kurtulamaz (yaşandı). */
.vd2-sec-list {
  display: contents;
}

/* ========================================================= FİYATLANDIRMA */

.vd2-price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}

.vd2-plan {
  position: relative;
  padding: 32px 28px 30px;
  border-radius: var(--vd2-r-lg);
  background: #fff;
  color: var(--vd2-ink);
  border: 1px solid var(--vd2-line);
  box-shadow: 0 24px 54px -30px rgba(15, 28, 54, 0.45);
  transition: transform 420ms cubic-bezier(.22,1,.36,1), box-shadow 420ms ease;
}
.vd2-plan:hover { transform: translateY(-8px); box-shadow: 0 44px 90px -30px rgba(2, 7, 20, 1); }

.vd2-plan-name {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b7a9c;
}
.vd2-plan-price {
  margin: 12px 0 20px;
  display: flex;
  align-items: baseline;
  gap: 7px;
}
.vd2-plan-price b {
  font-size: clamp(2rem, 3.2vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  color: #0f1c36;
  font-variant-numeric: tabular-nums;
}
.vd2-plan-price span { font-size: 0.87rem; font-weight: 600; color: #7a89a9; }

/* Fiyatın altındaki koşul satırı (ör. aylık ücret). Boşsa blade hiç basmaz. */
.vd2-plan-sub {
  margin: -12px 0 20px;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.5;
  color: var(--vd2-blue-hi);
}

/* ---- TEK PLAN: kart ortalanır, genişler, özellikler iki sütuna akar ----
   30 özellik tek sütunda ekranı taşırıyordu. `columns` kullanıldı çünkü liste
   uzunluğu panelden değişebilir; grid'de satır sayısını sabitlemek gerekirdi. */
.vd2-price-grid--single {
  grid-template-columns: minmax(0, 820px);
  justify-content: center;
}
.vd2-price-grid--single .vd2-plan { padding: 38px 34px 32px; }
.vd2-price-grid--single .vd2-plan-price b { font-size: clamp(2.4rem, 4vw, 3.2rem); }

@media (min-width: 721px) {
  .vd2-price-grid--single .vd2-plan ul {
    display: block;
    columns: 2;
    column-gap: 34px;
  }
  /* Madde sütun sınırında ikiye bölünmemeli. */
  .vd2-price-grid--single .vd2-plan ul li {
    break-inside: avoid;
    margin-bottom: 12px;
  }
}

.vd2-plan ul {
  margin: 0 0 26px;
  padding: 22px 0 0;
  border-top: 1px solid #e8edf7;
  list-style: none;
  display: grid;
  gap: 12px;
}
.vd2-plan ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: #3c4a67;
}
.vd2-plan ul svg { width: 16px; height: 16px; color: #2f6ef0; flex: none; margin-top: 3px; }

.vd2-plan .vd2-btn { width: 100%; justify-content: center; }
.vd2-plan-btn-outline {
  background: transparent;
  border-color: #d8e0f0;
  color: #16233f;
}
.vd2-plan-btn-outline:hover { background: #f2f6fd; }
.vd2-plan-btn-dark { background: #16233f; color: #fff; }
.vd2-plan-btn-dark:hover { background: #22325c; }

/* Öne çıkan plan — çevresinde dönen degrade kenarlık */
.vd2-plan--hot {
  padding-top: 46px;
  background: linear-gradient(180deg, #eef4ff 0%, #ffffff 42%);
  z-index: 2;
}
.vd2-plan--hot::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  padding: 2px;
  background: conic-gradient(from var(--spin, 0deg), #4f8dff, #8b6cff, #38e0d8, #4f8dff);
  -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);
  pointer-events: none;
}
.vd2-plan-flag {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  padding: 7px 20px;
  border-radius: 0 0 12px 12px;
  background: var(--vd2-grad);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.vd2-price-note {
  margin: 30px 0 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--vd2-muted);
}
.vd2-price-note b { color: var(--vd2-violet-hi); }

/* ================================================================ SON CTA */

.vd2-cta {
  position: relative;
  border-radius: var(--vd2-r-xl);
  overflow: hidden;
  padding: clamp(38px, 5vw, 68px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(24px, 4vw, 48px);
  background: linear-gradient(118deg, #4b7ef0 0%, #7b4fe8 52%, #a24ce0 100%);
  color: #fff;
  isolation: isolate;
}
/* Kuzey ışıkları — yavaşça yer değiştiren renk bulutları */
.vd2-cta::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(36% 42% at 26% 32%, rgba(56, 224, 216, 0.45), transparent 64%),
    radial-gradient(40% 44% at 74% 64%, rgba(255, 137, 214, 0.42), transparent 64%);
}
.vd2-cta h2 { color: #fff; max-width: 16ch; }
.vd2-cta p { margin: 16px 0 0; color: rgba(255, 255, 255, 0.85); font-size: 1.06rem; }
.vd2-cta-actions { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 32px; }

.vd2-cta-art { position: relative; }
.vd2-cta-art img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--vd2-r);
  box-shadow: 0 40px 80px -30px rgba(20, 6, 50, 0.8);
}

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

@media (max-width: 1024px) {
  .vd2-mods-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vd2-b2b { grid-template-columns: 1fr; }
  .vd2-price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .vd2-plan--hot { order: -1; }
  .vd2-cta { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .vd2-stores-grid { grid-template-columns: 1fr; }
  .vd2-store { transform: none; }
  /* Güvenlik rozetleri mobilde yörüngeden çıkıp listeye iner */
  .vd2-sec { min-height: 0; display: block; text-align: center; }
  .vd2-sec-core { margin: 0 auto 24px; }
  .vd2-sec-badge { position: static; transform: none; animation: none; }
  /* Mobilde rozetler yörüngeden çıkıp normal akışta sarmalanan bir listeye iner. */
  .vd2-sec-list {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 640px) {
  .vd2-mods-grid { grid-template-columns: 1fr; }
}
