html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 420px at -8% -12%, rgba(31, 168, 74, .28), transparent 62%),
    radial-gradient(900px 460px at 108% -8%, rgba(214, 40, 40, .24), transparent 64%),
    linear-gradient(180deg, #eef3ef 0%, #f6f3f3 100%);
}

@keyframes bgFlow {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); opacity: .45; }
  50% { transform: translate3d(0, -22px, 0) scale(1.06); opacity: .7; }
}

body::before {
  content: '';
  position: fixed;
  inset: -12% -8% auto -8%;
  height: 46vh;
  background:
    radial-gradient(40% 60% at 12% 30%, rgba(31,168,74,.20), transparent 70%),
    radial-gradient(40% 60% at 88% 20%, rgba(214,40,40,.20), transparent 70%);
  pointer-events: none;
  z-index: -2;
  animation: bgFlow 9s ease-in-out infinite;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
  transition: all .25s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #1FA84A;
}

.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, #1FA84A, #D62828);
  transition: width .25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-link {
  border-radius: 14px;
  padding: 0.95rem 1rem;
  font-weight: 600;
  color: #0f172a;
  transition: .25s ease;
}

.mobile-link:hover {
  background: #f8fafc;
  color: #D62828;
}

.metric-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(255,255,255,.88);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 1.25rem;
}

.metric-number {
  font-size: 1.45rem;
  font-weight: 800;
  color: #0f172a;
}

.metric-card p {
  margin-top: .35rem;
  font-size: .92rem;
  line-height: 1.6;
  color: #64748b;
}

.card-glass {
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 32px;
  background: rgba(255,255,255,0.78);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.10);
  backdrop-filter: blur(16px);
}

.service-quick-card {
  border-radius: 28px;
  padding: 1.6rem;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(255,255,255,.6);
  transition: transform .28s ease, box-shadow .28s ease;
}

.service-quick-card:hover,
.feature-card:hover,
.product-card:hover,
.partner-card:hover,
.info-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.service-quick-card h3,
.product-card h3,
.feature-content h3,
.info-card h3,
.dark-card h3 {
  margin-top: 1rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.service-quick-card p,
.product-card p,
.feature-content p,
.info-card p,
.dark-card p {
  margin-top: .7rem;
  line-height: 1.8;
  color: #64748b;
  font-size: .95rem;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: rgba(255,255,255,0.85);
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.section-badge,
.section-badge-dark {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border-radius: 999px;
  padding: .7rem 1rem;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .18em;
}

.section-badge {
  background: #EAF7EE;
  color: #1FA84A;
}

.section-badge-dark {
  background: rgba(31,168,74,.14);
  color: #8EF1B0;
}

.section-title {
  margin-top: 1rem;
  font-size: clamp(1.45rem, 1.2vw + 1rem, 2.15rem);
  line-height: 1.15;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  animation: heroTextIn .72s ease both;
}

.section-text {
  margin-top: 1rem;
  font-size: 1rem;
  line-height: 1.9;
  color: #64748b;
  animation: heroTextIn .82s ease both;
}

.list-feature {
  display: flex;
  align-items: center;
  gap: .9rem;
  font-weight: 600;
  color: #1e293b;
}

.list-feature span {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1FA84A, #D62828);
  box-shadow: 0 0 0 6px rgba(31,168,74,.12);
}

.info-card,
.dark-card,
.partner-card {
  border-radius: 30px;
  padding: 1.5rem;
  background: white;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
  transition: .28s ease;
}

.feature-card,
.product-card {
  overflow: hidden;
  border-radius: 32px;
  background: white;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  transition: .28s ease;
}

.feature-img,
.product-img {
  width: 100%;
  object-fit: cover;
}

.feature-img {
  height: 240px;
}

.product-img {
  height: 250px;
}

.feature-content {
  padding: 1.55rem;
}

.feature-content h3,
.feature-content p,
.info-card h3,
.info-card p,
.dark-card h3,
.dark-card p {
  animation: heroTextIn .78s ease both;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: .45rem .85rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.pill.green {
  background: #EAF7EE;
  color: #1FA84A;
}

.pill.red {
  background: #FFF2F2;
  color: #D62828;
}

.dark-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(12px);
}

.dark-card h3,
.dark-card p {
  color: white;
}

.dark-card p {
  color: rgba(255,255,255,.72);
}

.partner-card {
  min-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  color: #334155;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #e2e8f0;
}

.cta-banner {
  display: grid;
  gap: 2rem;
  align-items: center;
  border-radius: 38px;
  padding: 2.25rem;
  background: linear-gradient(135deg, #0f172a 0%, #1d4d33 58%, #D62828 150%);
  box-shadow: 0 26px 65px rgba(15, 23, 42, 0.18);
}

@media (min-width: 1024px) {
  .cta-banner {
    grid-template-columns: 1.3fr auto;
    padding: 3rem;
  }
}

.footer-title {
  margin-bottom: 1rem;
  font-size: .95rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .16em;
  color: white;
}

.footer-link {
  color: #94a3b8;
  transition: .25s ease;
}

.footer-link:hover {
  color: white;
}

/* Keep internal pages compatible with the same design system */
.card {
  overflow: hidden;
  border-radius: 32px;
  background: white;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
  transition: .28s ease;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.12);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: .8rem 1.2rem;
  font-size: .85rem;
  font-weight: 700;
}

.reveal {
  animation: slideUp .9s ease-out forwards;
}

.page-hero {
  position: relative;
  min-height: 320px;
  display: flex;
  align-items: flex-start;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(520px 260px at 8% 8%, rgba(31,168,74,.34), transparent 70%),
    radial-gradient(560px 280px at 92% 10%, rgba(214,40,40,.30), transparent 72%),
    linear-gradient(145deg, rgba(15,23,42,.36), rgba(15,23,42,.72));
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(31,168,74,.16), rgba(214,40,40,.14));
  mix-blend-mode: screen;
}

.hero-rg::before {
  background:
    radial-gradient(560px 320px at 10% 10%, rgba(31,168,74,.62), transparent 70%),
    radial-gradient(620px 340px at 92% 10%, rgba(214,40,40,.58), transparent 72%),
    linear-gradient(145deg, rgba(15,23,42,.35), rgba(15,23,42,.62)) !important;
}

.hero-rg::after {
  background:
    linear-gradient(90deg, rgba(31,168,74,.36), rgba(214,40,40,.36)),
    radial-gradient(40% 80% at 0% 100%, rgba(31,168,74,.30), transparent 70%),
    radial-gradient(45% 80% at 100% 0%, rgba(214,40,40,.30), transparent 70%) !important;
  mix-blend-mode: normal !important;
  opacity: .92;
}

.hero-rg-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(48% 78% at 8% 12%, rgba(31,168,74,.42), transparent 70%),
    radial-gradient(50% 82% at 92% 10%, rgba(214,40,40,.40), transparent 72%),
    linear-gradient(90deg, rgba(31,168,74,.20), rgba(214,40,40,.20));
  z-index: 0;
  pointer-events: none;
  animation: bgFlow 8s ease-in-out infinite;
}

