* {
  box-sizing: border-box;
}

:root {
  --black: #000000;
  --white: #f5f5f2;
  --muted: #a7a7a2;
  --line: rgba(245, 245, 242, 0.16);
  --glass: rgba(255, 255, 255, 0.045);
  --glass-strong: rgba(255, 255, 255, 0.105);
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
}

body {
  min-width: 320px;
  color: var(--white);
  font-family: "Arial Narrow", "Roboto Condensed", "Segoe UI", Arial, sans-serif;
  background: var(--black);
}

a,
button {
  -webkit-tap-highlight-color: transparent;
}

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

button {
  font: inherit;
}

.site-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.home-shell {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.42), rgba(0, 0, 0, 0.74)),
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.1), transparent 26%),
    url("/nebo.jpg") center / cover no-repeat;
}

.home-shell::before {
  content: "";
  position: absolute;
  inset: 0 -70px 0 auto;
  width: 540px;
  pointer-events: none;
  opacity: 0.2;
  background: repeating-radial-gradient(
    ellipse at 100% 8%,
    transparent 0 24px,
    rgba(255, 255, 255, 0.18) 25px 27px,
    transparent 28px 52px
  );
  transform: rotate(-7deg);
}

.top-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 0 34px;
}

.bso-page .top-nav {
  border-bottom: 1px solid rgba(245, 245, 242, 0.1);
  background: rgba(0, 0, 0, 0.26);
  backdrop-filter: blur(18px);
}

.nav-brand {
  justify-self: start;
  min-width: 0;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
}

.desktop-nav {
  grid-column: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
}

.desktop-nav a,
.mobile-menu a {
  position: relative;
  color: var(--white);
  font-size: 15px;
  line-height: 1;
  font-weight: 900;
  white-space: nowrap;
  opacity: 0.82;
  transition: opacity 0.16s ease;
}

.desktop-nav a:hover,
.mobile-menu a:hover,
.desktop-nav a.is-active,
.mobile-menu a.is-active {
  opacity: 1;
}

.desktop-nav a.is-active::after,
.mobile-menu a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  border-radius: 99px;
  background: var(--white);
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--glass);
  cursor: pointer;
}

.menu-toggle span {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: var(--white);
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.hero {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 110px 20px 76px;
  text-align: center;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(48px, 9vw, 118px);
  line-height: 0.9;
  font-weight: 900;
  letter-spacing: 0;
  text-shadow: 0 28px 70px rgba(0, 0, 0, 0.72);
}

.subscribe-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(100%, 312px);
  min-height: 64px;
  margin-top: 46px;
  padding: 3px 30px 0;
  border: 1px solid rgba(245, 245, 242, 0.28);
  border-radius: 14px;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.12), transparent 58%),
    var(--glass-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  color: var(--white);
  font-size: 17px;
  font-weight: 900;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.subscribe-button:hover {
  border-color: rgba(245, 245, 242, 0.48);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.mobile-menu,
.menu-backdrop {
  display: none;
}

@media (max-width: 760px) {
  .top-nav {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    min-height: 62px;
    padding: 0 12px;
  }

  .nav-brand {
    justify-self: center;
    font-size: 16px;
  }

  .desktop-nav {
    display: none;
  }

  .menu-toggle {
    position: relative;
    display: inline-flex;
    grid-column: 1;
  }

  .hero {
    padding-top: 90px;
  }

  .hero h1 {
    font-size: 48px;
    overflow-wrap: anywhere;
  }

  .subscribe-button {
    min-width: min(100%, 276px);
    min-height: 60px;
    font-size: 16px;
  }

  .mobile-menu {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 40;
    display: block;
    width: min(82vw, 292px);
    padding: 78px 18px 22px;
    border-right: 1px solid rgba(245, 245, 242, 0.14);
    background: rgba(5, 5, 5, 0.94);
    box-shadow: 30px 0 70px rgba(0, 0, 0, 0.52);
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }

  .mobile-menu nav {
    display: grid;
    gap: 24px;
  }

  .mobile-menu a {
    width: max-content;
    max-width: 100%;
    font-size: 18px;
    white-space: normal;
  }

  .mobile-menu a.is-active::after {
    bottom: -8px;
  }

  .menu-close {
    position: absolute;
    top: 14px;
    left: 12px;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--glass);
    cursor: pointer;
  }

  .menu-close::before,
  .menu-close::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    top: 20px;
    height: 2px;
    border-radius: 99px;
    background: var(--white);
  }

  .menu-close::before {
    transform: rotate(45deg);
  }

  .menu-close::after {
    transform: rotate(-45deg);
  }

  .menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 35;
    display: block;
    border: 0;
    background: rgba(0, 0, 0, 0.54);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
  }

  body.menu-open .mobile-menu {
    transform: translateX(0);
  }

  body.menu-open .menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}
