:root {
  --green: #004700;
  --green-bright: #0a6b0a;
  --green-glow: rgba(0, 71, 0, 0.45);
  --bg-deep: #050807;
  --bg-mid: #0c120e;
  --text: #e8f0ea;
  --text-muted: #8fa393;
  --border: rgba(255, 255, 255, 0.08);
  --radius: 16px;
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-deep);
  overflow-x: hidden;
}

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

  .particles {
    display: none;
  }
}

.particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
}

.grid-bg {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  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: 48px 48px;
  animation: grid-drift 80s linear infinite;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 40%, black 20%, transparent 70%);
}

@keyframes grid-drift {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  100% {
    transform: translate(-48px, -48px) rotate(0.5deg);
  }
}

.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: screen;
}

.orb--1 {
  width: min(55vw, 420px);
  height: min(55vw, 420px);
  top: -10%;
  left: -5%;
  background: radial-gradient(circle, var(--green-glow), transparent 65%);
  animation: orb-float-a 18s var(--ease-out-expo) infinite alternate;
}

.orb--2 {
  width: min(45vw, 360px);
  height: min(45vw, 360px);
  bottom: 10%;
  right: -8%;
  background: radial-gradient(circle, rgba(20, 120, 60, 0.35), transparent 70%);
  animation: orb-float-b 22s var(--ease-out-expo) infinite alternate;
}

.orb--3 {
  width: min(35vw, 280px);
  height: min(35vw, 280px);
  top: 40%;
  right: 25%;
  background: radial-gradient(circle, rgba(0, 90, 40, 0.4), transparent 68%);
  animation: orb-float-c 16s ease-in-out infinite alternate;
}

@keyframes orb-float-a {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(8vw, 6vh) scale(1.08);
  }
}

@keyframes orb-float-b {
  0% {
    transform: translate(0, 0) scale(1.05);
  }
  100% {
    transform: translate(-6vw, -8vh) scale(1);
  }
}

@keyframes orb-float-c {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(-4vw, 12vh);
  }
}

.header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  max-width: 1200px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  color: #fff;
  font-size: 1.1rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 32px var(--green-glow);
  animation: logo-glow 3s ease-in-out infinite;
}

@keyframes logo-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 8px 32px var(--green-glow);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2), 0 12px 48px rgba(0, 120, 50, 0.5);
  }
}

.logo__text {
  background: linear-gradient(90deg, #fff, #b8d4be);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header__link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  transition: color 0.35s var(--ease-out-expo), border-color 0.35s var(--ease-out-expo),
    transform 0.35s var(--ease-out-expo), background 0.35s var(--ease-out-expo);
}

.header__link:hover {
  color: var(--text);
  border-color: rgba(0, 120, 50, 0.45);
  background: rgba(0, 71, 0, 0.2);
  transform: translateY(-2px);
}

main {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 8vw, 5rem) clamp(1.25rem, 4vw, 3rem) 4rem;
}

.hero {
  text-align: center;
  padding-bottom: clamp(3rem, 10vw, 6rem);
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.hero__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green-bright);
  box-shadow: 0 0 0 0 rgba(0, 180, 80, 0.5);
  animation: pulse-ring 2s ease-out infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 180, 80, 0.55);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 12px rgba(0, 180, 80, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(0, 180, 80, 0);
  }
}

.hero__title {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3rem, 12vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  will-change: transform;
}

.hero__title-line {
  display: block;
  animation: title-in 1.1s var(--ease-out-expo) both;
}

.hero__title-line:nth-child(2) {
  animation-delay: 0.12s;
}

.hero__title-line--accent {
  background: linear-gradient(105deg, #fff 0%, #9fd4a8 35%, var(--green-bright) 55%, #6bff8f 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: title-in 1.1s var(--ease-out-expo) both, shimmer 6s linear infinite;
}

@keyframes title-in {
  from {
    opacity: 0;
    transform: translateY(28px) skewY(-2deg);
    filter: blur(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0) skewY(0);
    filter: blur(0);
  }
}

@keyframes shimmer {
  0% {
    background-position: 0% center;
  }
  100% {
    background-position: 200% center;
  }
}

.hero__lede {
  max-width: 36rem;
  margin: 0 auto 2rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem 1.25rem;
}

.btn {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  border-radius: 999px;
  padding: 0.85rem 1.75rem;
  transition: transform 0.35s var(--ease-out-expo), box-shadow 0.35s var(--ease-out-expo);
}

.btn--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--green-bright));
  box-shadow: 0 4px 24px var(--green-glow), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  position: relative;
  overflow: hidden;
}

