:root {
  --bg-a: #141022;
  --bg-b: #1b1430;
  --bg-c: #0f1625;
  --line-a: rgba(147, 98, 236, 0.24);
  --line-b: rgba(56, 231, 113, 0.14);
  --text-main: #eceff8;
  --text-soft: #c7ccdb;
  --accent: #e78fb0;
  --accent-strong: #f2b5cc;
  --accent-secondary: #38e771;
  --button-dark: #171422;
  --border-soft: rgba(231, 143, 176, 0.3);
}

* {
  box-sizing: border-box;
}

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

body.entry-page {
  min-height: 100vh;
  color: var(--text-main);
  font-family: "Segoe UI", Arial, sans-serif;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% -8%, rgba(147, 98, 236, 0.32), transparent 42%),
    radial-gradient(circle at 86% -10%, rgba(56, 231, 113, 0.14), transparent 40%),
    radial-gradient(circle at 50% 112%, rgba(231, 143, 176, 0.18), transparent 42%),
    linear-gradient(150deg, var(--bg-a), var(--bg-b) 48%, var(--bg-c));
  background-size: 160% 160%;
  animation: bgShift 24s ease-in-out infinite;
}

body.entry-page::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.62;
  background:
    linear-gradient(135deg, var(--line-a) 12%, transparent 12%) 0 0 / 96px 96px,
    linear-gradient(225deg, var(--line-a) 12%, transparent 12%) 0 0 / 96px 96px,
    linear-gradient(315deg, var(--line-b) 12%, transparent 12%) 0 0 / 96px 96px,
    linear-gradient(45deg, var(--line-b) 12%, transparent 12%) 0 0 / 96px 96px;
  animation: patternDrift 32s linear infinite;
}

body.entry-page::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(7, 10, 18, 0.12), rgba(7, 10, 18, 0.64));
}

.entry-header,
.entry-main {
  position: relative;
  z-index: 1;
}

.entry-header {
  width: min(1240px, calc(100% - 2rem));
  margin: 1rem auto 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  padding: 0.55rem 0.72rem;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.8rem;
  background: rgba(15, 19, 30, 0.82);
  backdrop-filter: blur(6px);
}

.entry-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text-main);
  font-weight: 700;
}

.entry-brand img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.entry-nav {
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.entry-nav a {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.96rem;
}

.entry-nav a:hover,
.entry-nav a:focus-visible {
  color: var(--accent-secondary);
}

.entry-header-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border-soft);
  color: #24121b;
  padding: 0.55rem 0.92rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.entry-main {
  min-height: calc(100vh - 102px);
  width: min(1140px, calc(100% - 2rem));
  margin: 0 auto;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 0.2rem;
}

.entry-logo {
  width: min(430px, 84vw);
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 34px rgba(5, 8, 16, 0.48));
}

.entry-main h1 {
  margin: 0.85rem 0 0.36rem;
  font-size: clamp(1.9rem, 5vw, 4.35rem);
  line-height: 1.06;
  letter-spacing: 0.01em;
}

.entry-main h1 span {
  color: var(--accent-strong);
}

.entry-main p {
  margin: 0;
  max-width: 780px;
  color: var(--text-soft);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
}

.entry-actions {
  margin-top: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.66rem;
  justify-content: center;
}

.entry-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid var(--border-soft);
  color: #24121b;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 10px 28px rgba(8, 13, 22, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-btn.entry-btn-ghost {
  color: var(--text-main);
  background: rgba(15, 19, 30, 0.86);
  border-color: var(--border-soft);
}

.entry-btn:hover,
.entry-btn:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(12, 8, 22, 0.46);
}

@keyframes bgShift {
  0% {
    background-position: 0% 46%;
  }
  50% {
    background-position: 100% 54%;
  }
  100% {
    background-position: 0% 46%;
  }
}

@keyframes patternDrift {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-28px, -16px, 0);
  }
}

@media (max-width: 900px) {
  .entry-header {
    grid-template-columns: 1fr auto;
  }

  .entry-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 0.45rem;
  }

  .entry-main {
    min-height: calc(100vh - 130px);
  }
}

@media (max-width: 560px) {
  .entry-header {
    width: calc(100% - 1rem);
    margin-top: 0.55rem;
    padding: 0.52rem 0.55rem;
  }

  .entry-brand span {
    font-size: 0.93rem;
  }

  .entry-main {
    width: calc(100% - 1rem);
  }

  .entry-logo {
    width: min(360px, 86vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  body.entry-page {
    animation: none !important;
  }

  body.entry-page::before {
    animation: none !important;
  }

  .entry-btn {
    transition: none !important;
  }
}
