/* NOIR DIGITAL — ana sayfa video scroll */

html.ndHomeBooting body {
  overflow: hidden;
}

html.ndHomeBooting .topTicker,
html.ndHomeBooting .top,
html.ndHomeBooting .ndHomeCanvas,
html.ndHomeBooting main,
html.ndHomeBooting .footer {
  visibility: hidden;
  opacity: 0;
}

html.ndPageReady .topTicker,
html.ndPageReady .top,
html.ndPageReady .ndHomeCanvas,
html.ndPageReady main,
html.ndPageReady .footer {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.45s ease 0.06s;
}

.ndHomeBoot {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: #ffffff;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}

html.ndHomeBooting .ndHomeBoot {
  display: flex;
}

html.ndHomeBooting.ndHomeBootDone .ndHomeBoot {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ndHomeBoot__logo {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  box-shadow: 0 12px 32px rgba(21, 101, 224, 0.14);
  animation: ndHomeBootPulse 1.8s ease-in-out infinite;
}

html.ndHomeBootDone .ndHomeBoot__logo {
  animation: none;
}

@keyframes ndHomeBootPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.88; transform: scale(0.97); }
}

body.ndHome {
  background: #ffffff;
}

.ndHomeCanvas.is-empty {
  background: #ffffff;
}

.ndHomeCanvas.is-empty .ndHomeCanvas__pin {
  min-height: min(68vh, 640px);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.ndHomeCanvas.is-empty .ndHomeCanvas__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 48px 24px;
}

.ndHomeCanvas.is-empty .ndHomeCanvas__placeholder {
  max-width: 420px;
}

.ndHomeCanvas.is-empty .ndHomeCanvas__placeholder p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #64748b;
}

/* Header → hero yumuşak geçiş */
.ndHome .top {
  position: relative;
  z-index: 20;
  background: linear-gradient(180deg, #fff 0%, rgba(255, 255, 255, 0.98) 100%);
  border-bottom: 1px solid rgba(21, 101, 224, 0.06);
}

.ndHome .topTicker {
  position: relative;
  z-index: 20;
}

.ndHomeCanvas.is-pure-white {
  background: #ffffff;
}

.ndHomeCanvas.is-pure-white .ndHomeCanvas__pin,
.ndHomeCanvas.is-pure-white .ndHomeCanvas__stage {
  background: #ffffff;
}

.ndHomeCanvas.is-pure-white .ndHomeCanvas__vignette,
.ndHomeCanvas.is-pure-white .ndHomeCanvas__topFade {
  display: none !important;
}

.ndHomeCanvas.is-pure-white .ndHomeCanvas__watermark {
  width: clamp(64px, 8vw, 96px);
  height: clamp(32px, 4vh, 48px);
  background: radial-gradient(ellipse 90% 90% at 100% 100%, #ffffff 0%, transparent 48%);
}

.ndHomeCanvas.is-pure-white .ndHomeCanvas__cuePill {
  color: #334155;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 16px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.06);
}

.ndHomeCanvas.is-light-studio {
  background: #ffffff;
}

.ndHomeCanvas.is-light-studio .ndHomeCanvas__pin {
  background: #ffffff;
}

.ndHomeCanvas.is-light-studio .ndHomeCanvas__stage {
  background: #ffffff;
}

.ndHomeCanvas.is-light-studio .ndHomeCanvas__topFade {
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(255, 255, 255, 0.85) 40%,
    transparent 100%
  );
  height: clamp(48px, 10vh, 80px);
}

.ndHomeCanvas.is-light-studio .ndHomeCanvas__vignette {
  background:
    radial-gradient(ellipse 88% 78% at 50% 48%, transparent 55%, rgba(15, 23, 42, 0.06) 100%),
    linear-gradient(180deg, transparent 0%, transparent 70%, rgba(15, 23, 42, 0.05) 100%);
}

.ndHomeCanvas.is-light-studio .ndHomeCanvas__watermark {
  width: clamp(64px, 8vw, 96px);
  height: clamp(32px, 4vh, 48px);
  background: radial-gradient(ellipse 90% 90% at 100% 100%, #ffffff 0%, transparent 48%);
}

.ndHomeCanvas.is-light-studio .ndHomeCanvas__cuePill {
  color: #334155;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.08);
}

.ndHomeCanvas.is-light-studio .ndScrollTop {
  background: rgba(255, 255, 255, 0.92);
  color: #334155;
  box-shadow: 0 0 0 1px rgba(15, 23, 42, 0.1), 0 8px 24px rgba(15, 23, 42, 0.12);
}

.ndHomeCanvas.is-light-studio .ndScrollTop__track {
  stroke: rgba(15, 23, 42, 0.12);
}

.ndHomeCanvas.is-light-studio .ndScrollTop__progress {
  stroke: #1565e0;
}

.ndHomeCanvas {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: #050812;
}

.ndHomeCanvas__pin {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.ndHomeCanvas__topFade {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(72px, 14vh, 120px);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    #ffffff 0%,
    rgba(248, 250, 252, 0.92) 18%,
    rgba(5, 8, 18, 0.55) 62%,
    transparent 100%
  );
}

.ndHomeCanvas__stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 42%, rgba(14, 22, 42, 0.95) 0%, transparent 72%),
    #050812;
}

