:root {
  --ink: #09213f;
  --muted: #4b6584;
  --paper: #f7fbff;
  --sun: #ffd23f;
  --sun-soft: #fff3a6;
  --sky: #e4f5ff;
  --blue: #0575e6;
  --blue-bright: #00a3ff;
  --blue-deep: #083d8c;
  --aqua: #00c2d1;
  --line: rgba(5, 117, 230, 0.18);
  --shadow: 0 24px 70px rgba(5, 117, 230, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, var(--paper) 46%, #ffffff 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 64px);
  color: #fff;
  background: linear-gradient(180deg, rgba(8, 61, 140, 0.9), rgba(8, 61, 140, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: var(--ink);
  background: linear-gradient(135deg, var(--sun), #ffffff);
  font-weight: 800;
}

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

.brand small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.5vw, 32px);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.94rem;
}

.nav-links a:hover,
.header-action:hover {
  color: #fff;
}

.header-action {
  border: 1px solid rgba(255, 255, 255, 0.45);
  padding: 11px 16px;
  color: rgba(255, 255, 255, 0.9);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  padding: 132px clamp(20px, 6vw, 72px) 88px;
  color: #fff;
}

.hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(8, 61, 140, 0.95) 0%, rgba(5, 117, 230, 0.68) 44%, rgba(255, 210, 63, 0.12) 82%),
    linear-gradient(180deg, rgba(8, 61, 140, 0.3), rgba(0, 163, 255, 0.1) 60%, rgba(9, 33, 63, 0.62));
}

.hero-content {
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.02;
}

.hero h1 {
  max-width: 690px;
  font-size: clamp(3.2rem, 8vw, 7.8rem);
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
}

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

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  padding: 13px 20px;
  cursor: pointer;
  font-weight: 800;
}

.button.primary {
  color: #152035;
  background: linear-gradient(135deg, var(--sun), #fff176);
}

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

.hero-panel {
  position: absolute;
  right: clamp(20px, 5vw, 70px);
  bottom: 34px;
  width: min(360px, calc(100% - 40px));
  border-left: 3px solid var(--sun);
  padding: 18px 22px;
  background: rgba(8, 61, 140, 0.78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.hero-panel span,
.estimate-result span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 1.8rem;
}

.hero-panel p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.metrics div {
  padding: 28px clamp(20px, 5vw, 64px);
  border-right: 1px solid var(--line);
}

.metrics div:last-child {
  border-right: 0;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.metrics span {
  margin-top: 8px;
  color: var(--muted);
}

.section {
  padding: clamp(72px, 9vw, 124px) clamp(20px, 6vw, 72px);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(240px, 0.65fr) minmax(280px, 1fr);
  gap: 28px clamp(28px, 6vw, 80px);
  align-items: end;
  margin-bottom: 42px;
}

.section-heading.narrow {
  display: block;
  max-width: 760px;
}

.section h2 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.section-heading p:not(.eyebrow),
.estimator-copy p,
.contact-copy p {
  max-width: 640px;
  margin: 0;
  color: var(--muted);
  font-size: 1.06rem;
}

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

.solution-card {
  min-height: 280px;
  padding: 28px;
  background: #ffffff;
}

.card-icon {
  display: inline-flex;
  margin-bottom: 42px;
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.solution-card h3,
.timeline h3 {
  margin: 0 0 12px;
  font-size: 1.25rem;
}

.solution-card p,
.timeline p,
.proof-list p,
.estimate-result small {
  margin: 0;
  color: var(--muted);
}

.process {
  background: linear-gradient(135deg, var(--sun-soft), var(--sky));
}

.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 42px;
}

.timeline div {
  border-top: 2px solid rgba(35, 63, 57, 0.28);
  padding-top: 22px;
}

.timeline span {
  display: grid;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  place-items: center;
  color: #fff;
  background: var(--blue);
  font-weight: 800;
}

.estimator-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: center;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue), var(--aqua));
  color: #fff;
}

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

.scenario-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 32px 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.scenario-summary div {
  min-width: 0;
  padding: 18px;
  background: rgba(255, 255, 255, 0.06);
}

.scenario-summary span,
.scenario-results span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scenario-summary span {
  color: rgba(255, 255, 255, 0.62);
}

.scenario-summary strong {
  display: block;
  margin-top: 8px;
  color: #fff;
  font-size: clamp(1.2rem, 2.7vw, 2rem);
  line-height: 1;
}

.estimator {
  display: grid;
  gap: 22px;
  padding: clamp(24px, 4vw, 42px);
  background: #fffdf7;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.scenario-builder {
  align-self: stretch;
}

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

.estimator label,
.contact-form label {
  display: grid;
  gap: 9px;
}

.estimator label span,
.contact-form span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.estimator output {
  font-weight: 900;
}

.estimator input,
.estimator select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
}

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

.scenario-results {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 8px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  background: var(--line);
}

.scenario-results div {
  min-width: 0;
  padding: 18px;
  background: #fffdf7;
}

.scenario-results strong {
  display: block;
  margin-top: 7px;
  font-size: clamp(1.15rem, 2.6vw, 1.7rem);
  line-height: 1;
}

.property-section {
  background: #ffffff;
}

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

.property-card {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(5, 117, 230, 0.14);
}

.property-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 6px solid var(--sun);
}

.property-card:nth-child(2n) img {
  border-bottom-color: var(--blue-bright);
}

.property-card:nth-child(3n) img {
  border-bottom-color: var(--aqua);
}

.property-card h3 {
  margin: 22px 22px 8px;
  font-size: 1.22rem;
}

.property-card p {
  margin: 0 22px 24px;
  color: var(--muted);
}

.proof {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(300px, 1fr);
  gap: clamp(32px, 7vw, 88px);
  background: linear-gradient(135deg, #ffffff, var(--sky), var(--sun-soft));
}

.proof-list {
  display: grid;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.proof-list p {
  padding: 22px;
  background: #ffffff;
}

.contact {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  gap: clamp(34px, 7vw, 94px);
  background: linear-gradient(135deg, var(--blue-deep), var(--blue));
  color: #fff;
}

.contact-copy p {
  color: rgba(255, 255, 255, 0.72);
  margin-top: 20px;
}

.contact-email {
  display: inline-flex;
  margin-top: 22px;
  border-bottom: 2px solid var(--sun);
  color: #fff;
  font-weight: 800;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding: clamp(22px, 4vw, 38px);
  background: #fffdf7;
  color: var(--ink);
}

.contact-form .hidden-field {
  display: none;
}

.contact-form .wide {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(20px, 6vw, 72px);
  color: rgba(255, 255, 255, 0.72);
  background: #11191b;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero {
    min-height: 860px;
    align-items: start;
  }

  .hero-panel {
    left: 20px;
    right: auto;
  }

  .section-heading,
  .estimator-section,
  .proof,
  .contact {
    grid-template-columns: 1fr;
  }

  .solution-grid,
  .property-grid,
  .timeline,
  .scenario-results {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    padding: 16px 18px;
  }

  .brand {
    min-width: 0;
  }

  .brand small,
  .header-action {
    display: none;
  }

  .hero {
    min-height: 820px;
    padding: 106px 18px 150px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

  .metrics,
  .solution-grid,
  .property-grid,
  .timeline,
  .contact-form,
  .field-grid,
  .scenario-summary,
  .scenario-results {
    grid-template-columns: 1fr;
  }

  .metrics div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .solution-card {
    min-height: auto;
  }

  .site-footer {
    display: grid;
  }
}