.btn--primary::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: translateX(-100%) rotate(12deg);
  animation: btn-sheen 4s ease-in-out infinite;
}

@keyframes btn-sheen {
  0%,
  40% {
    transform: translateX(-100%) rotate(12deg);
  }
  60%,
  100% {
    transform: translateX(100%) rotate(12deg);
  }
}

.btn--primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 100, 40, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.btn--primary:active {
  transform: translateY(-1px) scale(0.99);
}

.hero__hint {
  min-height: 1.5rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.hero__hint::after {
  content: "|";
  margin-left: 2px;
  color: var(--green-bright);
  animation: caret-blink 0.9s step-end infinite;
}

@keyframes caret-blink {
  50% {
    opacity: 0;
  }
}

.features {
  padding-top: 1rem;
}

.features__head {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 2.5rem;
}

.features__head h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  letter-spacing: -0.03em;
}

.features__head p {
  margin: 0;
  color: var(--text-muted);
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  position: relative;
  padding: 1.5rem 1.35rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  transition: transform 0.45s var(--ease-out-expo), border-color 0.45s var(--ease-out-expo),
    box-shadow 0.45s var(--ease-out-expo);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(0, 120, 50, 0.35), transparent 40%, transparent 60%, rgba(255, 255, 255, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.45s var(--ease-out-expo);
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px) scale(1.01);
  border-color: rgba(0, 120, 50, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 40px rgba(0, 80, 30, 0.15);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card__icon {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--green-bright);
  animation: icon-float 5s ease-in-out infinite;
}

.feature-card:nth-child(2n) .feature-card__icon {
  animation-delay: -1.2s;
}

.feature-card:nth-child(3n) .feature-card__icon {
  animation-delay: -2.4s;
}

@keyframes icon-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.marquee-wrap {
  margin-top: 3.5rem;
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.marquee {
  display: flex;
}

.marquee__track {
  display: flex;
  gap: 3rem;
  white-space: nowrap;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.marquee__track span {
  position: relative;
}

.marquee__track span::after {
  content: "";
  position: absolute;
  right: -1.5rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green-bright);
  transform: translateY(-50%);
  opacity: 0.6;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.footer {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 2rem 1.25rem 2.5rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Scroll / entrance animations */
[data-animate] {
  opacity: 0;
}

[data-animate].is-visible {
  animation: entrance 0.9s var(--ease-out-expo) forwards;
}

[data-animate].is-visible[data-delay="1"] {
  animation-delay: 0.08s;
}

[data-animate].is-visible[data-delay="2"] {
  animation-delay: 0.16s;
}

[data-animate].is-visible[data-delay="3"] {
  animation-delay: 0.24s;
}

[data-animate="fade-up"].is-visible {
  animation-name: fade-up;
}

[data-animate="fade-down"].is-visible {
  animation-name: fade-down;
}

[data-animate="scale-in"].is-visible {
  animation-name: scale-in;
}

@keyframes entrance {
  to {
    opacity: 1;
  }
}

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

@keyframes fade-down {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scale-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.feature-card[data-animate] {
  opacity: 0;
}

.feature-card[data-animate].is-visible {
  opacity: 1;
  animation: card-enter 0.75s var(--ease-out-expo) both;
}

@keyframes card-enter {
  from {
    opacity: 0;
    transform: translateY(40px) rotateX(8deg);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(0);
    filter: blur(0);
  }
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  z-index: 10;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  background: rgba(12, 18, 14, 0.95);
  border: 1px solid rgba(0, 120, 50, 0.4);
  color: var(--text);
  font-size: 0.875rem;
  font-weight: 500;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  transition: transform 0.5s var(--ease-out-expo), opacity 0.5s var(--ease-out-expo);
  opacity: 0;
  pointer-events: none;
  max-width: min(90vw, 360px);
  text-align: center;
}

.toast.is-open {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
