@font-face {
  font-family: "JetBrainsMono-SemiBold";
  src: url("../fonts/JetBrainsMono-SemiBold.ttf") format("truetype");
  font-display: swap;
}

body[data-page="home"] {
  background: #000;
}

body[data-page="home"] .home-page {
  display: block;
  min-height: 100vh;
  overflow: hidden;
}

body[data-page="home"] .home-page__backdrop {
  position: fixed;
  inset: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  filter: none;
  background: #000;
}

body[data-page="home"] .stars-canvas,
body[data-page="home"] .home-page__curve {
  position: absolute;
  inset: 0;
  display: block;
}

body[data-page="home"] .stars-canvas {
  width: 100%;
  height: 100%;
}

body[data-page="home"] .home-page__curve {
  width: 176vw;
  height: 98vh;
  left: 50%;
  top: 18vh;
  transform: translateX(-50%);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 4%, rgba(255, 255, 255, 0.015) 9%, rgba(0, 0, 0, 0) 12%),
    radial-gradient(ellipse at 50% 46%, rgba(0, 0, 0, 0.99) 0%, rgba(0, 0, 0, 0.99) 64%, rgba(0, 0, 0, 0.96) 84%, rgba(0, 0, 0, 0) 86%);
  border-top: 1px solid rgba(255, 255, 255, 0.28);
  border-left: 1px solid transparent;
  border-right: 1px solid transparent;
  border-bottom: 0;
  opacity: 0.98;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.02),
    inset 0 1px 0 rgba(255, 255, 255, 0.015),
    inset 0 -90px 80px rgba(0, 0, 0, 0.28);
}

body[data-page="home"] .home-page__hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  padding: 38vh 16px 18vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
}

body[data-page="home"] .site-mark {
  margin: 0;
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  color: #f7f7f7;
  font-family: "JetBrains Mono", "JetBrainsMono-SemiBold", monospace;
  font-size: clamp(4.1rem, 8vw, 6.85rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  font-weight: 600;
  text-rendering: geometricPrecision;
  filter: none;
}

body[data-page="home"] .site-mark__text {
  display: inline-block;
}

body[data-page="home"] .site-mark__dot {
  display: inline-block;
  margin: 0 0.14em;
  color: #83518f;
  transform: translateY(0.1em);
}

body[data-page="home"] .site-sub-wrap {
  min-height: 1.75rem;
}

body[data-page="home"] .site-sub {
  color: rgba(255, 255, 255, 0.94);
  font-family: "Leander", "Segoe UI", sans-serif;
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  line-height: 1.2;
  letter-spacing: 0;
  text-align: center;
}

body[data-page="home"] .home-links {
  margin-top: 0.45rem;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  align-self: center;
  text-align: center;
}

body[data-page="home"] .home-link {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  background: rgba(3, 3, 4, 0.72);
  color: #f6f6f6;
  font-family: "Leander", "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
  transition: transform 140ms ease, border-color 140ms ease, background-color 140ms ease;
}

body[data-page="home"] .home-link:hover,
body[data-page="home"] .home-link:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(8, 8, 9, 0.92);
  transform: translateY(-1px);
}

body[data-page="home"] .separator {
  display: none;
}

body[data-page="home"] .modal {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body[data-page="home"] .modal-panel {
  width: min(92vw, 520px);
  padding: 26px 28px;
  border-radius: 18px;
  background: #050505;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.75);
  color: #f3f4f6;
  text-align: center;
  font-family: "Leander", "Segoe UI", sans-serif;
  line-height: 1.45;
}

body[data-page="home"] .modal-title {
  margin: 0 0 10px;
  font-family: "JetBrains Mono", "JetBrainsMono-SemiBold", monospace;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

body[data-page="home"] .modal-panel p {
  margin: 0;
}

body[data-page="home"] .modal-panel p + p {
  margin-top: 10px;
}

body[data-page="home"] .modal-close {
  margin-top: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 4px;
  color: #f3f4f6;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
}

body[data-page="home"] .modal-close:hover,
body[data-page="home"] .modal-close:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 700px) {
  body[data-page="home"] .home-page__hero {
    padding: 31vh 16px 18vh;
    gap: 10px;
  }

  body[data-page="home"] .site-mark {
    font-size: clamp(3.1rem, 16vw, 5.1rem);
  }

  body[data-page="home"] .site-sub {
    font-size: clamp(0.95rem, 3.8vw, 1.08rem);
  }

  body[data-page="home"] .home-links {
    gap: 10px;
  }

  body[data-page="home"] .home-link {
    min-width: 70px;
    padding: 10px 14px;
  }

  body[data-page="home"] .home-page__curve {
    width: 188vw;
    height: 108vh;
    top: 16vh;
  }

  body[data-page="home"] .modal-panel {
    padding: 22px 20px;
    border-radius: 16px;
  }
}
