:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-soft: #eef4f2;
  --ink: #14211d;
  --muted: #64736d;
  --line: #d8dfdb;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #f4b860;
  --gold-strong: #facc15;
  --shadow: 0 24px 64px rgba(20, 33, 29, 0.1);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(15, 118, 110, 0.1), transparent 34%),
    linear-gradient(320deg, rgba(244, 184, 96, 0.18), transparent 38%),
    var(--bg);
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(20, 33, 29, 0.08);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  width: 58px;
  height: 58px;
  overflow: visible;
  flex: 0 0 auto;
  transform: translateY(-6px);
}

.brand-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  object-fit: contain;
  transform: translate(-50%, -50%);
}

.brand-logo-hover {
  opacity: 0;
}

.brand-mark:hover .brand-logo-primary {
  animation: logo-hide-for-hover 1s ease both;
}

.brand-mark:hover .brand-logo-hover {
  animation: logo-hover-peek 1s ease both;
}

@keyframes logo-hide-for-hover {
  0%,
  100% {
    opacity: 1;
  }

  14%,
  86% {
    opacity: 0;
  }
}

@keyframes logo-hover-peek {
  0%,
  100% {
    opacity: 0;
  }

  14%,
  86% {
    opacity: 1;
  }
}

.brand-wordmark {
  width: clamp(210px, 24vw, 360px);
  max-width: 100%;
  height: auto;
  display: block;
  transform: translateX(clamp(36px, 8vw, 116px));
}

.header-actions,
.hero-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.login-link,
.primary-button,
.secondary-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.primary-button {
  color: #ffffff;
  border-color: var(--accent);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.2);
}

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

.secondary-button,
.login-link {
  color: var(--accent-dark);
  background: var(--surface);
}

.secondary-button:hover,
.login-link:hover {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.08);
}

.large {
  min-height: 48px;
  padding: 0 22px;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-section {
  min-height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 52px 0 70px;
}

.hero-copy h1,
.section-heading h2,
.split-section h2,
.final-cta h2 {
  margin: 0;
  max-width: 820px;
  letter-spacing: 0;
}

.hero-copy h1 {
  font-size: clamp(2.4rem, 6vw, 5.7rem);
  line-height: 0.96;
  text-wrap: balance;
}

.hero-subtitle {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--accent-dark);
  font-size: clamp(1.45rem, 3vw, 2.4rem);
  font-weight: 850;
  line-height: 1.12;
  text-wrap: balance;
}

.lead {
  max-width: 720px;
  margin: 24px 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.proof-row span {
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  font-weight: 800;
}

.kicker {
  margin: 0 0 12px;
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-system {
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(247, 249, 248, 0.94)),
    var(--surface);
  box-shadow: var(--shadow);
}

.system-line {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
}

.system-line:last-child {
  border-bottom: 0;
}

.system-line span {
  font-weight: 780;
}

.system-line strong {
  color: var(--accent-dark);
  font-size: 0.86rem;
}

.pdca-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
  background: var(--surface-soft);
}

.pdca-strip span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: 8px;
  color: var(--accent-dark);
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.14), rgba(15, 118, 110, 0.06));
  font-size: 1.35rem;
  font-weight: 900;
}

.content-band,
.split-section,
.pricing-section,
.final-cta {
  padding: clamp(44px, 7vw, 84px) 0;
  border-top: 1px solid rgba(20, 33, 29, 0.1);
}

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

.section-heading h2,
.split-section h2,
.final-cta h2 {
  font-size: clamp(1.9rem, 3.5vw, 3.2rem);
  line-height: 1.05;
}

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

.feature-grid article {
  min-height: 210px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  transition:
    border-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.feature-grid article:hover {
  border-color: rgba(15, 118, 110, 0.24);
  box-shadow: 0 16px 36px rgba(20, 33, 29, 0.08);
  transform: translateY(-2px);
}

.feature-grid h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
}

.feature-grid p,
.split-section p,
.price-box p,
.site-footer span {
  color: var(--muted);
  line-height: 1.55;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(280px, 0.55fr);
  gap: clamp(28px, 5vw, 70px);
}

.principles {
  display: flex;
  align-content: flex-start;
  flex-wrap: wrap;
  gap: 10px;
}

.principles span {
  padding: 10px 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  color: var(--accent-dark);
  background: rgba(255, 255, 255, 0.72);
  font-weight: 840;
}

.price-box {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.08), rgba(244, 184, 96, 0.12)),
    var(--surface);
  box-shadow: var(--shadow);
}

.price-box strong {
  display: block;
  color: var(--accent-dark);
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1;
}

.price-box span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 760;
}

.final-cta {
  text-align: center;
  padding-inline: 18px;
}

.final-cta h2 {
  margin-inline: auto;
  margin-bottom: 22px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 28px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(20, 33, 29, 0.1);
  background: #111827;
  color: #ffffff;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer a {
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
}

.contact-dialog {
  width: min(540px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
}

.contact-dialog::backdrop {
  background: rgba(17, 24, 39, 0.58);
}

.contact-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.dialog-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.dialog-heading h2 {
  margin: 0;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: var(--surface-soft);
  cursor: pointer;
  font-size: 1.35rem;
}

.contact-card label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 780;
}

.honeypot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-card input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.form-status {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 0.92rem;
  font-weight: 760;
}

.form-status.success {
  color: var(--accent-dark);
  border-color: rgba(15, 118, 110, 0.24);
  background: rgba(15, 118, 110, 0.08);
}

.form-status.error {
  color: #991b1b;
  border-color: rgba(153, 27, 27, 0.2);
  background: rgba(153, 27, 27, 0.08);
}

@media (max-width: 920px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-section,
  .split-section,
  .price-box {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 620px) {
  .brand-wordmark {
    width: min(250px, 58vw);
  }

  .header-actions {
    width: 100%;
  }

  .header-actions > * {
    flex: 1 1 150px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }
}
