/* ===== Reset & Base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy: #192132;
  --navy-lighter: #1e293b;
  --green: #719C5A;
  --green-dark: #5a7d47;
  --green-light: rgba(113, 156, 90, 0.15);
  --white: #ffffff;
  --text-muted: rgba(255, 255, 255, 0.65);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.08);
  --shadow-card-hover: 0 12px 40px rgba(0, 0, 0, 0.14);
  --radius: 0.875rem;
  --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--white);
  color: var(--navy);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ===== Navigation ===== */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.nav-logo img {
  height: 36px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  background-color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8rem 1.5rem 5rem;
  overflow: hidden;
}

/* Animated background orbs */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  animation: orb-float 12s ease-in-out infinite alternate;
}

.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(113, 156, 90, 0.6) 0%, transparent 70%);
  top: -150px;
  right: -100px;
  animation-duration: 14s;
}

.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(113, 156, 90, 0.4) 0%, transparent 70%);
  bottom: -100px;
  left: -80px;
  animation-duration: 10s;
  animation-delay: -5s;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

@keyframes orb-float {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(30px, -20px) scale(1.05); }
  100% { transform: translate(-20px, 30px) scale(0.95); }
}

/* Hero Content */
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  width: 100%;
  text-align: center;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes hero-enter {
  from {
    opacity: 0;
    transform: translateY(32px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.75rem;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

/* Headline */
.hero h1 {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

.hero-highlight {
  color: var(--green);
}

/* Subtitle */
.hero-sub {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both;
}

/* CTA Button */
.cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--green);
  color: var(--white);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 0.625rem;
  transition:
    background-color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
  box-shadow: 0 4px 16px rgba(113, 156, 90, 0.3);
  animation: hero-enter 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
}

.cta-btn:hover {
  background-color: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(113, 156, 90, 0.45);
}

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

.cta-btn svg {
  transition: transform var(--transition);
}

.cta-btn:hover svg {
  transform: translateX(3px);
}

/* ===== Features Section ===== */
.features {
  background-color: #f8f9fb;
  padding: 5rem 1.5rem;
}

.features-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

/* Cards */
.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  cursor: default;
  outline: none;
}

.card:hover,
.card:focus {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card-hover);
}

.card:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.card-icon {
  font-size: 2rem;
  margin-bottom: 1rem;
  line-height: 1;
  display: block;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.01em;
}

.card-desc {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #4a5568;
  font-weight: 400;
}

/* ===== Footer ===== */
.footer {
  background-color: var(--navy);
  padding: 2rem 1.5rem;
  margin-top: auto;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer-logo img {
  height: 32px;
  width: auto;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.85;
  transition: opacity var(--transition);
}

.footer-logo:hover img {
  opacity: 1;
}

.footer-copy {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.6;
}

.footer-copy a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

.footer-copy a:hover {
  color: var(--green);
}

/* ===== Scroll reveal (JS-driven) ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .nav {
    padding: 1.5rem 2.5rem;
  }

  .nav-logo img {
    height: 40px;
  }

  .hero {
    padding: 9rem 2.5rem 6rem;
  }

  .features {
    padding: 6rem 2.5rem;
  }

  .footer {
    padding: 2.5rem;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

@media (min-width: 768px) {
  .features-inner {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero {
    padding: 10rem 3rem 7rem;
  }

  .card {
    padding: 2.25rem 2rem;
  }
}

/* ===== Reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
