.hero {
  position: relative;
  overflow: hidden;
  padding: 124px 0 72px;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.hero__noise {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(90, 112, 210, 0.2), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(56, 120, 185, 0.12), transparent 38%);
  pointer-events: none;
}

.hero__nav,
.hero__content {
  position: relative;
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.hero__nav-wrap {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  border-bottom: 1px solid rgba(68, 82, 120, 0.45);
  background: rgba(4, 7, 13, 0.8);
  backdrop-filter: blur(12px);
}

.hero__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
}

.hero__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.hero__menu {
  display: flex;
  gap: 28px;
  color: var(--muted);
  font-size: 14px;
}

.hero__menu a,
.hero__drawer-menu a {
  transition: color 0.2s ease;
}

.hero__menu a:hover,
.hero__drawer-menu a:hover {
  color: #d2dcfb;
}

.hero__menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  padding: 8px;
  cursor: pointer;
}

.hero__menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: #d9e0f5;
  border-radius: 999px;
}

.hero__drawer,
.hero__drawer-backdrop {
  display: none;
}

.hero__drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: min(286px, 72vw);
  height: 100dvh;
  z-index: 80;
  border-right: 1px solid rgba(80, 102, 156, 0.36);
  border-radius: 0 18px 18px 0;
  background:
    linear-gradient(180deg, rgba(14, 23, 46, 0.95), rgba(5, 9, 18, 0.95));
  box-shadow: 14px 0 36px rgba(0, 0, 0, 0.42);
  padding: calc(24px + env(safe-area-inset-top)) 14px 18px;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
}

.hero__brand--drawer {
  margin: 0 6px 18px;
  padding: 12px 10px;
  border-radius: 12px;
  background: rgba(14, 25, 52, 0.45);
  border: 1px solid rgba(116, 145, 214, 0.24);
}

.hero__drawer-menu {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #c4cee9;
  font-size: 16px;
}

.hero__drawer-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 10px;
  padding: 0 12px;
  color: #d9e3ff;
  font-weight: 600;
  background: transparent;
  border: 1px solid transparent;
}

.hero__drawer-menu a:hover {
  background: rgba(111, 125, 255, 0.14);
  border-color: rgba(136, 154, 255, 0.28);
}

.hero__drawer-menu a:active {
  transform: translateY(1px);
}

.hero__drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(1, 3, 10, 0.52);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hero__drawer.is-open {
  transform: translateX(0);
}

.hero__drawer-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.hero__content {
  text-align: center;
  max-width: 880px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__eyebrow {
  margin: 0 0 14px;
  color: #b6c0e0;
  font-size: 12px;
  letter-spacing: 0.14em;
  font-weight: 600;
}

.hero h1 {
  margin: 0 auto;
  max-width: 860px;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  font-weight: 800;
}

.hero__desc {
  margin: 18px auto 0;
  max-width: 670px;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.72;
}

.hero__actions {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-bottom: 34px;
}

.hero__wiki-link {
  min-width: 176px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(94, 114, 174, 0.75);
  background: rgba(12, 18, 34, 0.72);
  color: #dbe5ff;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  transition: transform 0.2s ease, filter 0.2s ease, border-color 0.2s ease;
}

.hero__wiki-link:hover {
  filter: brightness(1.08);
  border-color: rgba(125, 147, 220, 0.95);
}

.hero__wiki-link:active {
  transform: translateY(1px);
}

.hero__button {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 11px 18px;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.hero__button--primary {
  background: linear-gradient(145deg, var(--primary), var(--primary-2));
}

.hero__button--outline {
  border-color: #3d4a76;
  color: #d8def1;
}

.hero__button--ghost {
  border-color: #2c3556;
  color: #c5cee8;
  padding-inline: 16px;
}

.hero__preview {
  margin: 0 auto;
  max-width: 980px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: #050912;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
}

.hero__preview img {
  width: 100%;
  display: block;
}

@media (max-width: 760px) {
  .hero__nav,
  .hero__content {
    width: min(1120px, calc(100% - 28px));
  }

  .hero {
    padding-top: 108px;
  }

  .hero__menu {
    display: none;
  }

  .hero__nav {
    justify-content: center;
    min-height: 64px;
  }

  .hero__menu-toggle {
    display: block;
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .hero__drawer,
  .hero__drawer-backdrop {
    display: block;
  }

  .hero__drawer {
    width: min(280px, 74vw);
  }

  body.menu-open {
    overflow: hidden;
  }

  .hero__brand {
    justify-content: center;
  }
}
