:root {
  color-scheme: light;
}

html {
  scroll-padding-top: 100px;
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
}

/* EPC Meter Animation */
@keyframes meterFill {
  from {
    stroke-dasharray: 0, 100;
  }
  to {
    stroke-dasharray: 75, 100;
  }
}

.epc-meter-fill {
  animation: meterFill 2s ease-out forwards;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Smooth Scroll Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
}

.animate-slide-in-left {
  animation: slideInLeft 0.6s ease-out forwards;
}

.animate-slide-in-right {
  animation: slideInRight 0.6s ease-out forwards;
}

/* Staggered animation delays */
.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-500 { animation-delay: 0.5s; }

[data-include]:empty {
  display: block;
}

.nav-link {
  position: relative;
  color: #0f172a;
  transition: color 0.25s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -0.45rem;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #2563eb, #16a34a);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

.hero-card::before,
.service-card::before,
.pricing-card::before,
.stat-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-card,
.service-card,
.pricing-card,
.stat-card {
  position: relative;
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}

.service-card:hover,
.pricing-card:hover,
.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12);
}

.hero-card:hover::before,
.service-card:hover::before,
.pricing-card:hover::before,
.stat-card:hover::before {
  opacity: 1;
}

.service-arrow svg {
  transition: transform 0.3s ease;
}

.service-card:hover .service-arrow svg {
  transform: translate(2px, -2px);
}

.timeline {
  position: relative;
}

@media (min-width: 1024px) {
  .timeline::before {
    content: "";
    position: absolute;
    left: 12.5%;
    right: 12.5%;
    top: 2.2rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.8), rgba(22, 163, 74, 0.6));
    transform-origin: left center;
    transform: scaleX(0);
  }

  .timeline.is-visible::before {
    animation: line-grow 1.2s ease forwards;
  }
}

@keyframes line-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

.review-track {
  will-change: transform;
}

.page-hero {
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.12), transparent 30%), radial-gradient(circle at right center, rgba(22, 163, 74, 0.1), transparent 28%);
  pointer-events: none;
}

picture {
  display: block;
}

.content-card {
  border-radius: 2rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.media-frame {
  overflow: hidden;
  border-radius: 2rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.8), #ffffff);
}

.page-hero h1 {
  max-width: 16ch;
  line-height: 1.05;
}

.page-hero .media-frame {
  position: relative;
  min-height: 460px;
  padding: 1rem;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.page-hero .media-frame::after {
  content: "";
  position: absolute;
  inset: 1rem;
  border-radius: 1.5rem;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.04), rgba(15, 23, 42, 0.12));
}

.page-hero .media-frame picture {
  height: 100%;
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.page-hero .media-frame img {
  border-radius: 1.5rem;
  object-fit: contain;
  background: #ffffff;
}

.service-media {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  background: #e2e8f0;
}

.service-media img {
  transition: transform 0.7s ease;
}

.service-card:hover .service-media img {
  transform: scale(1.05);
}

.service-card-copy {
  position: relative;
}

.hero-panel {
  position: relative;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: 2rem;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(22, 163, 74, 0.2));
  filter: blur(30px);
  z-index: 0;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-badge-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.55rem 0.9rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.hero-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  color: #475569;
  line-height: 1.7;
}

.hero-feature-list li::before {
  content: "•";
  color: #16a34a;
  font-size: 1.25rem;
  line-height: 1;
  margin-top: 0.1rem;
}

.trust-badge-grid {
  display: grid;
  gap: 1rem;
}

.trust-badge {
  display: flex;
  min-height: 7rem;
  align-items: center;
  justify-content: center;
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.88);
  padding: 1.25rem 1.5rem;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.06);
}

.trust-badge img {
  max-height: 3.5rem;
  width: auto;
  object-fit: contain;
}

.footer-trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-trust-row .trust-badge {
  min-height: auto;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

.footer-trust-row .trust-badge img {
  max-height: 2.5rem;
}

.faq-answer {
  color: #64748b;
  line-height: 1.8;
}

[data-accordion-button] {
  gap: 1rem;
}

[data-accordion-button] span:last-child {
  display: inline-flex;
  min-width: 1.5rem;
  justify-content: center;
  font-size: 1.25rem;
  line-height: 1;
}

.ripple {
  position: relative;
  overflow: hidden;
}

.ripple::after {
  content: "";
  position: absolute;
  inset: auto;
  width: 16rem;
  height: 16rem;
  left: 50%;
  top: 50%;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 60%);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
}

.ripple:hover::after {
  animation: ripple-effect 0.7s ease-out;
}

@keyframes ripple-effect {
  0% {
    opacity: 0.8;
    transform: translate(-50%, -50%) scale(0);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1);
  }
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-control,
.form-select,
.form-textarea {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 0.95rem 1rem;
  color: #0f172a;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.form-control::placeholder,
.form-textarea::placeholder {
  color: #64748b;
}

.form-textarea {
  min-height: 10rem;
  resize: vertical;
}

.form-control:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
  outline: none;
}

