:root {
  --red: #d71920;
  --red-dark: #9f1016;
  --black: #050506;
  --ink: #171719;
  --white: #ffffff;
  --gold: #f5cf18;
  --muted: #c8c9cf;
  --line: rgba(255, 255, 255, 0.16);
  --panel: rgba(8, 8, 10, 0.72);
  --panel-strong: rgba(255, 255, 255, 0.92);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--black);
  color: var(--white);
}

body {
  min-width: 320px;
}

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

button {
  font: inherit;
}

.site-shell,
.hero {
  min-height: 100svh;
  height: 100svh;
}

.hero {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  isolation: isolate;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("assets/infra-hero.png");
  background-size: cover;
  background-position: 64% 50%;
  transform: scale(1.03);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 5, 6, 0.42) 0%, rgba(5, 5, 6, 0.18) 50%, rgba(5, 5, 6, 0.05) 100%),
    radial-gradient(circle at 68% 22%, rgba(215, 25, 32, 0.14), transparent 24rem);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0 10px;
}

.brand,
.brand-copy,
.quick-nav,
.hero-actions,
.hero-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0.82rem;
  min-width: 180px;
}

.logo-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  overflow: hidden;
  border: 1px solid rgba(245, 207, 24, 0.7);
  border-radius: 50%;
  background: rgba(245, 207, 24, 0.14);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.logo-frame img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  padding: 0;
  background: transparent;
}

.logo-frame img:not([src]),
.logo-frame img[src=""],
.logo-frame img.is-missing {
  display: none;
}

.logo-fallback {
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--gold);
  letter-spacing: 0;
}

.brand-copy {
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.05;
}

.brand-copy strong {
  font-size: 1rem;
  text-transform: uppercase;
}

.brand-copy span {
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.76rem;
}

.quick-nav {
  gap: 0.35rem;
  padding: 0.28rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(14px);
}

.quick-nav a,
.top-action {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.85rem;
  color: #ededf0;
  font-size: 0.83rem;
  font-weight: 700;
}

.quick-nav a:hover,
.quick-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.top-action {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: rgba(255, 255, 255, 0.1);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 590px) minmax(360px, 430px);
  align-items: center;
  justify-content: space-between;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0;
}

.hero-copy {
  max-width: 590px;
}

.eyebrow {
  width: fit-content;
  margin: 0 0 1rem;
  padding: 0.45rem 0.65rem;
  border-left: 3px solid var(--red);
  background: rgba(215, 25, 32, 0.12);
  color: #fff1f1;
  font-size: clamp(0.73rem, 1.4vw, 0.82rem);
  font-weight: 800;
  text-transform: uppercase;
}

h1 {
  max-width: 9ch;
  margin: 0;
  font-size: clamp(3.1rem, 5.9vw, 5.65rem);
  line-height: 0.92;
  letter-spacing: 0;
}

.lead {
  max-width: 570px;
  margin: 1.35rem 0 0;
  color: #e4e5e9;
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
}

.hero-actions {
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.55rem;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.1rem;
  border: 1px solid transparent;
  font-size: 0.9rem;
  font-weight: 900;
}

.button.primary {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 16px 34px rgba(215, 25, 32, 0.26);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #ef242b;
  outline: none;
}

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

.service-panel {
  display: grid;
  gap: 0.65rem;
  width: 100%;
  max-width: 430px;
}

