* {
  box-sizing: border-box;
}

:root {
  --blue: #0b62d6;
  --blue-dark: #0b2f6b;
  --blue-soft: #e8f1ff;
  --navy: #0b1c3d;
  --text: #17315c;
  --muted: #62718d;
  --line: #dfe7f2;
  --bg: #f5f8fc;
  --white: #ffffff;
  --green: #17a668;
  --shadow: 0 12px 34px rgba(14, 43, 87, 0.10);
}

html {
  scroll-behavior: smooth;
}

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

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

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #fff 0 16%, transparent 17%),
    linear-gradient(135deg, #0c72f4, #083b8d);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .05em;
  box-shadow: 0 8px 18px rgba(10, 91, 198, .22);
}

.brand-copy {
  display: grid;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 21px;
  color: #0d438d;
  letter-spacing: .025em;
}

.brand-copy small {
  color: var(--muted);
  margin-top: 7px;
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-weight: 650;
  color: #35496e;
}

.main-nav a {
  position: relative;
  padding: 28px 0 24px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--blue);
}

.main-nav a.active::after {
  content: "";
  position: absolute;
  height: 3px;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: 4px;
  background: var(--blue);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--navy);
  margin: 5px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  color: white;
  background:
    radial-gradient(circle at 80% 20%, rgba(55,126,255,.22), transparent 25%),
    radial-gradient(circle at 15% 10%, rgba(74,151,255,.18), transparent 22%),
    linear-gradient(115deg, #061426 0%, #0a2345 47%, #0c3b7b 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(255,255,255,.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.5) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to right, transparent, #000 40%, #000);
}

.hero-grid {
  min-height: 580px;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: 60px;
  position: relative;
  z-index: 2;
  padding: 76px 0;
}

.eyebrow,
.section-kicker {
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .16em;
  font-weight: 800;
}

.eyebrow {
  color: #7eb5ff;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(54px, 7vw, 92px);
  letter-spacing: -.045em;
  margin: 0;
  line-height: .95;
}

.hero h2 {
  font-size: clamp(25px, 3vw, 40px);
  line-height: 1.15;
  margin: 18px 0 18px;
  max-width: 760px;
  font-weight: 650;
}

.hero p {
  max-width: 700px;
  color: #c6d6eb;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  min-height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 750;
}

.btn-primary {
  background: #1976ff;
  box-shadow: 0 10px 22px rgba(21,112,255,.28);
}

.btn-secondary {
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(255,255,255,.07);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 26px;
}

.hero-tags span {
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.06);
  padding: 6px 10px;
  border-radius: 999px;
  color: #d7e5f7;
  font-size: 12px;
  font-weight: 700;
}

.hero-visual {
  min-height: 430px;
  position: relative;
}

.phone {
  width: 235px;
  height: 450px;
  border: 8px solid #0c1118;
  border-radius: 36px;
  background: #05070b;
  padding: 10px;
  position: absolute;
  right: 5%;
  top: 0;
  transform: rotate(3deg);
  box-shadow: 0 30px 60px rgba(0,0,0,.34);
  z-index: 3;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 86px;
  height: 20px;
  border-radius: 15px;
  background: #020305;
  z-index: 4;
}

