/* Core palette uses logo-inspired gradient with deep background */
:root {
  --bg: #0b0614;
  --bg-soft: #120b21;
  --card: rgba(255, 255, 255, 0.06);
  --card-strong: rgba(255, 255, 255, 0.12);
  --text: #f7f1ff;
  --muted: #cfc6dd;
  --accent: #ff68a0;
  --accent-2: #a07bff;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  --glass: blur(14px);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, rgba(255, 104, 160, 0.2), transparent 25%),
    radial-gradient(circle at 80% 10%, rgba(160, 123, 255, 0.18), transparent 30%),
    radial-gradient(circle at 50% 60%, rgba(255, 104, 160, 0.16), transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", "SF Pro Display", "Inter", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 20px 80px;
}

a {
  color: inherit;
  text-decoration: none;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(255, 104, 160, 0.12), rgba(160, 123, 255, 0.1));
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(255, 104, 160, 0.3);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-family: "Playfair Display", "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
}

.tagline {
  color: var(--muted);
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  flex-wrap: wrap;
}

.nav a {
  padding: 10px 12px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-1px);
}

.pill {
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 8px 20px rgba(255, 104, 160, 0.35);
  border: none;
  cursor: pointer;
}

.pill.ghost {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.pill.primary:hover {
  box-shadow: 0 14px 30px rgba(255, 104, 160, 0.45);
}

.lang-switch {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.lang-btn {
  padding: 8px 12px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
  align-items: center;
  margin: 60px 0 32px;
}

.hero-content h1 {
  font-size: clamp(32px, 5vw, 48px);
  margin: 12px 0 14px;
}

.hero-content .lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.microcopy {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 15px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 6px rgba(255, 104, 160, 0.18);
}

.hero-card {
  background: linear-gradient(160deg, rgba(255, 104, 160, 0.14), rgba(160, 123, 255, 0.12));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  border-radius: 20px;
  padding: 18px;
  backdrop-filter: var(--glass);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 16px;
}

.pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 0 8px rgba(255, 104, 160, 0.18);
}

.chat-bubble {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.chat-bubble.reply {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

.chat-bubble.soft {
  background: rgba(255, 255, 255, 0.05);
}

.chat-bubble .label {
  display: inline-block;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
}

.chat-bubble p {
  margin: 0;
  line-height: 1.5;
}

.card-footer {
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  margin-top: 12px;
}

.section {
  margin: 36px 0;
  padding: 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--card);
  backdrop-filter: var(--glass);
  box-shadow: var(--shadow);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.tile {
  padding: 18px;
  border-radius: 14px;
  background: var(--card-strong);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.tile h3 {
  margin: 0 0 8px;
}

.tile p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.highlight {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: linear-gradient(120deg, rgba(255, 104, 160, 0.16), rgba(160, 123, 255, 0.16));
}

.highlight-content h2 {
  margin: 6px 0 4px;
}

.highlight-content p {
  margin: 0;
  color: var(--muted);
}

.footer {
  margin-top: 40px;
  padding: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 12px;
}

/* Legal page layout */
.legal-wrapper {
  max-width: 900px;
  margin: 40px auto 0;
  padding: 22px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: var(--glass);
}

.legal-wrapper h1 {
  margin: 8px 0 12px;
  font-size: clamp(28px, 4vw, 38px);
}

.legal-wrapper h2 {
  margin: 24px 0 10px;
  font-size: 20px;
}

.legal-wrapper p,
.legal-wrapper li {
  color: var(--muted);
  line-height: 1.7;
}

.legal-wrapper ul {
  padding-left: 18px;
}

.lang {
  display: none;
}

body.lang-en .lang-en {
  display: inherit;
}

body.lang-zh .lang-zh {
  display: inherit;
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav-links {
    flex-wrap: wrap;
    width: 100%;
  }

  .hero {
    margin-top: 36px;
  }

  .highlight {
    flex-direction: column;
    align-items: flex-start;
  }
}
