:root {
  color-scheme: light;
  --bg: #f7faf8;
  --bg-strong: #ffffff;
  --ink: #17201c;
  --muted: #617069;
  --line: #dce6e1;
  --teal: #0f8f83;
  --blue: #2f65d8;
  --amber: #d89124;
  --graphite: #24312d;
  --shadow: 0 24px 70px rgba(23, 32, 28, 0.14);
  --radius: 8px;
  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;
  background: var(--bg);
  color: var(--ink);
  letter-spacing: 0;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(247, 250, 248, 0.88);
  border-bottom: 1px solid rgba(220, 230, 225, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 760;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--graphite);
  color: #ffffff;
  font-size: 15px;
}

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

.nav a:hover,
.text-link:hover,
.link-button:hover {
  color: var(--teal);
}

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

.link-button {
  color: var(--muted);
  font-weight: 680;
  font-size: 14px;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  padding: 0 18px;
  border: 1px solid transparent;
  font-weight: 760;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
}

.primary-button {
  background: var(--graphite);
  color: #fff;
  box-shadow: 0 14px 30px rgba(36, 49, 45, 0.22);
}

.primary-button:hover {
  background: #111916;
}

.primary-button.small {
  min-height: 38px;
  padding-inline: 14px;
}

.secondary-button {
  background: #ffffff;
  color: var(--graphite);
  border-color: var(--line);
}

.secondary-button:hover {
  border-color: #aabcb3;
}

.menu-button {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
}

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

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

.eyebrow {
  margin: 0 0 14px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 820;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.2;
}

.hero-lede,
.section-heading p,
.split-section > div > p,
.calculator-section > div > p,
.contact-section > div > p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0;
}

.geo-banner {
  margin-top: 22px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 143, 131, 0.26);
  border-radius: var(--radius);
  background: #edf7f4;
  color: var(--graphite);
  font-size: 14px;
  font-weight: 680;
  line-height: 1.45;
}

.geo-banner[hidden] {
  display: none;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 26px 0 0;
  border-top: 1px solid var(--line);
}

.hero-metrics div {
  min-width: 0;
}

.hero-metrics dt {
  font-size: 28px;
  font-weight: 820;
}

.hero-metrics dd {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-visual::after {
  position: absolute;
  right: 24px;
  bottom: -22px;
  width: min(260px, 45%);
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 20px 50px rgba(23, 32, 28, 0.12);
  color: var(--graphite);
  content: "Affordable SaaS + private deployment";
  font-weight: 780;
  backdrop-filter: blur(14px);
}

.logo-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  padding: 22px clamp(18px, 5vw, 72px) 44px;
}

.logo-strip span {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.section,
.split-section,
.calculator-section,
.proof-section,
.contact-section {
  padding: clamp(68px, 9vw, 112px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin: 0 auto 42px;
  text-align: center;
}

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

.feature-card,
.product-card,
.price-card,
.quote-card,
.calculator,
.contact-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 50px rgba(23, 32, 28, 0.06);
}

.feature-card {
  padding: 24px;
}

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

.product-card {
  display: flex;
  min-height: 420px;
  flex-direction: column;
  padding: 28px;
}

.product-card.highlighted {
  border-color: rgba(15, 143, 131, 0.45);
  box-shadow: var(--shadow);
}

.product-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 auto;
  padding: 0;
  list-style: none;
  color: var(--graphite);
}

.product-card li::before {
  margin-right: 8px;
  color: var(--teal);
  content: "✓";
}

.product-card a {
  margin-top: 24px;
}

.feature-card p,
.product-card p,
.price-card p,
.timeline p,
.solution-list p,
.quote-card span,
.site-footer p,
.faq-item p {
  color: var(--muted);
  line-height: 1.55;
}

.icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 8px;
  background: #e8f4f1;
  color: var(--teal);
  font-weight: 800;
}

.status-pill {
  width: fit-content;
  margin: -6px 0 16px;
  padding: 6px 9px;
  border: 1px solid rgba(15, 143, 131, 0.24);
  border-radius: 999px;
  background: #edf7f4;
  color: var(--teal);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.status-pill.planned {
  border-color: rgba(216, 145, 36, 0.28);
  background: #fff6e8;
  color: #9d6515;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(420px, 1.15fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--graphite);
  font-weight: 780;
}

.solution-list {
  display: grid;
  gap: 12px;
}

.solution-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
}

