:root {
  --bg-base: #f8f9fa;
  --bg-surface: #ffffff;
  --ink: #1d1f22;
  --muted: #5a616a;
  --line: #e0e3e8;
  --brand-green: #43a729;
  --brand-purple: #69239c;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Manrope, "Segoe UI", sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
}

body.modal-open {
  overflow: hidden;
}

/* ---- Background orbs ---- */

.bg-orb {
  position: fixed;
  filter: blur(120px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
  border-radius: 50%;
}

.orb-a {
  width: 640px;
  height: 640px;
  background: var(--brand-green);
  top: -80px;
  left: -120px;
}

.orb-b {
  width: 520px;
  height: 520px;
  background: var(--brand-purple);
  top: 40%;
  right: -100px;
}

/* ---- Layout ---- */

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

/* ---- Site header ---- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition:
    transform 260ms ease,
    opacity 220ms ease;
}

.site-header.is-hidden {
  transform: translateY(-120%);
}

.site-header.is-floating .nav-wrap {
  margin-top: 10px;
  padding: 12px 18px;
  border: 1px solid rgba(184, 189, 198, 0.6);
  border-radius: 18px;
  background: rgba(248, 249, 250, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 32px rgba(16, 17, 21, 0.08);
}

.site-header.is-top .nav-wrap {
  margin-top: 0;
  padding: 14px 0;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: all 220ms ease;
}

/* ---- Logo ---- */

.logo-chip {
  display: inline-flex;
  align-items: center;
  gap: 0;
  background: transparent;
  padding: 0;
  border: 0;
  text-decoration: none;
  box-shadow: none;
}

.logo-image {
  height: 96px;
  width: auto;
  object-fit: contain;
  display: block;
  border-radius: 10px;
}

/* ---- Desktop nav ---- */

nav {
  display: flex;
  gap: 16px;
}

nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 160ms ease;
}

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

/* ---- Nav actions ---- */

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Hamburger ---- */

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.hamburger-line {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition:
    transform 260ms ease,
    opacity 180ms ease;
}

.hamburger.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.hamburger.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ---- Mobile nav drawer ---- */

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height 320ms ease,
    opacity 220ms ease,
    padding 220ms ease;
  background: rgba(248, 249, 250, 0.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  padding: 0 18px;
}

.mobile-nav.is-open {
  max-height: 400px;
  opacity: 1;
  padding: 16px 18px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  border-bottom: 1px solid var(--line);
}

.mobile-nav a:last-of-type {
  border-bottom: 0;
}

.mobile-nav button {
  margin-top: 12px;
  width: 100%;
  text-align: center;
}

/* ---- Buttons ---- */

button {
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  background: #101115;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  transition:
    background 180ms ease,
    transform 120ms ease;
}

button:hover {
  background: #232630;
}

button:active {
  transform: scale(0.98);
}

/* ---- Focus visible ---- */

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand-green);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ---- Main content ---- */

main {
  padding: 132px 0 0;
}

.hero {
  margin-top: 20px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  align-items: center;
}

/* ---- Typography ---- */

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--brand-green);
  font-size: 0.76rem;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  margin: 10px 0 10px;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
}

