html {
  font-size: 15px;
  scroll-behavior: smooth;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #ffffff, 0 0 0 0.25rem #28b48f;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: #17221f;
  background:
    linear-gradient(135deg, rgba(40, 180, 143, 0.12), transparent 34%),
    linear-gradient(225deg, rgba(51, 103, 214, 0.1), transparent 28%),
    #f6f8f5;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

a {
  color: #087b67;
}

.site-header {
  border-bottom: 1px solid rgba(23, 34, 31, 0.1);
  background: rgba(246, 248, 245, 0.9);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand-mark {
  color: #17221f;
  font-weight: 800;
  letter-spacing: 0;
}

.nav-links {
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  color: #3c4946;
  font-weight: 650;
}

.nav-link:hover {
  color: #087b67;
}

.nav-pill {
  border: 1px solid rgba(8, 123, 103, 0.28);
  border-radius: 999px;
  padding-inline: 1rem !important;
}

.page-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: clamp(3rem, 8vw, 5.75rem) 0 2.5rem;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #087b67;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  max-width: 780px;
  margin: 0;
  color: #111a18;
  font-size: clamp(3.1rem, 8vw, 6.4rem);
  font-weight: 850;
  line-height: 0.9;
}

h2 {
  margin: 0;
  color: #111a18;
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1;
}

h3 {
  margin: 0;
  color: #17221f;
  font-size: 1.05rem;
  font-weight: 780;
}

p {
  color: #52605c;
}

.hero-text {
  max-width: 610px;
  margin: 1.3rem 0 0;
  font-size: 1.14rem;
  line-height: 1.7;
}

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

.btn {
  border-radius: 8px;
  min-height: 46px;
  padding: 0.75rem 1.05rem;
  font-weight: 800;
}

.btn-primary {
  border-color: #087b67;
  background: #087b67;
}

.btn-primary:hover {
  border-color: #075f52;
  background: #075f52;
}

.btn-quiet {
  border: 1px solid rgba(23, 34, 31, 0.16);
  color: #17221f;
  background: #ffffff;
}

.server-visual {
  position: relative;
  display: grid;
  gap: 0.85rem;
  overflow: hidden;
  border: 1px solid rgba(23, 34, 31, 0.12);
  border-radius: 8px;
  padding: 1.1rem;
  background: #16221f;
  box-shadow: 0 28px 80px rgba(22, 34, 31, 0.18);
}

.server-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #d8fff3;
  font-weight: 800;
}

.status-light {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: #36e0a8;
  box-shadow: 0 0 0 6px rgba(54, 224, 168, 0.18);
}

.rack {
  min-height: 72px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.11) 0 18%, transparent 18% 22%, rgba(255,255,255,0.08) 22% 100%),
    #23302c;
}

.rack-hot {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.12) 0 18%, transparent 18% 22%, rgba(255,255,255,0.08) 22% 100%),
    #2b3e39;
}

.rack-cool {
  background:
    linear-gradient(90deg, rgba(255,255,255,0.1) 0 18%, transparent 18% 22%, rgba(255,255,255,0.08) 22% 100%),
    #1d2b42;
}