.phone-screen {
  height: 100%;
  border-radius: 24px;
  background: linear-gradient(180deg, #1b2430, #071019 75%);
  padding: 18px 16px 16px;
  text-align: center;
}

.phone-top {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #eaf2fb;
  padding: 0 3px;
}

.call-title {
  margin-top: 38px;
  font-size: 17px;
  font-weight: 750;
}

.call-subtitle {
  color: #a8b9cf;
  font-size: 11px;
}

.camera-card {
  height: 220px;
  border-radius: 17px;
  margin: 22px 0 24px;
  background:
    linear-gradient(180deg, rgba(31,54,81,.15), rgba(0,0,0,.48)),
    linear-gradient(135deg, #436d94, #14283f 60%, #0d1723);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,.12);
}

.camera-card .building-icon {
  font-size: 60px;
  margin-bottom: 12px;
}

.camera-card strong {
  font-size: 14px;
}

.camera-card span {
  color: #aebfd2;
  font-size: 10px;
}

.call-controls {
  display: flex;
  justify-content: space-around;
}

.call-controls button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  border: 0;
  font-size: 17px;
  background: #283341;
  color: white;
}

.call-controls .answer {
  background: #16895b;
}

.call-controls .hangup {
  background: #e43b36;
}

.intercom {
  position: absolute;
  width: 175px;
  min-height: 360px;
  right: 48%;
  top: 58px;
  padding: 25px 22px;
  border-radius: 11px;
  background: linear-gradient(140deg,#cfd5dd,#7f8995 50%,#c1c8d0);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.5), 0 28px 50px rgba(0,0,0,.28);
  color: #0d1621;
}

.camera {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  margin: 0 auto 13px;
  background: radial-gradient(circle, #0c1b2b 0 22%, #152d46 23% 40%, #02080e 41% 70%, #25313e 71%);
  border: 4px solid #34414d;
}

.speaker {
  width: 54px;
  height: 30px;
  margin: 0 auto 13px;
  background-image: radial-gradient(circle, #23303b 1.7px, transparent 2px);
  background-size: 8px 8px;
}

.screen {
  background: #0f2238;
  color: #dce9f8;
  font-size: 8px;
  padding: 8px;
  border-radius: 3px;
  text-align: center;
  margin-bottom: 12px;
}

.keypad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  max-width: 90px;
  margin: 0 auto;
}

.keypad span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid #4f5860;
  border-radius: 3px;
  background: #d7dce1;
  font-size: 9px;
  font-weight: 800;
}

.door-btn {
  width: 30px;
  height: 30px;
  margin: 16px auto 0;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 30%, #f6f6f6, #8d969e 55%, #444e56);
  border: 2px solid #707981;
}

.quick-section {
  margin-top: -42px;
  position: relative;
  z-index: 10;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-card,
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.feature-card {
  padding: 28px;
}

.feature-card .icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-soft);
  font-size: 26px;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  color: var(--navy);
}

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

.info-section {
  padding: 48px 0;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr 1fr;
  gap: 18px;
}

.panel {
  padding: 30px;
}

.panel h3 {
  color: var(--navy);
  font-size: 24px;
  margin: 5px 0 20px;
}

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

.section-kicker {
  color: var(--blue);
}

.panel-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.status-badge {
  color: var(--green);
  background: #eaf8f1;
  border: 1px solid #cceedd;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 800;
}

.status-list {
  display: grid;
  gap: 4px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid #edf1f7;
}

.status-row span {
  display: flex;
  align-items: center;
  gap: 9px;
}

.status-row i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #e7f7ef;
}

.status-row strong {
  color: var(--green);
  font-size: 13px;
}

.settings-list {
  margin: 0;
}

.settings-list > div {
  padding: 10px 0;
  border-bottom: 1px solid #edf1f7;
}

.settings-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.settings-list dd {
  margin: 3px 0 0;
  color: var(--navy);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.note {
  margin-top: 18px;
  padding: 13px 14px;
  border-radius: 9px;
  background: #f2f6fb;
  color: var(--muted);
  font-size: 13px;
}

code {
  color: #174d9d;
  font-weight: 800;
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
}

.architecture {
  background: white;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 70px 0 82px;
}

.section-title {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 38px;
}

.section-title h2 {
  color: var(--navy);
  font-size: clamp(30px, 4vw, 46px);
  margin: 7px 0 10px;
}

.section-title p {
  color: var(--muted);
  margin: 0;
}

.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 14px;
}

.flow-node {
  min-height: 155px;
  padding: 22px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafd;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flow-node.emphasized {
  background: linear-gradient(145deg, #0b2f6b, #0d5abd);
  color: white;
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(9,63,139,.22);
}

.flow-icon {
  font-size: 35px;
  margin-bottom: 10px;
}

.flow-node strong {
  font-size: 17px;
}

.flow-node span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 3px;
}

.flow-node.emphasized span {
  color: #bed8fb;
}

.flow-arrow {
  font-size: 26px;
  color: #7b8da8;
  font-weight: 800;
}

footer {
  background: #07162b;
  color: #c1d0e3;
  padding: 28px 0;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.footer-inner > div:first-child {
  display: grid;
}

.footer-inner strong {
  color: white;
}

.footer-inner span,
.copyright {
  font-size: 12px;
  color: #8397b4;
}

.footer-links {
  display: flex;
  gap: 18px;
  font-size: 13px;
}

@media (max-width: 980px) {
  .main-nav {
    position: absolute;
    display: none;
    top: 78px;
    left: 0;
    right: 0;
    background: white;
    padding: 16px 24px 24px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav a {
    padding: 12px 4px;
  }

  .main-nav a.active::after {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    padding-bottom: 110px;
  }

  .hero-visual {
    min-height: 430px;
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
  }

  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-grid {
    grid-template-columns: 1fr;
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    transform: rotate(90deg);
    justify-self: center;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand-copy strong {
    font-size: 17px;
  }

  .brand-copy small {
    font-size: 10px;
  }

  .main-nav {
    top: 68px;
  }

  .hero-grid {
    min-height: auto;
    padding: 52px 0 95px;
    gap: 42px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero h2 {
    font-size: 27px;
  }

  .hero p {
    font-size: 16px;
  }

  .hero-actions {
    display: grid;
  }

  .btn {
    width: 100%;
  }

  .hero-visual {
    min-height: 390px;
  }

  .phone {
    width: 205px;
    height: 390px;
    right: 0;
  }

  .camera-card {
    height: 180px;
  }

  .intercom {
    width: 145px;
    min-height: 320px;
    right: auto;
    left: 0;
    top: 45px;
  }

  .quick-section {
    margin-top: -55px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .panel {
    padding: 22px;
  }
}
