/* Glass surfaces */
.glass,
.dropdown,
.service-card,
.product-card,
.feature-card,
.form-card,
.stat,
.industry-disc,
.nav.open {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.site-header {
  background: transparent;
  border: 0;
  box-shadow: none;
  transition: background 0.28s var(--ease), box-shadow 0.28s var(--ease);
}
.site-header.is-scrolled {
  background: transparent;
  box-shadow: none;
}
.site-header.is-scrolled .header-inner {
  background: var(--header-bg-scrolled);
  box-shadow: var(--shadow-lg);
}

.hero-panel {
  background: var(--hero-panel);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-radius: var(--radius-lg);
  padding: 30px 30px 26px;
  box-shadow: 0 18px 40px rgba(18, 32, 58, 0.08);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.28);
}

.icon-btn {
  background: rgba(30, 107, 255, 0.92);
  backdrop-filter: blur(8px);
}

.field input,
.field select,
.field textarea,
.newsletter-form input {
  backdrop-filter: blur(10px);
}

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass,
  .dropdown,
  .service-card,
  .product-card,
  .feature-card,
  .form-card,
  .stat,
  .industry-disc,
  .hero-panel,
  .site-header .header-inner {
    background: var(--header-bg-scrolled);
  }
}

/* Reveals */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
.stagger > .reveal:nth-child(1) { transition-delay: 0.02s; }
.stagger > .reveal:nth-child(2) { transition-delay: 0.08s; }
.stagger > .reveal:nth-child(3) { transition-delay: 0.14s; }
.stagger > .reveal:nth-child(4) { transition-delay: 0.2s; }
.stagger > .reveal:nth-child(5) { transition-delay: 0.26s; }
.stagger > .reveal:nth-child(6) { transition-delay: 0.32s; }
.stagger > .reveal:nth-child(7) { transition-delay: 0.38s; }
.stagger > .reveal:nth-child(8) { transition-delay: 0.44s; }

.page-hero .eyebrow,
.page-hero h1,
.page-hero p {
  animation: fadeUp 0.7s var(--ease) both;
}
.page-hero h1 { animation-delay: 0.08s; }
.page-hero p { animation-delay: 0.16s; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@keyframes kenburns {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 18px rgba(30, 107, 255, 0.28); }
  50% { box-shadow: 0 8px 28px rgba(30, 107, 255, 0.5); }
}

.site-header {
  animation: fadeUp 0.55s var(--ease) both;
}
.header-cta {
  animation: pulseGlow 1.8s ease-in-out 1;
}

/* Hover polish */
.service-card,
.product-card,
.feature-card,
.industry-item .industry-disc,
.catalog-card {
  transition: transform 0.28s var(--ease), box-shadow 0.28s var(--ease), border-color 0.28s, background 0.28s;
}
.service-card:hover,
.product-card:hover,
.feature-card:hover,
.catalog-card:hover {
  transform: translateY(-4px);
  background: var(--glass-strong);
  box-shadow: 0 16px 36px rgba(30, 107, 255, 0.12);
  border-color: rgba(30, 107, 255, 0.18);
}
.icon-wrap,
.industry-disc {
  transition: transform 0.22s var(--ease);
}
.service-card:hover .icon-wrap,
.industry-item:hover .industry-disc,
.feature-card:hover .icon-wrap {
  transform: scale(1.08) rotate(-6deg);
}

/* Icon stroke draw + float */
.icon-wrap .icon,
.industry-disc .icon,
.cta-copy > .icon,
.info-item .icon,
.feature-card .icon-wrap .icon {
  overflow: visible;
}
.icon-wrap .icon path,
.icon-wrap .icon rect,
.icon-wrap .icon circle,
.industry-disc .icon path,
.industry-disc .icon rect,
.industry-disc .icon circle,
.cta-copy > .icon path,
.cta-copy > .icon rect,
.cta-copy > .icon circle,
.info-item .icon path,
.feature-card .icon-wrap .icon path,
.feature-card .icon-wrap .icon rect,
.feature-card .icon-wrap .icon circle {
  stroke-dasharray: 72;
  stroke-dashoffset: 72;
}
.reveal.is-in .icon path,
.reveal.is-in .icon rect,
.reveal.is-in .icon circle,
.page-hero.is-in .icon path,
.info-item .icon path,
.info-item .icon rect,
.cta-banner.reveal.is-in .icon path,
.cta-banner.reveal.is-in .icon rect {
  animation: strokeDraw 0.85s var(--ease) forwards;
}
.reveal.is-in .icon-wrap .icon,
.reveal.is-in .industry-disc .icon {
  animation: iconFloat 3.6s ease-in-out 0.9s infinite;
}
.industry-item:nth-child(2) .icon { animation-delay: 1.05s; }
.industry-item:nth-child(3) .icon { animation-delay: 1.2s; }
.industry-item:nth-child(4) .icon { animation-delay: 1.35s; }
.industry-item:nth-child(5) .icon { animation-delay: 1.5s; }
.industry-item:nth-child(6) .icon { animation-delay: 1.65s; }
.industry-item:nth-child(7) .icon { animation-delay: 1.8s; }
.service-card:hover .icon path,
.service-card:hover .icon rect,
.service-card:hover .icon circle,
.feature-card:hover .icon path,
.feature-card:hover .icon rect,
.industry-item:hover .icon path,
.industry-item:hover .icon rect {
  animation: strokeDraw 0.6s var(--ease) forwards;
}
.cta-copy > .icon {
  animation: iconPulse 2.4s ease-in-out infinite;
}
.socials a {
  transition: transform 0.22s var(--ease), background 0.22s;
}
.socials a:hover {
  transform: translateY(-3px) rotate(-8deg);
  background: var(--blue);
}
.logo .logo-mark {
  transition: transform 0.45s var(--ease);
}
.logo:hover .logo-mark {
  transform: rotate(-12deg) scale(1.06);
}
.btn .icon {
  transition: transform 0.22s var(--ease);
}
.btn:hover .icon { transform: translateX(4px); }
.theme-toggle .icon {
  transition: transform 0.35s var(--ease);
}
.theme-toggle:hover .icon { transform: rotate(20deg) scale(1.08); }
.account-btn .icon {
  transition: transform 0.28s var(--ease);
}
.account-btn:hover .icon { transform: scale(1.1); }
.account-menu { position: relative; }
.account-menu .dropdown {
  right: 0;
  left: auto;
  min-width: 180px;
}
.back-to-top.is-visible .icon {
  animation: arrowNudge 1.6s ease-in-out infinite;
}

