/* Shutoff Studio — light "server rack" theme */
:root {
  --bg: #ECE8E6;
  --panel: #FFFFFF;
  --bay: #F7F5F4;
  --ear: #DDD6D3;
  --line: #CFC7C3;
  --line-soft: #D9D2CF;
  --grey: #AB9D98;
  --indigo: #52558A;
  --indigo-soft: #E4E5F5;
  --orange: #FF6A07;
  --orange-text: #BD3C09; /* 4.5:1 on --bg, --bay and white (WCAG AA) */
  --ink: #2A2230;
  --ink-dark: #110603;
  --muted: #4F4542;
  --muted-2: #5E5350;
  --ok: #3CB464;
  --font-display: 'Russo One', sans-serif;
  --font-body: 'IBM Plex Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--orange-text); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }
img { max-width: 100%; display: block; }
h1, h2, h3, p { margin: 0; }

.mono { font-family: var(--font-mono); font-weight: 500; }
.display { font-family: var(--font-display); font-weight: 400; color: var(--indigo); }
.muted { color: var(--muted); }
.label {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600;
  color: var(--muted-2); letter-spacing: .1em; text-transform: uppercase;
}
.label--accent { color: var(--orange-text); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

.page { max-width: 1440px; margin: 0 auto; padding: 0 56px; display: flex; flex-direction: column; gap: 10px; }
.units { display: flex; flex-direction: column; gap: 10px; }

/* ---------- LEDs, vents, screws ---------- */
.led { width: 13px; height: 13px; border-radius: 50%; display: inline-block; flex-shrink: 0; background: var(--line-soft); }
.led--on { background: var(--orange); box-shadow: 0 0 10px var(--orange); }
.led--ok { background: var(--ok); }
.led--in { background: var(--indigo); }
.led--off { background: var(--line-soft); }
.leds { display: flex; gap: 8px; align-items: center; }
.vent { flex-grow: 1; height: 22px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--line) 0 7px, transparent 7px 12px); }
.screw { width: 18px; height: 18px; border-radius: 50%; background: #F4F1EF; border: 3px solid var(--grey); flex-shrink: 0; }

/* ---------- Header ---------- */
.header { height: 96px; display: flex; align-items: center; gap: 36px; border-bottom: 3px solid var(--line); margin-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 16px; flex-grow: 1; color: var(--indigo); }
.logo:hover { color: var(--indigo); }
.logo__mark {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 12px; background: var(--indigo);
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -4px 0 rgba(0,0,0,.18);
}
.logo__text { display: flex; flex-direction: column; gap: 3px; }
.logo__name { font-family: var(--font-display); font-size: 28px; line-height: 1; }
.logo__name span { color: var(--orange-text); }
.logo__sub { font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); letter-spacing: .08em; }
.nav { display: flex; gap: 26px; font-family: var(--font-mono); font-size: 15px; text-transform: uppercase; letter-spacing: .06em; }
.nav a { color: var(--indigo); padding: 10px 0; }
.lang { display: flex; gap: 6px; font-family: var(--font-mono); font-size: 14px; align-items: center; }
.lang > a, .lang > span {
  min-height: 40px; padding: 0 12px; border-radius: 6px; display: flex; align-items: center; gap: 8px; color: var(--muted-2);
}
.lang .is-active { background: var(--panel); border: 1.5px solid var(--line); color: var(--ink); }
.lang .is-disabled { opacity: .55; cursor: default; }
.burger {
  display: none; width: 48px; height: 48px; border-radius: 8px; background: var(--panel);
  border: 2px solid var(--line); align-items: center; justify-content: center; cursor: pointer; padding: 0;
}

