:root {
  color-scheme: dark;
  --bg: #07100d;
  --panel: #0d1915;
  --panel-soft: #12221c;
  --line: #243b32;
  --text: #f2f7f4;
  --muted: #9fb2aa;
  --green: #55e38d;
  --green-dark: #153d28;
  --red: #ff756f;
  --amber: #f2c66d;
  --shadow: 0 24px 80px rgba(0, 0, 0, .35);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 80% 0, #112a20 0, transparent 32rem), var(--bg); color: var(--text); }
button, input, textarea { font: inherit; }
button, .button-link { border: 0; border-radius: 12px; padding: .85rem 1.1rem; background: var(--green); color: #06120b; font-weight: 750; cursor: pointer; transition: transform .16s ease, opacity .16s ease, background .16s ease; }
button:hover, .button-link:hover { transform: translateY(-1px); }
button:disabled { cursor: wait; opacity: .55; transform: none; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem; background: #09130f; color: var(--text); outline: none; }
textarea { resize: vertical; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(85, 227, 141, .14); }
label { color: #cfddd7; font-size: .9rem; font-weight: 650; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: .35rem; font-size: clamp(1.6rem, 4vw, 2.4rem); letter-spacing: -.04em; }
h2 { margin-bottom: .65rem; font-size: clamp(1.4rem, 3vw, 2rem); letter-spacing: -.03em; }
h3 { margin-bottom: 0; font-size: 1.05rem; }
[hidden] { display: none !important; }
.shell { width: min(1120px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.topbar, .meeting-brand { display: flex; align-items: center; gap: .9rem; margin-bottom: 3rem; }
.topbar .secure-pill { margin-left: auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #426554; border-radius: 13px; background: linear-gradient(145deg, #193d2b, #0a1611); color: var(--green); font-weight: 900; }
.eyebrow { margin-bottom: .4rem; color: var(--green); font-size: .72rem; font-weight: 850; letter-spacing: .16em; }
.topbar h1, .brand-title { margin: 0; font-size: 1rem; letter-spacing: 0; }
.secure-pill, .status { border: 1px solid var(--line); border-radius: 999px; padding: .45rem .7rem; color: var(--muted); font-size: .77rem; font-weight: 700; }
.panel, .create-card, .room-card, .meeting-card { border: 1px solid var(--line); background: linear-gradient(150deg, rgba(18, 34, 28, .95), rgba(10, 20, 16, .96)); box-shadow: var(--shadow); }
.panel { border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.5rem); }
.narrow { width: min(480px, 100%); margin: 5vh auto; }
.stack { display: grid; gap: .75rem; margin-top: 1.5rem; }
.muted { color: var(--muted); line-height: 1.6; }
.message { min-height: 1.5em; margin: 1rem 0 0; color: var(--amber); font-size: .9rem; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2rem; align-items: center; padding: 2rem 0 4rem; }
.create-card { display: grid; gap: .85rem; border-radius: 20px; padding: 1.4rem; }
.check-row { display: flex; align-items: flex-start; gap: .7rem; color: var(--muted); font-weight: 500; line-height: 1.45; }
.check-row input { width: auto; margin-top: .2rem; accent-color: var(--green); }
.rooms-section { border-top: 1px solid var(--line); padding-top: 2rem; }
.section-heading, .room-card-head, .room-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.room-tabs { display: flex; gap: .45rem; margin: .35rem 0 1.25rem; border-bottom: 1px solid var(--line); }
.room-tab { margin-bottom: -1px; border: 1px solid transparent; border-bottom: 2px solid transparent; border-radius: 10px 10px 0 0; padding: .7rem .9rem; background: transparent; color: var(--muted); }
.room-tab:hover { background: rgba(85, 227, 141, .06); color: var(--text); transform: none; }
.room-tab.is-active { border-bottom-color: var(--green); color: var(--green); }
.room-tab span { display: inline-grid; min-width: 1.5rem; margin-left: .3rem; place-items: center; border-radius: 999px; padding: .15rem .4rem; background: #172820; color: inherit; font-size: .72rem; }
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 310px), 1fr)); gap: 1rem; }
.room-card { border-radius: 18px; padding: 1.25rem; box-shadow: none; }
.room-meta { margin: 1rem 0 .65rem; color: var(--muted); font-size: .85rem; }
.invite-link { overflow: hidden; margin-bottom: 1rem; color: #cde6da; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.participant-list { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1rem; }
.participant { border: 1px solid var(--line); border-radius: 999px; padding: .32rem .55rem; color: var(--muted); font-size: .72rem; }
.participant-online { border-color: #2f6d4b; color: var(--green); }
.status-open { border-color: #2f6d4b; color: var(--green); }
.status-closing { border-color: #6b5a32; color: var(--amber); }
.status-closed { color: #86968f; }
.report-state { margin: 0 0 1rem; color: var(--muted); font-size: .82rem; }
.room-actions { justify-content: flex-start; flex-wrap: wrap; }
.button-secondary, .button-link, .button-danger { padding: .65rem .8rem; background: #172820; color: #dce9e3; text-decoration: none; font-size: .82rem; }
.button-danger { background: #3c1d1b; color: #ffaaa6; }
.empty-state { border: 1px dashed var(--line); border-radius: 18px; padding: 3rem; text-align: center; color: var(--muted); }
.invite-dialog { width: min(560px, calc(100% - 2rem)); border: 1px solid var(--line); border-radius: 22px; padding: 0; background: var(--panel); color: var(--text); box-shadow: var(--shadow); }
.invite-dialog::backdrop { background: rgba(2, 8, 6, .78); backdrop-filter: blur(4px); }
.invite-card { display: grid; gap: .8rem; padding: clamp(1.3rem, 4vw, 2rem); }
.modal-heading, .modal-actions { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.modal-heading h2 { margin-bottom: 0; }
.modal-close { width: 2.3rem; height: 2.3rem; padding: 0; border-radius: 50%; background: #172820; color: var(--text); font-size: 1.4rem; }
.form-help { margin: -.15rem 0 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }
.modal-actions { justify-content: flex-end; margin-top: .25rem; }
.landing-body { background: radial-gradient(circle at 75% 10%, #16432d 0, transparent 34rem), radial-gradient(circle at 10% 90%, #16231e 0, transparent 28rem), var(--bg); }
.landing-shell { width: min(1120px, calc(100% - 2rem)); min-height: 100vh; margin: 0 auto; display: flex; flex-direction: column; }
.landing-nav { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem 0; }
.landing-brand { display: flex; align-items: center; gap: .75rem; font-weight: 800; }
.landing-hero { padding: clamp(5rem, 13vh, 9rem) 0 6rem; }
.landing-hero h1 { max-width: 820px; margin-bottom: 1.5rem; font-size: clamp(3.4rem, 10vw, 7.5rem); line-height: .9; letter-spacing: -.075em; }
.landing-lead { max-width: 690px; color: #c1d2ca; font-size: clamp(1.05rem, 2.5vw, 1.35rem); line-height: 1.65; }
.landing-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 4rem; }
.landing-features article { display: grid; gap: .65rem; min-height: 160px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(13, 25, 21, .72); }
.landing-features strong { color: var(--green); }
.landing-features span { color: var(--muted); line-height: 1.55; }
.landing-footer { margin-top: auto; padding: 1.5rem 0; border-top: 1px solid var(--line); color: #75877f; font-size: .78rem; }
.meeting-body { display: grid; place-items: center; padding: 1rem; }
.meeting-shell { width: min(620px, 100%); }
.meeting-brand { margin: 0 0 1.3rem; justify-content: center; }
.meeting-card { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(1.5rem, 5vw, 3.5rem); text-align: center; }
.room-orb { display: grid; place-items: center; width: 92px; height: 92px; margin: 0 auto 1.5rem; border: 1px solid #315b45; border-radius: 50%; background: radial-gradient(circle, rgba(85, 227, 141, .28), rgba(85, 227, 141, .02) 65%); box-shadow: 0 0 48px rgba(85, 227, 141, .12); }
.room-orb span { width: 24px; height: 24px; border: 6px solid var(--green); border-radius: 50%; }
.meeting-form { text-align: left; }
.otp-input { text-align: center; font-size: 1.5rem; font-weight: 800; letter-spacing: .32em; }
.ready-panel { margin-top: 1.7rem; }
.verified-line { display: flex; justify-content: center; gap: .6rem; color: var(--green); font-weight: 750; }
.privacy-note { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.call-button { width: 100%; padding: 1rem; font-size: 1rem; }
.call-button span { margin-right: .4rem; }
.call-panel { margin-top: 1.5rem; }
.call-state { display: flex; justify-content: center; align-items: center; gap: .55rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 6px rgba(85, 227, 141, .12); }
.call-duration { margin: 1rem 0 1.7rem; font-size: 2.4rem; font-variant-numeric: tabular-nums; font-weight: 750; letter-spacing: -.04em; }
.call-controls { display: grid; grid-template-columns: repeat(4, 1fr); gap: .65rem; }
.round-control { min-height: 72px; padding: .7rem .4rem; background: #182821; color: #dbe9e2; font-size: .75rem; }
.agent-control { background: var(--green-dark); color: var(--green); }
.danger-control { background: #4a211f; color: #ffaaa6; }
.is-muted { background: #4a3820; color: var(--amber); }
.meeting-footnote { margin: 1rem 0 0; text-align: center; color: #75877f; font-size: .75rem; }

@media (max-width: 720px) {
  .hero-grid { grid-template-columns: 1fr; padding-top: 0; }
  .secure-pill { display: none; }
  .call-controls { grid-template-columns: repeat(2, 1fr); }
  .meeting-card { border-radius: 22px; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-features article { min-height: 0; }
}
