:root {
  --ink: #111827;
  --muted: #5b6472;
  --line: #dfe4ea;
  --paper: #f7f8f6;
  --white: #ffffff;
  --green: #2f6b4f;
  --green-dark: #163f31;
  --copper: #b45d3a;
  --steel: #36556c;
  --shadow: 0 24px 70px rgba(17, 24, 39, 0.18);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

a {
  color: inherit;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 52px);
  color: var(--white);
  transition: background 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.compact {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 30px rgba(17, 24, 39, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: currentColor;
  font-size: 0.78rem;
  opacity: 0.76;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 28px);
  font-size: 0.95rem;
  font-weight: 700;
}

.site-nav a {
  text-decoration: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid currentColor;
  border-radius: 8px;
  color: inherit;
  background: transparent;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 92vh;
  color: var(--white);
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-overlay {
  z-index: 1;
  background: linear-gradient(90deg, rgba(10, 18, 24, 0.86), rgba(10, 18, 24, 0.42) 48%, rgba(10, 18, 24, 0.18));
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  padding: clamp(132px, 18vh, 190px) 0 70px;
  margin-left: clamp(18px, 7vw, 90px);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #f0b08e;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 6vw, 5.6rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.hero-text {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.4vw, 1.2rem);
}

.hero-actions,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: var(--white);
  background: var(--green);
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 780px;
  margin: 54px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.hero-stats dt {
  font-weight: 900;
}

.hero-stats dd {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.76);
}

.section,
.cta,
.site-footer {
  width: min(var(--max), calc(100% - 36px));
  margin: 0 auto;
}

.section {
  padding: clamp(64px, 10vw, 118px) 0;
}

.intro,
.product-band,
.split,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 6vw, 80px);
  align-items: start;
}

.prose {
  color: var(--muted);
  font-size: 1.08rem;
}

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

.feature,
.work-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 16px 34px rgba(17, 24, 39, 0.05);
}

.feature-number {
  display: inline-block;
  margin-bottom: 46px;
  color: var(--steel);
  font-weight: 900;
}

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

.timeline {
  display: grid;
  gap: 22px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 16px;
}

.timeline-item span {
  width: 16px;
  height: 16px;
  margin-top: 7px;
  border: 4px solid var(--green);
  border-radius: 50%;
}

.timeline-item p,
.work-grid p,
.contact p {
  color: var(--muted);
}

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

.work-grid article {
  min-height: 180px;
  background: linear-gradient(180deg, #ffffff, #eef3f1);
}

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green-dark);
  box-shadow: var(--shadow);
}

.cta h2 {
  max-width: 840px;
  margin-bottom: 0;
  font-size: clamp(1.6rem, 3vw, 3rem);
}

.contact address {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-left: 4px solid var(--copper);
  background: var(--white);
  font-style: normal;
  font-weight: 800;
}

.contact address a {
  text-decoration: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.94rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.configurator-shell {
  min-height: 100vh;
  padding: 124px clamp(18px, 5vw, 60px) 60px;
}

.configurator-panel {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(320px, 1.2fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  width: min(var(--max), 100%);
  margin: 0 auto;
}

.mock-viewer {
  position: relative;
  min-height: 520px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle at 60% 40%, #ffffff, #dfe8eb 55%, #b9c5c9);
  box-shadow: var(--shadow);
}

.viewer-toolbar,
.option-list {
  position: absolute;
  display: flex;
  gap: 10px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
  backdrop-filter: blur(14px);
}

.viewer-toolbar {
  top: 18px;
  left: 18px;
}

.viewer-toolbar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--steel);
}

.house-model {
  position: absolute;
  inset: 25% 16% 24%;
}

.roof,
.body,
.garage {
  position: absolute;
  display: block;
}

.roof {
  left: 7%;
  top: 4%;
  width: 68%;
  height: 32%;
  transform: skewX(-18deg);
  background: var(--copper);
}

.body {
  left: 10%;
  top: 34%;
  width: 58%;
  height: 48%;
  background: #f4f1ea;
  border: 8px solid #d6d1c7;
}

.garage {
  right: 9%;
  bottom: 15%;
  width: 34%;
  height: 34%;
  background: #c9d3d6;
  border: 8px solid #91a2aa;
}

.option-list {
  right: 18px;
  bottom: 18px;
  flex-wrap: wrap;
  width: min(310px, calc(100% - 36px));
}

.option-list span {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  font-weight: 800;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 8px);
    right: 18px;
    display: none;
    min-width: 230px;
    padding: 16px;
    border-radius: 8px;
    color: var(--ink);
    background: var(--white);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open,
  .site-nav.always-visible {
    display: grid;
  }

  .site-header.compact .site-nav.always-visible {
    position: static;
    display: flex;
    min-width: auto;
    padding: 0;
    color: inherit;
    background: transparent;
    box-shadow: none;
  }

  .hero {
    min-height: 840px;
  }

  .hero-content {
    padding-top: 132px;
  }

  .hero-stats,
  .intro,
  .product-band,
  .split,
  .contact,
  .configurator-panel {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 620px) {
  .site-header {
    padding: 14px 18px;
  }

  .brand small {
    display: none;
  }

  .hero-content {
    margin-left: 18px;
  }

  .hero-stats,
  .feature-grid,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .feature {
    min-height: 0;
  }

  .feature-number {
    margin-bottom: 22px;
  }

  .mock-viewer {
    min-height: 390px;
  }
}