.services-hero::before {
  background:
    radial-gradient(520px 260px at 8% 8%, rgba(31,168,74,.30), transparent 70%),
    radial-gradient(560px 280px at 92% 10%, rgba(214,40,40,.28), transparent 72%),
    linear-gradient(145deg, rgba(15,23,42,.22), rgba(15,23,42,.45)) !important;
}

.services-hero::after {
  opacity: .58;
}

.services-hero .hero-rg-wash {
  opacity: .52;
}

.page-hero-content {
  position: relative;
  z-index: 1;
  color: #fff;
  margin-top: .85rem;
}

.page-hero > .mx-auto {
  padding-top: 3.25rem !important;
  padding-bottom: 2rem !important;
}

.page-hero-content h1 {
  font-size: clamp(1.7rem, 2.2vw, 2.45rem) !important;
  line-height: 1.15;
}

.hero-title {
  font-size: clamp(1.95rem, 3.2vw, 3rem) !important;
  line-height: 1.08;
}

.hero-bg-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity .95s ease, transform 5s ease;
}

.hero-bg-slide.active {
  opacity: .88;
  transform: scale(1);
}

.hero-color-wash {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(31,168,74,.42), rgba(214,40,40,.40)),
    radial-gradient(45% 75% at 8% 20%, rgba(31,168,74,.38), transparent 70%),
    radial-gradient(45% 80% at 92% 10%, rgba(214,40,40,.36), transparent 72%);
  pointer-events: none;
}

.hero-orb-rg {
  position: absolute;
  border-radius: 999px;
  filter: blur(20px);
  pointer-events: none;
  animation: bgFlow 7.5s ease-in-out infinite;
}

@keyframes heroTextIn {
  0% {
    opacity: 0;
    transform: translateY(18px);
    filter: blur(3px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero-text {
  opacity: 0;
  animation: heroTextIn .75s ease forwards;
}

.hero-delay-1 { animation-delay: .1s; }
.hero-delay-2 { animation-delay: .28s; }
.hero-delay-3 { animation-delay: .46s; }
.hero-delay-4 { animation-delay: .64s; }

@keyframes floatMed1 {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .2; }
  50% { transform: translateY(-16px) rotate(6deg); opacity: .38; }
}

@keyframes floatMed2 {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: .18; }
  50% { transform: translateY(14px) rotate(-5deg); opacity: .34; }
}

main section {
  position: relative;
  overflow: hidden;
}

main section:not(#hero)::before,
main section:not(#hero)::after {
  content: '';
  position: absolute;
  width: 52px;
  height: 52px;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  z-index: 0;
}

main section:not(#hero)::before {
  top: 22px;
  right: 24px;
  animation: floatMed1 6.8s ease-in-out infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231FA84A' stroke-width='1.8'%3E%3Cpath d='M4 12h16M12 4v16'/%3E%3Ccircle cx='12' cy='12' r='10' stroke-opacity='.35'/%3E%3C/svg%3E");
}

main section:not(#hero)::after {
  bottom: 18px;
  left: 18px;
  animation: floatMed2 7.4s ease-in-out infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D62828' stroke-width='1.8'%3E%3Cpath d='M3 12h4l2-4 3 8 2-4h7'/%3E%3C/svg%3E");
}
