:root {
  color-scheme: dark;
  --ink: #f4f4f5;
  --muted: #92979e;
  --silver: #d7d9dc;
  --silver-dark: #aeb3ba;
  --paper: #090a0b;
  --surface: #111315;
  --surface-raised: #191b1e;
  --soft-surface: #222529;
  --line: #303338;
  --text-soft: #c4c7cb;
  --success: #e0e1e3;
  --warning: #b7bbc0;
  --danger: #f1f2f3;
  --display-font: "Soria", Georgia, "Times New Roman", serif;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

* { box-sizing: border-box; }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(ellipse at 79% 35%, rgba(215, 217, 220, .045), transparent 38%),
    radial-gradient(ellipse at 12% 18%, rgba(174, 179, 186, .035), transparent 34%),
    var(--paper);
  color: var(--ink);
}

button, input { font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.topbar {
  height: 82px;
  padding: 0 7.5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(215, 217, 220, .1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 750;
  letter-spacing: .16em;
  text-decoration: none;
}

.brand-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 1px solid rgba(215, 217, 220, .2);
  border-radius: 10px;
  background: var(--surface-raised);
  object-fit: cover;
  filter: grayscale(1);
  box-shadow: 0 3px 14px rgba(0, 0, 0, .35);
}

.top-note { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 12px; }
.secure-dot, .status-dot, .live-pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--silver); }

main { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 36px; flex: 1; }
.landing { min-height: 620px; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 52px; }
.hero-copy { padding: 30px 0 44px; }
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--silver); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.eyebrow-line { width: 20px; height: 2px; background: var(--silver-dark); }
h1, h2, p { margin-top: 0; }
h1 { margin: 21px 0 18px; font-family: var(--display-font); font-size: clamp(42px, 5vw, 61px); line-height: 1.09; letter-spacing: -2.2px; font-weight: 700; }
h1 > span { color: var(--silver); }
.hero-description { max-width: 425px; margin-bottom: 28px; color: var(--muted); font-size: 15px; line-height: 1.75; }
.button { min-height: 46px; padding: 0 18px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; border: 1px solid #e5e7eb; border-radius: 7px; background: linear-gradient(110deg, #f1f2f3, #bfc3c8); color: #111315; font-weight: 650; box-shadow: 0 8px 24px rgba(0, 0, 0, .28); transition: filter .18s, transform .18s; }
.button:hover { filter: brightness(1.13); transform: translateY(-1px); }
.button:focus-visible, .copy-button:focus-visible, .text-link:focus-visible, input:focus-visible { outline: 3px solid var(--silver); outline-offset: 3px; }
.button:disabled { cursor: wait; opacity: .7; transform: none; }
.button-large { min-height: 52px; padding: 0 22px; font-size: 14px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 9px 18px; margin-top: 29px; color: var(--muted); font-size: 11px; }
.trust-list span span { padding-right: 4px; color: var(--silver); font-weight: 700; }
.inline-message { min-height: 17px; margin: 8px 0 0; color: #e0e1e3; font-size: 12px; }

.hero-visual { position: relative; min-height: 405px; display: grid; place-items: center; }
.orbit { position: absolute; border: 1px solid rgba(215, 217, 220, .075); border-radius: 50%; }
.orbit-one { width: 360px; height: 360px; }
.orbit-two { width: 450px; height: 450px; border-color: rgba(174, 179, 186, .055); }
.visual-card { z-index: 1; position: relative; width: min(100%, 390px); height: 258px; overflow: hidden; border: 1px solid #383b40; border-radius: 11px; background: var(--surface-raised); box-shadow: 0 20px 65px rgba(0, 0, 0, .32), 0 20px 55px rgba(0, 0, 0, .35); transform: rotate(-3deg); }
.visual-toolbar { height: 31px; padding: 0 11px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); }
.visual-toolbar > span { width: 6px; height: 6px; border-radius: 50%; background: #b7bbc0; }
.visual-toolbar > span:nth-child(2) { background: #8e9399; }
.visual-toolbar > span:nth-child(3) { background: #676c72; }
.toolbar-address { width: 130px; height: 12px; margin-left: 28px; border-radius: 8px; background: #2a2d31; }
.visual-content { height: calc(100% - 31px); display: flex; }
.visual-sidebar { width: 52px; padding: 22px 15px; display: flex; flex-direction: column; gap: 17px; border-right: 1px solid var(--line); }
.visual-sidebar i { width: 17px; height: 5px; border-radius: 5px; background: #3b3e43; }
.visual-sidebar i:first-child { background: #c4c7cb; }
.visual-main { flex: 1; padding: 28px 25px; }
.visual-kicker { width: 48px; height: 5px; margin-bottom: 12px; border-radius: 4px; background: #aeb3ba; }
.visual-heading { width: 75%; height: 12px; margin-bottom: 7px; border-radius: 5px; background: #d1d3d6; }
.visual-heading-short { width: 49%; height: 9px; background: #55595f; }
.visual-tiles { display: flex; gap: 9px; margin-top: 19px; }
.visual-tiles i { width: 31%; height: 75px; border-radius: 5px; background: rgba(215, 217, 220, .09); }
.visual-tiles i:nth-child(2) { background: rgba(174, 179, 186, .13); }
.visual-tiles i:nth-child(3) { background: #303338; }
.share-badge { position: absolute; right: 12px; bottom: 12px; padding: 7px 10px; border: 1px solid #42464c; border-radius: 6px; background: #24272b; color: #e4e5e7; font-size: 10px; box-shadow: 0 3px 12px rgba(0, 0, 0, .22); }
.share-badge span { padding-right: 5px; color: var(--silver); }
.floating-note { z-index: 2; position: absolute; right: -2px; bottom: 45px; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid #383b40; border-radius: 9px; background: var(--surface-raised); color: var(--ink); box-shadow: 0 9px 30px rgba(0, 0, 0, .27); }
.avatar-dot { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #34373c; color: #e0e1e3; font-size: 11px; font-weight: 700; }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 10px; }
.floating-note small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.floating-note .live-pulse { width: 7px; height: 7px; margin-left: 8px; }
.visual-spark { z-index: 1; position: absolute; color: #bfc3c8; }
.spark-one { top: 61px; right: 21px; font-size: 22px; }
.spark-two { bottom: 76px; left: 32px; font-size: 15px; }

.room-view { padding: 55px 0 60px; }
.room-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.room-heading h1 { margin: 13px 0 6px; font-size: 37px; letter-spacing: -1.7px; }
.room-description { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.text-link { margin-top: 8px; color: var(--silver); font-size: 12px; text-decoration: none; }
.text-link:hover { text-decoration: underline; }
.room-grid { display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; align-items: start; }
.video-card, .side-card { border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.name-entry { max-width: 430px; margin: 0 auto 28px; }
.name-entry > p { margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.name-input { min-height: 42px; margin-bottom: 12px; font-size: 13px; }
.participants-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.participants-heading h2 { margin: 0; }
.participants-count { min-width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: #292c30; color: #d7d9dc; font-size: 10px; font-weight: 700; }
.participants-list { display: grid; gap: 9px; margin: 14px 0 0; padding: 0; list-style: none; }
.participants-list li { min-width: 0; display: flex; align-items: center; gap: 9px; color: var(--text-soft); font-size: 11px; }
.participant-avatar { width: 27px; height: 27px; flex: 0 0 27px; display: grid; place-items: center; border-radius: 50%; background: #292c30; color: #d7d9dc; font-size: 10px; font-weight: 700; }
.participant-details { min-width: 0; }
.participant-name { display: block; overflow: hidden; color: var(--ink); font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.participant-role, .participants-empty { color: var(--muted); font-size: 9px; }
.transmission-status { margin: 0; padding: 11px 15px; border-top: 1px solid var(--line); background: var(--surface); color: var(--text-soft); font-size: 11px; line-height: 1.5; }
.transmission-status[data-state="active"] { color: #e0e1e3; }
.transmission-status[data-state="waiting"] { color: #b7bbc0; }
.transmission-status[data-state="error"] { color: #f1f2f3; }
.video-frame { position: relative; min-height: 370px; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; background: #090a0b; }
.video-frame video { width: 100%; height: 100%; max-height: 70vh; object-fit: contain; }
#local-preview:not([hidden]) { position: absolute; z-index: 3; right: 14px; bottom: 14px; width: min(28%, 240px); height: auto; max-height: 24%; aspect-ratio: 16 / 9; border: 1px solid #c4c7cb; border-radius: 6px; background: #090a0b; object-fit: contain; box-shadow: 0 4px 16px #0008; }
.video-frame:fullscreen { width: 100vw; height: 100vh; max-height: 100vh; aspect-ratio: auto; }
.video-frame:fullscreen video { max-height: 100vh; }
.video-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; color: white; text-align: center; }
.placeholder-icon { width: 53px; height: 43px; margin-bottom: 18px; display: grid; place-items: center; border: 1px solid rgba(215, 217, 220, .35); border-radius: 10px; background: rgba(215, 217, 220, .07); }
.placeholder-icon span { width: 24px; height: 17px; border: 1.5px solid #d7d9dc; border-radius: 4px; }
.video-placeholder strong { font-size: 14px; font-weight: 600; }
.video-placeholder > span { margin-top: 7px; color: #b7bbc0; font-size: 11px; line-height: 1.6; }
.video-play-button { margin-top: 14px; padding: 8px 12px; border: 1px solid #ffffff72; border-radius: 5px; background: #ffffff14; color: white; font-size: 10px; font-weight: 600; }
.video-play-button:hover { background: #ffffff28; }
.live-label { position: absolute; top: 15px; left: 15px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 5px; background: rgba(17, 19, 21, .92); color: white; font-size: 9px; letter-spacing: .7px; }
.live-label .live-pulse { width: 6px; height: 6px; }
.playback-controls { min-height: 45px; padding: 6px 12px; display: flex; justify-content: flex-end; gap: 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.secondary-button { min-height: 30px; padding: 0 11px; border: 1px solid #3b3e43; border-radius: 5px; background: var(--surface-raised); color: var(--text-soft); font-size: 10px; font-weight: 600; }
.secondary-button:hover:not(:disabled) { background: var(--soft-surface); }
.secondary-button:focus-visible, .mode-button:focus-visible, .setting-select:focus-visible { outline: 3px solid var(--silver); outline-offset: 2px; }
.secondary-button:disabled { cursor: not-allowed; opacity: .48; }
.video-footer { min-height: 47px; padding: 0 15px; display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); }
.connection-status { display: inline-flex; align-items: center; gap: 7px; color: var(--text-soft); font-size: 11px; }
.connection-status .status-dot { width: 7px; height: 7px; background: var(--silver-dark); }
.connection-status[data-state="connected"] .status-dot { background: var(--silver); }
.connection-status[data-state="error"] .status-dot { background: var(--danger); }
.connection-status[data-quality="unstable"] .status-dot { background: var(--warning); }
.encrypted-note { color: var(--muted); font-size: 10px; }
.quality-dashboard { padding: 15px; border-top: 1px solid var(--line); background: var(--surface); }
.quality-heading, .quality-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.quality-heading h2 { margin: 0; font-size: 12px; font-weight: 700; }
.connection-grade { padding: 4px 7px; border-radius: 20px; background: var(--soft-surface); color: var(--muted); font-size: 9px; font-weight: 600; }
.connection-grade[data-grade="excellent"] { background: #292c30; color: #e0e1e3; }
.connection-grade[data-grade="stable"] { background: #34373c; color: #d1d3d6; }
.connection-grade[data-grade="unstable"] { background: #414449; color: #f1f2f3; }
.metrics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px 10px; margin: 16px 0 13px; }
.metrics-grid > div { min-width: 0; }
.metrics-grid dt { color: var(--muted); font-size: 9px; }
.metrics-grid dd { overflow: hidden; margin: 4px 0 0; color: var(--ink); font-size: 12px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.quality-foot { min-height: 26px; padding-top: 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; }
.quality-warning { min-height: 0; margin: 7px 0 0; color: #d1d3d6; font-size: 10px; line-height: 1.5; }
.side-card { padding: 19px; }
.room-sidebar { display: flex; flex-direction: column; gap: 14px; }
.side-card-icon { width: 33px; height: 33px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 8px; font-size: 15px; font-weight: 700; }
.invite-icon { background: rgba(215, 217, 220, .09); color: #d7d9dc; }
.screen-icon { background: rgba(174, 179, 186, .12); color: #d1d3d6; }
.quality-icon { background: #292c30; color: #c4c7cb; }
.side-card h2 { margin: 0 0 7px; font-family: var(--display-font); font-size: 15px; letter-spacing: -.3px; }
.side-card > p { margin: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.65; }
.link-field { min-height: 39px; display: flex; overflow: hidden; border: 1px solid #3b3e43; border-radius: 6px; background: #0c0d0f; }
.link-field input { width: 0; min-width: 0; flex: 1; padding: 0 9px; border: 0; outline: 0; background: transparent; color: var(--text-soft); font-size: 10px; }
.copy-button { padding: 0 11px; border: 0; border-left: 1px solid #3b3e43; background: var(--surface-raised); color: var(--silver); font-size: 10px; font-weight: 700; }
.copy-button:hover { background: var(--soft-surface); }
.copy-message { min-height: 14px; display: block; margin-top: 7px; color: #d1d3d6; font-size: 10px; }
.button-full { width: 100%; min-height: 41px; font-size: 11px; }
.action-card .inline-message { margin-bottom: 0; }
.audio-choice { display: flex; align-items: flex-start; gap: 8px; margin-top: 13px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.audio-choice input { flex: 0 0 auto; margin: 1px 0 0; accent-color: var(--silver); }
.mode-button { width: 100%; min-height: 37px; margin-bottom: 14px; padding: 0 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid #3b3e43; border-radius: 6px; background: var(--surface-raised); color: var(--text-soft); font-size: 10px; font-weight: 600; }
.mode-button[aria-pressed="false"] { background: #111315; }
#quality-mode-state { color: var(--silver); font-size: 9px; }
.mode-button[aria-pressed="false"] #quality-mode-state { color: var(--muted); }
.setting-label { display: block; margin: 11px 0 5px; color: var(--text-soft); font-size: 10px; font-weight: 600; }
.setting-select { width: 100%; min-height: 35px; padding: 0 8px; border: 1px solid #3b3e43; border-radius: 5px; background: #0c0d0f; color: var(--text-soft); font-size: 10px; }
.setting-select:disabled { background: #191b1e; color: #777c83; }
.compatibility-message { min-height: 0; margin: 10px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.privacy-note { display: flex; gap: 10px; padding: 13px; border: 1px solid #34373c; border-radius: 8px; background: linear-gradient(120deg, rgba(215, 217, 220, .055), rgba(174, 179, 186, .025)); }
.privacy-icon { color: var(--silver); font-size: 15px; }
.privacy-note p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.6; }
.privacy-note strong { display: block; margin-bottom: 2px; color: var(--ink); font-size: 10px; }

.footer { min-height: 65px; padding: 13px 7.5%; display: flex; justify-content: space-between; align-items: center; gap: 15px; border-top: 1px solid rgba(215, 217, 220, .1); color: var(--muted); font-size: 10px; }

@media (max-width: 760px) {
  .topbar { height: 68px; padding: 0 22px; }
  main { padding: 0 22px; }
  .landing { min-height: auto; padding: 55px 0 60px; grid-template-columns: 1fr; gap: 20px; }
  .hero-copy { padding: 0; }
  .hero-visual { min-height: 330px; }
  .orbit-one { width: 290px; height: 290px; }
  .orbit-two { width: 350px; height: 350px; }
  .visual-card { width: min(100%, 360px); height: 235px; }
  .floating-note { right: 0; bottom: 22px; }
  .room-view { padding: 38px 0 45px; }
  .room-heading h1 { font-size: 31px; }
  .room-grid { grid-template-columns: 1fr; }
  .video-frame { min-height: 0; aspect-ratio: 16 / 9; }
  .room-sidebar { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .invite-card, .privacy-note { grid-column: 1 / -1; }
}

@media (max-width: 480px) {
  .top-note { font-size: 0; gap: 0; }
  .secure-dot { width: 9px; height: 9px; }
  main { padding: 0 18px; }
  .landing { padding-top: 42px; }
  h1 { font-size: 45px; letter-spacing: -2.4px; }
  .hero-description { font-size: 14px; }
  .hero-visual { min-height: 300px; }
  .visual-card { height: 205px; }
  .visual-main { padding: 22px 17px; }
  .visual-tiles i { height: 57px; }
  .floating-note { right: -4px; bottom: 14px; }
  .room-heading { align-items: flex-start; }
  .room-heading h1 { font-size: 27px; }
  .room-description { max-width: 275px; font-size: 12px; line-height: 1.6; }
  .video-frame { min-height: 0; aspect-ratio: 16 / 9; }
  .video-footer { padding: 0 10px; }
  .encrypted-note { font-size: 9px; }
  .metrics-grid { gap: 12px 7px; }
  .metrics-grid dd { font-size: 11px; }
  .room-sidebar { grid-template-columns: 1fr; }
  .invite-card, .privacy-note { grid-column: auto; }
  .footer { padding: 14px 18px; flex-direction: column; align-items: flex-start; gap: 6px; }
}
