:root {
  --bg: #f4f3ef;
  --card: #faf9f6;
  --ink: #0a0a0a;
  --muted: #74746f;
  --line: #d7d5cf;
  --white: #fff;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.section {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  height: 92px;
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 600 20px/1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -0.04em;
}
.brand-dot { color: #9e9e97; }
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}
.desktop-nav a { transition: opacity .2s; }
.desktop-nav a:hover { opacity: .55; }
.nav-cta {
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 11px 18px;
}
.menu-button, .mobile-nav { display: none; }

.hero { padding: 96px 0 55px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: 11px;
  font-weight: 600;
  color: #5c5c57;
}
.status-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4b8e55;
}
.hero h1 {
  margin: 25px 0 30px;
  font: 500 clamp(66px, 9.2vw, 144px)/.88 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -.075em;
  max-width: 1150px;
}
.hero h1 span { color: #8b8a84; }
.hero-copy {
  max-width: 590px;
  margin: 0;
  color: #5d5d58;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.55;
  letter-spacing: -.02em;
}
.hero-actions {
  margin-top: 42px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  min-width: 214px;
  padding: 16px 20px;
  border-radius: 999px;
  font-size: 14px;
  transition: transform .2s, opacity .2s;
}
.button:hover { transform: translateY(-2px); }
.button-dark { background: var(--ink); color: var(--white); }
.text-link {
  font-size: 14px;
  padding-bottom: 3px;
  border-bottom: 1px solid var(--ink);
}
.hero-card {
  margin-top: 100px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
  padding: 25px 28px 31px;
}
.hero-card-top {
  display: flex;
  justify-content: space-between;
  padding-bottom: 22px;
  border-bottom: 1px solid #333;
  color: #9d9d9a;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.online { color: #a8d6ad; }
.hero-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}
.hero-card-grid > div {
  min-height: 220px;
  padding: 30px 28px 5px 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.hero-card-grid > div:not(:last-child) {
  border-right: 1px solid #333;
  margin-right: 28px;
}
.mini-label { color: #777; font-size: 11px; margin-bottom: auto; }
.hero-card strong {
  display: block;
  font: 500 32px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -.04em;
}
.hero-card p { color: #9d9d9a; margin: 8px 0 0; font-size: 14px; }

.intro { padding: 140px 0 70px; }
.section-number {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: #898984;
  margin: 0 0 40px;
}
.intro-grid {
  display: grid;
  grid-template-columns: 1.5fr .7fr;
  gap: 100px;
  align-items: end;
}
h2 {
  margin: 0;
  font: 500 clamp(42px, 5.7vw, 78px)/1.02 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -.06em;
}
.intro-grid p, .smart-copy > p:not(.section-number) {
  color: #686863;
  font-size: 17px;
  line-height: 1.65;
  margin: 0;
}

.services {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding: 35px 0 140px;
}
.service-card {
  background: var(--card);
  border: 1px solid #e3e1db;
  border-radius: var(--radius);
  padding: 28px;
  min-height: 510px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.service-card.dark { background: var(--ink); border-color: var(--ink); color: white; }
.service-icon {
  width: 54px; height: 54px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 24px;
}
.dark .service-icon { border-color: #3a3a3a; }
.card-kicker {
  display: block;
  margin-bottom: 16px;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: #92918b;
}
.service-card h3 {
  font: 500 31px/1.1 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  letter-spacing: -.04em;
  margin: 0 0 14px;
}
.service-card p {
  color: #73736e;
  line-height: 1.55;
  min-height: 72px;
}
.dark p { color: #aaa; }
.service-card ul {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.service-card li {
  border-top: 1px solid var(--line);
  padding: 10px 0;
  font-size: 13px;
}
.dark li { border-color: #333; }

.smart {
  background: #e8e6df;
  border-radius: 38px;
  padding: 78px;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 80px;
  align-items: center;
  overflow: hidden;
}
.smart-copy > p:not(.section-number) { margin-top: 30px; max-width: 520px; }
.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 34px;
}
.platforms span {
  border: 1px solid #c7c4bb;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
}
.home-visual {
  height: 430px;
  position: relative;
  border-radius: 30px;
  background: #f3f1eb;
  border: 1px solid #dbd8cf;
  overflow: hidden;
}
.room {
  position: absolute;
  width: 150px; height: 112px;
  background: white;
  border-radius: 19px;
  padding: 15px;
  font-size: 11px;
  color: #777;
  z-index: 2;
  box-shadow: 0 15px 35px rgba(0,0,0,.04);
}
.room-1 { top: 38px; left: 28px; }
.room-2 { top: 50px; right: 26px; }
.room-3 { bottom: 30px; right: 32px; }
.lamp, .screen, .sensor {
  position: absolute;
  display: block;
  left: 50%; top: 55%;
  transform: translate(-50%,-50%);
}
.lamp { width: 42px; height: 42px; border-radius: 50%; background: #f5df91; box-shadow: 0 0 30px #f5df91; }
.screen { width: 62px; height: 39px; border-radius: 5px; background: #1a1a1a; border: 4px solid #d6d6d2; }
.sensor { width: 35px; height: 35px; border-radius: 50%; border: 6px solid #e1e1dd; background: #bbb; }
.hub {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 90px; height: 90px;
  border-radius: 26px;
  background: #111;
  z-index: 3;
  display: grid; place-items: center;
  color: #fff;
}
.hub span {
  width: 13px; height: 13px; border-radius: 50%;
  background: #65b877; box-shadow: 0 0 16px #65b877;
}
.hub small { position: absolute; bottom: 12px; font-size: 7px; letter-spacing: .15em; color: #777; }
.connections { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; }
.connections path { fill: none; stroke: #c7c4bb; stroke-width: 1.5; stroke-dasharray: 4 6; }

.process { padding: 150px 0; }
.process-list { border-top: 1px solid #c9c7c1; }
.process-row {
  display: grid;
  grid-template-columns: 80px 1fr 1fr;
  gap: 30px;
  align-items: center;
  min-height: 135px;
  border-bottom: 1px solid #c9c7c1;
}
.process-row > span { color: #94938d; font-size: 11px; }
.process-row h3 { font: 500 30px Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif; letter-spacing: -.04em; margin: 0; }
.process-row p { color: #6e6e69; max-width: 440px; line-height: 1.55; }

.contact {
  max-width: none;
  width: 100%;
  background: var(--ink);
  color: white;
  padding: 110px max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 100px;
}
.section-number.light { color: #6f6f6b; }
.contact h2 { font-size: clamp(58px, 8vw, 108px); }
.contact-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
}
.contact-side > p:first-child { color: #9d9d98; max-width: 470px; font-size: 18px; line-height: 1.55; }
.button-light { color: var(--ink); background: white; margin-top: 30px; }
.location { margin-top: 30px; color: #6f6f6b; font-size: 12px; }

footer {
  background: var(--ink);
  color: white;
  border-top: 1px solid #292929;
  padding: 30px max(24px, calc((100vw - 1240px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  font-size: 11px;
  color: #777;
}
.footer-brand { color: white; }
.footer-links { display: flex; gap: 20px; }
.footer-links button {
  border: 0; background: none; color: #777; cursor: pointer; padding: 0;
}
footer > span:last-child { justify-self: end; }

dialog {
  width: min(650px, calc(100% - 30px));
  max-height: 80vh;
  overflow-y: auto;
  border: 0;
  border-radius: 24px;
  padding: 38px;
  background: #f7f6f2;
  color: #111;
  box-shadow: 0 30px 100px rgba(0,0,0,.35);
}
dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(4px); }
dialog h2 { font-size: 40px; margin-bottom: 30px; }
dialog p { line-height: 1.65; color: #555; }
.dialog-close {
  float: right;
  width: 38px; height: 38px;
  border: 1px solid #ccc;
  border-radius: 50%;
  background: transparent;
  font-size: 24px;
  cursor: pointer;
}
.legal-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid #ddd; font-size: 12px; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .menu-button {
    display: flex; flex-direction: column; gap: 6px;
    width: 42px; height: 42px; border: 1px solid var(--line);
    border-radius: 50%; background: transparent; align-items: center; justify-content: center;
  }
  .menu-button span { width: 16px; height: 1px; background: #111; }
  .mobile-nav {
    position: fixed; z-index: 20; top: 75px; left: 16px; right: 16px;
    background: #111; color: #fff; border-radius: 20px;
    padding: 20px; flex-direction: column; gap: 5px;
  }
  .mobile-nav:not([hidden]) { display: flex; }
  .mobile-nav a { padding: 14px 10px; border-bottom: 1px solid #2c2c2c; }
  .hero { padding-top: 60px; }
  .hero h1 { font-size: clamp(58px, 14vw, 100px); }
  .hero-card-grid { grid-template-columns: 1fr; }
  .hero-card-grid > div { min-height: 150px; border-right: 0 !important; border-bottom: 1px solid #333; margin: 0 !important; }
  .hero-card-grid > div:last-child { border-bottom: 0; }
  .intro-grid, .smart, .contact { grid-template-columns: 1fr; gap: 50px; }
  .services { grid-template-columns: 1fr; }
  .service-card { min-height: 450px; }
  .smart { padding: 42px 26px; }
  .process-row { grid-template-columns: 40px 1fr; padding: 25px 0; }
  .process-row p { grid-column: 2; margin: 0 0 10px; }
}

@media (max-width: 600px) {
  .section, .site-header { width: min(100% - 30px, 1240px); }
  .site-header { height: 76px; }
  .brand { font-size: 18px; }
  .hero { padding-top: 48px; }
  .hero h1 { margin-top: 20px; letter-spacing: -.065em; }
  .hero-copy { font-size: 17px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .hero-card { margin-top: 70px; padding: 20px; border-radius: 22px; }
  .intro { padding-top: 100px; }
  .intro-grid { gap: 30px; }
  h2 { font-size: 44px; }
  .services { padding-bottom: 100px; }
  .service-card { min-height: 440px; padding: 23px; border-radius: 22px; }
  .smart { width: 100%; border-radius: 0; }
  .home-visual { height: 370px; }
  .room { transform: scale(.8); }
  .room-1 { left: 2px; }
  .room-2 { right: 0; }
  .room-3 { right: 0; }
  .process { padding: 100px 0; }
  .contact { padding-top: 80px; padding-bottom: 80px; }
  .contact h2 { font-size: 58px; }
  footer { grid-template-columns: 1fr; }
  footer > span:last-child { justify-self: start; }
}
