@import url("https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@500;600&display=swap");

:root {
  --page: #fff2fa;
  --paper: #fffdf5;
  --ink: #16091f;
  --muted: #5d4d66;
  --soft: #f7d9e8;
  --line: rgba(22, 9, 31, 0.14);
  --line-strong: rgba(22, 9, 31, 0.32);
  --night: #17051f;
  --night-2: #250a38;
  --bi-pink: #d60270;
  --bi-purple: #9b4f96;
  --bi-blue: #0038a8;
  --pan-pink: #ff218c;
  --pan-yellow: #ffd800;
  --pan-blue: #21b1ff;
  --wine: var(--bi-purple);
  --copper: var(--pan-yellow);
  --teal: var(--pan-blue);
  --gold: var(--pan-yellow);
  --danger: var(--bi-pink);
  --success: var(--bi-blue);
  --shadow: 0 22px 60px rgba(37, 10, 56, 0.14);
  color: var(--ink);
  font-family: Inter, system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(155, 79, 150, 0.09) 1px, transparent 1px),
    linear-gradient(rgba(33, 177, 255, 0.08) 1px, transparent 1px),
    linear-gradient(135deg, #fff2fa 0%, #fff8c7 48%, #eef9ff 100%);
  background-size: 32px 32px, 32px 32px, auto;
  overflow-x: hidden;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255, 253, 245, 0.95);
  color: var(--ink);
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(33, 177, 255, 0.24);
  border-color: var(--teal);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

label {
  display: grid;
  gap: 0.45rem;
  font-size: 0.9rem;
  color: var(--muted);
}

hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 1.25rem 0;
}

.login-shell,
.app-shell {
  min-height: 100vh;
}

.login-shell {
  display: grid;
  place-items: center;
  padding: 2rem;
}

.hero-panel {
  width: min(1220px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.72fr);
  gap: 1rem;
  align-items: stretch;
}

.hero-copy,
.auth-card,
.sidebar,
.panel,
.session-card,
.topbar {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: clamp(1.6rem, 4vw, 3rem);
  border-radius: 18px;
  background:
    linear-gradient(140deg, rgba(23, 5, 31, 0.98), rgba(0, 56, 168, 0.76) 52%, rgba(214, 2, 112, 0.72)),
    var(--night);
  color: #fffdf5;
}

.hero-copy h1 {
  margin: 1rem 0;
  max-width: 12ch;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 400;
  line-height: 0.86;
}

.hero-copy p,
.panel p,
.card p,
.session-card p {
  margin: 0;
}

.hero-lede {
  max-width: 64ch;
  color: rgba(255, 253, 245, 0.82);
  font-size: 1.04rem;
  line-height: 1.7;
}

.hero-asset-frame {
  min-height: clamp(220px, 28vw, 360px);
  margin-top: 1.25rem;
  border: 1px solid rgba(255, 216, 0, 0.34);
  border-radius: 16px;
  background:
    var(--binet-app-hero-image),
    linear-gradient(135deg, rgba(214, 2, 112, 0.24), rgba(255, 216, 0, 0.24), rgba(33, 177, 255, 0.28)),
    var(--night-2);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: inset 0 0 0 1px rgba(16, 16, 20, 0.28);
}

.hero-signal,
.card-topline,
.panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-stamp,
.eyebrow,
.status-pill,
.badge,
.tag,
.primary-button,
.ghost-button,
.nav-button,
.mode-button,
.chip-button,
.list-button {
  font-family: "IBM Plex Mono", monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-stamp {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 216, 0, 0.58);
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  color: var(--pan-yellow);
  font-size: 0.72rem;
}

.eyebrow {
  font-size: 0.72rem;
  color: inherit;
  opacity: 0.72;
}

.auth-card {
  display: grid;
  gap: 1rem;
  padding: 1.35rem;
  border-radius: 18px;
  background: rgba(255, 253, 245, 0.96);
}

.workspace-gate-shell {
  background:
    linear-gradient(140deg, rgba(23, 5, 31, 0.95), rgba(155, 79, 150, 0.8), rgba(0, 56, 168, 0.82)),
    var(--night);
}

.workspace-gate-card {
  width: min(560px, 100%);
  display: grid;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgba(255, 247, 236, 0.22);
  border-radius: 18px;
  background: rgba(255, 253, 245, 0.96);
  box-shadow: var(--shadow);
}

.workspace-gate-card h1 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(2.8rem, 7vw, 4.8rem);
  font-weight: 400;
  line-height: 0.92;
}

.workspace-gate-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.auth-card h2,
.sidebar h2,
.topbar h1,
.panel h2 {
  margin: 0;
}

.auth-card h2,
.topbar h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  line-height: 0.98;
}

.auth-card h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

.auth-note,
.banner {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: #fff3bd;
  border: 1px solid var(--line);
  color: var(--muted);
}

.launch-grid,
.city-preview,
.cards-grid,
.two-up,
.messages-layout,
.admin-grid,
.auth-metrics,
.stat-grid,
.split-actions,
.two-field-grid,
.checkbox-grid,
.form-row,
.grid {
  display: grid;
  gap: 0.9rem;
}

.launch-grid,
.city-preview,
.two-up,
.admin-grid,
.auth-metrics,
.stat-grid,
.split-actions,
.two-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-mini-card,
.preview-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 216, 0, 0.2);
  background: rgba(255, 253, 245, 0.08);
}

.city-preview,
.demo-strip {
  margin-top: 1rem;
}

.preview-column,
.sidebar-actions,
.stack-list,
.content,
.panel,
.session-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.demo-strip,
.tag-row,
.sidebar-badges,
.topbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.topbar-meta {
  align-items: flex-start;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 1rem;
  padding: 1rem;
}

