:root {
  --green-50: #f4faf5;
  --green-100: #e5f4e9;
  --green-200: #c8e6d0;
  --green-300: #9dd4ad;
  --green-400: #6bbb80;
  --green-500: #3f9a58;
  --green-600: #2f7a45;
  --green-700: #265f38;
  --green-800: #214c30;
  --ink: #1a2e22;
  --ink-soft: #3d5546;
  --ink-muted: #5c7264;
  --surface: rgba(255, 255, 255, 0.72);
  --surface-solid: #ffffff;
  --line: rgba(47, 122, 69, 0.14);
  --shadow: 0 24px 60px rgba(38, 95, 56, 0.12);
  --radius: 18px;
  --font-display: "Syne", sans-serif;
  --font-body: "Figtree", sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, #dff3e4 0%, transparent 55%),
    radial-gradient(900px 500px at 90% 0%, #cfead7 0%, transparent 50%),
    linear-gradient(180deg, var(--green-50) 0%, #eef7f0 40%, var(--green-100) 100%);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.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;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.ambient__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.55;
  animation: drift 18s var(--ease) infinite alternate;
}

.ambient__blob--a {
  width: 42vw;
  height: 42vw;
  top: 8%;
  left: -8%;
  background: #b9e0c4;
}

.ambient__blob--b {
  width: 36vw;
  height: 36vw;
  top: 45%;
  right: -10%;
  background: #d4efdb;
  animation-duration: 22s;
  animation-delay: -4s;
}

.ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(47, 122, 69, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 122, 69, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  opacity: 0.5;
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.08); }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-h);
  padding: 0 clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(244, 250, 245, 0.78);
  border-bottom: 1px solid var(--line);
}

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

.logo__mark {
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 7px;
  background:
    linear-gradient(135deg, var(--green-300), var(--green-600));
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
  position: relative;
}

.logo__mark::after {
  content: "";
  position: absolute;
  inset: 28% 28% 28% 42%;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 2px;
  transform: skewX(-12deg);
}

.nav {
  display: none;
  gap: 1.75rem;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--green-600);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.85rem;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
}

.lang-switch__btn {
  border: 0;
  background: transparent;
  color: var(--ink-muted);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.lang-switch__btn.is-active {
  background: var(--green-600);
  color: #fff;
}

.menu-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  background: var(--ink);
  transition: transform 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3.5px) rotate(-45deg);
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 1.25rem 1.25rem;
  background: rgba(244, 250, 245, 0.96);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  padding: 0.85rem 0.5rem;
  font-weight: 600;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.mobile-nav .lang-row {
  display: flex;
  gap: 0.5rem;
  padding-top: 0.75rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(180deg, var(--green-500), var(--green-600));
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 122, 69, 0.28);
}

.btn--primary:hover {
  box-shadow: 0 14px 28px rgba(47, 122, 69, 0.34);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.55);
  border-color: var(--line);
  color: var(--green-700);
}

.btn--sm {
  padding: 0.55rem 1rem;
  font-size: 0.9rem;
}

/* Hero */
.hero {
  display: grid;
  gap: 3rem;
  align-items: center;
  min-height: calc(100svh - var(--header-h));
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem) 4rem;
  max-width: 1200px;
  margin: 0 auto;
}

.brand-signal {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  color: var(--green-700);
  animation: rise 0.9s var(--ease) both;
}

.hero h1 {
  margin: 0 0 1rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.55rem, 3.4vw, 2.35rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--ink);
  animation: rise 0.9s var(--ease) 0.08s both;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: var(--ink-soft);
  font-size: 1.08rem;
  animation: rise 0.9s var(--ease) 0.16s both;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s var(--ease) 0.24s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__visual {
  position: relative;
  animation: rise 1s var(--ease) 0.2s both;
}

.panel {
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.panel__bar {
  display: flex;
  gap: 0.4rem;
  padding: 0.9rem 1.1rem;
  background: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid var(--line);
}

.panel__bar span {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green-300);
}

.panel__bar span:nth-child(2) { background: var(--green-400); }
.panel__bar span:nth-child(3) { background: var(--green-500); }

.panel__body {
  padding: 1.25rem;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  min-height: 210px;
}

.pipeline__col {
  background: rgba(244, 250, 245, 0.85);
  border: 1px dashed rgba(47, 122, 69, 0.18);
  border-radius: 14px;
  padding: 0.55rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  position: relative;
}

.pipeline__col::before {
  content: attr(data-stage);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 0.15rem;
}

.deal {
  height: 42px;
  border-radius: 10px;
  background: linear-gradient(90deg, #fff, var(--green-100));
  border: 1px solid var(--line);
  animation: dealIn 0.7s var(--ease) both;
  animation-delay: calc(var(--d) * 0.1s + 0.4s);
}

.deal--accent {
  background: linear-gradient(90deg, #fff, #c8e6d0);
}

.deal--won {
  background: linear-gradient(90deg, var(--green-300), var(--green-500));
  border-color: transparent;
}

@keyframes dealIn {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ai-chip {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line);
  color: var(--green-700);
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 100%;
}

.ai-chip__pulse {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 0 rgba(63, 154, 88, 0.55);
  animation: pulse 2s ease-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63, 154, 88, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(63, 154, 88, 0); }
  100% { box-shadow: 0 0 0 0 rgba(63, 154, 88, 0); }
}

.float-note {
  position: absolute;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(38, 95, 56, 0.1);
  animation: floaty 5s ease-in-out infinite;
}

.float-note strong {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--green-700);
}