h3 {
  font-size: 1.2rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.subhead {
  max-width: 56ch;
  font-size: 1.05rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 24px 0 12px;
  align-items: center;
}

.cta-secondary {
  color: var(--ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 160ms ease;
}

.cta-secondary::after {
  content: "→";
  transition: transform 160ms ease;
}

.cta-secondary:hover::after {
  transform: translateX(4px);
}

/* ---- Micro points with checkmarks ---- */

.micro-points {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.micro-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}

.micro-points li::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: rgba(67, 167, 41, 0.12);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M3.5 8.5l3 3 6-7' stroke='%2343a729' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: 13px;
  background-repeat: no-repeat;
  background-position: center;
}

/* ---- Sections ---- */

.section {
  margin-top: 88px;
}

.section-head {
  margin-bottom: 28px;
}

/* ---- Card grids ---- */

.cards {
  display: grid;
  gap: 16px;
}

.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.capabilities-grid {
  grid-template-columns: repeat(3, 1fr);
}

.two-col {
  grid-template-columns: repeat(2, 1fr);
}

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

/* ---- Cards ---- */

.wireframe-card {
  padding: 24px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow:
    0 1px 3px rgba(16, 17, 21, 0.04),
    0 8px 24px rgba(16, 17, 21, 0.05);
}

/* ---- Capability cards ---- */

.capability-card {
  border-top: 3px solid var(--brand-green);
  display: flex;
  flex-direction: column;
}

.cap-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(67, 167, 41, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.cap-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--brand-green);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---- Media card (hero image) ---- */

.media-card {
  padding: 0;
  overflow: hidden;
  border: none;
  box-shadow:
    0 20px 48px rgba(16, 17, 21, 0.12),
    0 4px 12px rgba(16, 17, 21, 0.06);
}

.media-card img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  max-height: 560px;
  object-fit: cover;
  display: block;
}

/* ---- Logo strip ---- */

.logo-strip {
  margin-top: 48px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.logo-strip-label {
  text-align: center;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  color: #9ba3ae;
  margin: 0 0 22px;
}

.logo-items {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 52px;
  flex-wrap: wrap;
}

.logo-item {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #c4c9d1;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: color 200ms ease;
  user-select: none;
}

.logo-item:hover {
  color: var(--muted);
}

/* ---- Proof strip ---- */

.proof-strip {
  margin-top: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(16, 17, 21, 0.04);
}

.proof-item {
  padding: 20px 24px;
}

.proof-item + .proof-item {
  border-left: 1px solid var(--line);
}

.kicker {
  margin: 0;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--brand-green);
}

.proof-item h3 {
  margin: 6px 0 0;
  font-size: 1.06rem;
}

/* ---- Process grid ---- */

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  position: relative;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 38px;
  left: 14%;
  right: 14%;
  height: 1px;
  background: linear-gradient(
    90deg,
    var(--brand-green) 0%,
    var(--brand-purple) 100%
  );
  opacity: 0.25;
  z-index: 0;
  pointer-events: none;
}

.step {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 18px;
  background: #ffffff;
  position: relative;
  z-index: 1;
}

.step-number {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 2.6rem;
  font-weight: 700;
  color: var(--brand-green);
  line-height: 1;
  margin-bottom: 10px;
  letter-spacing: -0.03em;
}

/* ---- About section ---- */

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 24px;
  align-items: start;
}

.about-photo {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  background: var(--line);
}

.about-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.credentials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.credentials li {
  text-align: center;
  padding: 16px 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 4px rgba(16, 17, 21, 0.04);
}

.cred-number {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.cred-label {
  display: block;
  font-size: 0.74rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.3;
}

/* ---- Result metric ---- */

.result-metric {
  font-family: "Space Grotesk", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--brand-green);
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0 0 6px;
  display: block;
}

/* ---- Testimonial ---- */

.testimonial-wrap {
  margin-top: 24px;
}

.testimonial {
  margin: 0;
  padding: 36px 40px;
  background: linear-gradient(
    135deg,
    rgba(67, 167, 41, 0.04),
    rgba(105, 35, 156, 0.06)
  );
  border-radius: 20px;
  border: 1px solid rgba(67, 167, 41, 0.18);
}

.testimonial p {
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ink);
  line-height: 1.65;
  margin: 0 0 18px;
}

.testimonial cite {
  font-style: normal;
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-green), var(--brand-purple));
  flex-shrink: 0;
}

.testimonial cite strong {
  display: block;
  font-size: 0.88rem;
  color: var(--ink);
  font-weight: 700;
}

.testimonial cite span {
  display: block;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 1px;
}

