:root {
  --bg: #f5f7fb;
  --bg-soft: #eef2f8;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: #ffffff;
  --surface-light: rgba(12, 22, 38, 0.04);
  --text: #0f1728;
  --muted: #5f6c81;
  --line: rgba(15, 23, 40, 0.08);
  --line-strong: rgba(15, 23, 40, 0.14);
  --accent: #1a4521;
  --accent-strong: #789f58;
  --accent-warm: #0f1728;
  --shadow: 0 20px 50px rgba(14, 23, 38, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(26, 69, 33, 0.08), transparent 28%),
    radial-gradient(circle at top right, rgba(120, 159, 88, 0.1), transparent 22%),
    linear-gradient(180deg, #f8faff 0%, #f3f6fb 100%);
}

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

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

.page-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.02;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(circle at center, black 50%, transparent 92%);
}

.site-shell {
  width: min(1360px, calc(100% - 24px));
  margin: 0 auto;
  padding: 18px 0 32px;
  position: relative;
  z-index: 1;
}

.topbar,
.hero-panel,
.metric,
.service-card,
.engagement-list article,
.advantage-panel,
.advantage-grid article,
.contact-card,
.footer,
.legal-shell {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar {
  position: sticky;
  top: 14px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.brand-mark {
  width: 220px;
}

.topbar-actions,
.nav,
.hero-actions,
.signal-row,
.footer-links,
.legal-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nav {
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
  gap: 18px;
}

.nav a,
.footer-links a,
.legal-links a {
  transition: color 180ms ease;
}

.nav a:hover,
.footer-links a:hover,
.legal-links a:hover {
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  flex: 0 0 auto;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  border-radius: 999px;
  background: var(--text);
  transition: transform 180ms ease, opacity 180ms ease;
}

.lang-switch {
  display: inline-flex;
  padding: 4px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 40, 0.03);
}

.lang-button {
  border: 0;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  border-radius: 999px;
  padding: 9px 12px;
  font-weight: 700;
}

.lang-button.is-active {
  background: var(--text);
  color: #fff;
}

.hero-stage {
  position: relative;
  margin-top: 18px;
  border-radius: 28px;
  overflow: clip;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(120, 159, 88, 0.09), transparent 38%),
    linear-gradient(220deg, rgba(26, 69, 33, 0.05), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(249, 251, 255, 0.96));
  box-shadow: var(--shadow);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
}

.glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
}

.glow-one {
  width: 280px;
  height: 280px;
  top: -40px;
  right: -40px;
  background: rgba(120, 159, 88, 0.14);
}

.glow-two {
  width: 220px;
  height: 220px;
  bottom: 30px;
  left: -50px;
  background: rgba(26, 69, 33, 0.08);
}

.grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 70px 70px;
  opacity: 0.14;
  mask-image: linear-gradient(180deg, black, transparent 90%);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(460px, 0.9fr);
  gap: 18px;
  padding: 26px 26px 18px;
}

.hero-copy {
  max-width: 1040px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--accent);
}

.hero-kicker {
  margin: 0 0 16px;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.72;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  letter-spacing: -0.04em;
}

h1 {
  max-width: none;
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 0.94;
  font-weight: 550;
  letter-spacing: -0.055em;
}

h1 span {
  display: inline-block;
}

.headline-band {
  padding: 0;
  background: transparent;
  box-shadow: none;
}

.headline-accent {
  margin-top: 0.14em;
  color: var(--accent);
}

.lead,
.service-card p,
.service-card li,
.engagement-list p,
.metric span,
.advantage-grid p,
.contact-card p,
.footer p,
.legal-shell p,
.legal-shell li {
  color: var(--muted);
  line-height: 1.75;
}

.lead {
  max-width: 38ch;
  margin: 20px 0 0;
  font-size: 0.86rem;
  line-height: 1.6;
}

.hero-actions {
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  background: var(--accent);
  color: #fff;
}

.button-primary:hover {
  background: var(--accent-strong);
}

.button-secondary {
  border: 1px solid rgba(120, 159, 88, 0.22);
  background: rgba(120, 159, 88, 0.12);
  color: var(--accent);
}

.button-secondary:hover {
  border-color: rgba(120, 159, 88, 0.32);
  background: rgba(120, 159, 88, 0.18);
}

.engagement-list span {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(120, 159, 88, 0.26);
  border-radius: 12px;
  background: rgba(120, 159, 88, 0.14);
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 600;
}

.hero-panel {
  align-self: stretch;
  padding: 22px 28px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.68);
}

.hero-panel h2 {
  font-size: clamp(1.45rem, 2.3vw, 2.15rem);
  max-width: 8ch;
  font-weight: 600;
}

.system-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.system-stack article {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.system-stack article:first-child {
  padding-top: 0;
  border-top: 0;
}

.system-stack span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(120, 159, 88, 0.14);
  color: var(--accent);
  font-weight: 700;
}

