:root {
  --ink: #07111f;
  --muted: #5a6878;
  --line: rgba(20, 45, 76, 0.12);
  --blue: #1167d8;
  --blue-2: #43a6ff;
  --cyan: #64e2ff;
  --panel: rgba(255, 255, 255, 0.88);
  --shadow: 0 22px 70px rgba(5, 20, 42, 0.18);
  color-scheme: light;
  font-family: "Space Grotesk", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f5f8fc;
  color: var(--ink);
}

body[data-look="silverline"] {
  --line: rgba(172, 185, 198, 0.54);
  --blue: #0f5fbf;
  --blue-2: #7dbdff;
  --cyan: #d8e6f2;
  --panel: rgba(255, 255, 255, 0.78);
  --shadow: 0 22px 60px rgba(8, 20, 35, 0.16);
  background: #eef2f6;
}

body[data-look="foundry"] {
  --ink: #071018;
  --muted: #54606b;
  --line: rgba(124, 138, 152, 0.38);
  --blue: #0d4f9e;
  --blue-2: #58b8ff;
  --cyan: #9ed4ff;
  --panel: rgba(246, 248, 250, 0.86);
  --shadow: 0 24px 52px rgba(0, 0, 0, 0.2);
  background: #e9edf1;
}

body[data-look="blueprint"] {
  --ink: #06142a;
  --muted: #4a627c;
  --line: rgba(64, 166, 255, 0.28);
  --blue: #0069e6;
  --blue-2: #1ac7ff;
  --cyan: #7ee7ff;
  --panel: rgba(248, 252, 255, 0.82);
  --shadow: 0 18px 48px rgba(0, 78, 168, 0.16);
  background: #edf7ff;
}

body[data-look="nightshift"] {
  --ink: #eaf3ff;
  --muted: #aab8c8;
  --line: rgba(187, 209, 230, 0.22);
  --blue: #41a1ff;
  --blue-2: #78d7ff;
  --cyan: #b9ecff;
  --panel: rgba(11, 22, 38, 0.78);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  background: #07111f;
  color: #eaf3ff;
}

body[data-look="silverline"] .service-grid article,
body[data-look="silverline"] .contact-form,
body[data-look="silverline"] .map-wrap,
body[data-look="silverline"] .dashboard-card,
body[data-look="silverline"] .stat-grid article,
body[data-look="silverline"] .brand-showcase {
  border-color: rgba(196, 207, 218, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.78), 0 22px 52px rgba(7, 17, 31, 0.12);
}

body[data-look="foundry"] .service-grid article,
body[data-look="foundry"] .contact-form,
body[data-look="foundry"] .map-wrap,
body[data-look="foundry"] .dashboard-card,
body[data-look="foundry"] .stat-grid article {
  border-color: rgba(85, 98, 112, 0.34);
  box-shadow: 8px 8px 0 rgba(7, 17, 31, 0.08);
}

