:root {
  color-scheme: dark;
  --ink: #06100f;
  --surface: #0a1615;
  --surface-raised: #121f1e;
  --paper: #f2f2ee;
  --muted: #a6acab;
  --teal: #13e9ec;
  --teal-deep: #00aeb5;
  --line: rgba(207, 255, 253, 0.13);
  --radius: 0;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--ink);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  overflow-x: hidden;
  background: var(--ink);
  color: var(--paper);
  font-family: Georgia, "Times New Roman", serif;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
.launch-button:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 5px;
}

.site-shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 98px minmax(610px, 1fr) 116px;
  background: var(--ink);
}

.site-header,
.site-footer {
  background: var(--surface);
}

.site-header {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(280px, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 0 5.1vw;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  width: max-content;
  align-items: center;
  gap: 1.15rem;
}

.brand-mark {
  width: 54px;
  height: 54px;
  display: inline-block;
  background-image: url("resources/musquared-mu2-mark-transparent.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 96px;
}

.brand-name {
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  white-space: nowrap;
}

.brand-name span:first-child {
  color: #a4a7ae;
}

.brand-name span:last-child {
  color: var(--teal);
}

.primary-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1.7rem, 3vw, 3.7rem);
  color: #b7bebd;
  font-size: 1rem;
}

.primary-nav a {
  position: relative;
  padding: 0.5rem 0;
  transition: color 180ms ease;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav .active {
  color: var(--teal);
}

.primary-nav .active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 2px;
  background: var(--teal);
  box-shadow: 0 0 12px rgba(19, 233, 236, 0.48);
  content: "";
}

.status-link {
  justify-self: end;
  padding: 0.82rem 1.25rem;
  border: 1px solid rgba(19, 233, 236, 0.34);
  color: #61e7e8;
  font-size: 0.71rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 610px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 43%, rgba(0, 206, 208, 0.085), transparent 23%),
    linear-gradient(180deg, rgba(4, 9, 9, 0.15), var(--ink) 88%);
}

.grid-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.37;
  background-image:
    linear-gradient(rgba(116, 150, 148, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 150, 148, 0.12) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, black, rgba(0, 0, 0, 0.5) 71%, transparent);
}

.hero-content {
  display: flex;
  width: min(100%, 900px);
  flex-direction: column;
  align-items: center;
  padding: 3.1rem 1.5rem 4.1rem;
  text-align: center;
}

.system-status {
  display: inline-flex;
  align-items: center;
  gap: 0.53rem;
  margin: 0 0 1.8rem;
  padding: 0.34rem 0.72rem;
  border: 1px solid rgba(19, 233, 236, 0.38);
  border-radius: 999px;
  background: rgba(4, 24, 24, 0.82);
  box-shadow: 0 0 22px rgba(19, 233, 236, 0.12);
  color: #65e5e7;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.system-status span {
  width: 0.56rem;
  height: 0.56rem;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
}

.brand-visual {
  width: clamp(220px, 23vw, 292px);
  aspect-ratio: 1;
  margin: 0 0 2.2rem;
  overflow: hidden;
  background: #11191a;
  box-shadow: 0 0 48px rgba(9, 230, 231, 0.22), 0 22px 36px rgba(0, 0, 0, 0.34);
}

.brand-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-copy h1 {
  max-width: 780px;
  margin: 0;
  color: #f5f5f1;
  font-size: clamp(2.55rem, 5.1vw, 4.45rem);
  font-weight: 700;
  letter-spacing: -0.055em;
  line-height: 1.03;
}

.hero-copy p {
  margin: 1.55rem auto 0;
  color: #bec5c2;
  font-size: clamp(1rem, 1.45vw, 1.2rem);
  line-height: 1.5;
}

.launch-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 1.55rem;
  min-width: 288px;
  margin-top: 3rem;
  padding: 1.05rem 1.45rem;
  background: var(--teal);
  color: #071312;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  user-select: none;
}

.launch-button b {
  font-family: Arial, sans-serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 0.8;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0 5.1vw;
  border-top: 1px solid var(--line);
  color: #a9b1b0;
  font-size: 0.82rem;
}

.site-footer p {
  margin: 0;
  color: #16aaaf;
}

.site-footer nav {
  display: flex;
  align-items: center;
  gap: clamp(1.35rem, 2.4vw, 2.6rem);
}

.site-footer a:hover {
  color: var(--teal);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 900px) {
  .site-shell {
    grid-template-rows: auto minmax(620px, 1fr) auto;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 1.1rem 1.5rem;
  }

  .primary-nav {
    display: none;
  }

  .status-link {
    padding: 0.65rem 0.8rem;
    font-size: 0.62rem;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 1.8rem 1.5rem;
  }

  .site-footer nav {
    flex-wrap: wrap;
    gap: 0.8rem 1.5rem;
  }
}

@media (max-width: 560px) {
  .site-shell {
    grid-template-rows: auto minmax(590px, 1fr) auto;
  }

  .site-header {
    padding: 0.95rem 1rem;
  }

  .brand {
    gap: 0.68rem;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    background-size: 76px;
  }

  .brand-name {
    font-size: 1.3rem;
  }

  .status-link {
    display: none;
  }

  .hero-content {
    padding: 2.4rem 1rem 3rem;
  }

  .system-status {
    margin-bottom: 1.3rem;
    font-size: 0.61rem;
  }

  .brand-visual {
    width: min(65vw, 260px);
    margin-bottom: 1.8rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.3rem, 11vw, 3.35rem);
    line-height: 1.04;
  }

  .hero-copy p {
    max-width: 29ch;
    margin-top: 1.15rem;
    font-size: 1rem;
  }

  .launch-button {
    min-width: min(100%, 288px);
    margin-top: 2.25rem;
  }
}

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