.service-card {
  position: relative;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 0.85rem;
  align-items: start;
  width: 100%;
  min-height: 96px;
  padding: 0.95rem 0.95rem 1.45rem;
  border: 1px solid var(--line);
  background: rgba(8, 8, 10, 0.88);
  color: inherit;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(18px);
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.service-card:nth-child(even) {
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.service-card:hover,
.service-card:focus-visible {
  border-color: rgba(215, 25, 32, 0.72);
  outline: none;
  transform: translateY(-2px);
}

.service-card h2 {
  margin: 0 0 0.28rem;
  font-size: 1rem;
  letter-spacing: 0;
}

.service-card p {
  margin: 0;
  color: inherit;
  opacity: 0.78;
  font-size: 0.86rem;
  line-height: 1.4;
}

.card-more {
  position: absolute;
  right: 0.72rem;
  bottom: 0.55rem;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-icon {
  position: relative;
  width: 42px;
  height: 42px;
  border: 2px solid var(--red);
  background: rgba(215, 25, 32, 0.11);
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  background: currentColor;
}

.service-icon::before {
  left: 8px;
  right: 8px;
  top: 12px;
  height: 3px;
  box-shadow: 0 8px 0 currentColor, 0 16px 0 currentColor;
}

.service-icon::after {
  width: 4px;
  height: 4px;
  right: 8px;
  top: 11px;
  box-shadow: 0 8px 0 currentColor, 0 16px 0 currentColor;
  color: var(--red);
}

.service-icon.network::before {
  width: 8px;
  height: 8px;
  left: 7px;
  top: 7px;
  box-shadow: 20px 0 0 currentColor, 10px 19px 0 currentColor;
}

.service-icon.network::after {
  left: 13px;
  top: 15px;
  width: 18px;
  height: 18px;
  border-left: 2px solid var(--red);
  border-right: 2px solid var(--red);
  border-bottom: 2px solid var(--red);
  background: transparent;
  transform: rotate(45deg);
  box-shadow: none;
}

.service-icon.camera::before {
  left: 8px;
  top: 13px;
  width: 18px;
  height: 12px;
  box-shadow: none;
}

.service-icon.camera::after {
  right: 7px;
  top: 16px;
  width: 10px;
  height: 7px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  box-shadow: none;
}

.service-icon.support::before {
  left: 9px;
  top: 9px;
  width: 20px;
  height: 15px;
  border: 3px solid currentColor;
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: transparent;
  box-shadow: none;
}

.service-icon.support::after {
  right: 8px;
  top: 24px;
  width: 11px;
  height: 3px;
  box-shadow: none;
}

.hero-footer {
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 10px 0 22px;
  border-top: 1px solid var(--line);
}

.hero-footer div {
  min-width: 0;
}

.hero-footer strong,
.hero-footer span {
  display: block;
}

.hero-footer strong {
  color: var(--white);
  font-size: 0.9rem;
}

.hero-footer span {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.service-modal {
  width: min(560px, calc(100vw - 32px));
  max-height: min(680px, calc(100svh - 34px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: var(--white);
  overflow: visible;
}

.service-modal::backdrop {
  background:
    radial-gradient(circle at 50% 42%, rgba(215, 25, 32, 0.24), transparent 28rem),
    rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px);
}

.modal-shell {
  position: relative;
  padding: clamp(1.2rem, 4vw, 2rem);
  background:
    linear-gradient(145deg, rgba(19, 19, 22, 0.98), rgba(5, 5, 6, 0.98)),
    linear-gradient(90deg, rgba(215, 25, 32, 0.22), transparent);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52);
}

.modal-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 4px solid var(--red);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.modal-close:hover,
.modal-close:focus-visible {
  background: var(--red);
  outline: none;
}

.modal-kicker {
  margin: 0 2.6rem 0.65rem 0;
  color: #ff5d63;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.modal-shell h3 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.15rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.modal-shell p:not(.modal-kicker) {
  margin: 1rem 0 0;
  color: #e7e8ec;
  font-size: 1rem;
  line-height: 1.55;
}

.modal-shell ul {
  display: grid;
  gap: 0.55rem;
  margin: 1.05rem 0 0;
  padding: 0;
  list-style: none;
}

.modal-shell li {
  position: relative;
  padding-left: 1.1rem;
  color: #d9dbe1;
  font-size: 0.94rem;
  line-height: 1.38;
}

.modal-shell li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--red);
}

.modal-action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.25rem;
  padding: 0 1rem;
  background: var(--red);
  color: var(--white);
  font-weight: 900;
}

.modal-action:hover,
.modal-action:focus-visible {
  background: #ef242b;
  outline: none;
}

.chatbot {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  display: grid;
  justify-items: end;
  gap: 0.75rem;
}

.chat-toggle {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0 1rem 0 0.7rem;
  border: 1px solid rgba(245, 207, 24, 0.52);
  background: linear-gradient(135deg, var(--red), #9f1016);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.34);
}

.bot-mark {
  position: relative;
  width: 32px;
  height: 32px;
  border: 2px solid var(--gold);
  background: rgba(0, 0, 0, 0.34);
}

.bot-mark::before,
.bot-mark::after {
  content: "";
  position: absolute;
  background: var(--white);
}

.bot-mark::before {
  left: 8px;
  top: 10px;
  width: 4px;
  height: 4px;
  box-shadow: 10px 0 0 var(--white);
}

.bot-mark::after {
  left: 8px;
  right: 8px;
  bottom: 8px;
  height: 2px;
}

.chat-window {
  width: min(370px, calc(100vw - 32px));
  max-height: min(560px, calc(100svh - 110px));
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(7, 7, 9, 0.96);
  color: var(--white);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(18px);
}

.chat-window[hidden] {
  display: none;
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(215, 25, 32, 0.28), transparent);
}

.chat-header strong,
.chat-header span {
  display: block;
}

.chat-header strong {
  font-size: 0.95rem;
}

.chat-header span {
  margin-top: 0.16rem;
  color: var(--muted);
  font-size: 0.74rem;
}

.chat-close {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
}

.chat-log {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-height: 0;
  padding: 0.9rem;
  overflow-y: auto;
}

.chat-message {
  width: fit-content;
  max-width: 88%;
  padding: 0.65rem 0.75rem;
  font-size: 0.86rem;
  line-height: 1.38;
  white-space: pre-line;
}

.chat-message.bot {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.08);
}