.ndHomeCanvas__stage.is-mounted .ndHomeFilm,
.ndHomeCanvas__stage.is-video .ndHomeVideo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.12s linear;
}

.ndHomeVideo {
  object-fit: cover;
  object-position: center center;
  background: transparent;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.ndHomeCanvas__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 92% 82% at 50% 48%, transparent 42%, rgba(4, 6, 14, 0.45) 100%),
    linear-gradient(180deg, transparent 0%, transparent 55%, rgba(4, 6, 14, 0.55) 100%);
}

.ndHomeCanvas__watermark {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  width: clamp(72px, 10vw, 120px);
  height: clamp(36px, 5vh, 56px);
  pointer-events: none;
  background: radial-gradient(ellipse 100% 100% at 100% 100%, rgba(2, 4, 10, 0.95) 0%, transparent 55%);
}

/* Kompakt marka — videonun ortasını kapatmaz */
.ndHomeCanvas__overlay {
  position: absolute;
  top: clamp(16px, 3vh, 28px);
  left: clamp(16px, 3vw, 32px);
  z-index: 4;
  pointer-events: none;
}

.ndHomeCanvas__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  border-radius: 16px;
  background: rgba(5, 8, 18, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(148, 163, 184, 0.12);
}

.ndHomeCanvas__brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
}

.ndHomeCanvas__brandText {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.ndHomeCanvas__brandText strong {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  color: #f8fafc;
}

.ndHomeCanvas__brandText span {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #94a3b8;
}

/* Kaydır — okunaklı pill */
.ndHomeCanvas__cue {
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 40px);
  z-index: 5;
  transform: translateX(-50%);
  pointer-events: none;
}

.ndHomeCanvas__cuePill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e2e8f0;
  background: rgba(5, 8, 18, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(148, 163, 184, 0.15);
}

.ndHomeCanvas__cuePill svg {
  width: 14px;
  height: 14px;
  animation: ndHomeCueBounce 1.6s ease-in-out infinite;
}

@keyframes ndHomeCueBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(4px); }
}

/* Yukarı — sol alt, scroll başlayınca görünür */
.ndScrollTop {
  --nd-scroll-p: 0%;
  position: absolute;
  left: clamp(16px, 3vw, 28px);
  bottom: clamp(24px, 5vh, 40px);
  z-index: 12;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(8, 12, 24, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.2), 0 8px 28px rgba(0, 0, 0, 0.45);
  color: #e2e8f0;
  cursor: pointer;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.ndScrollTop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.ndScrollTop[hidden] { display: grid !important; }

.ndScrollTop:hover {
  transform: translateY(0) scale(1.06);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.35), 0 12px 32px rgba(21, 101, 224, 0.28);
}

