/* GSM Solar — SaaS-style layer */
:root {
  --gsm-green: #0d9488;
  --gsm-dark: #0f172a;
  --gsm-sun: #f59e0b;
  --gsm-mesh: radial-gradient(at 40% 20%, rgba(13,148,136,.15) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(245,158,11,.12) 0px, transparent 45%),
    radial-gradient(at 0% 50%, rgba(59,130,246,.08) 0px, transparent 50%);
}
html { scroll-behavior: smooth; }
body { font-family: "Inter", system-ui, sans-serif; }
.saas-mesh { background: var(--gsm-mesh), #f8fafc; }
.saas-hero-gradient {
  background: linear-gradient(135deg, #0f172a 0%, #134e4a 45%, #0f766e 100%);
}
.saas-card {
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 24px -10px rgba(15, 23, 42, 0.08);
}
.saas-nav-blur { backdrop-filter: saturate(180%) blur(12px); background: rgba(255,255,255,.88); }
.hero-overlay { background: linear-gradient(110deg, rgba(15,23,42,.92), rgba(15,118,110,.78)); }
.service-card,.feature-card,.stat-card,.testimonial-card,.saas-card-hover { transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.service-card:hover,.feature-card:hover,.stat-card:hover,.testimonial-card:hover,.saas-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(15, 23, 42, 0.15);
}
.active-nav { color: #0d9488 !important; font-weight: 600; }
.page-hero { background: var(--gsm-mesh), linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%); }
.img-cover { object-fit: cover; width: 100%; height: 100%; }
.modal-backdrop { background: rgba(2,6,23,.65); backdrop-filter: blur(4px); }
details.saas-faq > summary { list-style: none; cursor: pointer; }
details.saas-faq > summary::-webkit-details-marker { display: none; }
.chip {
  border: 1px solid #bae6fd;
  background: #f0f9ff;
  color: #0c4a6e;
  border-radius: 9999px;
  padding: 0.4rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
}
.icon-badge {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  background: #ecfeff;
  color: #115e59;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.icon-badge-sm {
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 0.5rem;
  background: #ecfdf5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
}
.icon-badge-dark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-float { animation: floatY 4.5s ease-in-out infinite; }
.animate-fade-in { animation: fadeInUp .8s ease both; }
.delay-100 { animation-delay: .1s; }
.delay-200 { animation-delay: .2s; }
.icon-badge svg,
.icon-badge-sm svg {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}
.icon-badge-sm svg {
  width: 1.05rem;
  height: 1.05rem;
}
.icon-badge-dark svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #5eead4;
}
/* Marquee */
.marquee-wrap {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  width: max-content;
  gap: 3rem;
  animation: marquee 32s linear infinite;
}
.marquee-track:hover {
  animation-play-state: paused;
}
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
/* Carousel */
.carousel-viewport {
  overflow: hidden;
  border-radius: 1rem;
}
.carousel-track {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.carousel-slide {
  flex: 0 0 100%;
  min-width: 100%;
}
.carousel-dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 9999px;
  background: #cbd5e1;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dot.is-active {
  background: #0d9488;
  transform: scale(1.15);
}
/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Stagger children */
.stagger-children.is-visible > * {
  animation: fadeInUp 0.55s ease both;
}
.stagger-children.is-visible > *:nth-child(1) { animation-delay: 0.05s; }
.stagger-children.is-visible > *:nth-child(2) { animation-delay: 0.1s; }
.stagger-children.is-visible > *:nth-child(3) { animation-delay: 0.15s; }
.stagger-children.is-visible > *:nth-child(4) { animation-delay: 0.2s; }
.stagger-children.is-visible > *:nth-child(5) { animation-delay: 0.25s; }
.stagger-children.is-visible > *:nth-child(6) { animation-delay: 0.3s; }
/* Pulse ring (hero accent) */
@keyframes pulse-ring {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50% { opacity: 0.15; transform: scale(1.08); }
}
.hero-pulse::after {
  content: "";
  position: absolute;
  inset: -20%;
  border-radius: 1.5rem;
  border: 1px solid rgba(255,255,255,0.25);
  animation: pulse-ring 3.5s ease-in-out infinite;
  pointer-events: none;
}
/* FAQ chevron */
details.saas-faq summary svg {
  transition: transform 0.2s ease;
}
details.saas-faq[open] summary svg {
  transform: rotate(180deg);
}
@keyframes shimmer-slide {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
.animate-shimmer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 45%,
    rgba(255, 255, 255, 0.55) 50%,
    rgba(255, 255, 255, 0.35) 55%,
    transparent 100%
  );
  width: 60%;
  animation: shimmer-slide 4s ease-in-out infinite;
  pointer-events: none;
}
