:root {
  --bg: #f7faf9;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: rgba(255, 255, 255, 0.98);
  --ink: #061421;
  --muted: #526477;
  --line: rgba(6, 20, 33, 0.12);
  --cyan: #43f4ff;
  --lime: #ccff5c;
  --purple: #7c3aed;
  --green: #059669;
  --green-soft: #d1fae5;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
}

body {
  min-height: 100svh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 10%, rgba(16, 185, 129, 0.14), transparent 24rem),
    radial-gradient(circle at 88% 18%, rgba(67, 244, 255, 0.12), transparent 20rem),
    radial-gradient(circle at 68% 82%, rgba(209, 250, 229, 0.75), transparent 26rem),
    linear-gradient(135deg, #ffffff, #f7faf9 48%, #eef8f4);
  overflow-x: hidden;
}

body.loading {
  overflow: hidden;
}

a,
button {
  font: inherit;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #151923, #050609 70%);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
  transition-delay: 0.15s;
}

.letter-field {
  position: absolute;
  inset: 0;
}

.flying-letter {
  position: absolute;
  color: #f5f7fb;
  font-weight: 900;
  font-size: clamp(22px, 4vw, 86px);
  font-family: Inter, system-ui, sans-serif;
  text-shadow: 0 0 24px rgba(67, 244, 255, 0.45);
  animation: letterRush 2.55s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.forming-letter {
  color: #f7fbff;
  z-index: 2;
}

.ghost-letter {
  font-size: clamp(14px, 1.8vw, 28px);
  color: rgba(226, 234, 248, 0.72);
  animation: ghostScatter 2.1s ease forwards;
}

.loader p {
  position: absolute;
  top: calc(50% + 92px);
  margin: 0;
  color: #dce5f3;
  font-size: clamp(14px, 1.8vw, 22px);
  font-weight: 800;
  opacity: 0;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  animation: taglineReveal 0.85s ease forwards 2.35s;
}

@keyframes letterRush {
  0% {
    transform: translate(var(--sx), var(--sy)) rotate(var(--r)) scale(0.72);
    opacity: 0.08;
  }
  35% {
    opacity: 1;
  }
  78%,
  100% {
    left: var(--tx);
    top: 50%;
    transform: translate(-50%, -50%) rotate(0deg) scale(1);
    opacity: 1;
  }
}

@keyframes ghostScatter {
  0% {
    transform: translate(var(--sx), var(--sy)) rotate(var(--r));
    opacity: 0.12;
  }
  55% {
    opacity: 0.75;
  }
  100% {
    transform: translate(0, 0) rotate(0deg) scale(0.35);
    opacity: 0;
  }
}

@keyframes taglineReveal {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.portal-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 72px);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.portal-shell.show {
  opacity: 1;
  transform: translateY(0);
}

.portal-card {
  width: min(100%, 620px);
  position: relative;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 253, 246, 0.88)),
    var(--panel);
  box-shadow: 0 24px 80px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}

.portal-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at 18% 2%, rgba(16, 185, 129, 0.18), transparent 15rem),
    radial-gradient(circle at 78% 100%, rgba(67, 244, 255, 0.12), transparent 16rem);
  pointer-events: none;
}

.portal-card > * {
  position: relative;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
  color: #061421;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #053326;
  background: linear-gradient(135deg, #6ee7b7, #bef264);
  letter-spacing: 0;
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.24);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: #061421;
  font-size: clamp(36px, 8vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.meeting-copy p:last-child {
  max-width: 500px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.6;
}

.status-strip {
  margin-top: 32px;
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border: 1px solid rgba(5, 150, 105, 0.2);
  border-radius: 999px;
  color: #0f513f;
  background: rgba(209, 250, 229, 0.62);
  font-size: 13px;
}

.status-dot {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.55);
  animation: statusPulse 1.4s ease-in-out infinite;
}

@keyframes statusPulse {
  50% {
    opacity: 0.45;
    transform: scale(0.72);
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0 20px;
  border: 1px solid rgba(6, 20, 33, 0.12);
  color: #061421;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.button:hover {
  transform: translateY(-2px);
  border-color: rgba(5, 150, 105, 0.38);
}

.button.primary {
  color: #ffffff;
  border: 0;
  background: linear-gradient(135deg, #059669, #10b981);
  box-shadow: 0 14px 32px rgba(5, 150, 105, 0.2);
}

.button.ghost {
  background: #ffffff;
}

.not-found .status-dot {
  background: #ff5c9d;
  box-shadow: 0 0 16px rgba(255, 92, 157, 0.64);
}

@media (max-width: 520px) {
  .portal-shell {
    place-items: stretch;
    align-items: center;
    padding: 18px;
  }

  .portal-card {
    border-radius: 18px;
  }

  .brand-lockup {
    margin-bottom: 34px;
  }

  .actions,
  .button {
    width: 100%;
  }

  .loader p {
    top: calc(50% + 68px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .loader {
    display: none;
  }

  body.loading {
    overflow: auto;
  }

  .portal-shell {
    opacity: 1;
    transform: none;
  }
}
