:root {
  color-scheme: dark;
  --bg: #07101c;
  --panel: rgba(9, 18, 31, .78);
  --panel-strong: rgba(12, 24, 40, .88);
  --panel-soft: rgba(255,255,255,.055);
  --line: rgba(204, 222, 240, .16);
  --line-strong: rgba(214, 230, 247, .24);
  --text: #f7fbff;
  --muted: #b7c3d2;
  --accent: #77d7ff;
  --accent-soft: rgba(119, 215, 255, .13);
  --gold: #91c8ff;
  --gold-soft: rgba(145, 200, 255, .12);
  --red: #d94b42;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 50% 0%, rgba(119, 215, 255, .18), transparent 34rem),
    linear-gradient(180deg, rgba(4, 11, 20, .52), rgba(5, 9, 15, .9)),
    url("/assets/stadium-bg.jpg") center top / cover fixed;
  min-height: 100vh;
}

button, input, select {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.site {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0 96px;
}

.hero {
  min-height: auto;
  display: block;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(119, 215, 255, .13), transparent 46%),
    linear-gradient(180deg, rgba(255,255,255,.07), transparent),
    var(--panel-strong);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .34);
  backdrop-filter: blur(8px);
}

.eyebrow {
  color: #d7e8f8;
  font-weight: 800;
  letter-spacing: 0;
  margin: 0 0 10px;
}

h1 {
  font-size: clamp(34px, 5.5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
  margin: 0;
  max-width: 620px;
}

.rate-gradient {
  display: inline-block;
  margin-left: .08em;
  background: linear-gradient(90deg, #ffffff, #77d7ff, #b9a7ff, #ff9fd3, #ffffff);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rate-shift 5s ease-in-out infinite;
}

@keyframes rate-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.primary, .ghost, .composer button, .staff-chat-head button {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  text-decoration: none;
}

.primary {
  color: #06111f;
  background: linear-gradient(135deg, #8ee4ff, #b9a7ff);
}

.ghost {
  color: var(--text);
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
}

.brands-section,
.benefits-section {
  margin-top: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .26);
  backdrop-filter: blur(8px);
}

.section-head {
  margin-bottom: 16px;
}

.section-kicker {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.2;
}

.section-lead {
  margin: 10px 0 0;
  color: #d6e1ee;
  font-size: 15px;
  line-height: 1.7;
}

.section-lead.gradient-lead {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  color: transparent;
  background: linear-gradient(90deg, #ffffff, #77d7ff, #b9a7ff, #ff9fd3, #ffffff);
  background-size: 320% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
  animation: rate-shift 5s ease-in-out infinite;
}

.brands.compact {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.brands.compact a,
.brands.compact a:link,
.brands.compact a:visited {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.045)),
    rgba(8, 18, 30, .72);
  display: grid;
  place-items: center;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10);
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.brands.compact a:hover,
.brands.compact a:focus-visible {
  border-color: rgba(119, 215, 255, .7);
  background:
    linear-gradient(180deg, rgba(119, 215, 255, .18), rgba(255,255,255,.055)),
    rgba(8, 18, 30, .78);
  outline: none;
  transform: translateY(-1px);
}

.benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.benefit-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 0;
}

.benefit-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 13px;
  font-weight: 900;
}

.benefit-list li + li {
  border-top: 1px solid rgba(204, 222, 240, .10);
}

.benefit-list h3 {
  margin: 0 0 6px;
  font-size: 18px;
  line-height: 1.2;
}

.benefit-list p {
  margin: 0;
  color: #d8e2ee;
  font-size: 15px;
  line-height: 1.65;
}

.float-chat {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  width: 160px;
  min-height: 52px;
  border-radius: 8px;
  color: #06111f;
  font-weight: 900;
  background: linear-gradient(135deg, #8ee4ff, #b9a7ff);
  box-shadow: 0 14px 34px rgba(0,0,0,.30);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.contact-page {
  display: grid;
  place-items: center;
  padding: 24px;
}

.contact-shell {
  width: min(560px, 100%);
}

.contact-back {
  display: inline-flex;
  margin-bottom: 14px;
  color: #d7e8f8;
  font-weight: 700;
  text-decoration: none;
}

.contact-panel {
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(119, 215, 255, .13), transparent 46%),
    var(--panel-strong);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .38);
  backdrop-filter: blur(10px);
}

.contact-heading h1 {
  font-size: clamp(32px, 7vw, 48px);
}