/* ---- Contact section ---- */

.contact {
  text-align: center;
  padding: 72px 24px;
  border-radius: 20px;
  border: 1px solid rgba(67, 167, 41, 0.18);
  background: linear-gradient(
    135deg,
    rgba(67, 167, 41, 0.06),
    rgba(105, 35, 156, 0.08)
  );
}

.contact h2 {
  margin-bottom: 12px;
}

.contact p {
  max-width: 48ch;
  margin: 0 auto 32px;
  font-size: 1rem;
}

/* ---- Footer ---- */

footer {
  margin-top: 80px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0;
  flex-wrap: wrap;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
}

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

.footer-links a {
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 160ms ease;
}

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

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

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  transition:
    border-color 160ms ease,
    color 160ms ease;
}

.footer-social a:hover {
  border-color: var(--brand-green);
  color: var(--brand-green);
}

.footer-social svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* ---- Modal ---- */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 17, 22, 0.55);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}

.modal-overlay.is-open {
  display: flex;
}

.modal-card {
  width: min(540px, 100%);
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 24px 56px rgba(16, 17, 21, 0.2);
  padding: 28px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}

.modal-head h3 {
  margin: 0;
}

.modal-subhead {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 20px;
  line-height: 1.5;
}

.modal-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 50%;
  background: #f0f1f3;
  color: #555;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 160ms ease;
}

.modal-close:hover {
  background: var(--line);
}

/* ---- Discovery form ---- */

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

.discovery-form label {
  display: grid;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 700;
  color: #2a313c;
}

.discovery-form input,
.discovery-form textarea {
  width: 100%;
  border: 1px solid #dde0e6;
  border-radius: 10px;
  padding: 10px 14px;
  font: inherit;
  font-size: 0.9rem;
  color: #1b222d;
  background: #fafafa;
  transition:
    border-color 160ms ease,
    background 160ms ease;
}

.discovery-form input:focus,
.discovery-form textarea:focus {
  border-color: var(--brand-green);
  outline: none;
  background: #fff;
}

.discovery-form textarea,
.discovery-form label:last-of-type {
  grid-column: 1 / -1;
}

.modal-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.btn-submit {
  background: var(--brand-green);
  color: #fff;
  padding: 12px 28px;
}

.btn-submit:hover {
  background: #3a9422;
}

/* ---- Form success state ---- */

.form-success {
  text-align: center;
  padding: 40px 20px;
}

.form-success p {
  font-size: 1.05rem;
  color: var(--ink);
  margin-bottom: 20px;
}

.form-success-close {
  background: var(--brand-green);
  color: #fff;
  padding: 10px 24px;
}

/* ---- Scroll animations ---- */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 560ms ease,
    transform 560ms ease;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.animate-on-scroll[data-delay="100"] {
  transition-delay: 100ms;
}
.animate-on-scroll[data-delay="200"] {
  transition-delay: 200ms;
}
.animate-on-scroll[data-delay="300"] {
  transition-delay: 300ms;
}
.animate-on-scroll[data-delay="400"] {
  transition-delay: 400ms;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  nav {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  .mobile-nav {
    display: flex;
  }

  .nav-actions [data-open-discovery] {
    display: none;
  }

  .hero-grid,
  .three-col,
  .capabilities-grid,
  .two-col,
  .four-col,
  .proof-strip,
  .process-grid,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .proof-item + .proof-item {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .logo-image {
    height: 40px;
    width: auto;
  }

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

  .section {
    margin-top: 56px;
  }

  .logo-items {
    gap: 28px;
  }

  .process-grid::before {
    display: none;
  }

  .testimonial {
    padding: 28px 24px;
  }

  .about-photo {
    aspect-ratio: 4 / 3;
  }

  .credentials {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}

/* ---- Reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .site-header {
    transition: none;
  }

  button,
  .cta-secondary::after {
    transition: none;
  }
}
