:root {
  --bg: #eef2ed;
  --bg-strong: #ffffff;
  --ink: #17211d;
  --muted: #5d6862;
  --line: rgba(23, 33, 29, 0.12);
  --panel: rgba(255, 255, 255, 0.9);
  --panel-strong: rgba(255, 255, 255, 0.96);
  --shadow: 0 22px 70px rgba(24, 35, 31, 0.12);
  --green: #167456;
  --green-rgb: 22, 116, 86;
  --copper: #b8612f;
  --copper-rgb: 184, 97, 47;
  --blue: #2f5f9f;
  --blue-rgb: 47, 95, 159;
  --radius: 8px;
  --radius-large: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  overflow-x: hidden;
  background:
    linear-gradient(135deg, rgba(var(--green-rgb), 0.1) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(225deg, rgba(var(--blue-rgb), 0.09) 0%, rgba(255, 255, 255, 0) 36%),
    linear-gradient(180deg, #f8faf7 0%, #eef2ed 48%, #e5ece7 100%);
}

button,
input,
select,
textarea {
  font: inherit;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1240px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.topbar {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.35rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-large);
  border: 1px solid rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 16px 40px rgba(35, 34, 25, 0.06);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 54px;
  height: 54px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--green-rgb), 0.98), rgba(var(--blue-rgb), 0.84));
  box-shadow: 0 18px 42px rgba(var(--green-rgb), 0.24);
}

.brand__text strong,
.hero h1,
.section-head h2,
.story-card h3,
.contact-card strong,
.video-shell__copy strong {
  display: block;
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  letter-spacing: 0;
}

.brand__text small {
  display: block;
  margin-top: 0.16rem;
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.topnav a {
  padding: 0.56rem 0.84rem;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.34);
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.topnav a:hover {
  transform: translateY(-1px);
  color: var(--green);
  background: rgba(var(--green-rgb), 0.08);
}

.language-switcher {
  display: inline-flex;
  gap: 0.2rem;
  padding: 0.2rem;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.52);
}

.language-switcher__option {
  min-width: 42px;
  border: 0;
  border-radius: calc(var(--radius) - 2px);
  padding: 0.45rem 0.52rem;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.language-switcher__option.is-active {
  color: #ffffff;
  background: var(--green);
}

.flow {
  display: grid;
  gap: 1.2rem;
}

.hero,
.panel {
  box-shadow: var(--shadow);
}

.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(480px, calc(100vh - 230px), 620px);
  padding: clamp(1.25rem, 4vw, 3.2rem);
  border-radius: var(--radius-large);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  background:
    radial-gradient(circle at 18% 20%, rgba(42, 140, 103, 0.18), transparent 28%),
    radial-gradient(circle at 82% 24%, rgba(61, 118, 210, 0.18), transparent 24%),
    radial-gradient(circle at 50% 82%, rgba(247, 244, 237, 0.1), transparent 28%),
    linear-gradient(180deg, #0f1714 0%, #14211c 48%, #1d2d27 100%);
  overflow: hidden;
  animation: page-enter 720ms ease both;
}

.hero__field,
.hero__veil {
  position: absolute;
  inset: 0;
}

.hero__field {
  width: 100%;
  height: 100%;
  display: block;
}

.hero__veil {
  background:
    radial-gradient(circle at center, rgba(247, 244, 237, 0.02), transparent 38%),
    linear-gradient(180deg, rgba(10, 16, 13, 0.18), rgba(10, 16, 13, 0.26));
  pointer-events: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: min(100%, 760px);
  max-width: 760px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.hero h1 {
  max-width: 18ch;
  color: #ffffff;
  font-size: clamp(2.7rem, 5.8vw, 4.9rem);
  line-height: 0.96;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
}

.hero__body,
.section-head p,
.story-card p,
.result-panel__body,
.contact-card p,
.tool-footnote,
.feature-list li {
  color: var(--muted);
  line-height: 1.68;
}

.hero__body {
  max-width: 44ch;
  margin-top: 1rem;
  font-size: 1.04rem;
  overflow-wrap: break-word;
}

.hero__body {
  color: rgba(255, 255, 255, 0.82);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.hero__actions {
  margin-top: 1.35rem;
}

.lever-tags span {
  display: inline-flex;
  align-items: center;
  padding: 0.48rem 0.76rem;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--green-rgb), 0.14);
  background: rgba(var(--green-rgb), 0.08);
  max-width: 100%;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  padding: 0.92rem 1.18rem;
  border-radius: var(--radius);
  border: 0;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, rgba(var(--green-rgb), 0.98), rgba(var(--copper-rgb), 0.88));
  box-shadow: 0 18px 36px rgba(var(--green-rgb), 0.24);
}

