@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500&family=Outfit:wght@400;600&display=swap");

:root {
  --ink: #17181c;
  --muted: #4a4e59;
  --blue: #8099e9;
  --blue-deep: #7891e4;
  --pale: #eef1ff;
  --max: 1020px;
  --header-max: 1190px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: "Inter", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.42;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  padding: 9px 13px;
  transform: translateY(-140%);
  border-radius: 6px;
  color: #fff;
  background: #000;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 100;
  height: 120px;
  background: #fff;
}

.header-inner {
  width: min(calc(100% - 56px), var(--header-max));
  height: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 170px 1fr 145px;
  align-items: center;
  gap: 20px;
}

.brand {
  width: 146px;
  height: 116px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.brand img {
  width: 142px;
  height: 116px;
  object-fit: contain;
}

.desktop-nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  white-space: nowrap;
}

.nav-link,
.drop-trigger {
  position: relative;
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  gap: 10px;
  border: 0;
  padding: 0;
  color: var(--ink);
  background: transparent;
  text-decoration: none;
  cursor: pointer;
}

.nav-link::after,
.drop-trigger::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  background: currentColor;
  transition: transform 160ms ease;
}

.nav-link:hover::after,
.nav-link.active::after,
.nav-group:hover .drop-trigger::after,
.nav-group.active .drop-trigger::after {
  transform: scaleX(1);
}

.caret {
  width: 0;
  height: 0;
  margin-top: 2px;
  border-top: 6px solid currentColor;
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.nav-group {
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
}

.dropdown {
  position: absolute;
  top: 82px;
  left: 50%;
  min-width: 230px;
  padding: 12px;
  transform: translate(-50%, 8px);
  visibility: hidden;
  opacity: 0;
  border: 1px solid #e7e7e7;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 16px 35px rgb(35 45 70 / 14%);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms;
}

.nav-group:hover .dropdown,
.nav-group:focus-within .dropdown {
  transform: translate(-50%, 0);
  visibility: visible;
  opacity: 1;
}

.dropdown a {
  display: block;
  padding: 9px 12px;
  text-decoration: none;
}

.dropdown a:hover,
.dropdown a:focus-visible {
  background: #eff3ff;
}

.social-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}

.social-links a {
  width: 19px;
  height: 21px;
  color: var(--blue);
}

.social-links svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

.mobile-toggle,
.mobile-nav {
  display: none;
}

main {
  min-height: 520px;
}

.page-gradient {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff 0, #eef1ff 14%, #dde4ff 45%, #aebef4 74%, var(--blue-deep) 100%);
}

.content-shell {
  width: min(calc(100% - 48px), var(--max));
  margin: 0 auto;
}

.page-title {
  margin: 0;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(46px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.3px;
  text-align: center;
}

.home-hero {
  position: relative;
  min-height: 720px;
  padding: 28px 0 80px;
  background-image: linear-gradient(180deg, rgb(235 244 255 / 34%) 0%, rgb(255 255 255 / 2%) 48%, #fff 100%), url("/assets/smart-home-hero.avif");
  background-position: center 42%;
  background-size: cover;
}

.home-hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 235px;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgb(255 255 255 / 0%), #fff 82%);
}

.home-title {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 48px), 1020px);
  margin: 0 auto 28px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(42px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -1.4px;
}

.home-title u {
  text-decoration-thickness: 4px;
  text-underline-offset: 5px;
}

.foundation-card {
  position: relative;
  z-index: 2;
  width: min(610px, calc(100% - 40px));
  margin: 0 auto;
}

.foundation-photo {
  height: 305px;
  overflow: hidden;
  border-radius: 22px;
  background: #0c0e1d;
}

.foundation-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.foundation-copy {
  position: relative;
  z-index: 2;
  width: calc(100% - 34px);
  margin: -58px auto 0;
  padding: 19px 34px 18px;
  text-align: center;
  background: #fff;
}

.foundation-copy strong {
  display: block;
  margin-bottom: 1px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
}

.foundation-copy p {
  margin: 0;
  font-size: 17px;
  line-height: 1.42;
}

.primary-button {
  position: relative;
  z-index: 3;
  display: flex;
  width: 190px;
  min-height: 53px;
  margin: 30px auto 0;
  align-items: center;
  justify-content: center;
  border-radius: 30px;
  color: #fff;
  background: #000;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  background: #202127;
}