.system-stack strong,
.metric strong,
.service-card h3,
.engagement-list h3,
.advantage-grid strong,
.contact-card h2 {
  display: block;
  margin-bottom: 4px;
  font-size: 0.98rem;
  font-weight: 600;
}

.system-stack p {
  margin: 0;
  color: var(--muted);
  line-height: 1.42;
  font-size: 0.82rem;
}

.section {
  padding: 28px 0;
}

.metrics-band,
.service-columns,
.engagement-list,
.advantage-grid {
  display: grid;
  gap: 18px;
}

.metrics-band {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.metric {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2,
.split-intro h2,
.advantage-copy h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.15rem);
  max-width: 24ch;
  font-weight: 600;
}

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

.services-section .section-heading {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(0, 1.05fr);
  gap: 24px;
  align-items: end;
}

.services-section .section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.services-section .section-heading h2 {
  max-width: none;
  margin: 0;
}

.service-card {
  padding: 20px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.service-card-accent {
  background:
    linear-gradient(180deg, rgba(120, 159, 88, 0.12), rgba(120, 159, 88, 0.03)),
    rgba(255, 255, 255, 0.8);
}

.service-index {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.service-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
  align-items: start;
}

.split-intro p:last-child {
  max-width: 48ch;
}

.engagement-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}

.engagement-list article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 220px;
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
}

.engagement-list h3 {
  margin: 2px 0 0;
}

.engagement-list p {
  margin: 6px 0 0;
  max-width: 16ch;
}

.advantage-panel {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(120, 159, 88, 0.08), transparent 32%),
    rgba(255, 255, 255, 0.76);
}

.advantage-copy {
  max-width: 760px;
}

.quote {
  margin: 14px 0 0;
  max-width: 50ch;
  font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif;
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  line-height: 1.34;
  font-weight: 500;
  color: #22304a;
}

.advantage-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.advantage-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(120, 159, 88, 0.12), rgba(120, 159, 88, 0.05)),
    rgba(250, 251, 255, 0.92);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 24px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.82);
}

.contact-copy {
  max-width: 440px;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.contact-details a {
  color: var(--accent);
  font-weight: 700;
}

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

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.form-message,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(245, 247, 251, 0.9);
  color: var(--text);
  font: inherit;
}

.contact-form textarea {
  min-height: 150px;
  resize: vertical;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  margin-top: 14px;
  padding: 18px 20px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.footer p {
  margin: 8px 0 0;
}

.legal-page {
  min-height: 100vh;
}

.legal-shell {
  max-width: 900px;
  margin: 28px auto 48px;
  padding: 32px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.legal-shell h1 {
  max-width: none;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  margin-bottom: 18px;
}

.legal-shell h2 {
  margin: 30px 0 10px;
  font-size: 1.45rem;
}

.legal-shell ul {
  padding-left: 18px;
}

.legal-header {
  width: min(900px, calc(100% - 36px));
  margin: 0 auto;
}

.legal-note {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(120, 159, 88, 0.12);
  color: #1a4521;
  border: 1px solid rgba(120, 159, 88, 0.2);
}

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

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

@media (max-width: 1080px) {
  .hero,
  .service-columns,
  .split-layout,
  .engagement-list,
  .advantage-grid,
  .contact-card,
  .metrics-band {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .services-section .section-heading {
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  h1,
  .section-heading h2,
  .split-intro h2,
  .advantage-copy h2 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .site-shell,
  .legal-header {
    width: min(100% - 16px, 1360px);
  }

  .footer,
  .hero-actions,
  .footer-links,
  .legal-links {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    gap: 12px;
    overflow: visible;
    position: relative;
  }

  .brand-mark {
    width: 132px !important;
    flex: 0 0 auto;
  }

  .menu-toggle {
    display: block !important;
  }

  .topbar-actions {
    display: none !important;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    padding: 14px 16px 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
    z-index: 20;
  }

  .nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    font-size: 0.9rem;
  }

  .legal-links {
    display: grid;
    gap: 10px;
    font-size: 0.9rem;
  }

  .lang-switch {
    margin-top: 12px;
    transform: none;
    transform-origin: left top;
  }

  .topbar.is-open .topbar-actions {
    display: block !important;
  }

  .topbar.is-open .menu-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .topbar.is-open .menu-toggle span:nth-child(2) {
    opacity: 0;
  }

  .topbar.is-open .menu-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .hero-stage,
  .advantage-panel,
  .contact-card,
  .service-card,
  .engagement-list article,
  .metric,
  .footer,
  .legal-shell {
    border-radius: 22px;
  }

  .hero {
    padding: 20px 18px;
  }

  h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero-kicker {
    margin-bottom: 10px;
    font-size: 0.72rem;
  }

  .lead {
    max-width: none;
    font-size: 0.82rem;
  }

  .headline-band {
    box-shadow: none;
  }

  .headline-accent {
    box-shadow: none;
  }

  .legal-shell {
    padding: 24px 20px;
  }
}
