:root {
  color-scheme: dark;
  --gate-bg: #09111d;
  --gate-panel: rgba(8, 20, 36, 0.84);
  --gate-border: rgba(131, 174, 255, 0.18);
  --gate-text: #eef3ff;
  --gate-muted: rgba(238, 243, 255, 0.72);
  --gate-accent: #75d4ff;
  --gate-accent-2: #ffc65a;
}

* {
  box-sizing: border-box;
}

body.gate-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--gate-text);
  background:
    radial-gradient(circle at top, rgba(117, 212, 255, 0.18), transparent 34%),
    radial-gradient(circle at bottom, rgba(255, 198, 90, 0.12), transparent 28%),
    linear-gradient(180deg, #08101c 0%, #03070d 100%);
  overflow: hidden;
}

.gate-noise,
.gate-orbit {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.gate-noise {
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 3px 3px, 3px 3px;
  mix-blend-mode: screen;
}

.gate-orbit {
  filter: blur(18px);
  opacity: 0.5;
}

.gate-orbit-a {
  background: radial-gradient(circle at 18% 25%, rgba(117, 212, 255, 0.34), transparent 20%);
}

.gate-orbit-b {
  background: radial-gradient(circle at 82% 70%, rgba(255, 198, 90, 0.22), transparent 22%);
}

.gate-shell {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.gate-card {
  width: min(560px, 100%);
  padding: 40px 36px;
  border: 1px solid var(--gate-border);
  border-radius: 28px;
  background: var(--gate-panel);
  backdrop-filter: blur(16px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
}

.gate-kicker {
  margin: 0 0 12px;
  color: var(--gate-accent);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.gate-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 0.96;
}

.gate-copy {
  margin: 16px 0 0;
  color: var(--gate-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.gate-form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.gate-form label {
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gate-muted);
}

.gate-form input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid rgba(117, 212, 255, 0.26);
  border-radius: 14px;
  font: inherit;
  color: var(--gate-text);
  background: rgba(4, 12, 23, 0.85);
}

.gate-form input:focus {
  outline: 2px solid rgba(117, 212, 255, 0.5);
  outline-offset: 2px;
}

.gate-form button {
  padding: 15px 18px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-weight: 700;
  color: #07101c;
  background: linear-gradient(135deg, var(--gate-accent), #c5f1ff);
  cursor: pointer;
}

.gate-form button:hover {
  filter: brightness(1.04);
}

.gate-message {
  min-height: 1.4em;
  margin: 0;
  color: #ffb6a8;
  font-size: 0.95rem;
}

.gate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.gate-links a {
  color: var(--gate-accent-2);
  text-decoration: none;
  font-size: 0.94rem;
}

.gate-links a:hover {
  text-decoration: underline;
}

@media (max-width: 640px) {
  .gate-card {
    padding: 30px 22px;
    border-radius: 22px;
  }
}
