:root {
  --page-bg: #08080b;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.78);
  --accent: #ff8b1f;
  --accent-light: #ffc052;
  --accent-dark: #e94d12;
  --button-dark: #101015;
  --button-border: rgba(255, 255, 255, 0.28);
  --content-width: 1040px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--page-bg);
}

body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  color: var(--text);
  background: var(--page-bg);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

.landing {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.78)),
    url("assets/images/gamcuan-bg.webp") center / cover no-repeat;
}

.landing::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 122, 25, 0.11), transparent 31rem),
    linear-gradient(90deg, rgba(0, 0, 0, 0.36), transparent 25%, transparent 75%, rgba(0, 0, 0, 0.36));
  pointer-events: none;
}

.landing::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, transparent, black 25%, black 70%, transparent);
  pointer-events: none;
}

.ambient {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(75px);
  opacity: 0.28;
  pointer-events: none;
}

.ambient-one {
  width: 310px;
  height: 310px;
  top: 12%;
  right: -80px;
  background: #ff5716;
}

.ambient-two {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: 7%;
  background: #7f1515;
}

.landing__content {
  width: min(calc(100% - 36px), var(--content-width));
  margin: auto;
  padding: 56px 0 84px;
  text-align: center;
}

.brand-logo {
  display: block;
  width: min(660px, 88vw);
  height: auto;
  margin: 0 auto 22px;
  filter: drop-shadow(0 16px 24px rgba(0, 0, 0, 0.72));
  animation: brand-enter 720ms cubic-bezier(.22,.9,.28,1) both;
}

h1 {
  max-width: 980px;
  margin: 0 auto;
  color: #fff;
  font-size: clamp(1.25rem, 3vw, 2.05rem);
  line-height: 1.28;
  font-weight: 800;
  letter-spacing: -0.025em;
  text-shadow:
    0 3px 9px rgba(0, 0, 0, 0.9),
    0 0 28px rgba(255, 110, 24, 0.18);
  animation: content-enter 720ms 120ms cubic-bezier(.22,.9,.28,1) both;
}

.actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 34px;
  animation: content-enter 720ms 210ms cubic-bezier(.22,.9,.28,1) both;
}

.button {
  position: relative;
  min-width: 190px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.48);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    filter 180ms ease;
}

.button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -120%;
  width: 75%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transform: skewX(-18deg);
  transition: left 450ms ease;
}

.button:hover::before,
.button:focus-visible::before {
  left: 145%;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-3px);
}

.button:focus-visible {
  outline: 3px solid rgba(255, 190, 82, 0.55);
  outline-offset: 4px;
}

.button--login {
  color: #241006;
  background: linear-gradient(180deg, var(--accent-light), var(--accent) 58%, var(--accent-dark));
  border-color: rgba(255, 221, 138, 0.75);
  box-shadow:
    0 12px 32px rgba(234, 76, 16, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button--login:hover,
.button--login:focus-visible {
  filter: brightness(1.08);
  box-shadow:
    0 16px 42px rgba(234, 76, 16, 0.46),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.button--register {
  color: #fff;
  background: linear-gradient(180deg, #202027, var(--button-dark));
  border-color: var(--button-border);
}

.button--register:hover,
.button--register:focus-visible {
  border-color: rgba(255, 143, 31, 0.78);
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.56),
    0 0 0 1px rgba(255, 139, 31, 0.18) inset;
}

.site-footer {
  position: relative;
  z-index: 2;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: var(--muted);
  background: rgba(0, 0, 0, 0.38);
  text-align: center;
  font-size: 0.92rem;
  backdrop-filter: blur(7px);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--accent-light);
  font-weight: 800;
}

@keyframes brand-enter {
  from {
    opacity: 0;
    transform: translateY(-18px) scale(.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes content-enter {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .landing__content {
    padding: 48px 0 62px;
  }

  .brand-logo {
    width: min(490px, 94vw);
    margin-bottom: 14px;
  }

  h1 {
    max-width: 94%;
    font-size: clamp(1.05rem, 5.4vw, 1.45rem);
  }

  .actions {
    width: min(100%, 430px);
    margin: 27px auto 0;
    flex-direction: column;
    gap: 12px;
  }

  .button {
    width: 100%;
    min-width: 0;
    min-height: 52px;
  }

  .site-footer {
    padding: 17px 14px;
    font-size: 0.82rem;
  }
}

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