:root {
  --green: #3c9b46;
  --green-dark: #2f7d38;
  --green-soft: rgba(60,155,70,0.12);

  --navy: #0f172a;
  --navy-light: #1e293b;

  --soft: #f8fafc;
  --white: #ffffff;

  --border: #e2e8f0;

  --text: #0f172a;
  --muted: #64748b;

  --hero-gradient:
    linear-gradient(
      135deg,
      #020617 0%,
      #0f172a 45%,
      #1e293b 100%
    );

  --green-gradient:
    linear-gradient(
      135deg,
      #3c9b46,
      #4ade80
    );

  --dark-gradient:
    linear-gradient(
      145deg,
      #0f172a,
      #111827
    );

  --shadow-sm:
    0 8px 24px rgba(15,23,42,0.05);

  --shadow:
    0 24px 70px rgba(15,23,42,0.08);

  --shadow-lg:
    0 40px 100px rgba(15,23,42,0.14);

  --radius-sm: 18px;
  --radius: 28px;
  --radius-lg: 38px;

  --transition: 0.28s ease;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: var(--white);
}

::selection {
  background: rgba(60,155,70,0.22);
  color: var(--navy);
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

a {
  text-decoration: none;
  color: inherit;
}

main {
  overflow: hidden;
}

/* ========================================
   GLOBAL BACKGROUND
======================================== */

.site-background {
  position: fixed;
  inset: 0;
  z-index: -10;
  overflow: hidden;
  pointer-events: none;
}

.bg-gradient {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.16;
}

.bg-1 {
  width: 700px;
  height: 700px;
  top: -120px;
  right: -120px;
  background: rgba(60,155,70,0.42);
  animation: floatOne 18s ease-in-out infinite;
}

.bg-2 {
  width: 600px;
  height: 600px;
  bottom: -180px;
  left: -180px;
  background: rgba(59,130,246,0.24);
  animation: floatTwo 24s ease-in-out infinite;
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    radial-gradient(circle at 25% 25%, black 1px, transparent 1px),
    radial-gradient(circle at 75% 75%, black 1px, transparent 1px);
  background-size: 26px 26px;
}

@keyframes floatOne {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }

  50% {
    transform: translate(-40px, 30px) scale(1.08);
  }
}

@keyframes floatTwo {
  0%, 100% {
    transform: translate(0,0) scale(1);
  }

  50% {
    transform: translate(50px, -30px) scale(1.06);
  }
}

/* ========================================
   BUTTONS
======================================== */

.btn {
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border: none;

  font-size: 14px;
  font-weight: 900;

  transition:
    transform var(--transition),
    background var(--transition),
    box-shadow var(--transition),
    border-color var(--transition);

  cursor: pointer;
}

.btn-primary {
  background: var(--green-gradient);
  color: white;
  box-shadow: 0 18px 40px rgba(60,155,70,0.24);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 50px rgba(60,155,70,0.32);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: white;
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,0.1);
}

.btn-secondary.light {
  color: white;
}

/* ========================================
   TYPOGRAPHY HELPERS
======================================== */

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #a7f3d0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow.green {
  color: var(--green);
}

/* ========================================
   GLOBAL SECTIONS
======================================== */

.section {
  position: relative;
  padding: 120px 7%;
}

.section-header {
  max-width: 860px;
  margin: 0 auto 58px;
  text-align: center;
}

.section-header h2,
.split h2,
.cta h2 {
  margin: 0 0 20px;
  font-size: clamp(36px, 4vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-header p,
.split p,
.cta p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

/* ========================================
   GRIDS
======================================== */

.grid {
  display: grid;
  gap: 24px;
}

.grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.grid.two {
  grid-template-columns: repeat(2, 1fr);
}

/* ========================================
   CARDS
======================================== */

.feature-card {
  padding: 32px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: white;
  box-shadow: 0 14px 34px rgba(15,23,42,0.05);
}

.feature-card h3 {
  margin: 0 0 14px;
  font-size: 22px;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.feature-card,
.product-card,
.system-box,
.tech-panel,
.software-panel,
.software-feature {
  transition:
    transform 0.45s cubic-bezier(.16,1,.3,1),
    box-shadow 0.45s cubic-bezier(.16,1,.3,1),
    border-color 0.45s cubic-bezier(.16,1,.3,1);
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--green);
  font-weight: 800;
}

/* ========================================
   REVEAL ANIMATIONS
======================================== */

.reveal {
  opacity: 0;

  transform:
    translateY(42px)
    scale(0.985);

  transition:
    opacity 0.9s cubic-bezier(.16,1,.3,1),
    transform 0.9s cubic-bezier(.16,1,.3,1);

  will-change:
    opacity,
    transform;
}

.reveal.visible {
  opacity: 1;

  transform:
    translateY(0)
    scale(1);
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

.reveal-delay-4 {
  transition-delay: 0.32s;
}

/* ========================================
   SECTION DIVIDER
======================================== */

.section-divider {
  width: 100%;
  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(148,163,184,0.22),
      transparent
    );
}

/* ========================================
   PRELOADER
======================================== */

.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;

  display: flex;
  align-items: center;
  justify-content: center;

  background:
    radial-gradient(circle at top, rgba(60,155,70,0.18), transparent 34%),
    linear-gradient(135deg, #020617, #0f172a);

  transition:
    opacity 0.7s ease,
    visibility 0.7s ease;
}

.preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.preloader-center {
  position: relative;
  width: 140px;
  height: 140px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.preloader-ring {
  position: absolute;
  inset: 0;

  border-radius: 50%;

  border: 1px solid rgba(255,255,255,0.12);
  border-top: 1px solid rgba(60,155,70,0.9);

  animation: preloadRotate 1.4s linear infinite;
}

.preloader-logo {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  animation: preloaderSpin 1.8s linear infinite;
}

.preloader-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;

  filter:
    drop-shadow(0 0 18px rgba(60,155,70,0.45));
}

@keyframes preloaderSpin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes preloadRotate {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 1000px) {
  .grid.four,
  .grid.three,
  .split {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 90px 24px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  .section-header h2,
  .split h2,
  .cta h2 {
    font-size: clamp(34px, 9vw, 46px);
    line-height: 1.06;
  }

  .section-header p,
  .split p,
  .cta p {
    font-size: 16px;
    line-height: 1.7;
  }

  .grid.two {
    grid-template-columns: 1fr;
  }

  .btn {
    min-height: 50px;
    padding: 0 22px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 78px 22px;
  }

  .preloader-center {
    width: 118px;
    height: 118px;
  }

  .preloader-logo {
    width: 54px;
    height: 54px;
  }
}