
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #100d20;
  --panel: #211a38;
  --purple: #b99aff;
  --pink: #f0b8e8;
  --text: #f8f3ff;
  --muted: #c8bddb;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(ellipse at 50% 0%, #39265d 0%, #171129 48%, var(--bg) 100%);
  color: var(--text);
  font-family: "Noto Sans SC", system-ui, sans-serif;
}

.shell { width: min(920px, 100% - 32px); margin: auto; }

.topbar {
  height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #ffffff18;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: .04em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  line-height: 1;
  color: #d8b6ff;
  text-shadow: 0 0 8px #c79aff, 0 0 20px #a875ff, 0 0 32px #8e5cff;
}

.status { font-size: 13px; color: #d9ccef; }

.status i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #8ce5bb;
  margin-right: 7px;
  box-shadow: 0 0 12px #8ce5bb;
}

.hero { text-align: center; padding: 54px 12px 48px; }

.character-wrap {
  width: min(300px, 80vw);
  height: 430px;
  margin: 0 auto 24px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(145deg, #8c68cb55, #e6a9dc22);
  padding: 12px;
  box-shadow: 0 0 65px #ad7be755;
}

.character {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  border-radius: 14px;
}

.spark {
  position: absolute;
  color: #ffe4a7;
  font-size: 27px;
  text-shadow: 0 0 16px #ffdb9a;
  pointer-events: none;
}

.spark-one { right: -9px; top: 25px; }
.spark-two { left: -17px; bottom: 27px; }

.eyebrow {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--purple);
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(29px, 6vw, 46px);
  margin: 12px 0;
  background: linear-gradient(90deg, #fff, #e3c9ff, #ffc9ee);
  color: transparent;
  background-clip: text;
}

.intro { color: var(--muted); line-height: 1.8; }

.jump {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  border-radius: 30px;
  background: linear-gradient(100deg, #8865c9, #c27ebd);
  color: white;
  text-decoration: none;
  font-weight: 600;
  box-shadow: 0 8px 24px #a16dc544;
}

.jump span { margin-left: 8px; }

.chat-card {
  max-width: 700px;
  margin: 0 auto 45px;
  padding: 25px;
  border: 1px solid #ffffff20;
  border-radius: 22px;
  background: linear-gradient(145deg, #2a2145ee, #1b1630ee);
  box-shadow: 0 20px 60px #0005;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card-heading h2 { margin: 4px 0 0; font-size: 23px; }
.card-heading .eyebrow { margin: 0; }

.local-tag {
  font-size: 11px;
  padding: 6px 10px;
  border: 1px solid #b99aff66;
  border-radius: 20px;
  color: #d9c7ff;
}

.messages {
  height: 230px;
  overflow: auto;
  padding: 20px 4px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bubble {
  max-width: 85%;
  padding: 12px 15px;
  border-radius: 17px;
  line-height: 1.65;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.bubble.bot {
  align-self: flex-start;
  background: #ffffff12;
  border: 1px solid #ffffff12;
}

.bubble.user {
  align-self: flex-end;
  background: linear-gradient(120deg, #7655b4, #a46db5);
}

.composer { display: flex; gap: 9px; }

.composer input {
  min-width: 0;
  flex: 1;
  border: 1px solid #ffffff24;
  border-radius: 13px;
  background: #120e21;
  color: white;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

.composer input:focus { border-color: var(--purple); }

.composer button {
  border: 0;
  border-radius: 13px;
  padding: 0 22px;
  background: linear-gradient(120deg, #9471d2, #c17fbd);
  color: white;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 13px;
}

.quick-actions button {
  border: 1px solid #b99aff55;
  border-radius: 20px;
  background: transparent;
  color: #ddcefa;
  padding: 7px 12px;
  cursor: pointer;
}

.note {
  font-size: 11px;
  color: #a99dbd;
  line-height: 1.6;
  margin: 15px 0 0;
}

footer {
  text-align: center;
  color: #a99dbd;
  font-size: 12px;
  padding: 5px 0 30px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 520px) {
  .hero { padding-top: 38px; }

  .character-wrap {
    width: min(280px, 82vw);
    height: 400px;
  }

  .chat-card { padding: 18px; }
  .messages { height: 210px; }
  .composer button { padding: 0 16px; }
}