/* Text effects */
.accent {
  background: linear-gradient(90deg, var(--blue) 0%, #7eb6ff 45%, var(--blue) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShimmer 4s linear infinite;
}
.eyebrow {
  position: relative;
  display: inline-block;
  letter-spacing: 0.14em;
  transition: letter-spacing 0.4s var(--ease);
}
.reveal.is-in .eyebrow,
.page-hero .eyebrow {
  animation: eyebrowIn 0.7s var(--ease) both;
}
.word {
  display: inline-block;
}
.has-words .word {
  opacity: 0;
  transform: translateY(14px);
  animation: fadeUp 0.55s var(--ease) forwards;
  animation-delay: calc(var(--i, 0) * 0.045s);
}
.fade-slider__slide:not(.is-active) .word {
  animation: none;
  opacity: 0;
}
.link-more {
  position: relative;
}
.link-more::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0;
  height: 1.5px;
  background: var(--blue);
  transition: width 0.28s var(--ease);
}
.link-more:hover::after { width: calc(100% - 22px); }
.stat b {
  background: linear-gradient(180deg, var(--blue), #7eb6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@keyframes strokeDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes iconPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}
@keyframes textShimmer {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}
@keyframes eyebrowIn {
  from { opacity: 0; letter-spacing: 0.32em; transform: translateY(8px); }
  to { opacity: 1; letter-spacing: 0.14em; transform: none; }
}
@keyframes arrowNudge {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}
@keyframes trustPulse {
  0%, 100% { transform: translateY(0); box-shadow: 0 0 0 0 rgba(126, 182, 255, 0); }
  50% { transform: translateY(-1px); box-shadow: 0 4px 10px rgba(30, 107, 255, 0.12); }
}

/* Fade slider */
.fade-slider {
  position: relative;
}
.fade-slider__slides {
  position: relative;
}
.fade-slider__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s var(--ease), visibility 0.7s;
}
.fade-slider__slide.is-active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.fade-slider__slide img.kenburns {
  animation: kenburns 7s ease-out forwards;
}
.slider-dots {
  display: flex;
  gap: 8px;
}
.slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: var(--muted);
  opacity: 0.45;
  cursor: pointer;
  padding: 0;
  transition: width 0.25s, background 0.25s, opacity 0.25s;
}
.slider-dot.is-active {
  width: 22px;
  border-radius: 999px;
  background: var(--blue);
  opacity: 1;
}
.hero-dots .slider-dot { background: rgba(255,255,255,0.55); opacity: 1; }
.hero-dots .slider-dot.is-active { background: #fff; }

/* Carousel */
.carousel {
  overflow: hidden;
  position: relative;
}
.carousel__viewport {
  overflow: hidden;
}
.carousel__track {
  display: flex;
  gap: 16px;
  transition: transform 0.55s var(--ease), opacity 0.35s var(--ease);
}
.carousel.is-fading .carousel__track {
  opacity: 0;
}
.carousel__track > * {
  flex: 0 0 calc((100% - 48px) / 4);
  min-width: 0;
}

@media (max-width: 1100px) {
  .carousel__track > * { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 640px) {
  .carousel__track > * { flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  .fade-slider__slide,
  .carousel__track,
  .service-card,
  .product-card,
  .feature-card,
  .page-hero .eyebrow,
  .page-hero h1,
  .page-hero p,
  .header-cta,
  .has-words .word,
  .accent,
  .icon,
  .icon path,
  .icon rect,
  .icon circle,
  .cta-copy > .icon,
  .logo-mark,
  .back-to-top .icon,
  .trust-badge {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
  .back-to-top { transition: none !important; }
  .fade-slider__slide img.kenburns { animation: none !important; }
}
