html,
body {
  min-height: 100%;
  margin: 0;
  background-color: #020617;
}

html {
  background:
    linear-gradient(rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.62)),
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.28), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(34, 197, 94, 0.16), transparent 60%),
    url("site-background.png") center / cover no-repeat fixed,
    #020617;
}

body {
  background:
    linear-gradient(rgba(2, 6, 23, 0.62), rgba(2, 6, 23, 0.62)),
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.28), transparent 60%),
    radial-gradient(circle at 90% 100%, rgba(34, 197, 94, 0.16), transparent 60%),
    url("site-background.png") center / cover no-repeat fixed,
    #020617;
  font-family: Inter, system-ui, sans-serif;
  color: white;
  overflow-x: hidden;
  user-select: none !important;
}

.gate-shell {
  min-height: calc(100vh - 3rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.gate-card {
  width: min(100%, 460px);
  padding: 32px;
  border-radius: 28px;
  background: rgba(3, 7, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(20px);
}

.gate-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #93c5fd;
}

.gate-title {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.1;
  font-weight: 700;
}

.gate-copy {
  margin: 0 0 24px;
  color: rgba(226, 232, 240, 0.86);
  line-height: 1.6;
}

.gate-form {
  display: grid;
  gap: 14px;
}

.gate-label {
  font-size: 13px;
  color: rgba(191, 219, 254, 0.92);
}

.gate-input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(15, 23, 42, 0.78);
  color: white;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.gate-input::placeholder {
  color: rgba(226, 232, 240, 0.45);
}

.gate-input:focus {
  border-color: rgba(96, 165, 250, 0.9);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.18);
  background: rgba(15, 23, 42, 0.96);
}

.gate-button {
  border: 0;
  padding: 14px 18px;
  border-radius: 999px;
  font-weight: 600;
  color: white;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.gate-button:hover {
  transform: translateY(-1px);
}

.gate-button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.gate-error {
  margin: 14px 0 0;
  color: #fca5a5;
  font-size: 14px;
}

.consent-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(10px);
}

.consent-card {
  width: min(100%, 720px);
  max-height: min(88vh, 860px);
  overflow-y: auto;
  padding: 28px;
  border-radius: 28px;
  background: rgba(3, 7, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.55);
}

.consent-eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #93c5fd;
}

.consent-title {
  margin: 0 0 16px;
  font-size: clamp(24px, 4vw, 32px);
  line-height: 1.1;
  font-weight: 700;
}

.consent-version {
  margin: -4px 0 18px;
  color: rgba(148, 163, 184, 0.92);
  font-size: 12px;
}

.consent-copy {
  display: grid;
  gap: 14px;
  color: rgba(226, 232, 240, 0.9);
  line-height: 1.65;
}

.consent-copy p {
  margin: 0;
}

.consent-copy a {
  color: #93c5fd;
}

.consent-checklist {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.consent-check {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(226, 232, 240, 0.96);
}

.consent-check input {
  margin-top: 3px;
}

.consent-signature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.consent-field {
  display: grid;
  gap: 8px;
  color: rgba(191, 219, 254, 0.92);
  font-size: 13px;
}

.consent-confirmation {
  margin-top: 18px;
}

.consent-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 22px;
}

.consent-button {
  border: 0;
  padding: 13px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.consent-button:hover {
  transform: translateY(-1px);
}

.consent-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.consent-button-primary {
  color: white;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.consent-button-secondary {
  color: white;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.portal-grid {
  align-items: start;
}

@media (min-width: 900px) {
  .portal-grid {
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.85fr);
  }
}

@media (max-width: 640px) {
  .consent-signature-grid {
    grid-template-columns: 1fr;
  }

  .consent-actions {
    flex-direction: column-reverse;
  }
}

body::before {
  content: "";
  position: fixed;
  inset: -10%;
  z-index: -10;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.10), transparent 35%),
    radial-gradient(circle at 80% 80%, rgba(96, 165, 250, 0.12), transparent 30%);
  opacity: 0.9;
  animation: drift 45s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes drift {
  from {
    transform: scale(1) translate(0, 0);
  }

  to {
    transform: scale(1.08) translate(-25px, -25px);
  }
}

#videoWrapper,
#video,
video {
  pointer-events: none !important;
  user-select: none !important;
  -webkit-user-select: none !important;
  -webkit-user-drag: none !important;
  -moz-user-select: none !important;
  -moz-window-dragging: no-drag !important;
}

#videoWrapper {
  position: relative;
  height: clamp(360px, 52vw, 620px);
  border-radius: 20px;
  overflow: hidden;
  background: black;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

#video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scaleX(-1);
}

#videoWrapper::after {
  content: "";
  position: absolute;
  inset: -10%;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(96, 165, 250, 0.35),
    transparent
  );
  mix-blend-mode: screen;
  animation: scan 3.8s linear infinite;
  pointer-events: none;
}

@keyframes scan {
  from {
    transform: translateY(-110%);
  }

  to {
    transform: translateY(110%);
  }
}

#stepBox {
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(18px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  user-select: none !important;
}

@media (max-width: 899px) {
  #videoWrapper {
    height: clamp(260px, 62vw, 420px);
  }
}

.timer-circle {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.2);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none !important;
}

.timer-ring {
  position: absolute;
  inset: 0;
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  transform: rotate(-90deg);
  transition: stroke-dashoffset 0.1s linear;
}

.mobile-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  padding: 20px;
  text-align: center;
  background: #020617;
  color: white;
  font-family: Inter, system-ui, sans-serif;
}

.mobile-block h2 {
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 12px;
}

.mobile-block p {
  max-width: 400px;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.85;
}

.mobile-block .mobile-block-code {
  margin-top: 22px;
  font-size: 14px;
  opacity: 0.55;
}
