:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-strong: #111418;
  --text: #1f242b;
  --muted: #66717f;
  --line: #dce2ea;
  --brand: #ed1c24;
  --brand-dark: #b70f18;
  --teal: #087f8c;
  --amber: #d8901f;
  --shadow: 0 20px 60px rgba(17, 20, 24, 0.12);
  --radius: 8px;
  --container: min(1160px, calc(100vw - 40px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.6;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: var(--container);
  min-height: 74px;
  margin: 16px auto 0;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 40px rgba(17, 20, 24, 0.12);
  backdrop-filter: blur(16px);
  transition: margin 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 34px rgba(17, 20, 24, 0.16);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 184px;
}

.brand img {
  width: 100%;
  height: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  color: #303742;
  font-size: 0.94rem;
  font-weight: 700;
}

.site-nav a:hover {
  background: #f1f3f6;
  color: var(--brand-dark);
}

.site-nav .nav-cta {
  background: #111418;
  color: #fff;
}

.site-nav .nav-cta:hover {
  background: var(--brand);
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: #f1f3f6;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: #1f242b;
}

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: end;
  padding: 150px 0 72px;
  overflow: hidden;
  background: #111418;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 20, 24, 0.92) 0%, rgba(17, 20, 24, 0.76) 42%, rgba(17, 20, 24, 0.24) 100%),
    linear-gradient(0deg, rgba(17, 20, 24, 0.72), rgba(17, 20, 24, 0.12)),
    url("../img/hero-data-center.jpg") center / cover no-repeat;
  transform: scale(1.02);
}

.hero-content {
  position: relative;
  z-index: 1;
  width: var(--container);
  margin: 0 auto;
  color: #fff;
}

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

.hero h1 {
  margin: 0;
  max-width: 760px;
  color: #fff;
  font-size: clamp(4.2rem, 12vw, 8.8rem);
  line-height: 0.9;
  font-weight: 900;
}

.hero-copy {
  max-width: 680px;
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button.primary {
  background: var(--brand);
  color: #fff;
}

.button.primary:hover {
  background: var(--brand-dark);
}

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

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin: 56px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.26);
}

.hero-stats div {
  padding: 22px 28px 0 0;
}

.hero-stats dt {
  color: #fff;
  font-size: 2.15rem;
  line-height: 1;
  font-weight: 900;
}

.hero-stats dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
}

.section {
  width: var(--container);
  margin: 0 auto;
  padding: 92px 0;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
  margin-bottom: 44px;
}

.section-heading h2,
.feature-copy h2,
.split-copy h2,
.contact-copy h2 {
  margin: 0;
  color: #111418;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  padding-bottom: 70px;
}

.intro .section-heading {
  display: block;
  margin: 0;
}

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

.intro-copy p:first-child {
  margin-top: 0;
}

.promo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: var(--container);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.promo-strip strong {
  display: flex;
  align-items: center;
  min-height: 110px;
  padding: 22px;
  background: #fff;
  color: #111418;
  font-size: 1.04rem;
  line-height: 1.25;
}

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

.service-card {
  min-height: 310px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 28px rgba(17, 20, 24, 0.04);
}

.service-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: #111418;
  color: #fff;
  font-weight: 900;
}

.service-card h3 {
  margin: 24px 0 10px;
  color: #111418;
  font-size: 1.25rem;
}

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

.service-card ul,
.check-list {
  display: grid;
  gap: 9px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.check-list li {
  position: relative;
  padding-left: 22px;
  color: #39424f;
  font-size: 0.95rem;
}

.service-card li::before,
.check-list li::before {
  position: absolute;
  top: 0.63em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.feature-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: 64px;
  align-items: center;
  padding: 86px max(20px, calc((100vw - 1160px) / 2));
  background: #111418;
  color: #fff;
}

.feature-copy h2 {
  color: #fff;
}

.feature-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.08rem;
}

.feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.feature-list span {
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.88);
  font-weight: 700;
}

.automation-panel {
  min-height: 420px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 127, 140, 0.34), rgba(237, 28, 36, 0.16)),
    #1c232c;
}

.smart-home {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1.25fr 1fr;
  gap: 12px;
  height: 100%;
}

.room {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
}

.room.active {
  background: rgba(237, 28, 36, 0.82);
}

.room strong {
  font-size: 1.12rem;
}

.room span {
  color: rgba(255, 255, 255, 0.74);
}

.automation-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 56px;
  align-items: center;
  padding: 92px max(20px, calc((100vw - 1160px) / 2));
  background: #111418;
  color: #fff;
}

