:root {
  --color-black: #030703;
  --color-black-soft: #071007;
  --color-white: #f4fff2;
  --color-white-muted: #c7d9c4;
  --color-green: #57ff73;
  --color-green-deep: #0f8f35;
  --color-green-muted: #173f21;
  --color-border: rgba(87, 255, 115, 0.22);
  --shadow-green: 0 0 50px rgba(87, 255, 115, 0.18);
  --font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--color-white);
  font-family: var(--font-main);
  background:
    radial-gradient(circle at 18% 12%, rgba(87, 255, 115, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 5%, rgba(15, 143, 53, 0.28), transparent 24rem),
    linear-gradient(145deg, #010201 0%, var(--color-black) 45%, #091109 100%);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(87, 255, 115, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 255, 115, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
  animation: grid-drift 18s linear infinite;
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  animation: fade-slide-up 700ms ease both;
}

.header__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.header__brand-mark {
  display: grid;
  width: 54px;
  height: 42px;
  place-items: center;
  color: var(--color-black);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  text-transform: uppercase;
  background: var(--color-green);
  border-radius: 14px;
  box-shadow: var(--shadow-green);
  animation: logo-pulse 3.2s ease-in-out infinite;
}

.header__brand-text {
  color: var(--color-white);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.header__nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header__link {
  padding: 10px 14px;
  color: var(--color-white-muted);
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
}

.header__link:hover,
.header__link:focus-visible {
  color: var(--color-green);
  background: rgba(87, 255, 115, 0.08);
  border-color: var(--color-border);
  outline: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
  gap: 48px;
  align-items: center;
  min-height: calc(100vh - 96px);
  padding: 56px 0 96px;
}

.hero__content {
  max-width: 760px;
}

.hero__eyebrow {
  animation: fade-slide-up 700ms 120ms ease both;
}

.hero__eyebrow,
.section__eyebrow,
.footer__eyebrow {
  margin: 0 0 16px;
  color: var(--color-green);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero__title {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: -0.075em;
  animation: fade-slide-up 800ms 220ms ease both;
}

.hero__description {
  max-width: 660px;
  margin: 28px 0 0;
  color: var(--color-white-muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  animation: fade-slide-up 800ms 340ms ease both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
  animation: fade-slide-up 800ms 460ms ease both;
}

.hero__visual {
  display: grid;
  place-items: center;
  animation: fade-scale-in 900ms 360ms ease both;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button--primary {
  color: var(--color-black);
  background: var(--color-green);
  box-shadow: var(--shadow-green);
}

.button--secondary {
  color: var(--color-white);
  background: rgba(255, 255, 255, 0.04);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  background: rgba(87, 255, 115, 0.11);
  box-shadow: var(--shadow-green);
}

.cactus-card {
  position: relative;
  width: min(100%, 430px);
  padding: 30px;
  overflow: hidden;
  background:
    linear-gradient(150deg, rgba(87, 255, 115, 0.13), transparent 42%),
    rgba(3, 7, 3, 0.72);
  border: 1px solid var(--color-border);
  border-radius: 42px;
  box-shadow: var(--shadow-green);
  animation: cactus-float 5.5s ease-in-out infinite;
}

.cactus-card::before,
.cactus-card::after {
  position: absolute;
  content: "";
  border-radius: 999px;
}

.cactus-card::before {
  top: 24px;
  right: 34px;
  width: 96px;
  height: 96px;
  background: rgba(87, 255, 115, 0.12);
  filter: blur(3px);
  animation: glow-breathe 4s ease-in-out infinite;
}

.cactus-card::after {
  bottom: -42px;
  left: -48px;
  width: 170px;
  height: 170px;
  background: rgba(15, 143, 53, 0.22);
  filter: blur(10px);
  animation: glow-breathe 5s 800ms ease-in-out infinite;
}

.cactus-card__image {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  animation: cactus-sway 4.8s ease-in-out infinite;
}

.cactus-card__glow {
  fill: rgba(87, 255, 115, 0.1);
}

.cactus-card__body,
.cactus-card__arm {
  fill: var(--color-green-deep);
  stroke: var(--color-green);
  stroke-width: 5;
  stroke-linejoin: round;
}

.cactus-card__line,
.cactus-card__ground {
  fill: none;
  stroke: var(--color-white);
  stroke-linecap: round;
  stroke-width: 5;
  opacity: 0.72;
  stroke-dasharray: 270;
  stroke-dashoffset: 270;
  animation: draw-stroke 1.4s 900ms ease forwards;
}

.section {
  padding: 92px 0;
}

.section__header {
  max-width: 760px;
  margin-bottom: 34px;
}

.section__header--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section__title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 4.1rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.intro__grid,
.highlights__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.intro__card,
.highlight,
.stack__panel {
  background:
    linear-gradient(145deg, rgba(87, 255, 115, 0.08), transparent 48%),
    rgba(255, 255, 255, 0.035);
  border: 1px solid var(--color-border);
  border-radius: 28px;
  animation: fade-slide-up 700ms ease both;
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.intro__card:hover,
.highlight:hover,
.stack__panel:hover {
  border-color: rgba(87, 255, 115, 0.46);
  box-shadow: 0 18px 60px rgba(87, 255, 115, 0.1);
  transform: translateY(-8px);
}

.intro__card {
  padding: 28px;
}

.intro__card:nth-child(1),
.stack__panel:nth-child(1),
.highlight:nth-child(1) {
  animation-delay: 80ms;
}

.intro__card:nth-child(2),
.stack__panel:nth-child(2),
.highlight:nth-child(2) {
  animation-delay: 180ms;
}

.intro__card:nth-child(3),
.highlight:nth-child(3) {
  animation-delay: 280ms;
}

.highlight:nth-child(4) {
  animation-delay: 380ms;
}

.intro__title,
.highlight__title,
.stack__title {
  margin: 0;
  color: var(--color-white);
  font-size: 1.25rem;
}

.intro__text,
.highlight__text {
  margin: 16px 0 0;
  color: var(--color-white-muted);
  line-height: 1.7;
}

.stack__layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.stack__panel {
  padding: 32px;
}

.stack__panel--accent {
  background:
    radial-gradient(circle at 88% 18%, rgba(87, 255, 115, 0.2), transparent 12rem),
    linear-gradient(145deg, rgba(87, 255, 115, 0.12), rgba(255, 255, 255, 0.035));
}

.stack__list {
  display: grid;
  gap: 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.stack__item {
  position: relative;
  padding: 14px 14px 14px 42px;
  color: var(--color-white-muted);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(87, 255, 115, 0.12);
  border-radius: 18px;
  transition:
    color 180ms ease,
    border-color 180ms ease,
    transform 180ms ease;
}

.stack__item:hover {
  color: var(--color-white);
  border-color: rgba(87, 255, 115, 0.34);
  transform: translateX(6px);
}

.stack__item::before {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 10px;
  height: 10px;
  content: "";
  background: var(--color-green);
  border-radius: 50%;
  box-shadow: 0 0 18px rgba(87, 255, 115, 0.75);
  transform: translateY(-50%);
  animation: dot-pulse 2.4s ease-in-out infinite;
}

.highlights__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.highlight {
  min-height: 260px;
  padding: 26px;
}

.highlight__number {
  display: inline-flex;
  margin-bottom: 54px;
  color: var(--color-green);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.footer {
  padding: 92px 0 42px;
}

.footer__content {
  padding: clamp(28px, 6vw, 64px);
  text-align: center;
  background:
    radial-gradient(circle at 50% 0%, rgba(87, 255, 115, 0.22), transparent 18rem),
    var(--color-black-soft);
  border: 1px solid var(--color-border);
  border-radius: 36px;
  animation: fade-slide-up 700ms ease both;
}

.footer__title {
  max-width: 760px;
  margin: 0 auto;
  font-size: clamp(2rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.06em;
}

.footer__mail {
  display: inline-flex;
  margin-top: 30px;
  color: var(--color-green);
  font-size: clamp(1rem, 2vw, 1.3rem);
  font-weight: 900;
  text-decoration: none;
}

.footer__mail:hover,
.footer__mail:focus-visible {
  text-decoration: underline;
  outline: none;
}

@keyframes fade-slide-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fade-scale-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes grid-drift {
  from {
    background-position: 0 0;
  }

  to {
    background-position: 44px 44px;
  }
}

@keyframes logo-pulse {
  0%,
  100% {
    box-shadow: var(--shadow-green);
    transform: rotate(0deg) scale(1);
  }

  50% {
    box-shadow: 0 0 34px rgba(87, 255, 115, 0.45);
    transform: rotate(-3deg) scale(1.06);
  }
}

@keyframes cactus-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes cactus-sway {
  0%,
  100% {
    transform: rotate(0deg);
  }

  50% {
    transform: rotate(1.8deg);
  }
}

@keyframes glow-breathe {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.16);
  }
}

@keyframes draw-stroke {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dot-pulse {
  0%,
  100% {
    box-shadow: 0 0 14px rgba(87, 255, 115, 0.55);
  }

  50% {
    box-shadow: 0 0 26px rgba(87, 255, 115, 0.95);
  }
}

@media (max-width: 940px) {
  .hero,
  .stack__layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 40px;
  }

  .hero__visual {
    order: -1;
  }

  .cactus-card {
    max-width: 330px;
  }

  .intro__grid,
  .highlights__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 22px, 1180px);
  }

  .header {
    align-items: flex-start;
    flex-direction: column;
  }

  .header__nav {
    width: 100%;
    justify-content: space-between;
  }

  .header__link {
    padding-right: 10px;
    padding-left: 10px;
  }

  .hero {
    gap: 32px;
    padding-bottom: 54px;
  }

  .hero__title {
    letter-spacing: -0.06em;
  }

  .hero__actions,
  .button {
    width: 100%;
  }

  .section {
    padding: 58px 0;
  }

  .intro__grid,
  .highlights__grid {
    grid-template-columns: 1fr;
  }

  .highlight {
    min-height: auto;
  }

  .highlight__number {
    margin-bottom: 34px;
  }

  .footer {
    padding-top: 58px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