body[data-look="blueprint"] .section-band {
  background-image:
    linear-gradient(rgba(0, 105, 230, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 105, 230, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
}

body[data-look="nightshift"] .services,
body[data-look="nightshift"] .process,
body[data-look="nightshift"] .contact {
  background: #07111f;
}

body[data-look="nightshift"] .service-grid article,
body[data-look="nightshift"] .contact-form,
body[data-look="nightshift"] .map-wrap,
body[data-look="nightshift"] .dashboard-card,
body[data-look="nightshift"] .stat-grid article,
body[data-look="nightshift"] .login-card {
  background: rgba(11, 22, 38, 0.88);
  border-color: rgba(130, 180, 226, 0.24);
}

body[data-look="nightshift"] input,
body[data-look="nightshift"] textarea {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body[data-look="nightshift"] .quality-content {
  background: rgba(7, 17, 31, 0.78);
  border-color: rgba(130, 180, 226, 0.28);
}

body[data-look="nightshift"] .quality p,
body[data-look="nightshift"] .quality-content p {
  color: rgba(234, 243, 255, 0.8);
}

body[data-look="nightshift"] .metrics div {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(130, 180, 226, 0.24);
}

body[data-look="nightshift"] .metrics span {
  color: rgba(234, 243, 255, 0.72);
}

body[data-look="nightshift"] .site-nav.is-scrolled .brand {
  color: #07111f;
}

body[data-look="nightshift"] .site-nav.is-scrolled .nav-links a,
body[data-look="nightshift"] .site-nav.is-scrolled .nav-links a:hover {
  color: rgba(7, 17, 31, 0.76);
}

body[data-look="nightshift"] .hero .button.secondary {
  color: #07111f;
}

body[data-look="nightshift"] .hero-stat-row strong {
  color: #43a6ff;
}

body[data-look="nightshift"] .hero-stat-row span {
  color: #123f73;
}

a {
  color: inherit;
}

.site-nav {
  align-items: center;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 252, 0.22);
  border: 1px solid transparent;
  border-radius: 0 0 22px 22px;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 50%;
  max-width: 1120px;
  padding: 21px 22px;
  position: fixed;
  top: 0;
  transform: translateX(-50%) translateY(-10px);
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease, border 180ms ease;
  width: calc(100% - 32px);
  z-index: 20;
}

.site-nav:not(.is-scrolled) {
  background: rgba(7, 17, 31, 0.86);
  border-color: rgba(159, 193, 219, 0.18);
}

.site-nav:not(.is-scrolled) .brand,
.site-nav:not(.is-scrolled) .nav-links a {
  color: #f0f6fc;
}

.site-nav.is-scrolled {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--line);
  box-shadow: 0 18px 50px rgba(5, 20, 42, 0.12);
  transform: translateX(-50%) translateY(0);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  border-radius: 12px;
  color: #fff;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.brand-mark img {
  display: block;
  height: 27px;
  object-fit: contain;
  width: 29px;
}

.nav-links {
  align-items: center;
  display: flex;
  gap: 8px;
}

.nav-links a {
  border-radius: 999px;
  color: rgba(7, 17, 31, 0.76);
  font-size: 0.92rem;
  font-weight: 700;
  overflow: hidden;
  padding: 10px 13px;
  position: relative;
  text-decoration: none;
}

.nav-links a::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
  content: "";
  inset: -35% auto -35% -80%;
  pointer-events: none;
  position: absolute;
  transform: rotate(18deg);
  transition: none;
  width: 44%;
}

.nav-links a:hover {
  background: rgba(17, 103, 216, 0.1);
  color: var(--ink);
}

.nav-links a:hover::after {
  left: 130%;
  transition: left 420ms ease;
}

.menu-button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  display: none;
  flex-direction: column;
  gap: 4px;
  height: 42px;
  justify-content: center;
  padding: 0 11px;
  width: 44px;
}

.menu-button span {
  background: var(--ink);
  border-radius: 999px;
  display: block;
  height: 2px;
  width: 20px;
}

.hero {
  min-height: 88vh;
  isolation: isolate;
  background: #07111f;
  overflow: hidden;
  padding: 118px 24px 58px;
  position: relative;
}

.hero-bg {
  background:
    linear-gradient(90deg, rgba(3, 12, 23, 0.97) 0%, rgba(3, 12, 23, 0.85) 34%, rgba(3, 12, 23, 0.2) 72%),
    url("../img/cobot-busbar-testing.png") center/cover;
  inset: 0;
  position: absolute;
  transform: translateZ(0);
  z-index: -2;
}

.hero-bg::after {
  background: linear-gradient(180deg, rgba(7, 17, 31, 0.12) 55%, #07111f 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.hero-grid {
  align-items: center;
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1fr) 340px;
  margin: 0 auto;
  max-width: 1120px;
  min-height: calc(88vh - 176px);
}

.hero-copy {
  color: #fff;
  max-width: 760px;
}

