:root {
  --ink: #14211f;
  --muted: #5d6965;
  --line: #d7ddd8;
  --paper: #f7f5ee;
  --white: #ffffff;
  --green: #2f6b55;
  --green-dark: #183d34;
  --blue: #315f7a;
  --gold: #b88437;
  --rust: #974d35;
  --shadow: 0 18px 50px rgba(20, 33, 31, 0.16);
  --heading-copy-gap: 18px;
  --heading-block-gap: clamp(30px, 4vw, 42px);
  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(--paper);
  color: var(--ink);
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(247, 245, 238, 0.9);
  border-bottom: 1px solid rgba(20, 33, 31, 0.12);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.hero-actions,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 760;
  letter-spacing: 0;
}

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

.nav-links {
  justify-content: center;
  gap: clamp(18px, 3vw, 34px);
  color: #394642;
  font-size: 0.94rem;
}

.nav-links a:hover,
.offer-card a:hover {
  color: var(--green);
}

.header-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-weight: 700;
}

.header-cta {
  border: 1px solid var(--green-dark);
  color: var(--green-dark);
}

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 78vh;
  padding: 112px clamp(20px, 6vw, 86px) 6vh;
  background-image: url("assets/qedem-hero.png");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(9, 18, 17, 0.46) 0%, rgba(9, 18, 17, 0.2) 42%, rgba(9, 18, 17, 0.72) 100%),
    linear-gradient(0deg, rgba(9, 18, 17, 0.64), rgba(9, 18, 17, 0.06) 56%);
}

.hero-content {
  width: min(720px, 100%);
  margin-left: auto;
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 13px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.2rem, 10vw, 8rem);
  line-height: 0.86;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 640px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.08rem, 2vw, 1.32rem);
  line-height: 1.55;
}

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

.button.primary {
  background: var(--gold);
  color: #15110a;
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.62);
  color: var(--white);
}

.trust-band {
  padding: 18px clamp(20px, 6vw, 86px);
  background: var(--green-dark);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 650;
}

.trust-band p {
  width: min(1120px, 100%);
  margin: 0 auto;
}

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(66px, 9vw, 116px) 0;
}

.intro,
.split,
.model-layer,
.operator-proof,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: start;
}

h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2rem, 5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin: 18px 0 10px;
  font-size: 1.18rem;
  letter-spacing: 0;
}

p {
  line-height: 1.65;
}

.intro > p,
.model-copy p,
.operator-proof > p,
.split > div p,
.contact p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.split h2 + p,
.contact h2 + p {
  margin-top: var(--heading-copy-gap);
}

.model-layer {
  width: 100%;
  padding-right: clamp(20px, 6vw, 86px);
  padding-left: clamp(20px, 6vw, 86px);
  background: #ffffff;
}

.model-layer > div {
  width: min(560px, 100%);
}

.model-copy {
  display: grid;
  gap: 18px;
}

.section-heading {
  margin-bottom: var(--heading-block-gap);
}

.proof > div:first-child {
  margin-bottom: var(--heading-block-gap);
}

.offer-grid,
.proof-grid,
.system-grid {
  display: grid;
  gap: 18px;
}

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

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

.database-system {
  padding-top: clamp(58px, 8vw, 92px);
}

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

.system-grid article {
  min-height: 280px;
  padding: 26px;
  background: var(--green-dark);
  color: var(--white);
  border-radius: 8px;
}

.system-grid svg {
  width: 34px;
  height: 34px;
  color: var(--gold);
}

.system-grid p {
  color: rgba(255, 255, 255, 0.76);
}

.offer-card,
.proof-grid > div {
  min-height: 310px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.offer-card.featured {
  background: var(--green-dark);
  color: var(--white);
  box-shadow: var(--shadow);
}

.offer-card svg,
.proof-grid svg {
  width: 34px;
  height: 34px;
  color: var(--green);
}

.offer-card.featured svg,
.offer-card.featured p {
  color: rgba(255, 255, 255, 0.84);
}

.offer-card p,
.proof-grid p {
  color: var(--muted);
}

.offer-card a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--green-dark);
  font-weight: 800;
}

.offer-card.featured a {
  color: var(--gold);
}

.timeline {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: item;
}

.timeline li {
  display: grid;
  grid-template-columns: 58px 120px 1fr;
  align-items: start;
  gap: 18px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}

.timeline span {
  color: var(--rust);
  font-weight: 850;
}

.timeline strong {
  font-size: 1.02rem;
}

.timeline p {
  margin: 0;
  color: var(--muted);
}

.business-types {
  width: 100%;
  padding-right: clamp(20px, 6vw, 86px);
  padding-left: clamp(20px, 6vw, 86px);
  background: #e8ece7;
}

.business-types .section-heading,
.type-list {
  width: min(1180px, 100%);
  margin-right: auto;
  margin-left: auto;
}

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

.type-list span {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 0 18px;
  background: var(--white);
  border-left: 4px solid var(--blue);
  border-radius: 8px;
  font-weight: 760;
}

.proof-grid > div:nth-child(2) svg {
  color: var(--blue);
}

.proof-grid > div:nth-child(3) svg {
  color: var(--rust);
}

.proof-grid > div:nth-child(4) svg {
  color: var(--gold);
}

.contact {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 54px;
  padding: clamp(34px, 6vw, 64px);
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  align-items: center;
}

.contact h2 {
  font-size: clamp(1.9rem, 4vw, 3.25rem);
  line-height: 1.06;
}

.contact p {
  color: rgba(255, 255, 255, 0.76);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 760;
}

.contact-details a:hover {
  color: var(--gold);
}

.contact .button {
  justify-self: end;
  min-width: 180px;
}

.site-footer {
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(20px, 6vw, 86px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-logo {
  display: block;
  width: 134px;
  height: auto;
}

@media (max-width: 860px) {
  .site-header {
    grid-template-columns: auto auto;
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .hero {
    min-height: 76vh;
    padding-top: 110px;
    background-position: 36% center;
  }

  .hero-content {
    margin-left: 0;
  }

  .hero-overlay {
    background:
      linear-gradient(0deg, rgba(9, 18, 17, 0.82), rgba(9, 18, 17, 0.14) 68%),
      linear-gradient(90deg, rgba(9, 18, 17, 0.42), rgba(9, 18, 17, 0.34));
  }

  .intro,
  .split,
  .model-layer,
  .operator-proof,
  .contact,
  .offer-grid,
  .proof-grid,
  .system-grid,
  .type-list {
    grid-template-columns: 1fr;
  }

  .offer-card,
  .system-grid article,
  .proof-grid > div {
    min-height: auto;
  }

  .timeline li {
    grid-template-columns: 48px 1fr;
  }

  .timeline p {
    grid-column: 2;
  }

  .contact .button {
    justify-self: start;
  }

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

@media (max-width: 520px) {
  .site-header {
    min-height: 66px;
    padding: 12px 16px;
  }

  .header-cta {
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.88rem;
  }

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

  .hero-copy {
    font-size: 1rem;
  }

  .button {
    width: 100%;
  }

  .trust-band,
  .model-layer,
  .business-types,
  .site-footer {
    padding-right: 16px;
    padding-left: 16px;
  }

  .section,
  .contact {
    width: calc(100% - 32px);
  }
}
