/* Mind Upgrade — GitHub Pages shared styles */

:root {
  --accent: #6b7fd7;
  --accent-light: #9b8bb4;
  --warm-glow: #c7d1e8;
  --bg-deep: #1e2433;
  --bg-card: #2a3350;
  --text-primary: #f5f2eb;
  --text-secondary: #b8c0d4;
  --text-muted: #8a94ab;
  --max-width: 720px;
  --radius: 16px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "PingFang TC", "PingFang SC", "Hiragino Sans", "Noto Sans CJK TC", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: linear-gradient(160deg, var(--bg-deep) 0%, #151929 45%, var(--bg-deep) 100%);
  color: var(--text-primary);
  line-height: 1.65;
  min-height: 100vh;
}

a {
  color: var(--warm-glow);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-primary);
  text-decoration: none;
}

.logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.lang-toggle {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-card);
  border-radius: 999px;
  padding: 3px;
}

.lang-toggle button {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.85rem;
  font-family: inherit;
}

.lang-toggle button.active {
  background: var(--accent);
  color: white;
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

.hero {
  text-align: center;
  padding: 2rem 0 3rem;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  margin-bottom: 1.5rem;
  box-shadow: 0 12px 40px rgba(107, 127, 215, 0.35);
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.hero .subtitle {
  font-size: 1.15rem;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.hero .lead {
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 1.5rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

.badge {
  background: var(--bg-card);
  color: var(--text-secondary);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  border: 1px solid rgba(107, 127, 215, 0.25);
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(107, 127, 215, 0.15);
}

.card h2 {
  font-size: 1.15rem;
  color: var(--warm-glow);
  margin-bottom: 1rem;
}

.card ul {
  list-style: none;
  padding: 0;
}

.card li {
  padding: 0.45rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: var(--text-secondary);
}

.card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: bold;
}

.pricing {
  text-align: center;
}

.price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent);
}

.price-note {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.5rem;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: opacity 0.15s;
}

.btn:hover {
  opacity: 0.9;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--warm-glow);
  border: 1px solid rgba(199, 209, 232, 0.35);
}

.site-footer {
  text-align: center;
  padding: 2rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(107, 127, 215, 0.12);
  max-width: 960px;
  margin: 0 auto;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

/* Legal pages */
.legal h1 {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
}

.legal .updated {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 2rem;
}

.legal h2 {
  font-size: 1.1rem;
  color: var(--warm-glow);
  margin: 1.75rem 0 0.75rem;
}

.legal p,
.legal li {
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.legal ul {
  padding-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal li {
  margin-bottom: 0.4rem;
}

.disclaimer-box {
  background: rgba(107, 127, 215, 0.12);
  border-left: 3px solid var(--accent);
  padding: 1rem 1.25rem;
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

html[lang="en"] .zh { display: none !important; }
html[lang="zh-Hant"] .en { display: none !important; }

@media (max-width: 600px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-icon { width: 96px; height: 96px; }
}