.button--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(31, 33, 27, 0.08);
}

.story-card,
.product-shot,
.result-panel,
.teaser-form,
.team-card,
.contact-card,
.contact-form {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel-strong);
  box-shadow: 0 16px 44px rgba(31, 33, 27, 0.06);
}

.result-panel__eyebrow,
.levers-card span,
.contact-card span {
  display: block;
  margin-bottom: 0.42rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  padding: 1.35rem;
  border-radius: var(--radius-large);
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: var(--panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  animation: page-enter 760ms ease both;
}

.section-head {
  max-width: 64ch;
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 0.95;
}

.story-grid,
.demo-grid,
.tool-grid,
.team-grid,
.contact-grid {
  display: grid;
  gap: 1rem;
}

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

.story-card {
  padding: 1.1rem;
}

.story-card span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  align-items: center;
  justify-content: center;
  margin-bottom: 0.8rem;
  font-weight: 700;
  color: var(--green);
  background: rgba(var(--green-rgb), 0.12);
}

.story-card h3 {
  font-size: 1.5rem;
}

.demo-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.feature-list {
  margin: 0;
  padding-left: 1.1rem;
}

.feature-list li + li {
  margin-top: 0.75rem;
}

.product-shot {
  position: relative;
  display: grid;
  overflow: hidden;
}

.walkthrough-video {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  background: #08120f;
}

.video-shell__copy {
  padding: 1.3rem;
  max-width: 32rem;
}

.video-shell__copy strong {
  font-size: 1.9rem;
  color: var(--ink);
}

.video-shell__copy p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.tool-grid {
  grid-template-columns: 0.92fr 1.08fr;
  align-items: start;
}

.teaser-form,
.contact-form {
  padding: 1rem;
}

.field {
  display: block;
}

.field + .field {
  margin-top: 0.9rem;
}

.field span,
.field__head span {
  font-weight: 700;
}

.field__head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.45rem;
}

.field output {
  color: var(--green);
  font-variant-numeric: tabular-nums;
}

select,
.text-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.92rem 1rem;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  appearance: none;
}

textarea.text-input {
  resize: vertical;
  min-height: 120px;
}

select:focus,
.text-input:focus,
input[type="range"]:focus {
  outline: none;
}

input[type="range"] {
  width: 100%;
  appearance: none;
  height: 10px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(var(--green-rgb), 0.96) 0%, rgba(var(--green-rgb), 0.96) var(--fill, 50%), rgba(31, 33, 27, 0.12) var(--fill, 50%), rgba(31, 33, 27, 0.12) 100%);
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(var(--green-rgb), 0.94);
  box-shadow: 0 10px 20px rgba(var(--green-rgb), 0.18);
}

input[type="range"]::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid rgba(var(--green-rgb), 0.94);
  box-shadow: 0 10px 20px rgba(var(--green-rgb), 0.18);
}

.result-panel {
  padding: 1rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.96)),
    linear-gradient(135deg, rgba(var(--copper-rgb), 0.1), rgba(255, 255, 255, 0) 42%);
}

.result-panel__headline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
}

.result-panel__headline strong {
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
  font-size: clamp(2.8rem, 6vw, 5rem);
  letter-spacing: 0;
}

