:root { color-scheme: light; }
html { scroll-padding-top: 5rem; }
body { min-width: 320px; }
::selection { background: #14b8a6; color: #071a2d; }

.hero {
  background-image: url('../images/hero-industrial.png');
  background-size: cover;
  background-position: center;
}
.hero-grid {
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to right, black, transparent 72%);
}
.nav-link { position: relative; transition: color .2s ease; }
.nav-link:hover { color: #5eead4; }
.nav-link::after { content: ''; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px; background: #14b8a6; transition: right .25s ease; }
.nav-link:hover::after { right: 0; }
.eyebrow { color: #0f9f91; font-size: .76rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.section-title { margin-top: 1rem; color: #071a2d; font-size: clamp(2.35rem, 5vw, 4rem); font-weight: 900; letter-spacing: -.045em; line-height: 1.06; }
.value-icon { display: grid; width: 2.6rem; height: 2.6rem; place-items: center; border-radius: 999px; background: #ccfbf1; color: #0f766e; font-size: .76rem; font-weight: 900; }

.service-card { position: relative; min-height: 310px; overflow: hidden; border: 1px solid #dce8eb; border-radius: 1.5rem; background: white; padding: 2rem; box-shadow: 0 10px 36px rgba(7,26,45,.06); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover { transform: translateY(-7px); border-color: rgba(20,184,166,.45); box-shadow: 0 25px 50px rgba(7,26,45,.12); }
.service-card::before { content: ''; position: absolute; right: -50px; bottom: -60px; width: 165px; height: 165px; border-radius: 999px; background: rgba(20,184,166,.08); transition: transform .3s ease; }
.service-card:hover::before { transform: scale(1.35); }
.service-icon { display: grid; height: 3.4rem; width: 3.4rem; place-items: center; border-radius: 1rem; background: #071a2d; color: #5eead4; }
.service-skeleton { min-height: 310px; border-radius: 1.5rem; background: linear-gradient(100deg,#fff 20%,#e7eff1 45%,#fff 70%); background-size: 200% 100%; animation: shimmer 1.25s infinite; }
@keyframes shimmer { to { background-position-x: -200%; } }

.process-card { background: #0a2035; padding: 2rem; }
.process-card span { color: #14b8a6; font-size: .75rem; font-weight: 900; letter-spacing: .18em; }
.process-card h3 { margin-top: 2.25rem; font-size: 1.2rem; font-weight: 800; }
.process-card p { margin-top: .65rem; color: #94a3b8; font-size: .9rem; line-height: 1.6; }
.dashboard-card { border: 1px solid rgba(255,255,255,.08); border-radius: 1.5rem; background: rgba(255,255,255,.035); box-shadow: 0 20px 60px rgba(0,0,0,.18); }
.status-badge { display: inline-flex; align-items: center; gap: .45rem; border-radius: 999px; padding: .38rem .65rem; font-size: .73rem; font-weight: 800; }
.status-badge::before { content: ''; width: .42rem; height: .42rem; border-radius: 999px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.status-running { background: rgba(52,211,153,.12); color: #6ee7b7; }
.status-stopped { background: rgba(148,163,184,.12); color: #cbd5e1; }
.status-pending { background: rgba(251,191,36,.12); color: #fcd34d; }
.status-error { background: rgba(248,113,113,.12); color: #fca5a5; }
.switch { position: relative; width: 3.2rem; height: 1.75rem; border-radius: 999px; background: #334155; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: .2rem; left: .2rem; width: 1.35rem; height: 1.35rem; border-radius: 999px; background: white; box-shadow: 0 2px 5px rgba(0,0,0,.35); transition: transform .2s; }
.switch[aria-checked="true"] { background: #14b8a6; }
.switch[aria-checked="true"]::after { transform: translateX(1.45rem); }
.switch:disabled { cursor: wait; opacity: .45; }
.toast { position: fixed; z-index: 100; right: 1.25rem; bottom: 1.25rem; max-width: min(380px,calc(100vw - 2.5rem)); transform: translateY(140%); border-radius: 1rem; background: #071a2d; color: white; padding: 1rem 1.2rem; font-size: .9rem; line-height: 1.5; box-shadow: 0 20px 60px rgba(0,0,0,.3); opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast.error { border-left: 4px solid #f87171; }
.toast.success { border-left: 4px solid #14b8a6; }

@media (max-width: 640px) {
  .hero { background-position: 62% center; }
  .status-panel { margin-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