.eyebrow {
  color: var(--blue-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 14px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3,
.brand,
.button {
  letter-spacing: 0;
}

.look-switcher {
  background: rgba(7, 17, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  bottom: 18px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24);
  color: #fff;
  padding: 10px;
  position: fixed;
  right: 18px;
  width: 188px;
  z-index: 40;
}

.look-switcher:not(.is-visible) {
  display: none;
}

.look-switcher label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  gap: 6px;
  text-transform: uppercase;
}

.look-switcher select {
  appearance: none;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: #07111f;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 38px;
  padding: 8px 10px;
  width: 100%;
}

.hero h1 {
  font-size: clamp(2.85rem, 6vw, 5.25rem);
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 22px;
  max-width: 840px;
}

.hero-lede {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.04rem;
  line-height: 1.7;
  max-width: 660px;
}

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

.button {
  align-items: center;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 800;
  justify-content: center;
  min-height: 48px;
  padding: 13px 18px;
  text-decoration: none;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  box-shadow: 0 18px 40px rgba(17, 103, 216, 0.3);
  color: #fff;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink);
}

.hero-panel,
.quality-content,
.contact-form,
.map-wrap,
.dashboard-card,
.stat-grid article,
.login-card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero-panel {
  align-self: end;
  backdrop-filter: blur(12px);
  border-radius: 4px;
  border-color: rgba(159, 193, 219, 0.32);
  display: flex;
  flex-direction: column;
  min-height: 360px;
  overflow: hidden;
  position: relative;
}

.hero-panel::before {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.72), transparent 42%),
    linear-gradient(90deg, transparent, rgba(100, 226, 255, 0.18), transparent);
  content: "";
  inset: 0;
  pointer-events: none;
  position: absolute;
}

.hero-panel-feature {
  background:
    linear-gradient(135deg, rgba(7, 17, 31, 0.9), rgba(10, 57, 107, 0.78)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 16px);
  color: #fff;
  flex: 1;
  padding: 28px;
  position: relative;
  z-index: 1;
}

.panel-kicker {
  color: var(--cyan);
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-panel-feature strong {
  display: block;
  font-size: clamp(2rem, 3.7vw, 3.6rem);
  line-height: 0.92;
  max-width: 260px;
}

.hero-panel-feature p {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
  margin: 22px 0 0;
}

.hero-stat-row {
  background: #e7eef4;
  border-top: 2px solid var(--blue-2);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
  z-index: 1;
}

.hero-stat-row div {
  align-content: center;
  display: grid;
  min-height: 98px;
  padding: 14px 12px;
}

.hero-stat-row strong {
  color: var(--ink);
  display: block;
  font-size: 1.45rem;
  line-height: 1;
}

.hero-stat-row span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
  margin-top: 8px;
}

.hero-stat-row .state-icon {
  display: block;
  height: 30px;
  object-fit: contain;
  transform: translate(5px, -3px);
  width: 46px;
}

.brand-showcase {
  background: linear-gradient(135deg, #07111f, #102b4d 58%, #0b1728);
  margin-top: -1px;
  padding: 34px 24px;
}

.brand-showcase-inner {
  align-items: center;
  display: grid;
  gap: 30px;
  grid-template-columns: 220px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1120px;
}

.brand-showcase img {
  display: block;
  height: auto;
  max-width: 220px;
  width: 100%;
}

.brand-showcase p {
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  margin: 0;
  max-width: 740px;
}

.trust-band {
  background: #fff;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  padding: 18px 24px;
}

.trust-band div {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.trust-band span {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.92rem;
  font-weight: 800;
  gap: 10px;
  justify-content: center;
  min-height: 34px;
  text-align: center;
}

.trust-band span::before {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  content: "";
  height: 8px;
  transform: rotate(45deg);
  width: 8px;
}

.section-band {
  padding: 90px 24px;
}

.section-heading {
  margin: 0 auto 34px;
  max-width: 1120px;
}

.section-heading h2,
.quality h2 {
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
  margin-bottom: 0;
  max-width: 820px;
}

.service-area-note {
  color: var(--muted);
  line-height: 1.65;
  margin: 18px 0 0;
  max-width: 760px;
}

.service-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.service-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 268px;
  padding: 26px;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.service-grid article:hover {
  box-shadow: 0 18px 50px rgba(5, 20, 42, 0.12);
  transform: translateY(-4px);
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.service-icon {
  align-items: center;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(216, 230, 242, 0.68)),
    linear-gradient(135deg, var(--blue), var(--cyan));
  border: 1px solid rgba(176, 194, 212, 0.72);
  border-radius: 8px;
  color: var(--blue);
  display: inline-flex;
  height: 52px;
  justify-content: center;
  overflow: hidden;
  position: relative;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
  width: 52px;
}

.service-icon::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.82), transparent);
  content: "";
  inset: -20% auto -20% -80%;
  position: absolute;
  transform: rotate(18deg);
  transition: left 420ms ease;
  width: 44%;
}

