/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: 'Manrope', sans-serif;
  color: #2C2F31;
  background: #F5F7F9;
  line-height: 1.6;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: #F7F8F7;
}

::-webkit-scrollbar-thumb {
  background: #CCCCCC;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #358433;
}

/* ---------- Typography ---------- */
.font-grotesk {
  font-family: 'Space Grotesk', sans-serif;
}

.font-manrope {
  font-family: 'Manrope', sans-serif;
}

/* ---------- Header / Nav ---------- */
#header {
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

#header.scrolled {
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0px 20px 40px rgba(44, 47, 31, 0.06);
  backdrop-filter: blur(12px);
}

.nav-link {
  position: relative;
  font-family: 'Space Grotesk', sans-serif;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 2px;
  background: #358433;
  border-radius: 2px;
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* ---------- Buttons ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transition: all 0.25s ease;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
}

.btn-primary:hover::before {
  transform: translateX(0);
}

.btn-secondary {
  transition: all 0.25s ease;
}

/* Float animation on device */
@keyframes float {

  0%,
  100% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-10px);
  }
}

.float-anim {
  animation: float 5s ease-in-out infinite;
}

/* Device glow */
.device-glow {
  background: radial-gradient(ellipse at center, rgba(53, 132, 51, 0.12) 0%, transparent 70%);
  filter: blur(20px);
  transform: scale(1.1);
  pointer-events: none;
}

/* Floating cards */
.floating-card,
.floating-card-2 {
  animation: float 6s ease-in-out infinite;
}

.floating-card-2 {
  animation-delay: -2s;
}

/* ---------- Feature Cards ---------- */
.feature-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.10);
}

/* ---------- Dashboard Card ---------- */
.dashboard-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
}

/* ---------- Deploy Steps ---------- */
.deploy-step {
  position: relative;
  transition: transform 0.3s ease;
}

.deploy-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(100% - (70% / 2) + 12px);
  width: 70%;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(171, 173, 175, 0) 0%, rgba(171, 173, 175, 0.3) 50%, rgba(171, 173, 175, 0) 100%);
  display: none;
}

@media (min-width: 768px) {

  .deploy-step:not(:last-child)::after {
    display: block;
  }
}

@media (max-width: 1023px) {
  .deploy-step:nth-child(2)::after {
    display: none;
  }
}

.deploy-step:hover {
  transform: translateY(-4px);
}

/* ---------- Stats ---------- */
.stat-number {
  font-size: clamp(4rem, 8vw, 6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.stat-label {
  letter-spacing: 0.1em;
  font-size: 1.125rem;
}

/* ---------- Testimonials / Slick ---------- */
.testimonial-slider .slick-track {
  display: flex;
}

.testimonial-slider .slick-slide {
  height: auto;
}

.testimonial-slider .slick-slide>div {
  height: 100%;
}

.testimonial-card {
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-4px);
}

/* Override slick dots */
.testimonial-slider .slick-dots {
  bottom: -36px;
}

.testimonial-slider .slick-dots li button::before {
  color: #CCCCCC;
  font-size: 8px;
}

.testimonial-slider .slick-dots li.slick-active button::before {
  color: #358433;
}

/* ---------- CTA Section ---------- */
.cta-card {
  background: linear-gradient(135deg, #358433 0%, #2a6828 60%, #1f5020 100%);
}

/* ---------- Animations: Scroll Reveal ---------- */
.reveal-up,
.reveal-left,
.reveal-right {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0s);
}

.reveal-up {
  transform: translateY(32px);
}

.reveal-left {
  transform: translateX(-32px);
}

.reveal-right {
  transform: translateX(32px);
}

.reveal-up.visible,
.reveal-left.visible,
.reveal-right.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* ---------- Stat Counter (animated) ---------- */
@keyframes countUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.stat-number.animated {
  animation: countUp 0.5s ease forwards;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {

  .floating-card,
  .floating-card-2 {
    display: none;
  }

  .hero-device .device-container {
    width: 280px !important;
  }

  .stat-number {
    font-size: 3rem;
  }
}

@media (max-width: 640px) {

  .comparison-table-wrap td,
  .comparison-table-wrap th {
    padding: 12px 16px;
    font-size: 0.75rem;
  }
}

/* ---------- Selection ---------- */
::selection {
  background: rgba(53, 132, 51, 0.2);
  color: #2C2F31;
}

/* ---------- Focus styles ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #358433;
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---------- Link transitions ---------- */
a {
  text-decoration: none;
}

/* ---------- Smooth image rendering ---------- */
img {
  display: block;
  max-width: 100%;
}

/* ---------- contact ---------- */
.breadcrumb-sep {
  color: #595c5e;
}

/* Form inputs */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid #EDEDED;
  border-radius: 0.75rem;
  background: #F7F8F7;
  font-family: 'Manrope', sans-serif;
  font-size: 0.875rem;
  color: #2C2F31;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  outline: none;
}

.form-input::placeholder {
  color: #9CA3AF;
}

.form-input:focus {
  border-color: #358433;
  background: white;
  box-shadow: 0 0 0 3px rgba(53, 132, 51, 0.08);
}

.form-input.error {
  border-color: #EF4444;
  background: #FFF5F5;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.08);
}

.form-label {
  display: block;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  color: #2C2F31;
  margin-bottom: 0.4rem;
}

.form-error {
  font-size: 0.7rem;
  color: #EF4444;
  margin-top: 0.3rem;
  display: none;
  align-items: center;
  gap: 0.3rem;
}

.form-error.visible {
  display: flex;
}

textarea.form-input {
  resize: vertical;
  min-height: 130px;
}

/* Success state */
#form-success {
  display: none;
}

#form-success.visible {
  display: flex;
}

/* Contact detail card hover */
.contact-detail-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.contact-detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}

/* Map placeholder */
.map-placeholder {
  background: linear-gradient(135deg, #F7F8F7 0%, #EDEDED 100%);
}

/* FAQ accordion */
.faq-item .faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.25s ease;
}

.faq-item.open .faq-body {
  max-height: 200px;
}

.faq-item .faq-icon {
  transition: transform 0.3s ease;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
}

/* Product tab toggle */
.product-tab-btn {
  transition: all 0.25s ease;
  cursor: pointer;
}

.product-tab-btn.active {
  background: #358433;
  color: white;
  border-color: #358433;
}

.product-tab-btn:not(.active):hover {
  border-color: #358433;
  color: #358433;
}

.product-panel {
  display: none;
}

.product-panel.active {
  display: flex;
}

/* Product card hover */
.product-main-card {
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-main-card:hover {
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.10);
}

/* Use case cards */
.use-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.use-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.09);
}