:root {
  --ink: #0e1512;
  --ink-2: #17211c;
  --paper: #f7f8f7;
  --white: #ffffff;
  --green: #2fae63;
  --green-deep: #178a4c;
  --green-dark: #0d3b26;
  --text: #23302a;
  --muted: #5c6a63;
  --muted-dark: #9db3a8;
  --line: #e3e8e5;
  --radius: 14px;
  --font-display: "Sora", sans-serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
}

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

.container { width: min(1120px, 92vw); margin: 0 auto; }

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin-bottom: 1.6rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

.kicker {
  color: var(--green-deep);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  margin-bottom: 0.6rem;
}

.section-dark .kicker { color: var(--green); }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 21, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.35s, border-color 0.35s, box-shadow 0.35s;
}

.site-header.clear:not(.scrolled) {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
}

.site-header.scrolled {
  background: rgba(10, 16, 13, 0.88);
  box-shadow: 0 10px 34px -20px rgba(0, 0, 0, 0.65);
}

.scroll-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 3px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left;
  background: linear-gradient(90deg, var(--green-deep), var(--green) 40%, #8ce8b4 70%, var(--green));
  background-size: 200% 100%;
  animation: progress-sheen 3.5s linear infinite;
  pointer-events: none;
}

@keyframes progress-sheen {
  to { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-progress { animation: none; }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  gap: 1rem;
  transition: min-height 0.3s;
}

.site-header.scrolled .nav { min-height: 58px; }

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  overflow: hidden;
  background: radial-gradient(circle at 35% 30%, #223b2e, #0e1512);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-mark img {
  width: 82%;
  object-fit: contain;
}

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--white);
  font-size: 1.05rem;
}

.brand-name span { color: var(--green); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: #d7e2dc;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

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

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.4rem;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

/* Buttons */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.72rem 1.5rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: var(--font-body);
}

