:root {
  --background: #080808;
  --foreground: #f7f7f4;
  --muted: #9b9b97;
  --line: rgba(247, 247, 244, 0.16);
  --panel: rgba(18, 18, 16, 0.88);
  --field: #0b0b0a;
  --acid: #d8ff3e;
  --signal: #ff3d5a;
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: dark;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: Inter, Arial, Helvetica, sans-serif;
}

button,
input {
  font: inherit;
}

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

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

.site-shell {
  position: relative;
  display: grid;
  min-height: 100svh;
  grid-template-rows: auto 1fr auto;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 78% 34%, rgba(216, 255, 62, 0.14), transparent 26rem),
    linear-gradient(110deg, rgba(255, 61, 90, 0.07), transparent 32%),
    var(--background);
  background-size: 46px 46px, 46px 46px, auto, auto, auto;
}

.site-shell::before {
  position: absolute;
  top: -14rem;
  left: 52%;
  width: 34rem;
  height: 34rem;
  border: 1px solid rgba(216, 255, 62, 0.12);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.topbar,
.hero,
.footer {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: grid;
  min-height: 80px;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--foreground);
  color: var(--background);
  font-weight: 950;
}

.release-state {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 18px rgba(255, 61, 90, 0.7);
  animation: status-pulse 2.4s ease-in-out infinite;
}

.back-link {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: #d8d8d2;
  font-size: 0.84rem;
  font-weight: 800;
  transition: border-color 160ms ease, color 160ms ease;
}

.back-link:hover,
.back-link:focus-visible {
  border-color: var(--acid);
  color: var(--foreground);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.72fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: center;
  padding: clamp(54px, 8vh, 104px) 0;
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.eyebrow {
  margin: 0;
  color: var(--acid);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  max-width: 790px;
  font-size: clamp(3.6rem, 7.8vw, 7.2rem);
  font-weight: 950;
  line-height: 0.88;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.lead {
  max-width: 720px;
  color: #d8d8d2;
  font-size: clamp(1rem, 1.8vw, 1.18rem);
  line-height: 1.7;
}

.signal-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.signal-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: #c9c9c4;
  font-size: 0.81rem;
}

.signal-list span {
  color: var(--acid);
  font-size: 0.68rem;
  font-weight: 950;
}

.release-note {
  max-width: 620px;
  border-left: 2px solid var(--signal);
  padding-left: 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.access-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(150deg, rgba(77, 163, 255, 0.09), transparent 42%),
    var(--panel);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.48);
  backdrop-filter: blur(16px);
}

.access-card::after {
  position: absolute;
  right: -52px;
  bottom: -72px;
  width: 180px;
  height: 180px;
  border: 1px solid rgba(216, 255, 62, 0.15);
  border-radius: 50%;
  content: "";
  pointer-events: none;
}

.card-topline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 17px;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.lock-mark {
  color: var(--signal);
  font-size: 1.05rem;
}

.card-heading {
  display: grid;
  gap: 11px;
  padding: 28px 0 24px;
}

.card-heading h2 {
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.card-heading > p:last-child {
  color: var(--muted);
  font-size: 0.91rem;
  line-height: 1.55;
}

.login-form {
  display: grid;
  gap: 10px;
}

.login-form label,
.password-label span {
  font-size: 0.77rem;
  font-weight: 850;
}

.password-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 6px;
}

.password-label span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  background: var(--field);
  color: var(--foreground);
  padding: 0 14px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.login-form input::placeholder {
  color: #666660;
}

.login-form input:focus {
  border-color: var(--acid);
  box-shadow: 0 0 0 3px rgba(216, 255, 62, 0.08);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 72px;
}

.visibility-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 54px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px;
  cursor: pointer;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transform: translateY(-50%);
}

.visibility-toggle:hover,
.visibility-toggle:focus-visible {
  color: var(--acid);
}

.login-button {
  min-height: 48px;
  margin-top: 8px;
  border: 1px solid var(--acid);
  border-radius: 8px;
  background: var(--acid);
  color: #101108;
  cursor: pointer;
  font-weight: 950;
  transition: transform 160ms ease, filter 160ms ease;
}

.login-button:hover,
.login-button:focus-visible {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.form-status {
  min-height: 38px;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
}

.form-status.is-locked {
  color: #ff8294;
}

.security-note {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 17px;
  color: #777772;
  font-size: 0.68rem;
  line-height: 1.45;
}

.security-note span {
  color: var(--acid);
  font-size: 0.55rem;
  transform: translateY(2px);
}

.access-card.is-denied {
  animation: denied 360ms ease;
}

.footer {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  color: #70706b;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@keyframes status-pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(0.88);
  }
  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes denied {
  0%,
  100% {
    transform: translateX(0);
  }
  30% {
    transform: translateX(-5px);
  }
  65% {
    transform: translateX(5px);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    padding-top: 44px;
  }

  .access-card {
    width: min(100%, 540px);
  }
}

@media (max-width: 560px) {
  .topbar {
    grid-template-columns: auto 1fr;
  }

  .release-state {
    justify-self: end;
    text-align: right;
  }

  .back-link {
    display: none;
  }

  .hero {
    gap: 38px;
    padding: 34px 0 54px;
  }

  h1 {
    font-size: clamp(3.1rem, 16vw, 4.7rem);
  }

  .signal-list {
    display: grid;
  }

  .signal-list li {
    width: max-content;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding: 18px 0;
  }
}

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