.chat-message.user {
  justify-self: end;
  background: var(--red);
  color: var(--white);
}

.chat-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: var(--white);
  padding: 0 0.85rem;
  font-weight: 900;
}

.chat-link:hover,
.chat-link:focus-visible {
  background: #ef242b;
  outline: none;
}

.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.chat-input {
  min-width: 0;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  padding: 0 0.72rem;
  outline: none;
}

.chat-input:focus {
  border-color: rgba(215, 25, 32, 0.78);
}

.chat-send {
  height: 42px;
  border: 0;
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  padding: 0 0.85rem;
  font-weight: 900;
}

@media (max-width: 900px) {
  .topbar {
    width: min(100% - 28px, 720px);
    padding-top: 14px;
  }

  .quick-nav {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    width: min(100% - 28px, 720px);
    gap: 1rem;
    align-content: center;
  }

  .hero-copy {
    max-width: 100%;
    text-align: center;
  }

  h1 {
    max-width: 11ch;
    margin-inline: auto;
    text-align: center;
    font-size: clamp(2.55rem, 11vw, 4.5rem);
  }

  .eyebrow {
    margin-inline: auto;
  }

  .lead {
    max-width: 34rem;
    margin-inline: auto;
    margin-top: 0.9rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .service-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }

  .service-card {
    min-height: 112px;
    grid-template-columns: 36px 1fr;
    padding: 0.75rem 0.75rem 1.45rem;
  }

  .service-icon {
    width: 34px;
    height: 34px;
  }

  .hero-footer {
    display: none;
  }
}