.solution-list span {
  color: var(--amber);
  font-weight: 820;
}

.muted {
  background: #eef5f2;
}

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

.timeline article {
  padding: 28px;
  border-left: 3px solid var(--teal);
  background: #fff;
  border-radius: var(--radius);
}

.timeline span,
.badge {
  display: inline-block;
  margin-bottom: 20px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.calculator-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.72fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.calculator {
  display: grid;
  gap: 22px;
  padding: 28px;
}

.calculator label,
.contact-form label {
  display: grid;
  min-width: 0;
  gap: 10px;
  color: var(--graphite);
  font-weight: 730;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
}

input[type="email"],
textarea {
  padding: 13px 14px;
}

input[type="range"] {
  max-width: 100%;
  accent-color: var(--teal);
}

textarea {
  min-height: 128px;
  resize: vertical;
}

.estimate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: var(--radius);
  background: #edf7f4;
}

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

.estimate strong {
  font-size: 28px;
}

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

.price-card {
  position: relative;
  display: flex;
  min-height: 430px;
  flex-direction: column;
  padding: 28px;
}

.price-card.highlighted {
  border-color: rgba(15, 143, 131, 0.45);
  box-shadow: var(--shadow);
}

.price {
  margin-bottom: 14px;
  font-size: 42px;
  font-weight: 850;
}

.price span {
  color: var(--muted);
  font-size: 17px;
  font-weight: 760;
}

.price-card ul {
  display: grid;
  gap: 12px;
  margin: 22px 0 auto;
  padding: 0;
  list-style: none;
  color: var(--graphite);
}

.price-card li::before {
  margin-right: 8px;
  color: var(--teal);
  content: "✓";
}

.price-card a {
  margin-top: 26px;
}

.pay-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}

.pay-actions a {
  margin-top: 0;
}

.payment-link[href*="replace"],
.payment-link[href*="REPLACE"] {
  border-style: dashed;
}

code {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--graphite);
  font-size: 0.92em;
}

.proof-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  gap: 18px;
  align-items: stretch;
}

.quote-card {
  padding: 34px;
}

.quote-card p {
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.16;
}

.proof-stats {
  display: grid;
  gap: 12px;
}

.proof-stats div {
  display: grid;
  align-content: center;
  min-height: 128px;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--graphite);
  color: #fff;
}

.proof-stats strong {
  font-size: 36px;
}

.proof-stats span {
  color: rgba(255, 255, 255, 0.72);
}

.faq-list {
  display: grid;
  max-width: 900px;
  margin: 0 auto;
  gap: 12px;
}

.faq-item {
  width: 100%;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.faq-item span {
  display: block;
  font-weight: 790;
  font-size: 18px;
}

.faq-item p {
  display: none;
  margin: 12px 0 0;
}

.faq-item.open p {
  display: block;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
  background: #17201c;
  color: #fff;
}

.contact-section .eyebrow {
  color: #7ed8c8;
}

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

.contact-form {
  padding: 28px;
  color: var(--ink);
}

.form-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-weight: 680;
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav,
  .header-actions {
    display: none;
  }

  .menu-button {
    display: block;
    justify-self: end;
  }

  body.menu-open .nav {
    position: absolute;
    top: 68px;
    right: 18px;
    left: 18px;
    display: grid;
    justify-content: stretch;
    gap: 0;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

  body.menu-open .nav a {
    padding: 14px;
  }

  .hero,
  .split-section,
  .calculator-section,
  .proof-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual img {
    min-height: 320px;
  }

  .feature-grid,
  .product-grid,
  .pricing-grid,
  .timeline {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding-inline: 16px;
  }

  h1 {
    font-size: 43px;
  }

  .hero-metrics,
    .feature-grid,
    .product-grid,
    .pricing-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .site-footer,
  .site-footer nav {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button {
    width: 100%;
  }

  .solution-list article {
    grid-template-columns: 1fr;
  }

  .hero-visual::after {
    right: 12px;
    bottom: -16px;
    width: 72%;
  }
}
