:root {
  --bg-1: #f5f7fb;
  --bg-2: #edf2f8;
  --text: #122033;
  --muted: rgba(18, 32, 51, 0.68);
  --line: rgba(18, 32, 51, 0.1);
  --glass: rgba(255, 255, 255, 0.68);
  --glass-strong: rgba(255, 255, 255, 0.82);
  --accent: #ff6a1a;
  --accent-2: #4b7bff;
  --shadow: 0 22px 60px rgba(18, 32, 51, 0.12);
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 106, 26, 0.12), transparent 30%),
    radial-gradient(circle at right 18%, rgba(75, 123, 255, 0.12), transparent 28%),
    linear-gradient(145deg, var(--bg-1), var(--bg-2));
  overflow-x: hidden;
}

body.meeting-body {
  min-height: 100vh;
}

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

button,
input {
  font: inherit;
}

.bg-orb,
.bg-grid {
  pointer-events: none;
  position: fixed;
  z-index: 0;
}

.bg-orb {
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.56;
  animation: floatOrb 16s ease-in-out infinite;
  will-change: transform;
}

.orb-1 {
  width: 260px;
  height: 260px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(255, 106, 26, 0.32), rgba(255, 106, 26, 0.05) 72%);
}

.orb-2 {
  width: 360px;
  height: 360px;
  left: -120px;
  bottom: 8%;
  background: radial-gradient(circle, rgba(75, 123, 255, 0.26), rgba(75, 123, 255, 0.04) 72%);
  animation-delay: -5s;
}

.bg-grid {
  inset: 0;
  background-image:
    linear-gradient(rgba(18, 32, 51, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 32, 51, 0.045) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.42), transparent 84%);
}

.glass-shell {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.62));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
}

.topbar,
.page-shell,
.modal {
  position: relative;
  z-index: 1;
}

.topbar {
  margin: 22px auto 0;
  width: min(1180px, calc(100% - 24px));
  border-radius: 999px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-logo {
  width: 154px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(18, 32, 51, 0.12));
}

.nav-action,
.primary-btn,
.secondary-btn {
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease;
}

.nav-action {
  padding: 13px 22px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #ff8e55);
  color: #fff;
  box-shadow: 0 16px 36px rgba(255, 106, 26, 0.22);
}

.nav-action:hover,
.primary-btn:hover,
.secondary-btn:hover,
.close-btn:hover {
  transform: translateY(-2px);
}

.page-shell {
  width: min(1180px, calc(100% - 24px));
  margin: 18px auto 54px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
}

.hero-visual {
  padding: clamp(18px, 3vw, 30px);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.hero-copy {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-align: center;
  padding: 10px 0 22px;
}

.hero-kicker,
.status-copy,
.form-feedback,
.modal-kicker,
.join-status-title,
.join-status-copy,
.waiting-title,
.event-label {
  margin: 0;
}

.hero-kicker,
.modal-kicker,
.event-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.74rem;
  color: rgba(18, 32, 51, 0.62);
}

.hero-copy h1 {
  margin: 0;
  max-width: 14ch;
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.poster-frame {
  width: 100%;
  border-radius: 30px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.74));
  border: 1px solid rgba(18, 32, 51, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.poster-frame-wide {
  max-width: 760px;
  margin: 0 auto;
}

.poster-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 22px;
  object-fit: cover;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 18px;
}

.hero-actions-center {
  margin-top: 18px;
}

.primary-btn,
.secondary-btn,
.form-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 24px;
  font-weight: 800;
  border: 0;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #ff8d4f 68%, #ffb36f);
  color: #fff;
  box-shadow: 0 16px 34px rgba(255, 106, 26, 0.22);
}

.secondary-btn {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(18, 32, 51, 0.1);
}

.event-strip {
  margin: 18px auto 0;
  max-width: 820px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(18, 32, 51, 0.08);
}

.event-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1.03rem;
}

.status-copy {
  max-width: 820px;
  margin: 16px auto 0;
  text-align: center;
  color: var(--muted);
}

.status-copy-center {
  padding-bottom: 6px;
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 180ms ease, visibility 180ms ease;
}

.modal.show {
  opacity: 1;
  visibility: visible;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(247, 249, 252, 0.62);
  backdrop-filter: blur(14px);
}

.modal-card {
  position: relative;
  width: min(540px, 100%);
  padding: 26px;
  border-radius: var(--radius-xl);
  z-index: 1;
}

.close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(18, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  cursor: pointer;
  font-size: 1.35rem;
}

.modal-header h2 {
  margin: 10px 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
}

.modal-header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.form-instruction {
  color: var(--accent);
  font-weight: 800;
}

.register-form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
  max-height: min(62vh, 440px);
  overflow-y: auto;
  padding-right: 6px;
}

.register-form::-webkit-scrollbar {
  width: 8px;
}

.register-form::-webkit-scrollbar-thumb {
  background: rgba(18, 32, 51, 0.25);
  border-radius: 999px;
}

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

.register-form span {
  font-size: 0.92rem;
  color: rgba(18, 32, 51, 0.76);
}

.register-form input {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(18, 32, 51, 0.1);
  background: rgba(255, 255, 255, 0.8);
  color: var(--text);
  padding: 16px 18px;
  outline: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.register-form input:focus {
  border-color: rgba(255, 106, 26, 0.7);
  background: rgba(255, 255, 255, 0.96);
}

.form-btn {
  margin-top: 6px;
  width: 100%;
}

.form-feedback {
  min-height: 24px;
  color: var(--muted);
  font-size: 0.96rem;
}

.waiting-popup {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 16px;
  z-index: 2;
}

.waiting-popup-card {
  width: min(480px, 100%);
  padding: 22px 24px;
  border-radius: var(--radius-xl);
  text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
}

.waiting-popup-copy {
  margin: 0;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 700;
  line-height: 1.6;
}

.meeting-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 24px));
  margin: 22px auto;
  min-height: calc(100vh - 44px);
  border-radius: 34px;
  padding: clamp(20px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: center;
}

.meeting-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.meeting-logo {
  width: 150px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(18, 32, 51, 0.12));
}

.meeting-copy h1 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.meeting-status {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
  line-height: 1.7;
}

.meeting-card {
  padding: 22px;
  border-radius: 30px;
}

.meeting-card-inner {
  min-height: 240px;
  border-radius: 24px;
  padding: 24px;
  display: grid;
  align-content: center;
  gap: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.6));
  border: 1px solid rgba(18, 32, 51, 0.08);
}

.meeting-pill {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 106, 26, 0.12);
  color: #aa4b08;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.meeting-card strong {
  font-size: 1.35rem;
  line-height: 1.3;
}

.meeting-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hidden {
  display: none !important;
}

@keyframes floatOrb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, -14px, 0) scale(1.04);
  }
}

@media (max-width: 900px) {
  .topbar {
    width: min(100%, calc(100% - 16px));
    border-radius: 26px;
    padding: 14px 16px;
  }

  .brand-logo {
    width: 130px;
  }

  .page-shell {
    width: min(100%, calc(100% - 16px));
    margin-top: 14px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

  .meeting-shell {
    width: min(100%, calc(100% - 16px));
    grid-template-columns: 1fr;
    min-height: calc(100vh - 32px);
  }
}

@media (max-width: 640px) {
  .hero-visual,
  .modal-card {
    padding: 18px;
    border-radius: 26px;
  }

  .hero-copy h1 {
    font-size: clamp(1.9rem, 10vw, 3rem);
  }

  .poster-frame {
    padding: 10px;
    border-radius: 24px;
  }

  .poster-image {
    border-radius: 18px;
  }
}
