:root {
  --landing-primary-rgb: 13, 110, 253;
  --landing-hero-blob-a: rgba(var(--landing-primary-rgb), 0.14);
  --landing-hero-blob-b: rgba(99, 102, 241, 0.12);
  --landing-hero-blob-c: rgba(34, 197, 94, 0.1);
}

html[data-bs-theme="dark"] {
  --landing-hero-blob-a: rgba(var(--landing-primary-rgb), 0.22);
  --landing-hero-blob-b: rgba(129, 140, 248, 0.16);
  --landing-hero-blob-c: rgba(74, 222, 128, 0.12);
}

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* Panel/docs ile hizalı gri skala (Bootstrap gray değişkenleri) */
.text-gray-900 {
  color: var(--bs-gray-900) !important;
}
.text-gray-800 {
  color: var(--bs-gray-800) !important;
}
.text-gray-700 {
  color: var(--bs-gray-700) !important;
}
.text-gray-600 {
  color: var(--bs-gray-600) !important;
}
.text-gray-500 {
  color: var(--bs-gray-500) !important;
}
.border-gray-200 {
  border-color: var(--bs-gray-200) !important;
}

html[data-bs-theme="dark"] .text-gray-900 {
  color: var(--bs-gray-100) !important;
}
html[data-bs-theme="dark"] .text-gray-800 {
  color: var(--bs-gray-200) !important;
}
html[data-bs-theme="dark"] .text-gray-700 {
  color: var(--bs-gray-300) !important;
}
html[data-bs-theme="dark"] .text-gray-600 {
  color: var(--bs-gray-400) !important;
}
html[data-bs-theme="dark"] .text-gray-500 {
  color: var(--bs-gray-500) !important;
}
html[data-bs-theme="dark"] .border-gray-200 {
  border-color: var(--bs-border-color) !important;
}
html[data-bs-theme="dark"] .border-gray-300 {
  border-color: var(--bs-border-color) !important;
}

.fs-8 {
  font-size: 0.75rem !important;
}

/* Docs’taki section ritmi (~py-10 / py-xl-12) */
.py-10 {
  padding-top: 3rem !important;
  padding-bottom: 3rem !important;
}
.py-12 {
  padding-top: 4rem !important;
  padding-bottom: 4rem !important;
}
@media (min-width: 992px) {
  .py-lg-12 {
    padding-top: 5rem !important;
    padding-bottom: 5rem !important;
  }
}
@media (min-width: 1200px) {
  .py-xl-12 {
    padding-top: 5.5rem !important;
    padding-bottom: 5.5rem !important;
  }
  /* Docs Metronic ritmi (~g-xl-8 / mb-xl-8) */
  .row.g-xl-8 {
    --bs-gutter-x: 3rem;
    --bs-gutter-y: 3rem;
  }
  .mb-xl-8 {
    margin-bottom: 3rem !important;
  }
}

.max-w-readable {
  max-width: 34rem;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

.brand-mark {
  width: 2.25rem;
  height: 2.25rem;
  background: rgba(var(--landing-primary-rgb), 0.1);
}

.btn.btn-icon {
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.badge-soft-primary {
  background: rgba(var(--landing-primary-rgb), 0.12);
  color: var(--bs-primary);
}

.badge-soft-warning {
  background: rgba(var(--bs-warning-rgb), 0.2);
}

/* Kahraman + parallax dekor */
.hero {
  min-height: min(92vh, 840px);
  background: radial-gradient(1200px 500px at 15% -10%, var(--landing-hero-blob-a), transparent 55%),
    radial-gradient(900px 480px at 95% 10%, var(--landing-hero-blob-b), transparent 50%),
    var(--bs-body-bg);
}

.hero-parallax {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.parallax-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  will-change: transform;
}

.parallax-layer--back {
  width: clamp(260px, 38vw, 420px);
  height: clamp(260px, 38vw, 420px);
  background: var(--landing-hero-blob-a);
  left: -6%;
  top: 18%;
}

.parallax-layer--mid {
  width: clamp(200px, 28vw, 320px);
  height: clamp(200px, 28vw, 320px);
  background: var(--landing-hero-blob-b);
  right: -4%;
  top: 42%;
}

.parallax-layer--front {
  width: clamp(180px, 22vw, 280px);
  height: clamp(180px, 22vw, 280px);
  background: var(--landing-hero-blob-c);
  left: 35%;
  bottom: 8%;
}

.parallax-grid {
  position: absolute;
  inset: -20%;
  background-image: linear-gradient(var(--bs-border-color-translucent) 1px, transparent 1px),
    linear-gradient(90deg, var(--bs-border-color-translucent) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 28%, transparent 70%);
  opacity: 0.45;
  will-change: transform;
}

.hero .container {
  z-index: 1;
}

/* Mock dashboard kartı */
.hero-mock {
  background: var(--bs-body-bg);
  border: 1px solid var(--bs-border-color-translucent);
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

html[data-bs-theme="dark"] .hero-mock {
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.hero-mock__chrome {
  background: var(--bs-tertiary-bg);
}

.hero-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.hero-mock__dot--r {
  background: #fb7185;
}
.hero-mock__dot--y {
  background: #fbbf24;
}
.hero-mock__dot--g {
  background: #34d399;
}

.floating-shadow {
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
@media (hover: hover) and (pointer: fine) {
  .floating-shadow:hover {
    transform: translateY(-4px);
  }
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.35rem;
  height: 120px;
  padding-top: 0.25rem;
}
.mock-bars span {
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(
    180deg,
    rgba(var(--landing-primary-rgb), 0.85),
    rgba(var(--landing-primary-rgb), 0.28)
  );
  height: var(--h, 50%);
  min-height: 18%;
  animation: barPulse 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 0.12s);
}
.mock-bars span:nth-child(1) {
  --i: 1;
}
.mock-bars span:nth-child(2) {
  --i: 2;
}
.mock-bars span:nth-child(3) {
  --i: 3;
}
.mock-bars span:nth-child(4) {
  --i: 4;
}
.mock-bars span:nth-child(5) {
  --i: 5;
}
.mock-bars span:nth-child(6) {
  --i: 6;
}
.mock-bars span:nth-child(7) {
  --i: 7;
}

@keyframes barPulse {
  0%,
  100% {
    opacity: 0.78;
    transform: scaleY(1);
    transform-origin: bottom;
  }
  50% {
    opacity: 1;
    transform: scaleY(1.05);
    transform-origin: bottom;
  }
}

.icon-tile {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  background: rgba(var(--landing-primary-rgb), 0.1);
}

.product-shot {
  will-change: transform;
}

.stat-card {
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.stat-card:hover {
  transform: translateY(-2px);
  border-color: rgba(var(--landing-primary-rgb), 0.35) !important;
}

@media (prefers-reduced-motion: reduce) {
  .parallax-layer,
  .parallax-grid,
  .product-shot,
  .product-parallax,
  #heroMock {
    transform: none !important;
  }
  .mock-bars span {
    animation: none;
  }
}