.home-story {
  padding: 10px 0 24px;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px 200px;
}

.story-card h2,
.story-card h3 {
  margin: 0 0 17px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 29px;
  font-weight: 600;
  line-height: 1.3;
}

.story-card p {
  margin: 0;
  line-height: 1.48;
}

.story-card.full {
  grid-column: 1 / -1;
  width: 600px;
  max-width: 100%;
  margin: 0 auto;
  text-align: center;
}

.standard-page {
  padding: 24px 0 0;
}

.standard-page .page-title {
  max-width: 930px;
  margin: 0 auto 10px;
  line-height: 1.25;
}

.body-copy {
  font-size: 16.5px;
  line-height: 1.45;
}

.body-copy p {
  margin: 0 0 30px;
}

.body-copy h3 {
  margin: 30px 0 9px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 19px;
  font-weight: 600;
}

.body-copy ul {
  margin: 8px 0 25px;
  padding-left: 40px;
}

.gallery {
  display: grid;
  width: min(635px, 100%);
  margin: 20px auto 34px;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.vision-page {
  padding: 30px 0 0;
}

.vision-section {
  margin: 0 auto 34px;
}

.vision-section h1,
.vision-section h2 {
  max-width: 1010px;
  margin: 0 auto 20px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(45px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -1.2px;
  text-align: center;
  text-decoration: underline;
  text-decoration-thickness: 4px;
  text-underline-offset: 6px;
}

.vision-section p {
  margin: 0 0 17px;
  font-size: 16.5px;
  line-height: 1.47;
}

.vision-section ul {
  margin: 6px 0 18px;
  padding-left: 28px;
}

.vision-section.standard h2 {
  text-decoration: none;
}

.service-area {
  padding: 8px 0 24px;
  text-align: center;
}

.service-area h2 {
  margin: 0 0 8px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: clamp(44px, 4vw, 58px);
  font-weight: 600;
  line-height: 1;
}

.service-area p {
  width: min(620px, 100%);
  margin: 0 auto 16px;
  font-size: 17px;
  line-height: 1.02;
}

.contact-page {
  padding: 22px 0 0;
}

.contact-intro {
  margin-bottom: 38px;
  text-align: center;
}

.contact-intro h1 {
  margin: 0 0 3px;
  font-family: "Outfit", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
}

.contact-intro p {
  margin: 0;
  font-size: 17px;
}

.contact-hero {
  padding: 7px 0 24px;
  background-image: linear-gradient(180deg, rgb(255 255 255 / 20%), rgb(255 255 255 / 18%)), url("/assets/smart-home-hero.avif");
  background-position: center;
  background-size: cover;
}

.contact-form {
  width: min(calc(100% - 48px), 540px);
  margin: 0 auto;
}

.field {
  margin-bottom: 19px;
}

.field label,
.choice-group legend {
  display: block;
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 500;
}

.field input {
  width: 100%;
  height: 53px;
  border: 1px solid rgb(92 100 119 / 15%);
  border-radius: 27px;
  outline: none;
  padding: 0 18px;
  color: var(--ink);
  background: rgb(155 164 181 / 48%);
}

.field input::placeholder {
  color: #575d67;
}

.field input:focus {
  border-color: #5f79c9;
  box-shadow: 0 0 0 3px rgb(95 121 201 / 20%);
}

.choice-group {
  margin: 0 0 20px;
  border: 0;
  padding: 0;
}

.choice {
  display: flex;
  margin: 0 0 6px;
  align-items: flex-start;
  gap: 7px;
}

.choice input {
  width: 14px;
  height: 14px;
  margin: 3px 0 0;
}

.send-button {
  min-width: 190px;
  min-height: 52px;
  border: 2px solid #fff;
  border-radius: 30px;
  padding: 0 30px;
  color: #fff;
  background: #000;
  cursor: pointer;
}

.send-button:hover {
  background: #202127;
}

.form-status {
  min-height: 24px;
  margin: 10px 0 0;
  font-size: 14px;
}

.brand-carousel {
  width: min(calc(100% - 48px), 520px);
  margin: 40px auto 22px;
}

.brand-carousel img {
  width: 100%;
  max-height: 410px;
  object-fit: contain;
}

.site-footer {
  padding: 18px 20px 24px;
  text-align: center;
  background: #fff;
}

.site-footer .social-links {
  margin: 12px 0 14px;
  justify-content: center;
}

.footer-label {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.site-footer p,
.site-footer a {
  margin: 0;
  font-size: 15px;
  text-decoration: none;
}

.copyright {
  margin-top: 18px !important;
  font-size: 14px !important;
}

.reveal {
  transform: translateY(14px);
  opacity: 0;
  transition: transform 650ms ease, opacity 650ms ease;
}

.reveal.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    transform: none;
    opacity: 1;
    transition: none;
  }
}

@media (max-width: 1050px) {
  .header-inner {
    grid-template-columns: 138px 1fr 130px;
  }

  .desktop-nav {
    gap: 20px;
    font-size: 14px;
  }

  .story-grid {
    gap: 34px 90px;
  }
}

@media (max-width: 820px) {
  .site-header {
    height: 92px;
  }

  .header-inner {
    width: calc(100% - 28px);
    grid-template-columns: 110px 1fr 44px;
  }

  .brand,
  .brand img {
    width: 106px;
    height: 86px;
  }

  .desktop-nav,
  .header-inner > .social-links {
    display: none;
  }

  .mobile-toggle {
    grid-column: 3;
    display: flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }

  .hamburger,
  .hamburger::before,
  .hamburger::after {
    width: 25px;
    height: 2px;
    background: #17181c;
  }

  .hamburger {
    position: relative;
  }

  .hamburger::before,
  .hamburger::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .hamburger::before {
    top: -7px;
  }

  .hamburger::after {
    top: 7px;
  }

  .mobile-nav {
    position: fixed;
    z-index: 99;
    inset: 92px 0 0;
    display: block;
    overflow-y: auto;
    padding: 22px 24px 42px;
    transform: translateX(100%);
    background: #fff;
    transition: transform 220ms ease;
  }

  .mobile-nav.open {
    transform: translateX(0);
  }

  .mobile-nav > a,
  .mobile-nav summary {
    display: flex;
    min-height: 48px;
    align-items: center;
    border-bottom: 1px solid #e8e8e8;
    font-family: "Outfit", Arial, sans-serif;
    font-size: 22px;
    text-decoration: none;
    cursor: pointer;
  }

  .mobile-nav summary {
    justify-content: space-between;
    list-style: none;
  }

  .mobile-nav summary::after {
    content: "+";
  }

  .mobile-nav details[open] summary::after {
    content: "−";
  }

  .mobile-subnav {
    padding: 8px 0 10px 18px;
  }

  .mobile-subnav a {
    display: block;
    padding: 8px 0;
    text-decoration: none;
  }

  .mobile-nav .social-links {
    margin-top: 28px;
    justify-content: flex-start;
  }

  .home-hero {
    min-height: 640px;
    padding-top: 25px;
  }

  .home-title {
    width: calc(100% - 32px);
    font-size: 39px;
  }

  .foundation-photo {
    height: 265px;
  }

  .foundation-copy {
    width: calc(100% - 26px);
    padding: 18px 20px;
  }

  .story-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }

  .story-card.full {
    grid-column: auto;
    text-align: left;
  }

  .vision-section h1,
  .vision-section h2 {
    font-size: 41px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .content-shell {
    width: calc(100% - 30px);
  }

  .home-title {
    font-size: 34px;
    line-height: 1.12;
  }

  .home-hero {
    min-height: 615px;
  }

  .foundation-photo {
    height: 220px;
    border-radius: 16px;
  }

  .foundation-copy {
    margin-top: -28px;
  }

  .page-title,
  .vision-section h1,
  .vision-section h2 {
    font-size: 36px;
    letter-spacing: -.5px;
  }

  .body-copy,
  .vision-section p {
    font-size: 15px;
  }

  .gallery {
    gap: 8px;
  }

  .service-area h2 {
    font-size: 43px;
  }

  .service-area p {
    font-size: 15px;
    line-height: 1.14;
  }

  .contact-intro h1 {
    font-size: 40px;
  }

  .contact-form {
    width: calc(100% - 30px);
  }
}