.service-icon svg {
  fill: none;
  height: 30px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  transition: stroke-dashoffset 520ms ease, transform 180ms ease;
  width: 30px;
}

.service-icon path,
.service-icon circle,
.service-icon rect {
  stroke-dasharray: 120;
  stroke-dashoffset: 0;
}

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

.service-grid article:hover .service-icon {
  border-color: rgba(67, 166, 255, 0.75);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.72), 0 12px 26px rgba(17, 103, 216, 0.18);
  transform: translateY(-3px);
}

.service-grid article:hover .service-icon::after {
  left: 130%;
}

.service-grid article:hover .service-icon svg {
  transform: scale(1.08);
}

.service-grid article:hover .service-icon path,
.service-grid article:hover .service-icon circle,
.service-grid article:hover .service-icon rect {
  animation: icon-trace 700ms ease;
}

@keyframes icon-trace {
  0% {
    stroke-dashoffset: 120;
  }

  100% {
    stroke-dashoffset: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll,
  .reveal-on-scroll.is-revealed,
  .service-icon,
  .service-icon svg {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .service-grid article:hover .service-icon path,
  .service-grid article:hover .service-icon circle,
  .service-grid article:hover .service-icon rect {
    animation: none;
  }
}

.service-grid h3 {
  font-size: 1.25rem;
  margin: 44px 0 12px;
}

.service-grid p,
.timeline p,
.quality p {
  color: var(--muted);
  line-height: 1.7;
}

.quality {
  background:
    linear-gradient(90deg, rgba(4, 13, 29, 0.76), rgba(9, 66, 116, 0.22), rgba(4, 13, 29, 0.12)),
    url("../img/cobot-busbar-testing.png") center/cover fixed;
  padding: 112px 24px;
}

.quality-layout {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 0.86fr) minmax(260px, 0.64fr);
  margin: 0 auto;
  max-width: 1120px;
}

.quality-content {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(224, 236, 248, 0.78);
  border-radius: 8px;
  margin: 0;
  max-width: 690px;
  padding: 42px;
}

.quality-reveal {
  align-self: stretch;
  border: 1px solid rgba(230, 241, 255, 0.46);
  border-radius: 8px;
  box-shadow: inset 0 0 0 1px rgba(7, 17, 31, 0.12);
  min-height: 320px;
}

.quality-content p {
  max-width: 720px;
}

.metrics {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.metrics div {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(205, 221, 236, 0.72);
  border-radius: 8px;
  padding: 20px;
}

.metrics strong,
.metrics span {
  display: block;
}

.metrics strong {
  font-size: 1.45rem;
}

.metrics span {
  color: var(--muted);
  margin-top: 4px;
}

.timeline {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1120px;
}

.timeline div {
  border-left: 2px solid var(--blue);
  padding: 4px 24px 10px;
}

.timeline span {
  background: var(--blue);
  border-radius: 999px;
  display: block;
  height: 12px;
  margin-left: -31px;
  width: 12px;
}

.contact {
  background:
    radial-gradient(circle at 25% 15%, rgba(100, 226, 255, 0.16), transparent 32%),
    linear-gradient(180deg, #eef5ff, #f8fbff);
}

.contact-layout {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.8fr);
  margin: 0 auto;
  max-width: 1120px;
}

.contact-form {
  border-radius: 8px;
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  padding: 24px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 800;
  gap: 8px;
}

.preference-field {
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  margin: 0;
  padding: 14px;
}

.preference-field:disabled {
  opacity: 0.62;
}

.preference-field legend {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0 6px;
}

.preference-field label {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  flex-direction: row;
  gap: 8px;
}

.preference-field input {
  min-height: auto;
  width: auto;
}

.preference-field p {
  color: var(--muted);
  flex-basis: 100%;
  font-size: 0.84rem;
  margin: 0;
}

.preference-field.is-enabled p {
  display: none;
}

.captcha-field {
  align-items: start;
  display: grid;
  justify-content: center;
  justify-items: center;
  text-align: center;
}

.captcha-field p {
  background: rgba(17, 103, 216, 0.08);
  border: 1px dashed rgba(17, 103, 216, 0.34);
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0;
  padding: 12px 14px;
}

input,
textarea {
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  min-height: 48px;
  padding: 12px 14px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

.map-wrap {
  border-radius: 8px;
  display: grid;
  grid-template-rows: minmax(360px, 1fr) auto;
  min-height: 520px;
  overflow: hidden;
}

.map-wrap iframe {
  border: 0;
  height: 100%;
  width: 100%;
}

.map-address {
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 16px;
}

.map-address strong,
.map-address span,
.map-address a {
  display: block;
}

.map-address span {
  color: var(--muted);
  font-size: 0.94rem;
}

.map-address a {
  color: var(--blue);
  font-weight: 800;
  margin-top: 6px;
  text-decoration: none;
}

.flash-stack {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}

.flash-stack:empty {
  display: none;
}

.flash {
  border-radius: 10px;
  font-weight: 700;
  margin: 0;
  padding: 12px 14px;
}

.flash.success {
  background: rgba(18, 153, 91, 0.12);
  color: #0b6f3c;
}

.flash.error {
  background: rgba(204, 35, 35, 0.12);
  color: #9a2020;
}

.toast-stack {
  display: grid;
  gap: 10px;
  left: 50%;
  max-width: min(420px, calc(100vw - 32px));
  position: fixed;
  top: 18px;
  transform: translateX(-50%);
  width: max-content;
  z-index: 60;
}

.toast {
  animation: toast-fade 5s ease forwards;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 44px rgba(5, 20, 42, 0.18);
  color: var(--ink);
  font-weight: 800;
  margin: 0;
  padding: 13px 16px;
  text-align: center;
}

.toast.success {
  border-color: rgba(18, 153, 91, 0.28);
}

@keyframes toast-fade {
  0%,
  78% {
    opacity: 1;
    transform: translateY(0);
  }

  100% {
    opacity: 0;
    transform: translateY(-12px);
    visibility: hidden;
  }
}

.site-footer {
  background: #07111f;
  color: rgba(255, 255, 255, 0.72);
  padding: 28px 20px;
  text-align: center;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
}

.admin-shell {
  min-height: 100vh;
  padding: 36px;
}

.login-shell {
  align-items: center;
  display: flex;
  justify-content: center;
}

.login-card {
  border-radius: 12px;
  display: grid;
  gap: 18px;
  max-width: 430px;
  padding: 30px;
  width: 100%;
}

.login-card h1 {
  margin-bottom: 0;
}

.login-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0;
}

.admin-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto 24px;
  max-width: 1180px;
}

.admin-header h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin: 0;
}

