@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&family=Playfair+Display:ital,wght@1,600&display=swap');

:root {
  color-scheme: dark;
  --bg: #08090d;
  --panel: #101218;
  --panel-2: #151820;
  --text: #f5f3ee;
  --muted: #9397a3;
  --line: rgba(255, 255, 255, 0.09);
  --accent: #c8f05b;
  --accent-deep: #92b531;
  --danger: #ee5b5b;
  --radius: 24px;
  font-family: 'Manrope', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }

html, body { min-width: 900px; min-height: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -30%, rgba(127, 144, 84, 0.14), transparent 43%),
    var(--bg);
  overflow-x: hidden;
}

button, input { font: inherit; }
button { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }

.ambient {
  position: fixed;
  z-index: -1;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: .08;
  pointer-events: none;
}
.ambient-one { background: #c8f05b; top: -240px; right: 8%; }
.ambient-two { background: #5b76f0; bottom: -300px; left: 0; }

.hidden { display: none !important; }

.lobby {
  width: min(1240px, calc(100% - 96px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 42px 0 60px;
  display: flex;
  flex-direction: column;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.4px;
}

.brand-mark {
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #0a0c08;
  background: var(--accent);
  box-shadow: 0 0 28px rgba(200, 240, 91, .14);
}
.brand-mark svg { width: 20px; stroke: none; fill: currentColor; }

.lobby-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1.1fr .8fr;
  align-items: center;
  gap: clamp(70px, 9vw, 150px);
  padding: 60px 4% 30px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 23px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.9px;
  text-transform: uppercase;
}
.eyebrow span { width: 28px; height: 1px; background: var(--accent); }

.hero-copy h1 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(56px, 6vw, 88px);
  line-height: .98;
  letter-spacing: -5px;
  font-weight: 500;
}
.hero-copy h1 em {
  color: var(--accent);
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 600;
}
.hero-copy > p {
  max-width: 540px;
  margin: 32px 0 35px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}
.trust-row { display: flex; gap: 30px; color: #b7bac2; font-size: 13px; }
.trust-row div { display: flex; align-items: center; gap: 8px; }
.trust-row svg { width: 17px; color: var(--accent); }

.join-card {
  position: relative;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(22, 24, 31, .96), rgba(13, 15, 20, .96));
  box-shadow: 0 35px 90px rgba(0, 0, 0, .38);
  overflow: hidden;
}
.card-glow {
  position: absolute;
  top: -70px;
  right: -70px;
  width: 180px;
  height: 180px;
  background: rgba(200, 240, 91, .06);
  filter: blur(40px);
  border-radius: 50%;
  pointer-events: none;
}
.card-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 31px; }
.step { color: var(--muted); font-size: 10px; font-weight: 700; letter-spacing: 1.8px; }
.card-head h2 { margin: 7px 0 0; font-size: 26px; letter-spacing: -.8px; }
.availability { display: flex; align-items: center; gap: 7px; color: #aeb1ba; font-size: 11px; }
.availability i, .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px rgba(200, 240, 91, .65); }
.join-card label { display: block; margin: 19px 0 9px; color: #b8bbc4; font-size: 12px; font-weight: 600; }
.field {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 13px;
  background: rgba(6, 7, 10, .48);
  transition: border-color .2s, box-shadow .2s;
}
.field:focus-within { border-color: rgba(200, 240, 91, .48); box-shadow: 0 0 0 3px rgba(200, 240, 91, .06); }
.field > svg { width: 19px; color: #767b87; flex: 0 0 auto; }
.field input { min-width: 0; flex: 1; color: var(--text); background: none; border: 0; outline: 0; font-size: 14px; }
.field input::placeholder { color: #60646f; }
.room-field input { text-transform: lowercase; letter-spacing: .5px; }
.mini-button { width: 32px; height: 32px; border: 0; border-radius: 8px; display: grid; place-items: center; color: #818691; background: transparent; cursor: pointer; }
.mini-button:hover { color: var(--accent); background: rgba(255,255,255,.05); }
.mini-button svg { width: 18px; }
.primary-button {
  width: 100%;
  height: 56px;
  margin-top: 26px;
  padding: 0 18px 0 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #11130c;
  border: 0;
  border-radius: 14px;
  background: var(--accent);
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s, filter .2s;
}
.primary-button:hover { transform: translateY(-1px); filter: brightness(1.05); }
.primary-button:disabled { cursor: wait; filter: grayscale(.5); }
.primary-button svg { width: 20px; }
.permission-note { margin: 16px 0 0; display: flex; justify-content: center; align-items: center; gap: 7px; color: #717681; font-size: 10px; }
.permission-note svg { width: 13px; }
.form-error { min-height: 17px; margin-top: 11px; color: #ff8181; text-align: center; font-size: 11px; }

.call { min-height: 100vh; padding: 0 36px; display: grid; grid-template-rows: 78px minmax(0, 1fr) 126px; }
.call-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.06); }
.brand.compact { font-size: 17px; }
.brand.compact .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.brand.compact .brand-mark svg { width: 17px; }
.room-meta { display: flex; align-items: center; gap: 9px; color: #a7aab2; font-size: 12px; }
.separator { width: 1px; height: 13px; background: rgba(255,255,255,.14); margin: 0 2px; }
.share-button { justify-self: end; height: 38px; display: flex; align-items: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: #c7cad0; background: rgba(255,255,255,.035); font-size: 12px; cursor: pointer; }
.share-button:hover { color: white; border-color: rgba(255,255,255,.18); }
.share-button svg { width: 16px; }

.stage { position: relative; min-height: 480px; padding: 22px 0 0; }
.remote-panel { position: relative; width: 100%; height: 100%; min-height: 440px; border: 1px solid rgba(255,255,255,.07); border-radius: var(--radius); background: #111319; overflow: hidden; box-shadow: 0 22px 80px rgba(0,0,0,.22); }
.remote-panel::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 90px rgba(0,0,0,.22); }
.remote-panel video, .local-panel video { width: 100%; height: 100%; object-fit: cover; display: block; background: #0f1116; }
.remote-panel video { opacity: 0; transition: opacity .5s; }
.remote-panel.connected video { opacity: 1; }
.waiting { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; }
.waiting-orbit { position: relative; width: 100px; height: 100px; display: grid; place-items: center; margin-bottom: 24px; }
.waiting-orbit::before, .waiting-orbit::after { content: ''; position: absolute; inset: 0; border: 1px solid rgba(200,240,91,.13); border-radius: 50%; animation: pulse 2.6s infinite ease-out; }
.waiting-orbit::after { animation-delay: 1.3s; }
.waiting-orbit > i { position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); top: 8px; left: 49%; box-shadow: 0 0 11px var(--accent); }
.waiting-orbit > i:nth-child(3) { top: auto; left: 15px; bottom: 18px; opacity: .55; }
@keyframes pulse { 0% { transform: scale(.65); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(1.2); opacity: 0; } }
.avatar-placeholder { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 50%; color: #69705e; background: linear-gradient(145deg, #272b25, #171a18); border: 1px solid rgba(200,240,91,.15); }
.avatar-placeholder svg { width: 29px; }
.waiting h2 { margin: 0; font-size: 23px; }
.waiting p { margin: 10px 0 22px; color: var(--muted); font-size: 12px; }
.waiting button { height: 38px; display: flex; align-items: center; gap: 8px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; color: #b9bdc5; background: rgba(255,255,255,.035); font-size: 11px; cursor: pointer; }
.waiting button:hover { border-color: rgba(200,240,91,.3); color: var(--accent); }
.waiting button svg { width: 15px; }
.local-panel { position: absolute; z-index: 5; right: 20px; bottom: 20px; width: clamp(220px, 19vw, 300px); aspect-ratio: 16/10; border: 2px solid rgba(255,255,255,.12); border-radius: 17px; background: #1b1e26; overflow: hidden; box-shadow: 0 18px 45px rgba(0,0,0,.38); }
.local-panel video { transform: scaleX(-1); }
.camera-off { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(145deg,#20242d,#111318); }
.camera-off span { width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; color: #13150e; background: var(--accent); font-size: 19px; font-weight: 700; }
.participant-tag { position: absolute; z-index: 3; left: 12px; bottom: 11px; display: flex; align-items: center; gap: 7px; height: 27px; padding: 0 10px; border: 1px solid rgba(255,255,255,.1); border-radius: 8px; color: #e8e9e5; background: rgba(8,9,12,.62); backdrop-filter: blur(12px); font-size: 10px; }
.participant-tag i { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.remote-tag { left: 18px; bottom: 18px; }
.remote-tag svg { width: 13px; color: var(--accent); }
.status-toast { position: absolute; z-index: 4; top: 39px; left: 50%; transform: translateX(-50%); height: 30px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid rgba(255,255,255,.08); border-radius: 20px; color: #b4b7bf; background: rgba(7,8,11,.55); backdrop-filter: blur(10px); font-size: 10px; transition: opacity .3s; }
.status-toast span { width: 5px; height: 5px; border-radius: 50%; background: #f3b858; }
.status-toast.connected span { background: var(--accent); }
.status-toast b { font-weight: 500; }

.controls { display: flex; flex-direction: column; justify-content: center; align-items: center; }
.controls-inner { display: flex; align-items: flex-start; gap: 14px; }
.control { width: 60px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: #b5b9c2; border: 0; background: none; cursor: pointer; }
.control > span { width: 43px; height: 43px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.09); border-radius: 13px; background: rgba(255,255,255,.045); transition: color .2s, background .2s, border-color .2s; }
.control:hover > span { color: white; border-color: rgba(255,255,255,.17); background: rgba(255,255,255,.07); }
.control svg { width: 19px; }
.control small { white-space: nowrap; color: #737884; font-size: 9px; }
.control .icon-off { display: none; color: #ff8d8d; }
.control[aria-pressed="true"] .icon-on { display: none; }
.control[aria-pressed="true"] .icon-off { display: grid; }
.hangup { width: 57px; height: 43px; margin: 0 11px; display: grid; place-items: center; border: 0; border-radius: 14px; color: white; background: var(--danger); box-shadow: 0 8px 24px rgba(238,91,91,.18); cursor: pointer; transition: transform .2s, background .2s; }
.hangup:hover { transform: translateY(-1px); background: #ff6868; }
.hangup svg { width: 23px; stroke: none; fill: currentColor; }
.secure-note { margin: 11px 0 0; display: flex; align-items: center; gap: 6px; color: #535863; font-size: 8px; letter-spacing: .2px; }
.secure-note svg { width: 11px; color: #6f765b; }

.toast { position: fixed; z-index: 20; left: 50%; bottom: 28px; transform: translate(-50%, 20px); padding: 11px 16px; border: 1px solid var(--line); border-radius: 10px; color: #e4e5df; background: rgba(21,24,29,.95); box-shadow: 0 15px 40px rgba(0,0,0,.35); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1060px) {
  .lobby { width: calc(100% - 56px); }
  .lobby-grid { gap: 50px; padding-inline: 0; }
  .hero-copy h1 { font-size: 58px; letter-spacing: -3.5px; }
  .join-card { padding: 29px; }
  .call { padding-inline: 24px; }
}

@media (max-height: 740px) {
  .lobby { padding-top: 25px; }
  .lobby-grid { padding-top: 25px; }
  .stage { min-height: 390px; }
  .remote-panel { min-height: 370px; }
  .call { grid-template-rows: 68px minmax(0, 1fr) 105px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
