:root {
  color-scheme: dark;
  --ink: #e8edf4;
  --muted: #a5b0bf;
  --surface: #171b20;
  --surface-soft: #0f1317;
  --line: #313842;
  --primary: #4c8df6;
  --primary-strong: #7fb0ff;
  --accent: #49c57a;
  --accent-soft: rgba(73, 197, 122, 0.18);
  --focus: #f3c84b;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface-soft);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  background:
    radial-gradient(circle at top left, rgba(76, 141, 246, 0.18), transparent 34rem),
    linear-gradient(180deg, #10151b 0%, #12171d 42%, #0f1317 100%);
}

a {
  color: inherit;
}

.shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: #ffffff;
  text-decoration: none;
  background: var(--primary);
  border-radius: 6px;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  white-space: nowrap;
  border: 0;
  clip-path: inset(50%);
}

.site-header {
  border-bottom: 1px solid rgba(49, 56, 66, 0.9);
  background: rgba(18, 22, 26, 0.88);
  backdrop-filter: blur(14px);
}

.header-layout {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 92px;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  text-decoration: none;
}

.brand-logo {
  width: min(280px, 72vw);
  height: auto;
  flex: 0 0 auto;
}

.brand-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip-path: inset(50%);
}

.hero {
  padding: 70px 0 24px;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr;
  justify-items: center;
  gap: 28px;
  text-align: center;
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(2.15rem, 5.2vw, 4.25rem);
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-description {
  max-width: 680px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 1.14rem;
}

.status-panel {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 18px;
  color: var(--ink);
  font-weight: 700;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  justify-content: center;
  width: min(100%, 360px);
}

.status-dot {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 999px;
  box-shadow: 0 0 0 6px var(--accent-soft);
}

.systems-section {
  padding: 8px 0 76px;
}

.section-heading {
  text-align: center;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.systems-grid,
.noscript-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  justify-content: center;
}

.system-card {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  justify-items: center;
  min-height: 290px;
  padding: 24px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.system-card:hover {
  border-color: rgba(76, 141, 246, 0.76);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.system-card:active {
  transform: translateY(0);
}

.system-card:focus-visible,
.brand:focus-visible,
.skip-link:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

.system-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin-bottom: 26px;
  color: #ffffff;
  font-size: 0.98rem;
  font-weight: 800;
  background: linear-gradient(135deg, #253242, #173b31);
  border: 1px solid rgba(127, 176, 255, 0.24);
  border-radius: 8px;
}

.system-icon svg {
  width: 42px;
  height: 42px;
}

.icon-line {
  fill: none;
  stroke: #d9e7ff;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.icon-line.light {
  stroke: #ffffff;
  stroke-width: 3;
}

.icon-fill.blue {
  fill: #4c8df6;
}

.icon-fill.green {
  fill: #49c57a;
}

.icon-fill.violet {
  fill: #9b7cff;
}

.icon-dot {
  fill: #f3c84b;
  stroke: #12171d;
  stroke-width: 2;
}

.system-icon-nextcloud {
  background: linear-gradient(135deg, #10233d, #102b36);
}

.nextcloud-main {
  fill: #0082c9;
}

.nextcloud-side.left {
  fill: #49c57a;
}

.nextcloud-side.right {
  fill: #4c8df6;
}

.nextcloud-hole {
  fill: #171b20;
}

.system-name {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.3rem;
  font-weight: 800;
}

.system-description {
  margin: 0;
  color: var(--muted);
}

.access-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 96px;
  min-height: 44px;
  margin-top: 28px;
  padding: 10px 16px;
  color: #ffffff;
  font-weight: 800;
  background: var(--primary);
  border-radius: 6px;
}

.system-card:hover .access-label {
  background: #3e7ee4;
}

.site-footer {
  padding: 28px 0;
  color: #ffffff;
  background: #12161a;
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-weight: 700;
}

.footer-note {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 400;
}

@media (max-width: 860px) {
  .hero {
    padding-top: 52px;
  }

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

  .status-panel {
    width: min(100%, 420px);
  }

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

@media (max-width: 620px) {
  .shell {
    width: min(100% - 24px, 1120px);
  }

  .header-layout {
    min-height: 78px;
  }

  .brand-logo {
    width: min(220px, 76vw);
    height: auto;
  }

  .brand-text {
    font-size: 1rem;
  }

  .hero {
    padding: 40px 0 34px;
  }

  .hero-description {
    font-size: 1rem;
  }

  .systems-section {
    padding-bottom: 52px;
  }

  .systems-grid,
  .noscript-grid {
    grid-template-columns: 1fr;
  }

  .system-card {
    min-height: 250px;
    padding: 20px;
  }

  .footer-layout {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