.traffic-chart {
  display: flex;
  align-items: end;
  gap: 0.55rem;
  height: 132px;
  margin-top: 0.35rem;
  padding: 0.8rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.traffic-chart span {
  flex: 1;
  min-width: 18px;
  border-radius: 8px 8px 3px 3px;
  background: linear-gradient(180deg, #7fd6ff, #36e0a8);
}

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

.metric-card,
.service-card,
.contact-panel,
.content-band,
.split-band {
  border: 1px solid rgba(23, 34, 31, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 50px rgba(23, 34, 31, 0.07);
}

.metric-card {
  display: grid;
  gap: 0.25rem;
  padding: 1.1rem;
}

.metric-card span,
.metric-card small {
  color: #66736f;
}

.metric-card strong {
  color: #17221f;
  font-size: 2rem;
  line-height: 1;
}

.content-band,
.split-band,
.contact-panel {
  margin-top: 1rem;
  padding: clamp(1.25rem, 4vw, 2rem);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.3rem;
}

.service-card {
  display: grid;
  gap: 0.75rem;
  padding: 1.15rem;
}

.service-card p,
.timeline-item p {
  margin: 0;
  line-height: 1.6;
}

.service-status {
  width: fit-content;
  border-radius: 999px;
  padding: 0.28rem 0.65rem;
  color: #075f52;
  background: rgba(40, 180, 143, 0.14);
  font-size: 0.78rem;
  font-weight: 800;
}

.split-band {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1.12fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
}

.split-band > div:first-child p:last-child {
  margin-top: 1rem;
  line-height: 1.7;
}

.timeline {
  display: grid;
  gap: 0.8rem;
}

.timeline-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.9rem;
  align-items: start;
  padding: 1rem;
  border-radius: 8px;
  background: #f8fbfa;
}

.timeline-item > span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  color: #ffffff;
  background: #2557a7;
  font-weight: 850;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: clamp(1rem, 4vw, 2rem);
  align-items: start;
  margin-bottom: 2rem;
}

.demo-form {
  display: grid;
  gap: 0.85rem;
}

.demo-form label {
  display: grid;
  gap: 0.35rem;
  color: #3c4946;
  font-weight: 760;
}

.demo-form input,
.demo-form select,
.demo-form textarea {
  width: 100%;
  border: 1px solid rgba(23, 34, 31, 0.16);
  border-radius: 8px;
  padding: 0.78rem 0.85rem;
  color: #17221f;
  background: #ffffff;
}

.narrow-page {
  max-width: 760px;
  margin-inline: auto;
}

.footer {
  padding: 1.5rem 0;
  color: #5f6b67;
}

.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.map-page-shell {
  display: grid;
  grid-template-columns: minmax(300px, 390px) minmax(0, 1fr);
  gap: 1rem;
  min-height: calc(100vh - 162px);
  padding: 1rem 0 2rem;
}

.map-panel {
  display: grid;
  align-content: start;
  gap: 0.95rem;
  border: 1px solid rgba(23, 34, 31, 0.1);
  border-radius: 8px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 16px 50px rgba(23, 34, 31, 0.07);
}

.map-panel h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.map-panel p {
  margin: 0.75rem 0 0;
  line-height: 1.55;
}

.map-panel label,
.map-field > label {
  display: grid;
  gap: 0.35rem;
  color: #3c4946;
  font-weight: 760;
}

.map-panel select,
.map-panel input {
  width: 100%;
  border: 1px solid rgba(23, 34, 31, 0.16);
  border-radius: 8px;
  padding: 0.72rem 0.78rem;
  color: #17221f;
  background: #ffffff;
}

.map-field {
  position: relative;
  display: grid;
  gap: 0.35rem;
}

.map-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.map-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.map-btn {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  font-weight: 820;
}

.map-btn-primary {
  color: #ffffff;
  background: #087b67;
}

.map-btn-danger {
  color: #ffffff;
  background: #b8353d;
}

.map-status {
  border-radius: 8px;
  padding: 0.75rem;
  color: #d8fff3;
  background: #16221f;
  font-size: 0.9rem;
  font-weight: 720;
}

.glasgow-map {
  min-height: 680px;
  border: 1px solid rgba(23, 34, 31, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #dce8e2;
  box-shadow: 0 16px 50px rgba(23, 34, 31, 0.07);
}

.suggestions-list {
  position: absolute;
  top: calc(100% + 0.25rem);
  right: 0;
  left: 0;
  z-index: 1100;
  display: none;
  max-height: 230px;
  overflow-y: auto;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(23, 34, 31, 0.16);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(23, 34, 31, 0.16);
  list-style: none;
}

.suggestions-list li {
  padding: 0.75rem;
  border-bottom: 1px solid rgba(23, 34, 31, 0.08);
  color: #17221f;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1.35;
}

.suggestions-list li:hover {
  background: #edf8f4;
}

@media (max-width: 860px) {
  .hero-shell,
  .split-band,
  .contact-panel,
  .map-page-shell {
    grid-template-columns: 1fr;
  }

  .hero-shell {
    min-height: auto;
  }

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

  .glasgow-map {
    min-height: 65vh;
  }
}

@media (max-width: 560px) {
  .page-wrap {
    width: min(100% - 20px, 1120px);
  }

  h1 {
    font-size: clamp(2.75rem, 16vw, 4rem);
  }

  .hero-actions,
  .footer .container {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .server-visual {
    padding: 0.85rem;
  }

  .map-action-grid {
    grid-template-columns: 1fr;
  }

  .map-input-row {
    grid-template-columns: 1fr;
  }
}