.result-panel__headline span {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--green);
}

.result-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.result-metrics article,
.levers-card {
  padding: 0.95rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
}

.result-metrics span,
.result-metrics strong {
  display: block;
}

.result-metrics span {
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.result-metrics strong {
  font-size: 1.4rem;
  letter-spacing: 0;
}

.levers-card {
  margin-top: 1rem;
}

.lever-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tool-footnote {
  margin: 0.95rem 0 0;
  font-size: 0.94rem;
}

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

.team-card {
  margin: 0;
  padding: 1.1rem 1rem;
  text-align: center;
}

.team-card img {
  width: min(176px, 72%);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 6px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(36, 34, 24, 0.12);
}

.team-card figcaption {
  display: grid;
  gap: 0.24rem;
  margin-top: 0.9rem;
}

.team-card strong {
  font-size: 1.2rem;
  letter-spacing: 0;
}

.team-card span {
  color: var(--green);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  font-weight: 700;
}

.team-card small {
  color: var(--muted);
  font-size: 0.96rem;
}

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

.contact-card,
.contact-form {
  padding: 1rem;
}

.contact-card--primary {
  background:
    linear-gradient(180deg, rgba(var(--green-rgb), 0.1), rgba(255, 255, 255, 0.96)),
    rgba(255, 255, 255, 0.96);
}

.contact-card strong {
  font-size: 1.6rem;
}

.contact-form {
  grid-column: 1 / -1;
}

.site-footer {
  display: flex;
  justify-content: flex-end;
  padding: 0.4rem 0 0;
}

.site-footer__link,
.legal-link {
  color: var(--muted);
  text-decoration: none;
  transition: color 180ms ease, transform 180ms ease;
}

.site-footer__link:hover,
.legal-link:hover {
  color: var(--green);
  transform: translateY(-1px);
}

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

.legal-shell {
  width: min(900px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 72px;
}

.legal-card {
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: var(--radius-large);
  border: 1px solid rgba(255, 255, 255, 0.64);
  background: var(--panel-strong);
  box-shadow: var(--shadow);
}

.legal-card h1,
.legal-card h2 {
  margin: 0;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", serif;
}

.legal-card h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 0.95;
}

.legal-card h2 {
  margin-top: 1.5rem;
  font-size: 1.45rem;
}

.legal-card p,
.legal-card li,
.legal-card address {
  color: var(--muted);
  line-height: 1.68;
}

.legal-card address {
  font-style: normal;
}

.legal-card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.2rem;
}

@keyframes page-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1160px) {
  .demo-grid,
  .tool-grid {
    grid-template-columns: 1fr;
  }

  .story-grid,
  .team-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-height: 760px) and (min-width: 861px) {
  .hero {
    min-height: 390px;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 4.8vw, 3.8rem);
  }

}

@media (max-width: 860px) {
  .shell {
    width: calc(100vw - 24px);
    max-width: 1320px;
  }

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

  .topbar__actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero h1 {
    font-size: 3.5rem;
  }

  .story-grid,
  .team-grid,
  .contact-grid,
  .result-metrics {
    grid-template-columns: 1fr;
  }

  .walkthrough-video {
    min-height: 280px;
  }
}

@media (max-width: 520px) {
  .topnav {
    width: 100%;
    gap: 0.5rem;
  }

  .topnav a {
    padding: 0.5rem 0.64rem;
  }

  .hero,
  .panel {
    padding: 1rem;
    border-radius: var(--radius-large);
  }

  .hero {
    min-height: auto;
    padding-block: 1.2rem 1.4rem;
  }

  .hero h1 {
    max-width: 10.5ch;
    font-size: 2.55rem;
  }

  .hero__copy {
    width: calc(100vw - 56px);
    max-width: calc(100vw - 56px);
  }

  .hero__body {
    width: 100%;
    max-width: 28ch;
    font-size: 0.98rem;
  }

  .button {
    width: 100%;
    min-width: 0;
  }
}