/* ---------- Rack unit ---------- */
.unit { display: flex; background: var(--panel); border: 2px solid var(--line); border-radius: 10px; box-shadow: 0 3px 0 var(--line); }
.unit--accent { border: 3px solid var(--orange); }
.ear {
  width: 52px; flex-shrink: 0; background: var(--ear); display: flex; flex-direction: column;
  justify-content: space-between; align-items: center; padding: 18px 0;
}
.ear--l { border-right: 2px solid var(--line); border-radius: 8px 0 0 8px; }
.ear--r { border-left: 2px solid var(--line); border-radius: 0 8px 8px 0; }
.ear__label { font-family: var(--font-mono); font-size: 12px; color: var(--muted-2); writing-mode: vertical-rl; }
.unit__main { flex-grow: 1; min-width: 0; display: flex; flex-direction: column; }
.rail {
  display: none; height: 30px; background: var(--ear); border-bottom: 2px solid var(--line);
  align-items: center; justify-content: space-between; padding: 0 12px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted-2);
}
.rail .screw { width: 14px; height: 14px; }
.unit__body { flex-grow: 1; padding: 40px 48px; display: flex; flex-direction: column; gap: 28px; }
.unit__head { display: flex; align-items: center; gap: 20px; min-width: 0; }
.unit__title { font-family: var(--font-display); font-weight: 400; color: var(--indigo); font-size: 52px; line-height: 1.05; text-transform: uppercase; }

.bay { border-radius: 8px; background: var(--bay); border: 1.5px solid var(--line-soft); }