.admin-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.range-filter {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 12px;
  display: flex;
  gap: 4px;
  padding: 4px;
}

.range-filter a {
  border-radius: 8px;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
  padding: 9px 10px;
  text-decoration: none;
}

.range-filter a.is-active {
  background: linear-gradient(135deg, var(--blue), var(--blue-2));
  color: #fff;
}

.stat-grid,
.dashboard-grid,
.dashboard-layout,
.dashboard-card {
  margin-left: auto;
  margin-right: auto;
  max-width: 1180px;
}

.stat-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 18px;
}

.stat-grid article {
  border-radius: 8px;
  padding: 22px;
}

.stat-grid span,
.message-list span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
}

.stat-grid strong {
  display: block;
  font-size: 2.4rem;
  margin-top: 10px;
}

.stat-grid small {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 4px;
}

.dashboard-grid,
.dashboard-layout {
  display: grid;
  gap: 18px;
  margin-bottom: 18px;
}

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

.dashboard-layout {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-column {
  align-content: start;
  display: grid;
  gap: 18px;
}

.dashboard-column .dashboard-card {
  margin: 0;
  max-width: none;
  width: 100%;
}

.dashboard-card {
  border-radius: 8px;
  padding: 22px;
}

.dashboard-card h2 {
  margin-bottom: 16px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 10px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
}

.message-list {
  display: grid;
  gap: 12px;
  max-height: 470px;
  overflow: auto;
}

.message-list section {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

.message-list section.is-reviewed {
  background: rgba(7, 17, 31, 0.035);
  opacity: 0.72;
}

.message-head {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.message-head button {
  background: rgba(17, 103, 216, 0.1);
  border: 1px solid rgba(17, 103, 216, 0.18);
  border-radius: 8px;
  color: var(--blue);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 7px 9px;
  white-space: nowrap;
}

.is-reviewed .message-head button {
  background: rgba(7, 17, 31, 0.06);
  border-color: var(--line);
  color: var(--muted);
}

.message-list p {
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 0;
}

.visitor-list {
  display: grid;
  gap: 10px;
}

.visitor-list section {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 14px;
}

.visitor-list strong,
.visitor-list span,
.visitor-list time {
  display: block;
}

.visitor-list span,
.visitor-list time {
  color: var(--muted);
  font-size: 0.88rem;
}

.visitor-list span {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.device-icon {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  height: 18px;
  justify-content: center;
  width: 18px;
}

.device-icon svg {
  fill: none;
  height: 17px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
  width: 17px;
}

.visitor-list time {
  white-space: nowrap;
}

.activity-bars {
  display: grid;
  gap: 13px;
}

.activity-bars div {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: 104px minmax(0, 1fr) 42px;
}

.activity-bars span,
.activity-bars strong {
  font-size: 0.9rem;
}

.activity-bars span {
  color: var(--muted);
}

.activity-bars meter {
  height: 12px;
  width: 100%;
}

@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    width: calc(100% - 20px);
  }

  .menu-button {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    width: 100%;
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    background: rgba(255, 255, 255, 0.66);
    width: 100%;
  }

  .hero {
    min-height: auto;
    padding: 112px 16px 44px;
  }

  .hero-grid,
  .service-grid,
  .timeline,
  .contact-layout,
  .dashboard-grid,
  .dashboard-layout,
  .stat-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr;
  }

  .dashboard-column {
    gap: 10px;
  }

  .hero-grid {
    min-height: 690px;
  }

  .hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.55rem);
  }

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

  .hero-panel-feature {
    padding: 22px;
  }

  .hero-panel-feature strong {
    max-width: none;
  }

  .hero-stat-row div {
    padding: 14px 10px;
  }

  .section-band,
  .quality {
    padding: 64px 16px;
  }

  .brand-showcase {
    padding: 30px 16px;
  }

  .brand-showcase-inner {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .trust-band {
    padding: 14px 16px;
  }

  .trust-band div {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trust-band span {
    justify-content: flex-start;
    text-align: left;
  }

  .metrics,
  .contact-form,
  .quality-layout {
    grid-template-columns: 1fr;
  }

  .quality-reveal {
    min-height: 220px;
  }

  .map-wrap {
    grid-template-rows: 300px auto;
    min-height: auto;
  }

  .admin-shell {
    padding: 12px;
  }

  .admin-header {
    margin-bottom: 12px;
  }

  .admin-header h1 {
    font-size: 1.85rem;
  }

  .stat-grid {
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 10px;
  }

  .stat-grid article,
  .dashboard-card {
    padding: 14px;
  }

  .stat-grid strong {
    font-size: 1.75rem;
    margin-top: 4px;
  }

  .stat-grid span,
  .message-list span {
    font-size: 0.8rem;
  }

  .dashboard-grid {
    gap: 10px;
    margin-bottom: 10px;
  }

  .admin-actions {
    align-items: stretch;
    width: 100%;
  }

  .range-filter {
    overflow-x: auto;
    width: 100%;
  }

  .range-filter a {
    flex: 0 0 auto;
  }

  .dashboard-card h2 {
    font-size: 1.08rem;
    margin-bottom: 10px;
  }

  th,
  td {
    padding: 8px 6px;
  }

  .message-list {
    gap: 8px;
    max-height: 320px;
  }

  .message-list section,
  .visitor-list section {
    padding: 10px;
  }

  .visitor-list section {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .visitor-list time {
    white-space: normal;
  }

  .activity-bars div {
    gap: 8px;
    grid-template-columns: 88px minmax(0, 1fr) 34px;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 0.95rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-panel {
    width: 100%;
  }

  .hero-stat-row {
    grid-template-columns: 1fr;
  }

  .quality-content {
    padding: 24px;
  }

  .admin-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .admin-header .button {
    min-height: 42px;
  }

  .admin-shell {
    padding: 10px;
  }

  .stat-grid article,
  .dashboard-card {
    padding: 12px;
  }
}

/* Electrical maintenance hero: restrained, high-contrast plant-floor treatment. */
.hero .eyebrow {
  border-left: 3px solid var(--blue-2);
  color: #8fceff;
  letter-spacing: 0.12em;
  padding-left: 12px;
}

.hero h1 {
  font-size: clamp(2.6rem, 5.3vw, 4.8rem);
  letter-spacing: -0.045em;
  line-height: 1.04;
  margin-bottom: 24px;
}

.hero .hero-lede {
  color: #d0dce8;
  max-width: 550px;
}

.hero .button {
  border-radius: 4px;
  padding-inline: 24px;
}

.hero .button.secondary {
  background: rgba(7, 17, 31, 0.5);
  border: 1px solid rgba(202, 222, 240, 0.5);
  color: #fff;
}

.hero .hero-stat-row strong { color: #07111f; }
.hero .hero-stat-row span { color: #40566b; }

@media (max-width: 900px) {
  .site-nav:not(.is-scrolled) .nav-links a { background: rgba(255, 255, 255, 0.08); }
  .hero-bg { background-position: 62% center; }
  .hero-grid { min-height: auto; gap: 40px; }
  .hero-copy { padding-top: 24px; }
  .hero-panel { max-width: 560px; }
  .hero-panel-feature strong { font-size: 2rem; line-height: 1.1; }
  .hero-panel-feature strong br { display: none; }
}

@media (max-width: 560px) {
  .hero h1 { font-size: clamp(2.2rem, 10vw, 3.4rem); }
  .hero-stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-stat-row strong { font-size: 1.2rem; }
  .site-nav:not(.is-scrolled) .nav-links a { background: rgba(255, 255, 255, 0.08); }
}

.hero-networking {
  align-items: start;
  border-top: 1px solid rgba(159, 193, 219, 0.3);
  display: flex;
  gap: 14px;
  margin-top: 24px;
  max-width: 550px;
  padding-top: 20px;
}

.hero-networking svg {
  color: #8fceff;
  flex: 0 0 32px;
  height: 32px;
  margin-top: 2px;
  width: 32px;
}

.hero-networking .hero-networking-title {
  color: #f0f6fc;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
}

.hero-networking p {
  color: #c0d0df;
  font-size: 0.92rem;
  line-height: 1.6;
  margin-bottom: 0;
}
