/* RiftMetro public home + Iconportal — Netlify static */

:root {
  --bg: #070b14;
  --fg: #f1f5f9;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --card: rgba(15, 23, 42, 0.72);
  --border: rgba(148, 163, 184, 0.18);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

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

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

body.rm-home {
  color: var(--fg);
  font-family: var(--font-body);
  background:
    radial-gradient(900px 500px at 15% -5%, rgba(56, 189, 248, 0.22), transparent 55%),
    radial-gradient(700px 420px at 90% 10%, rgba(129, 140, 248, 0.18), transparent 50%),
    radial-gradient(600px 400px at 50% 110%, rgba(244, 114, 182, 0.12), transparent 45%),
    var(--bg);
  overflow-x: hidden;
}

.rm-home a {
  color: var(--accent);
}

.rm-home__skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.rm-home__skip:focus {
  left: 1rem;
  top: 1rem;
  z-index: 10;
  background: #000;
  padding: 0.5rem 0.75rem;
}

.rm-home__stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
}

.rm-home__orb {
  position: relative;
  width: min(220px, 46vw);
  height: min(220px, 46vw);
  margin-bottom: 1.75rem;
}

.rm-home__orb::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: conic-gradient(from 120deg, transparent, rgba(56, 189, 248, 0.35), transparent 40%);
  animation: rm-spin 8s linear infinite;
  filter: blur(2px);
}

.rm-home__mark {
  position: relative;
  width: 100%;
  height: 100%;
  animation: rm-spin 14s linear infinite;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.35));
}

.rm-home__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 4.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(120deg, #e0f2fe 10%, #38bdf8 45%, #a5b4fc 75%, #f9a8d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.rm-home__tag {
  margin: 1rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.rm-home__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 2rem;
}

.rm-home__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.rm-home__btn:hover {
  transform: translateY(-1px);
}

.rm-home__btn--primary {
  background: linear-gradient(120deg, #38bdf8, #818cf8);
  color: #0b1220;
}

.rm-home__btn--ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--border);
}

.rm-home__foot {
  margin-top: 2.5rem;
  color: var(--muted);
  font-size: 0.85rem;
}

/* Iconportal page */
.rm-portal {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem 3rem;
  text-align: center;
}

.rm-portal__card {
  width: min(520px, 100%);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2rem 1.5rem;
  backdrop-filter: blur(12px);
}

.rm-portal__eyebrow {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.rm-portal__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.rm-portal__copy {
  margin: 0.85rem 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.rm-portal__code {
  display: block;
  margin-top: 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  background: rgba(2, 6, 23, 0.65);
  border: 1px solid var(--border);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  font-size: 0.92rem;
  word-break: break-all;
  color: #e2e8f0;
}

.rm-portal__mark {
  width: 88px;
  height: 88px;
  margin: 0 auto 1.25rem;
  animation: rm-spin 12s linear infinite;
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
}

.rm-portal__form {
  margin-top: 1.25rem;
  text-align: left;
}

.rm-portal__label {
  display: block;
  margin-bottom: 0.85rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.rm-portal__label input {
  display: block;
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.7rem 0.85rem;
  border-radius: 0.65rem;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.65);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1rem;
}

.rm-portal__error {
  color: #f87171;
  font-size: 0.9rem;
  margin: 0 0 0.5rem;
}

@keyframes rm-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .rm-home__orb::before,
  .rm-home__mark,
  .rm-portal__mark {
    animation: none;
  }
}
