:root {
  --tz-primary: #2043F5;
  --tz-primary-dark: #101d63;
  --tz-accent: #20f5ae;
  --tz-ink: #152238;
  --tz-muted: #64748b;
  --tz-soft: #eefaf7;
  --tz-border: #dbe8e5;
}

body {
  color: var(--tz-ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #fff;
}

a { color: var(--tz-primary); }
a:hover { color: var(--tz-primary-dark); }

.btn-primary {
  --bs-btn-bg: var(--tz-primary);
  --bs-btn-border-color: var(--tz-primary);
  --bs-btn-hover-bg: var(--tz-primary-dark);
  --bs-btn-hover-border-color: var(--tz-primary-dark);
}

.text-primary { color: var(--tz-primary) !important; }
.bg-primary { background-color: var(--tz-primary) !important; }
.bg-soft { background-color: var(--tz-soft); }
.border-soft { border-color: var(--tz-border) !important; }

.site-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid rgba(219, 232, 229, .9);
}

.hero {
  background:
    radial-gradient(circle at 85% 10%, rgba(37, 99, 235, .12), transparent 26%),
    radial-gradient(circle at 12% 18%, rgba(15, 118, 110, .14), transparent 28%),
    linear-gradient(180deg, #f6fbfa 0%, #ffffff 100%);
  min-height: 680px;
}

.hero-visual {
  border: 1px solid var(--tz-border);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(21, 34, 56, .12);
}

.hero-slider {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  isolation: isolate;
}

.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  animation: hero-slide-show 18s infinite;
}

.hero-slide-bg,
.hero-slide-figure,
.hero-slide-copy {
  opacity: 0;
  animation-duration: 18s;
  animation-iteration-count: infinite;
  animation-timing-function: cubic-bezier(.22, 1, .36, 1);
}

.hero-slide-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation-name: hero-bg-pan;
  z-index: 0;
}

.hero-slide-figure {
  position: absolute;
  /* max-height: 64%; */
  object-fit: contain;
  filter: drop-shadow(0 28px 32px rgba(21, 34, 56, .22));
  animation-name: hero-figure-in;
  z-index: 1;
}
#slide-0 {
  right: clamp(1.25rem, 5vw, 3rem);
  bottom: clamp(2vw, 4vw, 7vw);
  width: min(60%, 360px);
}

#slide-1 {
  right: clamp(8rem, 12rem, 16rem);
  bottom: clamp(0rem, 0.5rem, 1rem);
  width: min(80%, 400px) !important;
  max-height: 90% !important;
}

#slide-2 {
  right: clamp(3rem, 5rem, 7rem);
  bottom: clamp(4rem, 6rem, 8rem);
  width: min(60%, 300px) !important;
  max-height: 50% !important;
}

.hero-slide:nth-child(2) .hero-slide-figure {
  width: min(58%, 390px);
  max-height: 76%;
  bottom: 4.5rem;
}

.hero-slide-copy {
  position: absolute;
  left: clamp(1rem, 5vw, 2.5rem);
  bottom: clamp(1rem, 4vw, 2rem);
  width: min(70%, 300px);
  padding: 1rem 1.15rem;
  border: 1px solid rgba(219, 232, 229, .82);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 18px 45px rgba(21, 34, 56, .12);
  backdrop-filter: blur(12px);
  animation-name: hero-copy-in;
  z-index: 2;
}

.hero-slide-copy span,
.hero-slide-copy strong {
  display: block;
}

.hero-slide-copy span {
  margin-bottom: .25rem;
  color: var(--tz-primary);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-slide-copy strong {
  color: var(--tz-ink);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.25;
}

.hero-slide:nth-child(2),
.hero-slide:nth-child(2) .hero-slide-bg,
.hero-slide:nth-child(2) .hero-slide-figure,
.hero-slide:nth-child(2) .hero-slide-copy {
  animation-delay: 6s;
}

.hero-slide:nth-child(3),
.hero-slide:nth-child(3) .hero-slide-bg,
.hero-slide:nth-child(3) .hero-slide-figure,
.hero-slide:nth-child(3) .hero-slide-copy {
  animation-delay: 12s;
}

.hero-slider-dots {
  position: absolute;
  right: 1.25rem;
  bottom: 1.25rem;
  display: flex;
  gap: .45rem;
  z-index: 2;
}

.hero-slider-dots span {
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: rgba(21, 34, 56, .28);
  animation: hero-dot-fill 18s infinite;
}

.hero-slider-dots span:nth-child(2) {
  animation-delay: 6s;
}

.hero-slider-dots span:nth-child(3) {
  animation-delay: 12s;
}

.hero-slider:hover .hero-slide,
.hero-slider:hover .hero-slide-bg,
.hero-slider:hover .hero-slide-figure,
.hero-slider:hover .hero-slide-copy,
.hero-slider:hover .hero-slider-dots span {
  animation-play-state: paused;
}

[dir="rtl"] .hero-slide-copy {
  right: clamp(1rem, 5vw, 2.5rem);
  left: auto;
}

[dir="rtl"] .hero-slider-dots {
  right: auto;
  left: 1.25rem;
}

.icon-tile {
  width: 48px;
  height: 48px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: var(--tz-soft);
  color: var(--tz-primary);
  font-size: 1.25rem;
}

.stats-strip {
  border-top: 1px solid var(--tz-border);
  border-bottom: 1px solid var(--tz-border);
  background: var(--tz-soft);
}

.stat-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--tz-primary-dark);
  line-height: 1;
}

.cta-banner {
  border-radius: 24px;
  background: linear-gradient(135deg, var(--tz-primary) 0%, var(--tz-primary-dark) 60%, var(--tz-accent) 130%);
  color: #fff;
}

