

:root {
  --neon: #22c55e;
  --neon-light: #4ade80;
  --neon-dark: #16a34a;
  --muted: #cbd5e1;
  --muted-dark: #94a3b8;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(15, 23, 42, 0.8);
}

.scroll-reveal-section {
  position: relative;
  min-height: 100vh;
  padding: 8rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  isolation: isolate;
}

.lazy-placeholder {
  min-height: 200px;
  background: rgba(15, 20, 42, 0.85);
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.lazy-placeholder::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.05), transparent);
  transform: translate3d(-100%, 0, 0);
  animation: shimmer 2s linear infinite;
  will-change: transform;
}

@keyframes shimmer {
  from { transform: translate3d(-100%, 0, 0); }
  to   { transform: translate3d(100%, 0, 0); }
}

.fragment {
  position: relative;
  overflow: visible;
  width: 100%;
}

.benefit-card, 
.service-card {
  background: rgba(15, 23, 42, 0.92);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

.benefit-card h3, 
.service-card h3,
.service-card .title {
  color: var(--neon-light);
  font-weight: 700;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  position: relative;
  z-index: 1;
}

.benefit-card p, 
.service-card p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 1rem;
  position: relative;
  z-index: 1;
}

.benefit-card svg,
.service-card svg {
  transition: transform 0.3s ease;
}

.benefit-card:hover svg, 
.service-card:hover svg {
  transform: scale(1.1) rotate(5deg);
}

.benefit-card span.tag,
.service-card span,
span[style*="background: rgba(34, 197, 94"] {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.2), rgba(34, 197, 94, 0.1)) !important;
  color: var(--neon-light) !important;
  padding: 0.5rem 1rem !important;
  border-radius: 25px !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  border: none !important;
  transition: all 0.3s ease;
}

.benefit-card span.tag:hover,
.service-card span:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.3), rgba(34, 197, 94, 0.15)) !important;
  transform: translateY(-2px);
}

.cta-button,
.btn-primary,
.btn-secondary {
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.cta-button::after,
.btn-primary::after,
.btn-secondary::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(255, 255, 255, 0.2), 
    transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::after,
.btn-primary:hover::after,
.btn-secondary:hover::after {
  left: 100%;
}

.cta-button:hover,
.btn-primary:hover,
.btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(34, 197, 94, 0.3);
}

.btn-primary:focus,
.cta-button:focus {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.btn-primary:focus-visible,
.cta-button:focus-visible {
  outline: 2px solid #22c55e;
  outline-offset: 2px;
}

.section-title,
h2[style*="color: #22c55e"] {
  color: var(--neon-light) !important;
  text-align: center;
  font-size: clamp(2.5rem, 5vw, 3.5rem) !important;
  font-weight: 700 !important;
  margin-bottom: 3rem !important;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(34, 197, 94, 0.2);
  position: relative;
  display: inline-block;
  width: 100%;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: linear-gradient(90deg, 
    transparent, 
    var(--neon), 
    transparent);
  border-radius: 2px;
}

.services-grid,
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

@media (min-width: 768px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1200px) {
  .services-grid {
    gap: 2.5rem;
  }
}

.scroll-reveal {
  opacity: 1;
  transform: none;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .benefit-card,
  .service-card,
  .scroll-reveal,
  .cta-button {
    transition: none !important;
    animation: none !important;
  }
  
  .benefit-card::before,
  .benefit-card::after,
  .service-card::before,
  .service-card::after {
    display: none;
  }
}

@media (max-width: 768px) {
  .benefit-card,
  .service-card {
    padding: 2rem 1.5rem;
  }
  
  .section-title,
  h2[style*="color: #22c55e"] {
    font-size: clamp(2rem, 7vw, 2.5rem) !important;
    margin-bottom: 2rem !important;
  }
  
  .scroll-reveal-section {
    padding: 3rem 0;
  }
}

.fragment .container {
  position: relative;
  z-index: 3;
}

@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .benefit-card,
    .service-card,
    .branch-card,
    .kmu-why-card,
    .stat-card,
    .scroll-reveal {
      animation: revealFromBelow linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 20%;
    }
  }

  @keyframes revealFromBelow {
    from {
      opacity: 0;
      transform: translate3d(0, 24px, 0);
    }
    to {
      opacity: 1;
      transform: translate3d(0, 0, 0);
    }
  }
}