@media (max-width: 620px) {
  html,
  body {
    overflow-x: hidden;
    overflow-y: auto;
  }

  .site-shell,
  .hero {
    min-height: 100svh;
    height: auto;
  }

  .hero {
    overflow: visible;
  }

  .topbar {
    width: calc(100% - 24px);
    gap: 0.75rem;
    padding-top: 10px;
  }

  .brand {
    min-width: 0;
  }

  .logo-frame {
    width: 42px;
    height: 42px;
  }

  .brand-copy strong {
    font-size: 0.92rem;
  }

  .brand-copy span,
  .top-action {
    display: none;
  }

  .hero-grid {
    width: calc(100% - 24px);
    gap: 0.72rem;
    padding: 4px 0 58px;
  }

  .hero-media {
    background-position: 48% 50%;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(5, 5, 6, 0.08) 44%, rgba(255, 255, 255, 0.12) 100%),
      radial-gradient(circle at 50% 16%, rgba(215, 25, 32, 0.12), transparent 18rem);
  }

  h1 {
    max-width: 10.5ch;
    font-size: clamp(2.1rem, 9.2vw, 2.85rem);
    line-height: 0.95;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.52);
  }

  .eyebrow {
    margin: 0 auto 0.72rem;
    padding: 0.36rem 0.5rem;
    font-size: 0.66rem;
  }

  .lead {
    margin-inline: auto;
    max-width: 32rem;
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.36);
    background: rgba(255, 255, 255, 0.82);
    color: var(--ink);
    font-size: 0.84rem;
    line-height: 1.35;
    backdrop-filter: blur(10px);
  }

  .hero-actions {
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.82rem;
  }

  .button {
    min-height: 42px;
    flex: 1 1 0;
    padding: 0 0.55rem;
    font-size: 0.82rem;
  }

  .service-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
  }

  .service-card {
    min-height: 84px;
    grid-template-columns: 30px 1fr;
    gap: 0.55rem;
    padding: 0.58rem 0.58rem 1.1rem;
  }

  .service-icon {
    width: 30px;
    height: 30px;
  }

  .service-card h2 {
    font-size: 0.82rem;
    line-height: 1.05;
  }

  .service-card p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 0.7rem;
    line-height: 1.24;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .card-more {
    right: 0.52rem;
    bottom: 0.42rem;
    font-size: 0.58rem;
  }

  .hero-footer {
    display: none;
  }

  .chatbot {
    right: 10px;
    bottom: 10px;
  }

  .chat-window {
    max-height: min(520px, calc(100svh - 90px));
  }

  .chat-toggle span:last-child {
    display: none;
  }
}

@media (max-width: 420px) {
  .hero-grid {
    gap: 0.55rem;
    padding-bottom: 54px;
  }

  h1 {
    font-size: clamp(1.9rem, 9.6vw, 2.25rem);
    max-width: 10ch;
  }

  .lead {
    font-size: 0.78rem;
  }

  .button {
    min-height: 38px;
    font-size: 0.74rem;
  }

  .service-card {
    min-height: 70px;
  }

  .service-card p {
    -webkit-line-clamp: 1;
  }
}

@media (max-width: 700px) {
  .lead {
    padding: 0.72rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.48);
    background: rgba(255, 255, 255, 0.86);
    color: var(--ink);
    backdrop-filter: blur(10px);
  }

  .eyebrow {
    background: rgba(215, 25, 32, 0.72);
  }
}

@media (max-width: 540px) {
  .hero-grid {
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(2rem, 8.6vw, 2.7rem);
  }

  .service-panel {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 76px;
    grid-template-columns: 34px 1fr;
  }

  .service-card p {
    -webkit-line-clamp: 2;
  }
}

@media (max-height: 720px) and (min-width: 901px) {
  .topbar {
    padding-top: 14px;
  }

  h1 {
    font-size: clamp(3rem, 6.2vw, 5.4rem);
  }

  .lead {
    margin-top: 0.9rem;
  }

  .hero-actions {
    margin-top: 1rem;
  }

  .service-card {
    min-height: 82px;
    padding: 0.72rem;
  }

  .hero-footer {
    padding-bottom: 14px;
  }
}
