/* 3. Layout and components */

.site {
  position: relative;
  z-index: 2;
  width: min(var(--page-max), calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 22px 0 52px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 28px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  text-decoration: none;
  user-select: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 40%, rgba(182, 154, 91, 0.18), transparent 58%),
    rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 18px rgba(182, 154, 91, 0.06);
  color: var(--gold);
  font-weight: 900;
  letter-spacing: -0.08em;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.035);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.18);
}

.language-button {
  appearance: none;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--muted);
  min-width: 42px;
  height: 34px;
  padding: 0 11px;
  cursor: pointer;
  transition: color 180ms var(--ease), background 180ms var(--ease), transform 180ms var(--ease);
}

.language-button:hover {
  color: var(--text);
}

.language-button[aria-pressed="true"] {
  color: #0c0b08;
  background: var(--gold);
  box-shadow: 0 6px 22px rgba(182, 154, 91, 0.24);
}

.language-button:active {
  transform: translateY(1px);
}

.video-stage {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 1px;
  background:
    linear-gradient(135deg, rgba(182, 154, 91, 0.44), transparent 28%, rgba(113, 130, 74, 0.24) 68%, rgba(242, 239, 232, 0.16)),
    rgba(255, 255, 255, 0.04);
  box-shadow:
    0 34px 100px var(--shadow),
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.video-stage::before,
.video-stage::after {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  pointer-events: none;
  opacity: 0.74;
  background:
    linear-gradient(var(--gold), var(--gold)) 0 0 / 38px 1px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 0 / 1px 38px no-repeat;
}

.video-stage::before {
  left: 18px;
  top: 18px;
}

.video-stage::after {
  right: 18px;
  bottom: 18px;
  transform: rotate(180deg);
}

.video-frame {
  position: relative;
  aspect-ratio: 21 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 1px);
  background:
    radial-gradient(circle at 50% 45%, rgba(113, 130, 74, 0.2), transparent 32%),
    linear-gradient(180deg, #11120e, #050505 66%);
}

.video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  opacity: 0.92;
}

.video-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
  text-align: center;
  pointer-events: none;
}

.placeholder-inner {
  width: min(620px, 92%);
  display: grid;
  gap: 12px;
  place-items: center;
  opacity: 0.92;
}

.goblin-sigil {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(182, 154, 91, 0.32);
  border-radius: 50%;
  color: var(--gold);
  background: rgba(3, 3, 3, 0.52);
  box-shadow:
    inset 0 0 26px rgba(182, 154, 91, 0.08),
    0 18px 58px rgba(0, 0, 0, 0.42);
}

.goblin-sigil svg {
  width: 38px;
  height: 38px;
}

.video-frame.has-video .video-placeholder {
  display: none;
}

.hero-content {
  width: min(880px, 100%);
  margin: 0 auto;
  padding: clamp(14px, 3.4vw, 34px) 0 20px;
  text-align: center;
  display: grid;
  justify-items: center;
  gap: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.6;
}

.eyebrow::after {
  background: linear-gradient(90deg, currentColor, transparent);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 6px;
}

.cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-width: min(380px, calc(100vw - 48px));
  min-height: 72px;
  padding: 20px 36px;
  overflow: hidden;
  border: 1px solid rgba(242, 239, 232, 0.24);
  border-radius: var(--radius-pill);
  color: #070704;
  background:
    radial-gradient(circle at 50% -70%, #fff6cf, transparent 70%),
    linear-gradient(180deg, #d6bc77 0%, #b69a5b 46%, #8d733d 100%);
  box-shadow:
    0 22px 64px rgba(182, 154, 91, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
  text-decoration: none;
  transition: transform 180ms var(--ease), filter 180ms var(--ease), box-shadow 180ms var(--ease);
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-110%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transition: transform 700ms var(--ease);
}

.cta:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  box-shadow:
    0 28px 78px rgba(182, 154, 91, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.34),
    inset 0 -1px 0 rgba(0, 0, 0, 0.2);
}

.cta:hover::before {
  transform: translateX(110%);
}

.cta:active {
  transform: translateY(0);
}

.cta svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
}

.footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
}

.footer-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--muted-2);
  opacity: 0.6;
}

@media (max-width: 760px) {
  .site {
    width: min(100% - 24px, var(--page-max));
    padding-top: 14px;
    gap: 22px;
  }

  .topbar {
    align-items: flex-start;
  }

  .brand-subtitle {
    display: none;
  }

  .language-switcher {
    gap: 4px;
    padding: 5px;
  }

  .language-button {
    min-width: 38px;
    height: 32px;
    padding: 0 9px;
  }

  .video-stage {
    border-radius: 22px;
  }

  .video-frame {
    border-radius: 21px;
  }

  .video-stage::before,
  .video-stage::after {
    width: 74px;
    height: 74px;
  }

  .video-stage::before {
    left: 13px;
    top: 13px;
  }

  .video-stage::after {
    right: 13px;
    bottom: 13px;
  }

  .message {
    max-width: 660px;
  }

  .cta {
    width: 100%;
    min-height: 66px;
  }
}

@media (max-width: 460px) {
  .topbar {
    flex-direction: column;
    align-items: center;
  }

  .brand {
    justify-content: center;
  }

  .video-frame {
    aspect-ratio: 16 / 10;
  }

  .placeholder-note {
    display: none;
  }

  .goblin-sigil {
    width: 60px;
    height: 60px;
  }

  .eyebrow::before,
  .eyebrow::after {
    width: 20px;
  }
}