.automation-image {
  min-height: 520px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.automation-image img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.automation-copy h2,
.portal-copy h2,
.portal-hero h1,
.portal-panel h2 {
  margin: 0;
  color: inherit;
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.04;
}

.automation-copy p:not(.eyebrow),
.portal-copy p,
.portal-hero p,
.agent-card p,
.portal-panel p {
  color: rgba(255, 255, 255, 0.76);
  font-size: 1.06rem;
}

.automation-metrics {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.automation-metrics div {
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.07);
}

.automation-metrics strong {
  display: block;
  color: #fff;
}

.automation-metrics span {
  color: rgba(255, 255, 255, 0.72);
}

.client-portal-band {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 56px;
  align-items: center;
  padding: 92px max(20px, calc((100vw - 1160px) / 2));
  background: #fff;
}

.portal-copy h2 {
  color: #111418;
}

.portal-copy p {
  color: var(--muted);
}

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

.quote-flow article {
  min-height: 190px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.quote-flow span {
  color: var(--brand);
  font-weight: 900;
}

.quote-flow h3 {
  margin: 28px 0 8px;
  color: #111418;
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.image-stack {
  display: grid;
  grid-template-columns: 1fr 0.72fr;
  gap: 14px;
  align-items: end;
}

.image-stack img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.image-stack img:last-child {
  height: 300px;
}

.split-copy p {
  color: var(--muted);
  font-size: 1.05rem;
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
}

.process-steps article {
  min-height: 250px;
  padding: 28px;
  background: var(--surface);
}

.process-steps span {
  color: var(--brand);
  font-weight: 900;
}

.process-steps h3 {
  margin: 44px 0 8px;
  color: #111418;
}

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

.partners {
  padding-top: 42px;
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
}

.partner-logo {
  display: grid;
  place-items: center;
  min-height: 112px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.partner-logo img {
  max-height: 54px;
  object-fit: contain;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1fr);
  gap: 64px;
  align-items: start;
  padding: 92px max(20px, calc((100vw - 1160px) / 2));
  background: #fff;
}

.contact-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
}

.contact-methods {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-methods a {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: #1f242b;
  font-weight: 800;
}

.contact-methods a:hover {
  border-color: var(--brand);
  color: var(--brand-dark);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  box-shadow: 0 12px 44px rgba(17, 20, 24, 0.08);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: #28313c;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 13px;
  border: 1px solid #cfd7e2;
  border-radius: var(--radius);
  background: #fff;
  color: var(--text);
  font: inherit;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(8, 127, 140, 0.12);
}

label span {
  color: var(--brand-dark);
  font-size: 0.82rem;
}

.form-status {
  padding: 12px 14px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-status.success {
  border: 1px solid rgba(8, 127, 140, 0.22);
  background: rgba(8, 127, 140, 0.1);
  color: #075b65;
}

.form-status.error {
  border: 1px solid rgba(237, 28, 36, 0.22);
  background: rgba(237, 28, 36, 0.1);
  color: var(--brand-dark);
}

.form-submit {
  width: 100%;
  border: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px max(20px, calc((100vw - 1160px) / 2));
  background: #111418;
  color: rgba(255, 255, 255, 0.7);
}

.site-footer img {
  width: 170px;
  filter: brightness(0) invert(1);
}

.site-footer p {
  margin: 0;
  text-align: right;
}

.portal-page {
  background: #111418;
}

.portal-header {
  position: sticky;
}

.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.64fr);
  gap: 40px;
  align-items: end;
  width: var(--container);
  margin: 0 auto;
  padding: 156px 0 70px;
  color: #fff;
}

.portal-hero h1 {
  max-width: 820px;
}

.portal-hero p {
  max-width: 720px;
}

.agent-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(237, 28, 36, 0.18), rgba(8, 127, 140, 0.18)),
    rgba(255, 255, 255, 0.07);
}

.agent-card span {
  color: var(--brand);
  font-weight: 900;
  text-transform: uppercase;
  font-size: 0.78rem;
}

.agent-card strong {
  display: block;
  margin-top: 14px;
  color: #fff;
  font-size: 1.55rem;
  line-height: 1.12;
}

.portal-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 24px;
  align-items: start;
  padding: 0 max(20px, calc((100vw - 1160px) / 2)) 92px;
}

.portal-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #111418;
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.18);
}

.portal-panel p {
  color: var(--muted);
}

.quote-form {
  margin-top: 22px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.muted-panel {
  background: #f8fafc;
}

.number-list {
  display: grid;
  gap: 13px;
  margin: 22px 0 0;
  padding-left: 22px;
  color: #34404d;
}

.number-list li::marker {
  color: var(--brand);
  font-weight: 900;
}

.panel-note {
  margin-top: 24px;
  padding: 16px;
  border-left: 4px solid var(--brand);
  background: #fff;
}

@media (max-width: 980px) {
  :root {
    --container: min(100vw - 28px, 760px);
  }

  .site-header {
    min-height: 66px;
  }

  .brand {
    width: 158px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    display: none;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow);
  }

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

  .site-nav a {
    border-radius: var(--radius);
  }

  .hero {
    min-height: 720px;
    padding-top: 132px;
  }

  .section-heading,
  .intro,
  .automation-showcase,
  .client-portal-band,
  .portal-hero,
  .portal-workspace,
  .feature-band,
  .split,
  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-grid,
  .process-steps,
  .partner-grid,
  .promo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-band,
  .automation-showcase,
  .client-portal-band,
  .contact-section {
    padding-right: 20px;
    padding-left: 20px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 690px;
    padding-bottom: 42px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-stats,
  .service-grid,
  .process-steps,
  .partner-grid,
  .promo-strip,
  .quote-flow,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    gap: 18px;
  }

  .hero-stats div {
    padding: 18px 0 0;
  }

  .section {
    padding: 64px 0;
  }

  .service-card,
  .process-steps article {
    min-height: auto;
  }

  .automation-panel {
    min-height: auto;
  }

  .automation-image,
  .automation-image img {
    height: 320px;
    min-height: 320px;
  }

  .portal-hero {
    padding-top: 126px;
  }

  .portal-panel {
    padding: 20px;
  }

  .smart-home {
    grid-template-columns: 1fr;
  }

  .room {
    min-height: 112px;
  }

  .image-stack {
    grid-template-columns: 1fr;
  }

  .image-stack img,
  .image-stack img:last-child {
    height: 260px;
  }

  .contact-form {
    padding: 20px;
  }

  .site-footer {
    display: grid;
    justify-items: start;
  }

  .site-footer p {
    text-align: left;
  }
}
