:root{
  --primary:#84cc16;
  --secondary:#bef264;
  --accent:#fef9c3;
  --bg:#ffffff;
  --card:#f8fafc;
  --text:#0f172a;
  --muted:#64748b;
}

*{ scroll-behavior: smooth; }

html, body{
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

::selection{ background: var(--secondary); color: #14532d; }

/* Scrollbar */
::-webkit-scrollbar{ width: 10px; }
::-webkit-scrollbar-track{ background: #fff; }
::-webkit-scrollbar-thumb{ background: #d9f99d; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover{ background: var(--primary); }

/* ---------- Navbar ---------- */
#navbar{
  transition: all .4s cubic-bezier(.4,0,.2,1);
  background: rgba(255,255,255,0);
  border-bottom: 1px solid transparent;
}
#navbar.scrolled{
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid rgba(15,23,42,0.06);
  box-shadow: 0 4px 24px rgba(15,23,42,0.04);
}

.nav-link{ position: relative; }
.nav-link::after{
  content:'';
  position:absolute;
  left:0; bottom:-4px;
  width:0; height:2px;
  background: var(--primary);
  transition: width .25s ease;
  border-radius: 2px;
}
.nav-link:hover::after{ width: 100%; }

/* ---------- Fade up on scroll ---------- */
.fade-up{
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1);
}
.fade-up.in-view{ opacity: 1; transform: translateY(0); }

.stagger-1{ transition-delay: .05s; }
.stagger-2{ transition-delay: .12s; }
.stagger-3{ transition-delay: .19s; }
.stagger-4{ transition-delay: .26s; }

/* ---------- Hero background ---------- */
.hero-grid{
  background-image:
    linear-gradient(rgba(132,204,22,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(132,204,22,0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 100%);
}

.blob{
  position:absolute;
  border-radius:50%;
  filter: blur(60px);
  opacity:.55;
  animation: float 12s ease-in-out infinite;
}
@keyframes float{
  0%,100%{ transform: translate(0,0) scale(1); }
  33%{ transform: translate(20px,-30px) scale(1.06); }
  66%{ transform: translate(-15px,20px) scale(0.96); }
}

.float-slow{ animation: floatSlow 6s ease-in-out infinite; }
@keyframes floatSlow{
  0%,100%{ transform: translateY(0px); }
  50%{ transform: translateY(-14px); }
}

/* ---------- Mockups & Code Window ---------- */
.mockup-shadow{
  box-shadow:
    0 1px 1px rgba(15,23,42,0.02),
    0 4px 8px rgba(15,23,42,0.03),
    0 16px 40px rgba(15,23,42,0.08),
    0 32px 80px rgba(132,204,22,0.10);
}

.code-window{ font-family: 'JetBrains Mono', monospace; }

/* Syntax Highlighting */
.tok-kw{ color:#84cc16; font-weight:600; }
.tok-tag{ color:#38bdf8; font-weight:600; }
.tok-attr{ color:#f43f5e; }
.tok-val{ color:#a3e635; }
.tok-com{ color:#94a3b8; font-style:italic; }

/* ---------- Cards ---------- */
.feature-card{
  transition: transform .35s cubic-bezier(.16,1,.3,1), box-shadow .35s ease, border-color .35s ease;
}
.feature-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(132,204,22,0.14), 0 4px 12px rgba(15,23,42,0.06);
  border-color: rgba(132,204,22,0.35);
}
.icon-badge{
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  transition: transform .35s ease;
}
.feature-card:hover .icon-badge{ transform: scale(1.08) rotate(-4deg); }

/* ---------- Glassmorphism ---------- */
.glass{
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.8);
}

/* ---------- Buttons ---------- */
.btn-ripple{ position: relative; overflow: hidden; }
.ripple-el{
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.55);
  transform: scale(0);
  animation: ripple .6s linear;
  pointer-events: none;
}
@keyframes ripple{
  to{ transform: scale(3.2); opacity: 0; }
}

.btn-primary{
  background: linear-gradient(135deg, #84cc16, #65a30d);
  box-shadow: 0 8px 20px rgba(132,204,22,0.35);
  transition: box-shadow .3s ease, transform .3s ease;
}
.btn-primary:hover{
  box-shadow: 0 12px 28px rgba(132,204,22,0.45);
  transform: translateY(-2px);
}

.btn-ghost{
  transition: all .3s ease;
}
.btn-ghost:hover{
  background: var(--accent);
  border-color: var(--primary);
}

/* ---------- Timeline ---------- */
.timeline-line{
  background: linear-gradient(180deg, var(--primary), var(--secondary), transparent);
}
.timeline-dot{
  box-shadow: 0 0 0 6px rgba(132,204,22,0.15), 0 4px 12px rgba(132,204,22,0.3);
}

/* ---------- Comparison table ---------- */
.win-cell{
  background: linear-gradient(180deg, rgba(132,204,22,0.08), rgba(190,242,100,0.04));
}

/* ---------- Testimonial cards ---------- */
.testimonial-card{
  background: rgba(248,250,252,0.7);
  backdrop-filter: blur(10px);
  transition: transform .35s ease, box-shadow .35s ease;
}
.testimonial-card:hover{
  transform: translateY(-6px);
  box-shadow: 0 16px 36px rgba(132,204,22,0.12);
}

/* ---------- Accordion ---------- */
.accordion-content{
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s cubic-bezier(.16,1,.3,1), padding .4s ease;
}
.accordion-item.open .accordion-content{
  max-height: 300px;
}
.accordion-icon{ transition: transform .35s ease; }
.accordion-item.open .accordion-icon{ transform: rotate(45deg); }

/* ---------- Mouse glow ---------- */
.glow-surface{ position: relative; overflow: hidden; }
.mouse-glow{
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(132,204,22,0.16), transparent 70%);
  pointer-events: none;
  transform: translate(-50%,-50%);
  opacity: 0;
  transition: opacity .3s ease;
}
.glow-surface:hover .mouse-glow{ opacity: 1; }

/* ---------- Marquee ---------- */
.marquee-track{
  display: flex;
  width: max-content;
  animation: marquee 28s linear infinite;
}
@keyframes marquee{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- Back to top ---------- */
#backToTop{
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(.9);
  transition: all .3s cubic-bezier(.16,1,.3,1);
}
#backToTop.show{
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

/* ---------- Highlight text ---------- */
.hl{
  position: relative;
  display: inline-block;
  color: #65a30d;
}
.hl svg{
  position: absolute;
  left: -2%;
  bottom: -0.15em;
  width: 104%;
  z-index: -1;
}

/* ---------- Counter ---------- */
.counter{ font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce){
  *{ animation: none !important; transition: none !important; }
}