.form-control.is-invalid,
.form-select.is-invalid,
.form-textarea.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.08);
}

.field-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #dc2626;
}

.form-feedback {
  border-radius: 1.5rem;
  border: 1px solid #e5e7eb;
  padding: 1rem 1.25rem;
  font-size: 0.95rem;
  line-height: 1.7;
}

.form-feedback--success {
  border-color: rgba(22, 163, 74, 0.22);
  background: rgba(22, 163, 74, 0.07);
  color: #166534;
}

.form-feedback--error {
  border-color: rgba(220, 38, 38, 0.18);
  background: rgba(220, 38, 38, 0.06);
  color: #991b1b;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 768px) {
  .trust-badge-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Performance Optimizations */
img {
  max-width: 100%;
  height: auto;
}

/* Accessibility Improvements */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Skip to content link for accessibility */
.skip-to-content {
  position: absolute;
  top: -40px;
  left: 0;
  background: #2563eb;
  color: white;
  padding: 8px;
  z-index: 100;
  transition: top 0.3s;
}

.skip-to-content:focus {
  top: 0;
}

/* Premium Button System */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  font-family: 'Inter', sans-serif;
}

.btn:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Primary Button - Premium Green Gradient */
.btn-primary {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 50%, #16a34a 100%);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 4px 14px rgba(22, 163, 74, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-primary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(22, 163, 74, 0.5), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(22, 163, 74, 0.4);
}

/* Secondary Button - Navy Gradient */
.btn-secondary {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.3), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.4), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-secondary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.3);
}

/* Accent Button - Blue Gradient */
.btn-accent {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #2563eb 100%);
  background-size: 200% 200%;
  color: white;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4), 0 2px 6px rgba(0, 0, 0, 0.08);
}

.btn-accent:hover {
  background-position: right center;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.btn-accent:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.4);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: #0f172a;
  border: 2px solid #e5e7eb;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.btn-outline:hover {
  border-color: #2563eb;
  color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
}

.btn-outline:active {
  transform: translateY(0);
}

/* Ghost Button */
.btn-ghost {
  background: transparent;
  color: #64748b;
  border: none;
  box-shadow: none;
}

.btn-ghost:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.05);
}

/* Button Sizes */
.btn-sm {
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1.125rem 2.25rem;
  font-size: 1rem;
}

/* Button Loading State */
.btn.is-loading {
  pointer-events: none;
  opacity: 0.8;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: button-spin 0.8s linear infinite;
}

@keyframes button-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Button Ripple Effect */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 60%);
  transform: scale(0);
  opacity: 0;
  transition: transform 0.5s ease, opacity 0.3s ease;
  pointer-events: none;
}

.btn:active::before {
  transform: scale(2);
  opacity: 1;
  transition: 0s;
}

/* Premium Hover Effects */
.hover-lift {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.hover-glow {
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.hover-glow:hover {
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.2);
  border-color: rgba(37, 99, 235, 0.3);
}

/* Premium Gradient Backgrounds */
.bg-hero-radial {
  background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 50%);
}

.bg-gradient-mesh {
  background: 
    radial-gradient(at 40% 20%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 0%, rgba(22, 163, 74, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 50%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 50%, rgba(22, 163, 74, 0.05) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(37, 99, 235, 0.05) 0px, transparent 50%),
    radial-gradient(at 80% 100%, rgba(22, 163, 74, 0.05) 0px, transparent 50%);
}

/* Premium Shadows */
.shadow-soft {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.shadow-glow {
  box-shadow: 0 0 40px rgba(37, 99, 235, 0.15);
}

.shadow-card {
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

/* Premium Border Effects */
.border-gradient {
  position: relative;
}

.border-gradient::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(22, 163, 74, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.border-gradient:hover::before {
  opacity: 1;
}

/* Scroll Reveal Animation */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Card Hover Effects */
.card-3d {
  transition: transform 0.5s ease, box-shadow 0.5s ease;
  transform-style: preserve-3d;
}

.card-3d:hover {
  transform: perspective(1000px) rotateX(5deg) rotateY(5deg);
  box-shadow: 20px 20px 60px rgba(0, 0, 0, 0.1);
}

/* Text Gradient */
.text-gradient {
  background: linear-gradient(135deg, #2563eb, #16a34a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Floating Animation */
@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Shimmer Effect */
@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

.shimmer {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

/* Blinking Animation */
@keyframes blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}

.animate-blink {
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.4);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(37, 99, 235, 0);
  }
}

.animate-pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes bounce-subtle {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
}

.animate-bounce-subtle {
  animation: bounce-subtle 2s ease-in-out infinite;
}