.btn-solid { background: var(--green); color: #06130c; }
.btn-solid:hover { background: #46c77b; }

.btn-ghost { border-color: rgba(255, 255, 255, 0.35); color: var(--white); }
.btn-ghost:hover { border-color: var(--green); color: var(--green); }

.btn-outline { border-color: var(--green); color: var(--green); padding: 0.5rem 1.2rem; }
.btn-outline:hover { background: var(--green); color: #06130c; }

/* Hero */

.hero {
  position: relative;
  margin-top: -68px;
  background: linear-gradient(160deg, #0e1512 0%, #102019 55%, #0d3b26 130%);
  color: var(--white);
  overflow: hidden;
}

#mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-inner {
  position: relative;
  padding: clamp(5rem, 12vh, 9rem) 0 4.5rem;
}

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

.hero h1 {
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  margin: 0.3em 0 0.35em;
}

.hero h1 em {
  font-style: normal;
  color: var(--green);
}

.lead {
  max-width: 34rem;
  font-size: 1.12rem;
  color: #c9d6cf;
}

.hero-actions { display: flex; gap: 0.9rem; flex-wrap: wrap; margin: 1.8rem 0 2.8rem; }

.hero-stats {
  display: flex;
  gap: 2.6rem;
  list-style: none;
  margin: 0;
  padding: 1.4rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  flex-wrap: wrap;
}

.hero-stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--green);
}

.hero-stats span { color: #9db3a8; font-size: 0.88rem; }

/* Sections */

.section { padding: clamp(3.6rem, 8vw, 5.5rem) 0; }

.section-tint { background: #eef2ef; }

.section-dark {
  background: var(--ink);
  color: #dbe6e0;
}

.section-dark h2 { color: var(--white); }

.split {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.about-figure img {
  border-radius: var(--radius);
  box-shadow: 0 24px 60px -28px rgba(13, 59, 38, 0.45);
}

.about-logo {
  margin: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(2rem, 5vw, 3.2rem);
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  box-shadow: 0 24px 60px -28px rgba(13, 59, 38, 0.3);
}

.about-logo img {
  max-width: 280px;
  width: 70%;
  border-radius: 0;
  box-shadow: none;
}

.about-logo figcaption { text-align: center; }

.about-wordmark {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  letter-spacing: 0.14em;
  color: #162137;
}

.about-wordmark em { font-style: normal; color: var(--green); }

.about-slogan {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.ticks { list-style: none; padding: 0; margin: 1.2rem 0 0; }

.ticks li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.55rem;
  font-weight: 600;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 0.55em;
  height: 0.3em;
  border-left: 2.5px solid var(--green-deep);
  border-bottom: 2.5px solid var(--green-deep);
  transform: rotate(-45deg);
}

/* Cards */

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.2rem;
}

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.4rem;
  transition: transform 0.25s, box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 18px 40px -24px rgba(13, 59, 38, 0.35);
}

.card:hover .card-icon { transform: scale(1.08); background: var(--green); color: var(--white); }

.card-icon { transition: transform 0.25s, background 0.25s, color 0.25s; }

.card-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #e2f3e9;
  color: var(--green-deep);
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

.card-icon svg { width: 24px; height: 24px; }

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

/* Feature rows */

.feature {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(1.6rem, 4vw, 3.5rem);
  align-items: center;
  padding: 2.2rem 0;
  border-bottom: 1px solid var(--line);
}

.feature:last-child { border-bottom: 0; }

.feature.reverse figure { order: 2; }

.stage {
  margin: 0;
  border-radius: 20px;
  padding: clamp(1.1rem, 2.5vw, 2rem);
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(140deg, #e3f2e9, #cfe8da);
}

article.feature:nth-of-type(even) .stage {
  background:
    radial-gradient(120% 120% at 15% 0%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(140deg, #e8edf4, #d5deeb);
}

.stage-center { display: flex; justify-content: center; }

.shot {
  background: #e9efeb;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(13, 59, 38, 0.12);
  box-shadow: 0 26px 55px -24px rgba(13, 59, 38, 0.45);
}

.shot-bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.shot-bar i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #cdd8d1;
}

.shot-bar i:first-child { background: #e8a09a; }
.shot-bar i:nth-child(2) { background: #eed9a0; }
.shot-bar i:nth-child(3) { background: #a4d4b4; }

.shot img { transition: transform 0.4s ease; }

.feature:hover .shot img { transform: scale(1.025); }

.shot.phone {
  max-width: 290px;
  margin-inline: auto;
  border-radius: 30px;
  border: 6px solid #1c2b24;
  background: #1c2b24;
}

.shot.phone img { border-radius: 22px; }

.feature-tag {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 0.76rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--green-deep);
  margin: 0 0 0.7rem;
}

.feature-tag span {
  background: var(--green);
  color: #06130c;
  border-radius: 8px;
  padding: 0.2rem 0.5rem;
  font-size: 0.78rem;
  letter-spacing: 0;
}

.feature h3 { font-size: 1.45rem; }

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

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.chips li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}

.section-sub { margin-top: 3.2rem; }

/* Legacy products */

.legacy {
  background:
    radial-gradient(700px 320px at 85% 0%, rgba(47, 174, 99, 0.12), transparent 70%),
    var(--ink);
  color: #dbe6e0;
}

.legacy h2 { color: var(--white); }

.lcard {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s, background 0.3s;
}

.lcard:hover {
  transform: translateY(-6px);
  border-color: rgba(47, 174, 99, 0.55);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 45px -22px rgba(47, 174, 99, 0.35);
}

.mono {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--green), var(--green-dark));
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 1rem;
  transition: transform 0.3s;
}

.lcard:hover .mono { transform: rotate(-6deg) scale(1.06); }

.lcard h3 { color: var(--white); margin-bottom: 0.35rem; }

.lcard p { color: var(--muted-dark); font-size: 0.92rem; margin: 0; }

/* Service index */

.svc-list { border-top: 1px solid #d5ddd8; }

.svc {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem 1.2rem;
  border-bottom: 1px solid #d5ddd8;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}

.svc::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(47, 174, 99, 0.14), rgba(47, 174, 99, 0.03) 70%, transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.svc:hover::before { transform: scaleX(1); }

.svc > * { position: relative; }

.svc-num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.7rem;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--green-deep);
  opacity: 0.55;
  transition: opacity 0.3s;
}

.svc:hover .svc-num { opacity: 1; }

.svc-body h3 {
  margin: 0;
  font-size: 1.3rem;
  transition: transform 0.3s, color 0.3s;
}

.svc:hover .svc-body h3 { color: var(--green-deep); transform: translateX(8px); }

.svc-body p { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.95rem; }

.svc-arrow {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1.5px solid #c3cec7;
  display: grid;
  place-items: center;
  color: var(--green-deep);
  opacity: 0.45;
  transform: translateX(-8px);
  transition: opacity 0.3s, transform 0.3s, background 0.3s, border-color 0.3s, color 0.3s;
}

.svc-arrow svg { width: 20px; height: 20px; }

.svc:hover .svc-arrow {
  opacity: 1;
  transform: translateX(0);
  background: var(--green);
  border-color: var(--green);
  color: #06130c;
}

/* Staggered entrance */

.grid-stagger > .reveal { transition: none; }

.grid-stagger > .reveal.in { animation: rise 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) both; }

.grid-stagger > .reveal.in:nth-child(2) { animation-delay: 0.08s; }
.grid-stagger > .reveal.in:nth-child(3) { animation-delay: 0.16s; }
.grid-stagger > .reveal.in:nth-child(4) { animation-delay: 0.24s; }
.grid-stagger > .reveal.in:nth-child(5) { animation-delay: 0.32s; }
.grid-stagger > .reveal.in:nth-child(6) { animation-delay: 0.4s; }

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

#products {
  background:
    radial-gradient(600px 300px at 85% 8%, rgba(47, 174, 99, 0.07), transparent 70%),
    radial-gradient(500px 280px at 8% 55%, rgba(47, 174, 99, 0.06), transparent 70%),
    var(--paper);
}

#expertise { background: #eef2ef; }

/* Tech stack */

.stack {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 2.4rem 0;
}

.stack-label {
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 700;
  margin-bottom: 1.6rem;
}

.stack-viewport {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.stack-track {
  display: flex;
  width: max-content;
  animation: stack-scroll 40s linear infinite;
}

.stack-viewport:hover .stack-track { animation-play-state: paused; }

@keyframes stack-scroll {
  to { transform: translateX(-50%); }
}

.stack-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
}

.tech {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.5rem 1.1rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  background: var(--paper);
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.tech img {
  height: 20px;
  width: 20px;
  object-fit: contain;
}

.tech:hover {
  color: var(--text);
  border-color: var(--green);
  background: var(--white);
}

@media (prefers-reduced-motion: reduce) {
  .stack-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  .stack-row { flex-wrap: wrap; justify-content: center; }
  .stack-row[aria-hidden] { display: none; }
}

/* CTA band */

.cta-band {
  background: linear-gradient(120deg, var(--green-dark) 0%, #14724a 55%, var(--green) 130%);
  color: var(--white);
  padding: 3.2rem 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cta-band h2 { color: var(--white); margin-bottom: 0.4rem; }

.cta-band p { color: #cfe8da; max-width: 34rem; margin: 0; }

.btn-light { background: var(--white); color: var(--green-dark); }
.btn-light:hover { background: #dff3e8; }

/* Contact */

.contact .lead-sm { color: var(--muted-dark); max-width: 26rem; }

.contact-list { list-style: none; padding: 0; margin: 1.8rem 0 0; }

.contact-list li { margin-bottom: 1.1rem; }

.contact-list span {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted-dark);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

.contact-list a { color: var(--white); text-decoration: none; font-weight: 600; }

.contact-list a:hover { color: var(--green); }

.contact-form {
  background: var(--ink-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 1.8rem;
  display: grid;
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: #c9d6cf;
}

.contact-form input,
.contact-form textarea {
  font: inherit;
  color: var(--white);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  border-color: transparent;
}

.contact-form .btn { justify-self: start; }

.trap { position: absolute; left: -5000px; opacity: 0; }

.form-note { margin: 0; font-size: 0.9rem; color: var(--green); min-height: 1.2em; }

.form-note.error { color: #ff8a80; }

/* Footer */

.footer {
  background: #0a100d;
  color: #8fa79c;
  padding: 2.2rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-links a { color: #c1d1c9; text-decoration: none; font-size: 0.9rem; font-weight: 600; }

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

.footer p { margin: 0; font-size: 0.85rem; }

/* Legal page */

.page {
  min-height: 55vh;
  padding: 4rem 0;
}

.page h1 { font-size: 2.2rem; }

/* Reveal on scroll */

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }

.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .grid-stagger > .reveal.in { animation: none; }
  .grid-stagger > .reveal { opacity: 1; }
}

/* Responsive */

@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split, .feature { grid-template-columns: 1fr; }
  .feature.reverse figure { order: 0; }
  .about-figure { max-width: 480px; }
}

@media (max-width: 720px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 0.6rem 4vw 1.2rem;
    display: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 0.7rem 0; }
  .nav-links .btn { margin-top: 0.6rem; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.6rem; }
  .svc { grid-template-columns: 46px 1fr; gap: 1rem; }
  .svc-arrow { display: none; }
  .svc-num { font-size: 1.3rem; }
}
