:root {
  color-scheme: dark;
  --page: #07101d;
  --panel: #0d1828;
  --panel-strong: #111f33;
  --line: #26364d;
  --text: #eff6ff;
  --muted: #9fb0c5;
  --blue: #38bdf8;
  --cyan: #67e8f9;
  --green: #34d399;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(14, 116, 144, 0.24), transparent 31rem),
    radial-gradient(circle at 92% 20%, rgba(30, 64, 175, 0.18), transparent 30rem),
    var(--page);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid #0e7490;
  border-radius: 14px;
  background: linear-gradient(145deg, #0c4a6e, #082f49);
  color: var(--cyan);
  font-weight: 950;
  letter-spacing: -1px;
  box-shadow: 0 10px 30px rgba(14, 165, 233, 0.14);
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

nav a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 15px;
  border: 1px solid #28506c;
  border-radius: 12px;
  color: var(--cyan);
  font-size: 13px;
  font-weight: 850;
  text-decoration: none;
}

nav a:hover,
nav a:focus-visible {
  border-color: var(--blue);
  background: rgba(8, 47, 73, 0.7);
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: clamp(44px, 7vw, 90px);
  padding: 76px 0 86px;
}

.eyebrow {
  color: var(--cyan);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 780px;
  margin: 17px 0 22px;
  font-size: clamp(48px, 7vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-copy > p {
  max-width: 700px;
  margin: 0;
  color: #c4d1e1;
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 31px;
}

.hero-actions > span {
  color: var(--muted);
  font-size: 13px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 21px;
  border-radius: 13px;
  background: var(--blue);
  color: #06111f;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 16px 35px rgba(56, 189, 248, 0.22);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(56, 189, 248, 0.3);
}

.operations-board {
  padding: 18px;
  border: 1px solid #2b405b;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(17, 31, 51, 0.96), rgba(6, 16, 29, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.board-heading {
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 7px 14px;
  border-bottom: 1px solid #26364d;
  color: #8fa1b7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
}

.online-indicator {
  color: #6ee7b7;
}

.online-indicator i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 5px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1);
}

.board-row {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 20px 7px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.5);
}

.board-row:last-child {
  border-bottom: 0;
}

.board-row.active {
  margin: 10px -2px 0;
  padding-inline: 9px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 13px;
  background: rgba(8, 47, 73, 0.46);
}

.row-code {
  color: var(--blue);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}

.board-row strong,
.board-row small {
  display: block;
}

.board-row strong {
  font-size: 15px;
}

.board-row small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.row-status {
  color: #6ee7b7;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 10px;
  font-weight: 800;
}

.muted {
  color: #73849a;
}

.project-sections {
  padding: 80px 0;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-heading h2,
.project-note h2 {
  margin: 10px 0 13px;
  font-size: clamp(34px, 4vw, 50px);
  letter-spacing: -0.04em;
}

.section-heading p,
.project-note p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.section-card {
  position: relative;
  min-height: 350px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13, 24, 40, 0.88);
  text-decoration: none;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.2);
}

.section-card.available {
  background: linear-gradient(145deg, rgba(8, 47, 73, 0.92), rgba(13, 24, 40, 0.94));
  transition: transform 170ms ease, border-color 170ms ease;
}

.section-card.available:hover,
.section-card.available:focus-visible {
  transform: translateY(-5px);
  border-color: var(--blue);
  outline: none;
}

.section-card.planned {
  background: rgba(10, 20, 34, 0.62);
}

.card-status {
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  color: #a7f3d0;
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.planned .card-status {
  border-color: #334155;
  color: #94a3b8;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 28px 0 24px;
  border: 1px solid #155e75;
  border-radius: 16px;
  background: #083344;
  color: var(--cyan);
  font-size: 26px;
  font-weight: 900;
}

.planned .card-icon {
  border-color: #334155;
  background: #111827;
  color: #94a3b8;
}

.section-card h3 {
  margin: 0 0 12px;
  font-size: 27px;
  letter-spacing: -0.025em;
}

.section-card p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
}

.card-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 850;
}

.project-note {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  align-items: end;
  gap: clamp(30px, 7vw, 90px);
  margin: 8px 0 86px;
  padding: 32px;
  border: 1px solid rgba(52, 211, 153, 0.26);
  border-radius: 22px;
  background: rgba(6, 78, 59, 0.18);
}

.project-note h2 {
  margin-bottom: 0;
  font-size: clamp(28px, 4vw, 40px);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 28px 0 38px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  color: #7f91a7;
  font-size: 13px;
}

footer p {
  margin: 0;
}

footer a {
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.not-found-page {
  min-height: calc(100vh - 88px);
  display: grid;
  place-items: center;
  padding-block: 60px;
}

.not-found-card {
  width: min(720px, 100%);
  padding: clamp(30px, 7vw, 64px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(17, 31, 51, 0.96), rgba(6, 16, 29, 0.98));
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
}

.error-code {
  display: block;
  margin-bottom: 26px;
  color: #334155;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(72px, 18vw, 150px);
  font-weight: 950;
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.not-found-card h1 {
  margin: 13px 0 18px;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.045em;
}

.not-found-card p {
  max-width: 590px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 29px;
}

.secondary-action {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid #28506c;
  border-radius: 13px;
  color: var(--cyan);
  font-weight: 850;
  text-decoration: none;
}

@media (max-width: 880px) {
  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding: 64px 0 74px;
  }

  .operations-board {
    max-width: 620px;
  }

  .project-note {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

@media (max-width: 620px) {
  .site-header,
  main,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .brand small {
    display: none;
  }

  .hero h1 {
    font-size: clamp(42px, 14vw, 59px);
  }

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

  .section-card {
    min-height: 325px;
  }

  .board-row {
    grid-template-columns: 25px minmax(0, 1fr);
  }

  .row-status {
    grid-column: 2;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