.float-note span {
  font-size: 0.8rem;
  color: var(--ink-muted);
}

.float-note--a {
  top: -0.75rem;
  right: -0.5rem;
}

.float-note--b {
  bottom: 2.5rem;
  left: -0.75rem;
  animation-delay: -1.5s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
  max-width: 1100px;
  margin: 0 auto;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2.5rem;
}

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

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green-600);
}

.section h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.section__intro p:last-child,
.ai-layout__copy > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-soft);
}

.value-list {
  display: grid;
  gap: 1.5rem;
}

.value-item {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  column-gap: 1.25rem;
  row-gap: 0.35rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}

.value-item:last-child {
  border-bottom: 1px solid var(--line);
}

.value-item__index {
  grid-row: 1 / span 2;
  align-self: start;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--green-400);
  line-height: 1;
  padding-top: 0.15rem;
}

.value-item h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.value-item p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 48ch;
}

/* AI section */
.section--ai {
  max-width: 1200px;
}

.ai-layout {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(200, 230, 208, 0.35));
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.ai-points {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.85rem;
}

.ai-points li {
  position: relative;
  padding-left: 1.6rem;
  color: var(--ink-soft);
}

.ai-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45rem;
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 4px rgba(63, 154, 88, 0.15);
}

.ai-demo__window {
  background: var(--surface-solid);
  border-radius: 20px;
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.ai-demo__label {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green-600);
  margin-bottom: 1rem;
}

.ai-demo__messages {
  display: grid;
  gap: 0.75rem;
}

.bubble {
  margin: 0;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  max-width: 95%;
  font-size: 0.95rem;
}

.bubble--user {
  justify-self: end;
  background: var(--green-100);
  color: var(--green-800);
  border-bottom-right-radius: 6px;
}

.bubble--ai {
  justify-self: start;
  background: #f7fbf8;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  border-bottom-left-radius: 6px;
}

.ai-demo__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.ai-demo__actions span {
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: var(--green-50);
  border: 1px solid var(--line);
  color: var(--green-700);
  font-size: 0.82rem;
  font-weight: 600;
}

/* Workflow */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
}

.step {
  counter-increment: step;
  padding: 1.5rem 0 0;
  border-top: 1px solid var(--line);
}

.step h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
}

.step h3::before {
  content: counter(step, decimal-leading-zero);
  font-size: 0.85rem;
  color: var(--green-500);
  letter-spacing: 0.04em;
}

.step p {
  margin: 0;
  color: var(--ink-soft);
  max-width: 36ch;
}

/* CTA */
.section--cta {
  padding-bottom: 4rem;
}

.cta-band {
  text-align: center;
  padding: clamp(2rem, 5vw, 3.5rem) clamp(1.25rem, 4vw, 2.5rem);
  border-radius: 28px;
  background:
    linear-gradient(160deg, var(--green-600), var(--green-700) 55%, #1f4a2e);
  color: #f4faf5;
  box-shadow: 0 24px 50px rgba(38, 95, 56, 0.28);
}

.cta-band h2 {
  color: #fff;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-band > p {
  margin: 0 auto 1.75rem;
  max-width: 42ch;
  color: rgba(244, 250, 245, 0.85);
}

.cta-form {
  display: grid;
  gap: 0.75rem;
  max-width: 34rem;
  margin: 0 auto;
}

.cta-form input {
  width: 100%;
  padding: 0.95rem 1.1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  outline: none;
}

.cta-form input::placeholder {
  color: rgba(244, 250, 245, 0.65);
}

.cta-form input:focus {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.18);
}

.cta-form .btn--primary {
  background: #fff;
  color: var(--green-700);
  box-shadow: none;
}

.cta-form .btn--primary:hover {
  background: var(--green-100);
}

.form-status {
  min-height: 1.4em;
  margin: 0.85rem 0 0;
  color: #d9f0df;
  font-weight: 600;
}

/* Footer */
.site-footer {
  padding: 2.5rem clamp(1.25rem, 4vw, 3rem) 3rem;
  text-align: center;
  color: var(--ink-muted);
  border-top: 1px solid var(--line);
}

.logo--footer {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.site-footer p {
  margin: 0.35rem 0;
}

.footer-meta {
  margin-top: 1rem !important;
  font-size: 0.85rem;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

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

/* Responsive */
@media (min-width: 720px) {
  .nav,
  .header-actions {
    display: flex;
  }

  .menu-toggle,
  .mobile-nav {
    display: none !important;
  }

  .value-list {
    gap: 0;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 2.5rem;
  }

  .step {
    border-top: 0;
    padding-top: 0;
    border-left: 1px solid var(--line);
    padding-left: 1.25rem;
  }

  .cta-form {
    grid-template-columns: 1fr 1fr auto;
  }
}

@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }

  .ai-layout {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
  }

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

@media (max-width: 540px) {
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .float-note--a,
  .float-note--b {
    position: static;
    margin-top: 0.75rem;
    animation: none;
  }

  .hero__visual {
    display: flex;
    flex-direction: column;
  }
}

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

  html {
    scroll-behavior: auto;
  }
}
