:root {
  --text: #0f0f12;
  --muted: #6e6c78;
  --bg: #f3f0f8;
  --surface: #fff;
  --accent: #7469f6;
  --accent-soft: #e9e6ff;
  --focus: #7469f6;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 0;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; }

.container {
  width: min(100% - 32px, 1120px);
  margin: 0 auto;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgb(243 240 248 / 85%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
}

.brand img { display: block; width: 104px; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.lang-toggle {
  min-height: 38px;
  padding: 0 14px;
  border: 1.5px solid rgb(15 15 18 / 18%);
  border-radius: 999px;
  color: var(--text);
  background: transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.lang-toggle:hover { background: rgb(255 255 255 / 70%); border-color: rgb(15 15 18 / 35%); }

.lang-toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 0;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("assets/bg.webp") center bottom / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, transparent 25%, #000 70%);
  mask-image: linear-gradient(180deg, transparent 0, transparent 25%, #000 70%);
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}

.hero-copy { text-align: center; }

.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 14px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.hero-title {
  margin: 0;
  font-size: clamp(30px, 7vw, 54px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.hero-body {
  max-width: 34em;
  margin: 18px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 3.8vw, 18px);
}

.hero-visual { display: flex; justify-content: center; }

.hero-image {
  display: block;
  width: min(100%, 560px);
  margin-bottom: -6%;
}

/* Sections */
section { padding: 64px 0; }

.section-title {
  margin: 0;
  font-size: clamp(26px, 5.5vw, 38px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-align: center;
}

.section-subtitle {
  max-width: 32em;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 3.6vw, 17px);
  text-align: center;
}

/* Features */
.features { background: var(--bg); }

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 36px;
}

.feature-card {
  padding: 28px 24px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 1px 2px rgb(15 15 18 / 4%), 0 12px 32px rgb(116 105 246 / 8%);
}

.feature-card h3 {
  margin: 18px 0 0;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p { margin: 10px 0 0; color: var(--muted); font-size: 15.5px; }

.feature-tag {
  display: inline-block;
  margin-top: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 12.5px;
  font-weight: 600;
}

.feature-icon {
  display: inline-flex;
  width: 52px;
  height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  color: #fff;
}

.feature-icon svg { width: 28px; height: 28px; }
.feature-icon-companion { background: linear-gradient(135deg, #7469f6, #a89cff); }
.feature-icon-sphere { background: linear-gradient(135deg, #4fb6ff, #7fd5ff); }
.feature-icon-egg { background: linear-gradient(135deg, #ff7aa8, #ffb0c9); }
.feature-icon-spark { background: linear-gradient(135deg, #ffb340, #ffd58a); }

/* Future */
.future { padding-top: 0; }

.future-inner {
  padding: 44px 24px;
  border-radius: 28px;
  background: linear-gradient(135deg, #e9e6ff, #dff3ff);
}

.future-body {
  max-width: 34em;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: clamp(15px, 3.6vw, 18px);
  text-align: center;
}

/* Footer */
.footer {
  padding: 28px 0 40px;
  border-top: 1px solid rgb(15 15 18 / 8%);
  color: var(--muted);
  font-size: 13.5px;
  text-align: center;
}

.footer p { margin: 0; }

/* Responsive */
@media (min-width: 720px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .feature-card { padding: 32px 28px; }
  section { padding: 80px 0; }
}

@media (min-width: 960px) {
  .hero { padding-top: 56px; }
  .hero-inner { grid-template-columns: 1.05fr 1fr; gap: 40px; }
  .hero-copy { text-align: left; }
  .hero-body { margin-left: 0; }
  .hero-image { margin-bottom: -4%; }
}


@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .lang-toggle { transition: none; }
}