/* ---------- Buttons ---------- */
.btn {
  min-height: 62px; padding: 0 32px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px; transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--primary { background: var(--orange); color: var(--ink-dark); }
.btn--primary:hover { color: var(--ink-dark); box-shadow: 0 8px 20px rgba(255,106,7,.3); }
.btn--indigo { background: var(--indigo); color: #FFFFFF; }
.btn--indigo:hover { color: #FFFFFF; box-shadow: 0 8px 20px rgba(82,85,138,.3); }
.btn--plain { background: var(--bay); border: 1.5px solid var(--line-soft); color: var(--indigo); }

/* ---------- Hero ---------- */
.hero .unit__body { flex-direction: row; gap: 48px; padding: 56px; }
.hero__main { flex-grow: 1; min-width: 0; container-type: inline-size; display: flex; flex-direction: column; gap: 28px; justify-content: center; }
.hero__title { font-family: var(--font-display); font-weight: 400; color: var(--indigo); font-size: clamp(26px, 8.4cqi, 68px); line-height: 1.04; text-transform: uppercase; overflow-wrap: break-word; }
.hero__title mark { background: var(--orange); color: var(--ink-dark); padding: 0 10px; white-space: nowrap; } /* the accent never splits across lines */
.hero__text { font-size: 21px; line-height: 1.55; color: var(--muted); max-width: 640px; }
.hero__buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__side { width: 360px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.server { padding: 16px 18px; display: flex; align-items: center; gap: 14px; }
.server__name { font-family: var(--font-mono); font-size: 15px; color: var(--muted); flex-grow: 1; }
.server .vent { flex-grow: 0; width: 90px; height: 16px; }
.hero__stats { margin-top: 8px; padding: 20px; border-radius: 8px; background: var(--indigo); color: #FFFFFF; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.hero__stats b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1.1; }
.hero__stats span { font-family: var(--font-mono); font-size: 13px; color: var(--indigo-soft); text-transform: uppercase; }

/* ---------- Metrics ---------- */
.metrics .unit__body { padding: 28px 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
.metric { display: flex; gap: 14px; align-items: center; }
.metric b { display: block; font-family: var(--font-display); font-weight: 400; color: var(--indigo); font-size: 38px; line-height: 1.1; }
.metric span { font-size: 16px; color: var(--muted); }

/* ---------- Services ---------- */
.services-list { display: flex; flex-direction: column; gap: 6px; }
.service { display: flex; align-items: center; gap: 24px; padding: 22px 24px; }
.service__code { width: 84px; font-family: var(--font-mono); font-size: 15px; color: var(--muted); flex-shrink: 0; white-space: nowrap; display: flex; align-items: center; gap: 8px; }
.service__title { width: 340px; flex-shrink: 0; font-size: 22px; font-weight: 700; color: var(--indigo); line-height: 1.25; }
.service__text { font-size: 17px; line-height: 1.5; color: var(--muted); }
.service--featured { background: var(--orange); border-color: var(--orange); color: var(--ink-dark); padding: 30px 24px; }
.service--featured .service__code, .service--featured .service__text { color: var(--ink-dark); }
.service--featured .service__title { font-family: var(--font-display); font-weight: 400; font-size: 28px; text-transform: uppercase; color: var(--ink-dark); line-height: 1.1; }
.badge { display: inline-block; align-self: flex-start; font-family: var(--font-mono); font-size: 13px; padding: 3px 8px; border-radius: 3px; background: var(--indigo); color: #FFFFFF; }
.service__head { display: flex; flex-direction: column; gap: 8px; width: 340px; flex-shrink: 0; }

/* ---------- Cases ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.case { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.case h3 { font-size: 21px; font-weight: 700; color: var(--indigo); line-height: 1.3; }
.case p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.case--featured { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 48px; padding: 32px; border-radius: 8px; background: var(--indigo); color: #FFFFFF; }
.case--featured .case__head { width: 420px; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.case--featured h3 { font-family: var(--font-display); font-weight: 400; font-size: 34px; line-height: 1.1; text-transform: uppercase; color: #FFFFFF; }
.case--featured p { color: #F1F1FA; font-size: 18px; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.price-box { padding: 8px 24px; }
.price-box .label { padding: 14px 0; display: block; }
.price-row { display: flex; justify-content: space-between; gap: 20px; padding: 16px 0; border-top: 1.5px solid var(--line-soft); font-size: 18px; }
.price-row__value { font-family: var(--font-display); color: var(--orange-text); white-space: nowrap; }
.price-row__value--muted { color: var(--indigo); }
.price-row--highlight { background: var(--orange); color: var(--ink-dark); border-radius: 4px; padding: 16px 12px; margin: 0 -12px; border-top: 0; }
.price-row--highlight .price-row__value { color: var(--ink-dark); }
.price-note { padding: 16px 0; border-top: 1.5px solid var(--line-soft); font-size: 16px; line-height: 1.55; color: var(--muted); }
.fineprint { font-family: var(--font-mono); font-size: 15px; color: var(--muted); }

/* ---------- SLA ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tier { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.tier__name { font-family: var(--font-display); font-size: 30px; color: var(--indigo); text-transform: uppercase; line-height: 1.1; }
.tier__value { font-family: var(--font-display); font-size: 52px; color: var(--ink); line-height: 1; }
.tier__lines { font-size: 17px; line-height: 1.7; color: var(--muted); }
.tier--featured { background: var(--panel); border: 3px solid var(--orange); box-shadow: 0 10px 30px rgba(255,106,7,.18); }
.tier--featured .tier__value { color: var(--orange-text); }

/* ---------- Process ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.step { padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.step__label { font-family: var(--font-mono); font-size: 14px; color: var(--orange-text); }
.step h3 { font-size: 22px; font-weight: 700; color: var(--indigo); }
.step p { font-size: 16px; line-height: 1.55; color: var(--muted); }
.step--last { background: var(--indigo); border-color: var(--indigo); color: #FFFFFF; }
.step--last .step__label { color: var(--indigo-soft); }
.step--last h3 { color: #FFFFFF; }
.step--last p { color: #F1F1FA; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; font-size: 16px; line-height: 1.5; color: var(--muted); list-style: none; margin: 0; padding: 0; }
.principles li { display: flex; gap: 10px; }
.principles .led { margin-top: 5px; }

/* ---------- Stack ---------- */
.stack { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; font-family: var(--font-mono); font-size: 15px; line-height: 1.6; color: var(--muted); }
.stack__item { padding: 18px; }
.stack__group { color: var(--indigo); font-weight: 600; margin-bottom: 6px; }

/* ---------- About + FAQ ---------- */
.about .unit__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; }
.about__col { display: flex; flex-direction: column; gap: 20px; }
.about__head { display: flex; gap: 20px; align-items: center; }
.about__photo { width: 128px; height: 128px; flex-shrink: 0; object-fit: cover; }
.about__photo--empty { display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 13px; color: var(--muted-2); }
.about__title { font-family: var(--font-display); font-weight: 400; font-size: 40px; color: var(--indigo); text-transform: uppercase; line-height: 1.1; }
.about__text { font-size: 19px; line-height: 1.65; color: var(--muted); }
.faq { display: flex; flex-direction: column; }
.faq__item { padding: 16px 0; border-top: 1.5px solid var(--line-soft); }
.faq__q { font-weight: 700; font-size: 19px; color: var(--indigo); margin-bottom: 4px; }
.faq__a { font-size: 17px; line-height: 1.5; color: var(--muted); }

/* ---------- Contact ---------- */
.contact .unit__body { padding: 56px; gap: 48px; }
.contact__row { display: flex; gap: 48px; align-items: flex-end; }
.contact__main { flex-grow: 1; display: flex; flex-direction: column; gap: 18px; }
.contact__title { font-family: var(--font-display); font-weight: 400; font-size: 84px; line-height: 1; color: var(--indigo); text-transform: uppercase; }
.contact__text { font-size: 21px; color: var(--muted); }
.contact__links { width: 460px; flex-shrink: 0; display: flex; flex-direction: column; gap: 8px; }
.contact__links .btn { justify-content: space-between; font-size: 18px; min-height: 66px; padding: 0 26px; }
.contact__links .btn .mono { font-weight: 500; font-size: 16px; }
.footer { padding-top: 20px; border-top: 1.5px solid var(--line-soft); display: flex; justify-content: space-between; gap: 24px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); }

/* ---------- Tablet ---------- */
@media (max-width: 1200px) {
  .page { padding: 0 24px; }
  .hero__side { width: 320px; }
  .metrics .unit__body { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .service__title, .service__head { width: 260px; }
  .cases-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps, .stack { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .contact__title { font-size: 64px; }
}

/* ---------- Mobile ---------- */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .page { padding: 0 12px; }
  html { scroll-padding-top: 86px; }
  .header {
    height: 72px; gap: 12px; margin: 0 -12px; padding: 0 12px;
    position: sticky; top: 0; z-index: 30; background: var(--bg);
    transition: box-shadow .2s ease;
  }
  .header.is-stuck { box-shadow: 0 6px 18px rgba(42,34,48,.12); }
  .logo { gap: 10px; }
  .logo__mark { width: 42px; height: 42px; border-radius: 10px; }
  .logo__mark svg { width: 22px; height: 22px; }
  .logo__name { font-size: 21px; }
  .logo__sub { display: none; }
  .burger { display: flex; }
  .nav {
    display: none; position: absolute; top: 72px; left: 12px; right: 12px; z-index: 10;
    flex-direction: column; gap: 0; background: var(--panel); border: 2px solid var(--line); border-radius: 10px;
    box-shadow: 0 12px 30px rgba(42,34,48,.15); padding: 8px 16px;
  }
  .nav a { padding: 14px 0; border-bottom: 1.5px solid var(--line-soft); }
  .nav a:last-child { border-bottom: 0; }
  .nav.is-open { display: flex; }
  .header .lang { display: none; }
  .lang--mobile { display: flex; }
  .lang-bar { display: flex; align-items: center; gap: 6px; }
  .lang-bar .label { flex-grow: 1; font-size: 12px; }

  .unit { flex-direction: column; overflow: hidden; }
  .ear { display: none; }
  .rail { display: flex; }
  .unit__body { padding: 24px 20px; gap: 18px; }
  .unit__title { font-size: 32px; }

  .hero .unit__body { flex-direction: column; padding: 24px 20px; gap: 20px; }
  .hero__title { line-height: 1.05; }
  .hero__title mark { padding: 0 6px; }
  .hero__text { font-size: 17px; }
  .hero__buttons { flex-direction: column; gap: 10px; }
  .hero__buttons .btn { width: 100%; min-height: 58px; }
  .hero__side { width: auto; gap: 6px; }
  .server { padding: 14px 16px; }
  .server .vent { width: 70px; }
  .hero__stats b { font-size: 32px; }

  .metrics .unit__body { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 16px; padding: 24px 20px; }
  .metrics .metric:last-child { grid-column: span 2; }
  .metric b { font-size: 30px; }
  .metric span { font-size: 15px; }

  .service { flex-direction: column; align-items: flex-start; gap: 8px; padding: 18px; }
  .service__code { width: auto; display: flex; align-items: center; gap: 10px; }
  .service__title, .service__head { width: auto; font-size: 20px; }
  .service__text { font-size: 16px; }
  .service--featured { padding: 20px; }
  .service--featured .service__title { font-size: 24px; }

  .cases-grid { grid-template-columns: 1fr; }
  .case { padding: 18px; }
  .case h3 { font-size: 19px; }
  .case--featured { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 20px; }
  .case--featured .case__head { width: auto; }
  .case--featured h3 { font-size: 24px; }
  .case--featured p { font-size: 16px; }

  .price-grid { grid-template-columns: 1fr; }
  .price-box { padding: 4px 18px; }
  .price-row { flex-direction: column; gap: 4px; padding: 14px 0; font-size: 16px; }
  .price-row__value { font-size: 22px; white-space: normal; }
  .price-row--highlight { padding: 16px 12px; }

  .tiers, .steps, .stack, .principles { grid-template-columns: 1fr; }
  .tier { padding: 20px; gap: 10px; }
  .tier__name { font-size: 22px; }
  .tier__value { font-size: 32px; }
  .tier__lines { font-size: 16px; }
  .step { padding: 18px; }
  .step h3 { font-size: 19px; }
  .stack__item { padding: 12px 0; background: none; border: 0; border-top: 1.5px solid var(--line-soft); border-radius: 0; }

  .about .unit__body { grid-template-columns: 1fr; gap: 28px; }
  .about__photo { width: 96px; height: 96px; }
  .about__title { font-size: 28px; }
  .about__text { font-size: 16px; }
  .faq__q { font-size: 17px; }
  .faq__a { font-size: 16px; }

  .contact .unit__body { padding: 24px 20px; gap: 28px; }
  .contact__row { flex-direction: column; align-items: stretch; gap: 20px; }
  .contact__title { font-size: 40px; }
  .contact__text { font-size: 17px; }
  .contact__links { width: auto; }
  .contact__links .btn { min-height: 60px; padding: 0 20px; font-size: 17px; }
  .contact__links .btn .mono { font-size: 14px; }
  .footer { flex-direction: column; gap: 6px; font-size: 13px; }
}
@media (min-width: 901px) {
  .lang-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* ---------- Small helpers ---------- */
.vent--short { flex-grow: 0; width: 100%; max-width: 200px; height: 12px; }
.steps { list-style: none; margin: 0; padding: 0; }

/* ---------- Back to top ---------- */
.totop {
  position: fixed; right: 28px; bottom: 36px; z-index: 20;
  width: 60px; height: 60px; border-radius: 10px;
  background: var(--panel); color: var(--indigo);
  border: 2px solid var(--line); box-shadow: 0 3px 0 var(--line), 0 10px 24px rgba(42,34,48,.12);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s, background .15s ease, color .15s ease;
}
.totop.is-visible { opacity: 1; visibility: visible; transform: none; }
.totop:hover { background: var(--indigo); color: #FFFFFF; border-color: var(--indigo); box-shadow: 0 3px 0 #3E4170, 0 10px 24px rgba(82,85,138,.3); }
.totop:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--line); }
.totop__led { position: absolute; top: 7px; right: 7px; width: 8px; height: 8px; }
@media (max-width: 900px) {
  .totop { right: 14px; bottom: 22px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  .totop { transition: none; }
}

/* ---------- LEDs: power-on as units scroll into view ---------- */
/* Only with JS (html.js); without it LEDs are simply lit */
.js .unit .led { animation: none; }
.js .unit:not(.is-on) .led { filter: grayscale(1) opacity(.35); box-shadow: none; }
.js .unit.is-on .led { animation: led-boot .55s var(--d, 0s) both; }
/* Activity blink on the hero "servers" and the featured case */
.js .unit.is-on .server .led--on,
.js .unit.is-on .hero__main .leds .led,
.js .unit.is-on .case--featured .led--on {
  animation: led-boot .55s var(--d, 0s) both, led-activity 8s calc(var(--d, 0s) + 2s) ease-in-out infinite;
}
.js .unit.is-on .server:nth-child(odd) .led--on { animation-duration: .55s, 11s; }
/* Critical 24x7 tier: alarm-style blink */
.js .unit.is-on .tier--featured .led--on {
  animation: led-boot .55s var(--d, 0s) both, led-alarm 1.8s calc(var(--d, 0s) + 1.2s) ease-in-out infinite;
}
/* "Line open" breathes */
.js .unit.is-on .contact__main .led--on {
  animation: led-boot .55s var(--d, 0s) both, led-pulse 2.2s calc(var(--d, 0s) + .6s) ease-in-out infinite;
}
@keyframes led-boot {
  0%   { filter: grayscale(1) opacity(.35); box-shadow: none; }
  30%  { filter: none; }
  45%  { filter: grayscale(1) opacity(.5); box-shadow: none; }
  65%, 100% { filter: none; }
}
@keyframes led-activity {
  0%, 38%, 50%, 78%, 90%, 100% { opacity: 1; }
  44% { opacity: .35; }
  84% { opacity: .45; }
}
@keyframes led-alarm {
  0%, 45%, 100% { opacity: 1; box-shadow: 0 0 12px 2px var(--orange); }
  60%, 85% { opacity: .25; box-shadow: none; }
}
@keyframes led-pulse {
  0%, 100% { box-shadow: 0 0 4px rgba(255,106,7,.5); }
  50%      { box-shadow: 0 0 16px 3px rgba(255,106,7,.75); }
}
/* Back-to-top LED winks now and then */
.totop__led { animation: led-wink 11s 5s ease-in-out infinite; }
@keyframes led-wink {
  0%, 88%, 100% { opacity: 1; box-shadow: 0 0 8px var(--orange); }
  90.5% { opacity: .15; box-shadow: none; }
  93% { opacity: 1; box-shadow: 0 0 8px var(--orange); }
  95.5% { opacity: .15; box-shadow: none; }
  98% { opacity: 1; box-shadow: 0 0 8px var(--orange); }
}
@media (prefers-reduced-motion: reduce) {
  .totop__led { animation: none; }
  .js .unit .led, .js .unit.is-on .led { animation: none !important; filter: none; }
  .js .unit:not(.is-on) .led { filter: none; }
}

/* ---------- Copyright (bottom gap roughly matches the side gutter) ---------- */
.copyright {
  margin: 0; padding: 18px 0 30px; text-align: center;
  font-family: var(--font-mono); font-size: 14px; letter-spacing: .08em; color: var(--muted-2);
}
@media (max-width: 900px) {
  .copyright { padding: 14px 0 20px; font-size: 13px; }
}

/* ---------- System pages: 404 and maintenance (templates Error404, Maintenance) ---------- */
.syspage .unit__body { padding: 56px; gap: 24px; }
.syspage .leds { display: flex; align-items: center; gap: 8px; }
.syspage .leds .label { margin-left: 8px; }
.syspage__code {
  margin: 0; font-family: var(--font-display); font-size: clamp(110px, 20vw, 220px); line-height: .9;
  color: var(--indigo); letter-spacing: .02em;
}
.syspage__code span { color: var(--orange); }
.syspage__title { margin: 0; font-family: var(--font-display); font-weight: 400; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; color: var(--ink); text-transform: uppercase; }
.syspage__text { margin: 0; max-width: 680px; font-size: 20px; color: var(--muted); }
.syspage__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (max-width: 900px) {
  .syspage .unit__body { padding: 24px 20px; gap: 18px; }
  .syspage__text { font-size: 17px; }
  .syspage__actions { flex-direction: column; }
  .syspage__actions .btn { min-height: 58px; }
}
.syspage__mark {
  width: clamp(104px, 14vw, 168px); aspect-ratio: 1; border-radius: 22%; background: var(--indigo);
  display: flex; align-items: center; justify-content: center; box-shadow: inset 0 -6px 0 rgba(0,0,0,.18);
}
.syspage__mark svg { width: 54%; height: 54%; }
/* Maintenance: the red "alarm" LED blinks like the Critical 24x7 tier */
.js .unit.is-on .syspage--maintenance .leds .led--on {
  animation: led-boot .55s var(--d, 0s) both, led-alarm 1.8s calc(var(--d, 0s) + 1.2s) ease-in-out infinite;
}