.cta-banner .btn-outline-primary {
  --bs-btn-color: #fff;
  --bs-btn-border-color: #fff;
  --bs-btn-hover-bg: #fff;
  --bs-btn-hover-color: var(--tz-primary-dark);
}

.card {
  border-color: var(--tz-border);
  border-radius: 14px;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #f8fafc;
}

.admin-shell {
  min-height: 100vh;
  background: #f8fafc;
}

.admin-sidebar {
  background: #16213a;
  color: #cbd5e1;
  min-height: 100vh;
}

.admin-sidebar a {
  color: #cbd5e1;
  border-radius: 10px;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.admin-content-card {
  background: #fff;
  border: 1px solid var(--tz-border);
  border-radius: 14px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--tz-primary);
  box-shadow: 0 0 0 .25rem rgba(15, 118, 110, .15);
}

[dir="rtl"] .navbar-nav,
[dir="rtl"] .ms-auto {
  margin-left: 0 !important;
}

@keyframes tz-fade-up {
  from {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tz-fade-down {
  from {
    opacity: 0;
    transform: translate3d(0, -18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tz-slide-start {
  from {
    opacity: 0;
    transform: translate3d(-24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tz-slide-end {
  from {
    opacity: 0;
    transform: translate3d(24px, 0, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes tz-scale-in {
  from {
    opacity: 0;
    transform: scale(.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes tz-soft-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(15, 118, 110, 0);
  }
  50% {
    box-shadow: 0 0 0 8px rgba(15, 118, 110, .08);
  }
}

@keyframes hero-slide-show {
  0% {
    opacity: 0;
  }
  4%, 29% {
    opacity: 1;
  }
  34%, 100% {
    opacity: 0;
  }
}

@keyframes hero-bg-pan {
  0% {
    opacity: 0;
    transform: translate3d(-42px, 0, 0) scale(1.06);
  }
  6%, 29% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  34%, 100% {
    opacity: 0;
    transform: translate3d(22px, 0, 0) scale(1.03);
  }
}

@keyframes hero-figure-in {
  0% {
    opacity: 0;
    transform: translate3d(90px, 0, 0) scale(.94);
  }
  7%, 29% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  34%, 100% {
    opacity: 0;
    transform: translate3d(-28px, 0, 0) scale(.98);
  }
}

@keyframes hero-copy-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  8%, 29% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
  34%, 100% {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }
}

@keyframes hero-dot-fill {
  0%, 29% {
    background: var(--tz-primary);
    transform: scale(1.35);
  }
  34%, 100% {
    background: rgba(21, 34, 56, .28);
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .site-page .site-header {
    animation: tz-fade-down .55s ease both;
  }

  .site-page .navbar-brand img {
    animation: tz-scale-in .55s ease both .08s;
  }

  .site-page.animations-ready [data-animate] {
    opacity: 0;
    will-change: opacity, transform;
  }

  .site-page.animations-ready [data-animate].is-visible {
    animation-duration: .72s;
    animation-timing-function: cubic-bezier(.22, 1, .36, 1);
    animation-fill-mode: both;
    animation-delay: var(--tz-animate-delay, 0s);
  }

  .site-page.animations-ready [data-animate="fade-up"].is-visible {
    animation-name: tz-fade-up;
  }

  .site-page.animations-ready [data-animate="fade-down"].is-visible {
    animation-name: tz-fade-down;
  }

  .site-page.animations-ready [data-animate="slide-start"].is-visible {
    animation-name: tz-slide-start;
  }

  .site-page.animations-ready [dir="rtl"] [data-animate="slide-start"].is-visible,
  [dir="rtl"] .site-page.animations-ready [data-animate="slide-start"].is-visible {
    animation-name: tz-slide-end;
  }

  .site-page.animations-ready [data-animate="scale-in"].is-visible {
    animation-name: tz-scale-in;
  }

  .site-page .card,
  .site-page .btn,
  .site-page .icon-tile {
    transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
  }

  .site-page .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 45px rgba(21, 34, 56, .10);
  }

  .site-page .btn:hover {
    transform: translateY(-1px);
  }

  .site-page .card:hover .icon-tile,
  .site-page .product-card:hover .icon-tile {
    animation: tz-soft-pulse 1.1s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide,
  .hero-slide-bg,
  .hero-slide-figure,
  .hero-slide-copy,
  .hero-slider-dots span {
    animation: none !important;
  }

  .hero-slide:first-child,
  .hero-slide:first-child .hero-slide-bg,
  .hero-slide:first-child .hero-slide-figure,
  .hero-slide:first-child .hero-slide-copy {
    opacity: 1;
  }

  .site-page.animations-ready [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .site-page .card,
  .site-page .btn,
  .site-page .icon-tile {
    transition: none !important;
  }
}

@media (max-width: 991.98px) {
  .hero { min-height: auto; }
  .hero-slider {
    min-height: 380px;
  }

  .hero-slide-figure {
    width: min(52%, 270px);
    max-height: 56%;
    bottom: 6rem;
  }

  .hero-slide:nth-child(2) .hero-slide-figure {
    width: min(62%, 340px);
  }

  .admin-sidebar { min-height: auto; }
}

@media (max-width: 575.98px) {
  .hero-slider {
    min-height: 340px;
  }

  .hero-slide-figure {
    right: 1rem;
    width: min(48%, 210px);
    bottom: 6.8rem;
  }

  .hero-slide:nth-child(2) .hero-slide-figure {
    width: min(64%, 260px);
    bottom: 5.7rem;
  }

  .hero-slide-copy {
    width: calc(100% - 2rem);
    padding: .85rem .95rem;
  }
}
