:root {
  --bg: #f7f8f5;
  --ink: #17211d;
  --muted: #65706b;
  --line: #dfe5dd;
  --surface: #ffffff;
  --soft: #edf1ea;
  --accent: #245f46;
  --accent-dark: #163d2d;
  --gold: #b48748;
  --shadow: 0 24px 70px rgba(23, 33, 29, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 0 5vw;
  background: rgba(247, 248, 245, 0.92);
  border-bottom: 1px solid rgba(223, 229, 221, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.brand-logo {
  width: 154px;
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 620;
}

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

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 720;
  border: 1px solid transparent;
}

.header-cta,
.button.primary {
  color: #ffffff;
  background: var(--accent);
}

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

.button.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.button.disabled {
  cursor: default;
  color: var(--muted);
  background: var(--soft);
  border-color: var(--line);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: 54px;
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: 78px 5vw 96px;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  font-size: clamp(44px, 5.4vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 18px;
  line-height: 1.2;
}

.hero p,
.section-copy p,
.intro-copy p,
.pricing-preview p,
.security-panel p {
  color: var(--muted);
  font-size: 18px;
}

.hero-actions,
.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.media-frame {
  min-height: 430px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(36, 95, 70, 0.12), rgba(180, 135, 72, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
}

.media-frame-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 392px;
  padding: 42px;
  text-align: center;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.media-logo {
  width: min(260px, 72vw);
  margin-bottom: 28px;
}

.media-frame-inner p {
  margin-bottom: 8px;
  font-size: 22px;
  font-weight: 760;
}

.media-frame-inner span {
  color: var(--muted);
  font-size: 15px;
}

.section {
  padding: 92px 5vw;
}

.intro,
.split,
.function-section,
.pricing-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: start;
  border-top: 1px solid var(--line);
}

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

.product-map article,
.automation-grid article {
  display: grid;
  gap: 8px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.product-map strong,
.automation-grid strong {
  font-size: 16px;
}

.product-map span,
.automation-grid span {
  color: var(--muted);
}

.feature-list {
  display: grid;
  gap: 14px;
}

.feature-list article,
.integration-row article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.feature-list p,
.integration-row p {
  margin-bottom: 0;
  color: var(--muted);
}

.function-section {
  align-items: center;
}

.function-section.reverse .function-copy {
  order: 2;
}

.function-section.reverse .function-media {
  order: 1;
}

.function-copy {
  max-width: 690px;
}

.section-number {
  display: block;
  margin-bottom: 18px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 820;
  letter-spacing: 0.08em;
}

.function-copy ul {
  display: grid;
  gap: 10px;
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.function-media {
  align-self: stretch;
}

.media-placeholder {
  position: sticky;
  top: 104px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 420px;
  padding: 28px;
  border: 1px dashed rgba(36, 95, 70, 0.36);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(36, 95, 70, 0.08), rgba(180, 135, 72, 0.08)),
    var(--surface);
  box-shadow: 0 18px 48px rgba(23, 33, 29, 0.08);
}

.media-placeholder::before {
  content: "";
  position: absolute;
  inset: 28px 28px 96px;
  border: 1px solid rgba(23, 33, 29, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(rgba(23, 33, 29, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 33, 29, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: 0.7;
}

.media-placeholder strong,
.media-placeholder span {
  position: relative;
  z-index: 1;
}

.media-placeholder strong {
  margin-bottom: 6px;
  font-size: 18px;
}

.media-placeholder span {
  color: var(--muted);
}

.automations {
  border-top: 1px solid var(--line);
}

.automations .section-copy {
  max-width: 820px;
  margin-bottom: 34px;
}

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

.integrations {
  background: #17211d;
  color: #ffffff;
}

.integrations .section-copy {
  max-width: 780px;
  margin-bottom: 38px;
}

.integrations .section-copy p {
  color: rgba(255, 255, 255, 0.72);
}

.integration-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.integration-row article {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.integration-row img {
  width: 34px;
  height: 34px;
  margin-bottom: 22px;
}

.integration-row p {
  color: rgba(255, 255, 255, 0.68);
}

.security {
  background: var(--soft);
}

.security-panel {
  max-width: 860px;
}

.policy-links a {
  color: var(--accent);
  font-weight: 760;
}

.pricing-preview {
  align-items: center;
}

.pricing-preview .button {
  justify-self: end;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 42px 5vw;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  margin: 6px 0 0;
}

.site-footer nav {
  display: flex;
  gap: 20px;
  font-weight: 650;
}

.page-main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 84px 5vw 110px;
}

.page-main h1 {
  max-width: 860px;
}

.page-main > p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.content-card {
  margin-top: 36px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.content-card h2 {
  margin-top: 28px;
  font-size: 28px;
}

.content-card h2:first-child {
  margin-top: 0;
}

.content-card p,
.content-card li {
  color: var(--muted);
}

.content-card a {
  color: var(--accent);
  font-weight: 720;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
}

.plan {
  display: flex;
  flex-direction: column;
  min-height: 360px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.plan.featured {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.plan .price {
  margin: 10px 0 18px;
  font-size: 30px;
  font-weight: 820;
}

.plan ul {
  padding-left: 20px;
  color: var(--muted);
}

.plan .button {
  margin-top: auto;
}

@media (max-width: 920px) {
  .site-header {
    flex-wrap: wrap;
    min-height: auto;
    padding-top: 16px;
    padding-bottom: 16px;
  }

  .nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 18px;
  }

  .hero,
  .intro,
  .split,
  .function-section,
  .pricing-preview {
    grid-template-columns: 1fr;
  }

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

  .function-section.reverse .function-copy,
  .function-section.reverse .function-media {
    order: initial;
  }

  .media-placeholder {
    position: relative;
    top: auto;
    min-height: 340px;
  }

  .hero {
    min-height: auto;
    padding-top: 54px;
  }

  .pricing-preview .button {
    justify-self: start;
  }

  .integration-row,
  .product-map,
  .automation-grid,
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .header-cta {
    width: 100%;
  }

  h1 {
    font-size: 42px;
  }

  .media-frame {
    min-height: 320px;
  }

  .section {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .site-footer {
    flex-direction: column;
  }

  .site-footer nav {
    flex-wrap: wrap;
  }

  .content-card {
    padding: 24px;
  }
}