.sidebar {
  position: sticky;
  top: 1rem;
  height: calc(100vh - 2rem);
  padding: 1rem;
  border-radius: 18px;
  background: linear-gradient(180deg, var(--night), var(--night-2) 58%, #0038a8);
  color: #fffdf5;
}

.sidebar-copy {
  color: rgba(255, 253, 245, 0.72);
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem;
  border-radius: 18px;
  background: rgba(255, 253, 245, 0.92);
}

.topbar h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

.topbar p {
  margin: 0.4rem 0 0;
  max-width: 60ch;
  color: var(--muted);
}

.cards-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.sponsors-grid {
  align-items: start;
}

.sponsor-wide-panel {
  grid-column: 1 / -1;
}

.messages-layout {
  grid-template-columns: minmax(240px, 0.82fr) minmax(0, 1.55fr);
}

.panel {
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 253, 245, 0.9);
}

.card,
.list-button,
.message-bubble,
.stat-card,
.stat-chip,
.session-card {
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 245, 0.88);
}

.card,
.stat-card {
  display: grid;
  gap: 0.7rem;
}

.card.subtle {
  background: rgba(255, 255, 255, 0.62);
}

.stat-chip span,
.stat-card span {
  color: var(--muted);
  font-size: 0.74rem;
}

.stat-chip strong,
.stat-card strong {
  margin-top: 0.2rem;
  font-size: 1.25rem;
}

.primary-button,
.ghost-button,
.nav-button,
.mode-button,
.chip-button,
.list-button {
  appearance: none;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  padding: 0.78rem 0.95rem;
  font-size: 0.72rem;
  transition: transform 140ms ease, border-color 140ms ease, background 140ms ease;
}

.primary-button {
  border-color: transparent;
  background: linear-gradient(90deg, var(--bi-pink), var(--bi-purple), var(--bi-blue));
  color: #fffdf5;
}

.ghost-button,
.nav-button,
.mode-button,
.chip-button,
.list-button {
  background: rgba(255, 253, 245, 0.88);
  color: var(--ink);
}

.nav-button,
.mode-button {
  text-align: left;
}

.nav-button.active,
.mode-button.active,
.list-button.active {
  background: linear-gradient(90deg, rgba(214, 2, 112, 0.16), rgba(255, 216, 0, 0.24), rgba(33, 177, 255, 0.15));
  border-color: var(--bi-pink);
  color: var(--ink);
}

.primary-button:hover,
.ghost-button:hover,
.nav-button:hover,
.mode-button:hover,
.chip-button:hover,
.list-button:hover {
  transform: translateY(-1px);
}

.primary-button:disabled,
.ghost-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
  transform: none;
}

.ghost-button.danger,
.error-text {
  color: var(--danger);
}

.status-pill,
.badge,
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.34rem 0.68rem;
  border: 1px solid var(--line);
  background: rgba(21, 19, 19, 0.06);
  font-size: 0.68rem;
}

.status-pill.calm,
.stage-live {
  color: var(--success);
  background: rgba(33, 177, 255, 0.14);
}

.hero-badge,
.sidebar .badge {
  color: #fffdf5;
  border-color: rgba(255, 216, 0, 0.24);
  background: rgba(255, 33, 140, 0.12);
}

.stage-building {
  color: var(--bi-purple);
  background: rgba(255, 216, 0, 0.22);
}

.stage-waitlist {
  color: var(--muted);
}

.tag {
  color: var(--bi-blue);
  background: rgba(33, 177, 255, 0.12);
}

.text-link,
.social-link-list a {
  color: var(--bi-blue);
  overflow-wrap: anywhere;
  font-weight: 700;
}

.social-link-list {
  display: grid;
  gap: 0.35rem;
}

.plain-list {
  margin: 0;
  padding-left: 1.15rem;
}

.plain-list li + li {
  margin-top: 0.45rem;
}

.compact-list,
.muted {
  color: var(--muted);
}

.form-row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.inline-checkbox {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.inline-checkbox input {
  width: auto;
}

.top-gap {
  margin-top: 0.75rem;
}

.visibility-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 33, 140, 0.07);
}

.checkbox-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.message-thread {
  display: grid;
  gap: 0.75rem;
  max-height: 380px;
  overflow: auto;
  padding-right: 0.2rem;
}

.message-bubble {
  max-width: 84%;
  background: #fff4b8;
  border-radius: 18px 18px 18px 6px;
}

.message-bubble.self {
  margin-left: auto;
  background: #ffd7ed;
  border-radius: 18px 18px 6px 18px;
}

.message-note {
  display: inline-block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.banner {
  border-color: rgba(214, 2, 112, 0.24);
  background: rgba(255, 33, 140, 0.08);
}

.session-card {
  color: #fffdf5;
  border-color: rgba(255, 216, 0, 0.18);
  background: rgba(255, 253, 245, 0.07);
}

.session-card .ghost-button {
  background: rgba(255, 253, 245, 0.94);
}

@media (max-width: 1100px) {
  .hero-panel,
  .app-shell,
  .messages-layout,
  .city-preview,
  .two-up,
  .admin-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }
}

@media (max-width: 720px) {
  .login-shell,
  .app-shell {
    padding: 0.75rem;
  }

  .launch-grid,
  .auth-metrics,
  .stat-grid,
  .two-field-grid,
  .checkbox-grid,
  .split-actions,
  .form-row {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
  }

  .hero-copy,
  .auth-card,
  .panel,
  .sidebar,
  .topbar {
    border-radius: 14px;
  }
}
