:root {
  color-scheme: light;
  --ink: #151817;
  --muted: #5a6460;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #ded9ce;
  --green: #265f4f;
  --sage: #d9eadc;
  --gold: #c88933;
  --terracotta: #a94f33;
  --shadow: 0 18px 60px rgba(28, 32, 30, 0.14);
}

* {
  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(--paper);
}

a {
  color: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(17, 20, 19, 0.7);
  color: #fff;
  backdrop-filter: blur(18px);
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: var(--green);
  font-size: 12px;
  letter-spacing: 0;
}

.nav-links {
  gap: clamp(14px, 3vw, 32px);
  font-size: 14px;
}

.nav-links a {
  text-decoration: none;
  opacity: 0.88;
}

.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 128px clamp(18px, 5vw, 72px) 72px;
  color: #fff;
}

.hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(9, 13, 12, 0.92) 0%, rgba(9, 13, 12, 0.64) 46%, rgba(9, 13, 12, 0.16) 100%),
    linear-gradient(0deg, rgba(9, 13, 12, 0.6) 0%, rgba(9, 13, 12, 0) 42%);
}

.hero-copy {
  position: relative;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  font-size: clamp(54px, 8vw, 112px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.98;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 20px;
  letter-spacing: 0;
}

.hero-lede {
  max-width: 650px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(19px, 2.2vw, 26px);
  line-height: 1.42;
}

.hero-actions,
.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  padding: 13px 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}

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

.button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.button.primary {
  color: #151817;
  background: #f0b15a;
}

.button.secondary {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.button.dark {
  color: #fff;
  background: var(--green);
}

.proof-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}

.proof-band div {
  min-height: 112px;
  padding: 28px clamp(18px, 4vw, 46px);
  background: #f4f1e9;
}

.proof-band strong,
.proof-band span {
  display: block;
}

.proof-band strong {
  margin-bottom: 8px;
  font-size: 18px;
}

.proof-band span,
.section p,
.demo-content p,
.footer {
  color: var(--muted);
  line-height: 1.55;
}

.section {
  padding: clamp(64px, 9vw, 128px) clamp(18px, 5vw, 72px);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(32px, 6vw, 84px);
  align-items: start;
}

.section-copy {
  max-width: 620px;
}

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

.feature-grid article,
.demo-content article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--panel);
  box-shadow: 0 10px 30px rgba(20, 26, 23, 0.06);
}

.feature-icon {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--terracotta);
  font-size: 13px;
  font-weight: 900;
}

.demo-showcase {
  padding: clamp(56px, 8vw, 104px) clamp(18px, 5vw, 72px);
  background: #18211d;
}

.demo-shell {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px clamp(18px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.demo-topbar a,
.text-link {
  color: var(--green);
  font-weight: 800;
}

.demo-hero {
  min-height: 420px;
  display: grid;
  align-items: end;
  padding: clamp(34px, 7vw, 80px);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.76) 48%, rgba(255, 255, 255, 0.08) 100%),
    url("/assets/roofing-hero.jpg") center / cover;
}

.demo-hero > div {
  max-width: 620px;
}

.demo-content {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: clamp(18px, 4vw, 34px);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 0.72fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}

.lead-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(18px, 4vw, 28px);
  background: #fff;
  box-shadow: var(--shadow);
}

.lead-form label {
  display: grid;
  gap: 7px;
  color: #303633;
  font-size: 13px;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cfc8bb;
  border-radius: 8px;
  padding: 13px 13px;
  color: var(--ink);
  background: #fffdfa;
  font: inherit;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.form-status {
  min-height: 22px;
  grid-column: 1 / -1;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.estimate-band {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 22px;
  align-items: center;
  padding: clamp(32px, 5vw, 56px) clamp(18px, 5vw, 72px);
  background: var(--sage);
}

.estimate-band h2 {
  margin-bottom: 0;
}

.lead-form.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  box-shadow: none;
}

.lead-form.compact .form-status {
  grid-column: 1 / -1;
}

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

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

  .proof-band,
  .split,
  .demo-content,
  .contact-section,
  .estimate-band,
  .lead-form.compact {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 92vh;
  }

  .hero-actions,
  .demo-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 520px) {
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }

  h1 {
    font-size: 48px;
  }

  .demo-hero {
    min-height: 560px;
    background:
      linear-gradient(0deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.86) 62%, rgba(255, 255, 255, 0.22) 100%),
      url("/assets/roofing-hero.jpg") center / cover;
  }
}