.contact-heading > p:last-child {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}

.contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(255, 255, 255, .055);
}

.contact-label,
.contact-item strong {
  display: block;
}

.contact-label {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 14px;
}

.contact-item strong {
  font-size: 18px;
  overflow-wrap: anywhere;
}

.contact-action {
  flex: 0 0 auto;
  min-width: 104px;
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #06111f;
  background: linear-gradient(135deg, #8ee4ff, #b9a7ff);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.copy-status {
  min-height: 24px;
  margin: 14px 0 0;
  color: var(--accent);
  text-align: center;
}

.chat-shell {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end;
  padding: 18px;
  background: rgba(0,0,0,.38);
}

.chat-shell.standalone {
  place-items: center;
  background:
    radial-gradient(circle at 20% 12%, rgba(36,179,107,.24), transparent 30rem),
    linear-gradient(135deg, #08100e 0%, #141715 54%, #22110f 100%);
}

.chat-card {
  width: min(420px, 100%);
  height: min(680px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto auto 1fr auto auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #0f1715;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}

.chat-head, .staff-chat-head, .session-list header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.chat-head small, .staff-chat-head small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

.icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  font-size: 24px;
}

.join {
  display: grid;
  grid-template-columns: 1fr 120px;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.join .primary {
  grid-column: 1 / -1;
  width: 100%;
}

input, select {
  min-height: 44px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,.08);
  padding: 0 12px;
}

select option {
  color: #101511;
}

.messages {
  padding: 16px;
  overflow: auto;
}

.msg {
  max-width: 82%;
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.msg.staff, .msg.visitor.self {
  margin-left: auto;
  background: rgba(241,199,91,.18);
  border: 1px solid rgba(241,199,91,.35);
}

.msg.system {
  max-width: 100%;
  text-align: center;
  color: var(--muted);
  background: transparent;
  border: 1px dashed var(--line);
}

.msg img {
  display: block;
  max-width: 100%;
  border-radius: 8px;
}

.msg small {
  display: block;
  color: var(--muted);
  margin-bottom: 4px;
}

.emoji-row {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
  overflow-x: auto;
}

.emoji-row button {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  font-size: 19px;
}

.composer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.file-btn, .composer button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #101511;
  background: #dfe6d7;
  font-weight: 900;
}

.composer button {
  background: var(--gold);
}

.staff-page {
  background: #0c1110;
}

.staff-layout {
  height: 100vh;
  display: grid;
  grid-template-columns: 340px 1fr;
}

.session-list, .staff-chat {
  min-height: 0;
  border-right: 1px solid var(--line);
}

.session-list {
  display: grid;
  grid-template-rows: auto 1fr;
  background: #0f1715;
}

.session-list h1 {
  font-size: 22px;
}

#sessions {
  overflow: auto;
  padding: 10px;
}

.session-item {
  width: 100%;
  text-align: left;
  color: var(--text);
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 10px;
}

.session-item.active {
  border-color: rgba(241,199,91,.7);
}

.session-item strong, .session-item small {
  display: block;
}

.session-item small {
  color: var(--muted);
  margin-top: 4px;
}

.staff-chat {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
}

.staff-chat-head button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.staff-messages {
  background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01));
}

@media (max-width: 860px) {
  .site {
    width: min(100% - 24px, 680px);
    padding: 12px 0 88px;
  }

  .hero {
    padding: 18px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  .primary,
  .ghost {
    min-height: 50px;
    padding: 0 12px;
  }

  .brands-section,
  .benefits-section {
    padding: 18px;
  }

  .brands.compact {
    grid-template-columns: repeat(3, 1fr);
  }

  .brands.compact a,
.brands.compact a:link,
.brands.compact a:visited {
    min-height: 42px;
    font-size: 14px;
  }

  .benefit-list h3 {
    font-size: 18px;
  }

  .float-chat {
    left: 16px;
    right: 16px;
    bottom: 16px;
    width: auto;
    display: flex;
  }

  .contact-page {
    align-items: start;
    padding: 16px;
  }

  .contact-panel {
    padding: 22px 18px;
  }

  .contact-item {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-action {
    width: 100%;
  }

  .chat-shell {
    place-items: stretch;
    padding: 0;
  }

  .chat-card {
    width: 100%;
    height: 100vh;
    border-radius: 0;
  }

  .staff-layout {
    grid-template-columns: 1fr;
    grid-template-rows: 42vh 58vh;
  }

  .session-list {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}