.ndScrollTop__ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ndScrollTop__track,
.ndScrollTop__progress {
  fill: none;
  stroke-width: 2.5;
}

.ndScrollTop__track { stroke: rgba(148, 163, 184, 0.22); }

.ndScrollTop__progress {
  stroke: #38bdf8;
  stroke-linecap: round;
  stroke-dasharray: 138.23;
  stroke-dashoffset: calc(138.23 - (138.23 * var(--nd-scroll-p, 0%) / 100));
}

.ndScrollTop__icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
}

.ndScrollTop__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

/* Ana sayfada iletişim FAB yok */
.ndHome .ndContactFab,
.ndHome .ndContactBackdrop,
.ndHome .ndContactPanel {
  display: none !important;
}

.ndHomeCanvas__placeholder {
  position: relative;
  z-index: 3;
  max-width: 420px;
  text-align: center;
}

.ndHomeCanvas__placeholder[hidden] { display: none; }

.ndHomeCanvas.has-sequence .ndHomeCanvas__inner { display: none; }

.ndHomeCanvas__logo {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto 20px;
}

.ndHomeCanvas__placeholder h1 {
  margin: 0 0 10px;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink, #0f172a);
}

.ndHomeCanvas__placeholder p {
  margin: 0;
  color: var(--muted, #64748b);
}

.ndHomeCanvas.is-static .ndHomeCanvas__overlay,
.ndHomeCanvas.is-static .ndHomeCanvas__cue,
.ndHomeCanvas.is-static .ndScrollTop {
  display: none;
}

.ndHome main {
  position: relative;
  z-index: 2;
  background: #fff;
}

.ndHome .reviewSection {
  background: #fff;
  border-top: none;
}

@media (max-width: 720px) {
  .ndHome .topTicker {
    display: none;
  }

  .ndHome .top {
    position: sticky;
    top: 0;
  }

  .ndHomeCanvas__pin {
    min-height: 100dvh;
    min-height: 100svh;
  }

  .ndHomeCanvas.is-pure-white .ndHomeVideo,
  .ndHomeVideo {
    object-position: center 46%;
  }

  .ndHomeCanvas__brandText span { display: none; }
  .ndHomeCanvas__cuePill span { display: none; }
  .ndHomeCanvas__cuePill { padding: 10px 12px; }

  .ndHomeCanvas__cue {
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }

  .ndScrollTop {
    left: max(12px, env(safe-area-inset-left, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    width: 44px;
    height: 44px;
  }

  .ndHome .reviewSection {
    padding: 52px 0 calc(64px + env(safe-area-inset-bottom, 0px));
  }

  .ndHome .reviewSide h2 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    line-height: 1.15;
  }

  .ndHome .reviewSide p {
    font-size: 0.92rem;
    line-height: 1.55;
  }

  .ndHome .reviewCard {
    min-height: 220px;
    padding: 22px;
  }

  .ndHome .reviewText {
    font-size: 1.02rem;
    line-height: 1.5;
  }

  .ndHome .reviewDots {
    right: 20px;
    bottom: 20px;
  }

  .ndHome .reviewArrows {
    margin-top: 18px;
  }

  .ndHome .footer {
    padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 430px) {
  .ndHomeCanvas__cue {
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .ndScrollTop {
    left: max(10px, env(safe-area-inset-left, 0px));
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    width: 42px;
    height: 42px;
  }

  .ndHome .reviewCard {
    padding: 18px;
  }

  .ndHome .reviewQuote {
    font-size: 3.6rem;
    right: 16px;
    top: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ndHomeCanvas__cuePill svg { animation: none; }
  .ndScrollTop { transition: none; }
  .ndHomeBoot__logo { animation: none; }
  html.ndPageReady .topTicker,
  html.ndPageReady .top,
  html.ndPageReady .ndHomeCanvas,
  html.ndPageReady main,
  html.ndPageReady .footer { transition: none; }
}
