:root {
  --bg-page: #faf9ff;
  --bg-soft: #f2efff;
  --bg-white: #ffffff;
  --purple-deep: #443692;
  --purple-main: #6656e6;
  --purple-bright: #7d6aff;
  --purple-soft: #a799ff;
  --cyan: #00b0fc;
  --sky: #32b6ff;
  --mint: #22d686;
  --mint-dark: #0a8f5a;
  --mint-soft: #e6fbf1;
  --yellow: #ffc93c;
  --yellow-deep: #ffb21e;
  --yellow-soft: #fff6d6;
  --pink: #fe98c9;
  --orange: #ff8a3d;
  --text-primary: #1f2033;
  --text-secondary: #5c5e76;
  --text-muted: #8a8c9e;
  --border-light: rgba(102, 86, 230, 0.12);
  --shadow-card: 0 12px 32px rgba(80, 70, 200, 0.08);
  --shadow-hover: 0 18px 42px rgba(80, 70, 200, 0.14);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-pill: 999px;
  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-round: "Yuanti SC", "PingFang SC", "Hiragino Maru Gothic ProN", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-primary);
  background: var(--bg-page);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

button {
  font-family: inherit;
  cursor: pointer;
}

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

.container {
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 28px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: var(--radius-pill);
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px) scale(0.99);
}

.btn-sm {
  height: 40px;
  padding: 0 20px;
  font-size: 14px;
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
  height: 46px;
  font-size: 15px;
}

.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, var(--purple-bright), var(--purple-main));
  box-shadow: 0 8px 20px rgba(102, 86, 230, 0.28);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(102, 86, 230, 0.36);
}

.btn-yellow {
  color: #2c2000;
  background: linear-gradient(135deg, #ffd859, var(--yellow-deep));
  box-shadow: 0 10px 24px rgba(255, 178, 30, 0.34);
}

.btn-yellow:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(255, 178, 30, 0.45);
}

.btn-ghost-light {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(8px);
}

.btn-ghost-light:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.btn-soft {
  color: var(--purple-main);
  background: var(--bg-soft);
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.btn-soft:hover {
  background: #e7e2ff;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(102, 86, 230, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  transition: background-color 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border-light);
  box-shadow: 0 8px 28px rgba(31, 32, 51, 0.06);
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

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

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #ffffff;
  padding: 3px;
  box-shadow: 0 4px 12px rgba(31, 32, 51, 0.12);
}

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

.brand-name {
  font-family: var(--font-round);
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  transition: color 0.25s ease;
}

.brand-sub {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  transition: color 0.25s ease;
}

.site-header.is-scrolled .brand-name {
  color: var(--text-primary);
}

.site-header.is-scrolled .brand-sub {
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--yellow);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  transform: scaleX(1);
}

.site-header.is-scrolled .nav-link {
  color: var(--text-secondary);
}

.site-header.is-scrolled .nav-link:hover,
.site-header.is-scrolled .nav-link.is-active {
  color: var(--purple-main);
}

.site-header.is-scrolled .nav-link::after {
  background: var(--purple-main);
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #ffffff;
}

.site-header.is-scrolled .nav-toggle {
  background: var(--bg-soft);
}

.site-header.is-scrolled .nav-toggle span {
  background: var(--text-primary);
}

.mobile-drawer {
  background: #ffffff;
  border-top: 1px solid var(--border-light);
  box-shadow: 0 18px 36px rgba(31, 32, 51, 0.12);
}

.mobile-drawer-inner {
  padding-block: 18px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-link {
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(102, 86, 230, 0.08);
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 132px 0 120px;
  background: linear-gradient(155deg, #5d4ee0 0%, #6656e6 42%, #7f70ff 100%);
  color: #ffffff;
  overflow: hidden;
}

.hero-decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
  opacity: 0.45;
}

.blob-1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: #9f8dff;
}

.blob-2 {
  width: 340px;
  height: 340px;
  bottom: 20px;
  left: -100px;
  background: #3bc4ff;
  opacity: 0.25;
}

.star {
  position: absolute;
  color: rgba(255, 213, 106, 0.85);
  font-size: 20px;
  animation: twinkle 4s ease-in-out infinite;
}

.star-1 {
  top: 110px;
  left: 8%;
}

.star-2 {
  top: 160px;
  right: 12%;
  font-size: 16px;
  animation-delay: 1.4s;
}

.star-3 {
  top: 220px;
  left: 52%;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.55);
  animation-delay: 2.2s;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  align-items: center;
  gap: 44px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.24);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 22px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 4px rgba(34, 214, 134, 0.28);
}

.hero-title {
  margin: 0 0 20px;
  font-family: var(--font-round);
  font-size: clamp(34px, 4.1vw, 52px);
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.highlight-yellow {
  color: var(--yellow);
  position: relative;
  display: inline-block;
}

.hero-desc {
  margin: 0 0 32px;
  font-size: 17px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
  max-width: 560px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
}

.hero-metrics {
  list-style: none;
  margin: 0;
  padding: 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.hero-metrics li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero-metrics strong {
  font-family: var(--font-round);
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
}

.hero-metrics span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.76);
}

/* Hero Stage */
.hero-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 440px;
}

.stage-glow {
  position: absolute;
  width: 390px;
  height: 390px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.04) 68%, transparent 72%);
}

.mascot-wrap {
  position: relative;
  z-index: 2;
  animation: floatSlow 6s ease-in-out infinite;
}

.hero-mascot {
  width: min(440px, 100%);
  filter: drop-shadow(0 26px 36px rgba(35, 23, 110, 0.32));
}

.floating-card {
  position: absolute;
  z-index: 3;
  background: #ffffff;
  color: var(--text-primary);
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 18px 34px rgba(34, 24, 96, 0.22);
  display: flex;
  align-items: center;
  gap: 12px;
}

.floating-card-left {
  left: -10px;
  bottom: 54px;
  animation: floatCardA 5.5s ease-in-out infinite;
}

.floating-card-left img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  object-fit: cover;
  background: #faf7ef;
}

.floating-card-right {
  right: -6px;
  top: 42px;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 176px;
  animation: floatCardB 6.2s ease-in-out infinite;
}

.fc-pill {
  font-size: 11px;
  font-weight: 700;
  color: var(--mint-dark);
  background: var(--mint-soft);
  padding: 3px 9px;
  border-radius: var(--radius-pill);
}

.fc-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.fc-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.fc-progress {
  width: 100%;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  overflow: hidden;
}

.fc-bar {
  display: block;
  width: 72%;
  height: 100%;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--mint), var(--cyan));
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
}

.hero-wave svg {
  width: 100%;
  height: 76px;
}

/* ---- Sections Shared ---- */
.section {
  padding: 88px 0;
}

.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 52px;
}

.eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  background: var(--bg-soft);
  color: var(--purple-main);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 14px;
}

.eyebrow-light {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.section-title {
  margin: 0 0 14px;
  font-family: var(--font-round);
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.28;
  font-weight: 700;
  color: var(--text-primary);
}

.section-subtitle {
  margin: 0;
  font-size: 16px;
  color: var(--text-secondary);
}

/* ---- Interactive Demo Workbench ---- */
.demo-workbench {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 32px;
  align-items: stretch;
}

.demo-controls {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.control-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}

.card-selector {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.selector-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  background: var(--bg-page);
  text-align: left;
  transition: all 0.18s ease;
}

.selector-item:hover {
  background: var(--bg-soft);
}

.selector-item.is-active {
  background: #f5f2ff;
  border-color: var(--purple-main);
  box-shadow: 0 6px 16px rgba(102, 86, 230, 0.12);
}

.selector-item img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
  background: #ffffff;
}

.selector-meta {
  display: flex;
  flex-direction: column;
}

.selector-meta strong {
  font-size: 15px;
  color: var(--text-primary);
}

.selector-meta span {
  font-size: 12px;
  color: var(--text-muted);
}

.age-pills {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.age-pill {
  padding: 10px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: left;
  transition: all 0.18s ease;
}

.age-pill:hover {
  border-color: var(--purple-soft);
  color: var(--purple-main);
}

.age-pill.is-active {
  background: var(--purple-main);
  border-color: var(--purple-main);
  color: #ffffff;
}

.control-tip {
  margin-top: auto;
  padding: 16px;
  border-radius: 16px;
  background: var(--yellow-soft);
}

.tip-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #9e5d00;
  margin-bottom: 6px;
}

.control-tip p {
  margin: 0;
  font-size: 13px;
  color: #5c4314;
  line-height: 1.6;
}

/* Interactive Card Mockup */
.demo-stage {
  display: flex;
}

.kcard {
  width: 100%;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.kcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(102, 86, 230, 0.08);
  margin-bottom: 24px;
}

.kcard-category {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-main);
  background: var(--bg-soft);
  padding: 6px 14px;
  border-radius: var(--radius-pill);
}

.kcard-view-switch {
  display: inline-flex;
  background: var(--bg-page);
  padding: 4px;
  border-radius: var(--radius-pill);
}

.view-btn {
  border: 0;
  background: transparent;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.18s ease;
}

.view-btn.is-active {
  background: #ffffff;
  color: var(--purple-main);
  box-shadow: 0 3px 10px rgba(80, 70, 200, 0.12);
}

.kcard-body {
  display: grid;
  grid-template-columns: 270px 1fr;
  gap: 32px;
  align-items: center;
  flex: 1;
}

.kcard-visual {
  background: radial-gradient(circle at center, #fffdf6 0%, #f5f3ff 100%);
  border-radius: 22px;
  padding: 22px;
  border: 1px solid rgba(102, 86, 230, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
}

.kcard-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 16px;
  transition: transform 0.25s ease;
}

.kcard-visual:hover img {
  transform: scale(1.04);
}

.kcard-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.kcard-pinyin {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.kcard-zh {
  margin: 0;
  font-family: var(--font-round);
  font-size: 38px;
  line-height: 1.1;
  color: var(--text-primary);
}

.kcard-en-box {
  text-align: right;
}

.kcard-en {
  display: block;
  font-size: 26px;
  font-weight: 700;
  color: var(--purple-main);
  line-height: 1.15;
}

.kcard-phonics {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.kcard-audio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  border: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--mint-dark);
  background: var(--mint-soft);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.audio-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(34, 214, 134, 0.2);
}

.audio-btn-blue {
  color: #0369a1;
  background: #e6f6ff;
}

.audio-btn-blue:hover {
  box-shadow: 0 6px 14px rgba(0, 176, 252, 0.2);
}

.audio-wave {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: currentColor;
  position: relative;
}

.audio-btn.is-playing .audio-wave {
  animation: pulseRing 0.9s ease-in-out infinite;
}

.kcard-intro-box {
  background: var(--bg-page);
  border-radius: 16px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.intro-age-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-main);
  margin-bottom: 6px;
}

.kcard-intro {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
}

.kcard-phrase {
  padding: 14px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f4f2ff 0%, #eef9ff 100%);
  border: 1px solid rgba(102, 86, 230, 0.1);
}

.phrase-en {
  font-size: 16px;
  font-weight: 700;
  color: var(--purple-deep);
}

.phrase-zh {
  font-size: 13px;
  color: var(--text-secondary);
}

/* Card Back View */
.kcard-back {
  flex: 1;
  display: flex;
  align-items: center;
}

.back-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.back-panel {
  background: var(--bg-page);
  border-radius: 18px;
  padding: 20px;
}

.back-panel:first-child {
  grid-column: 1 / -1;
}

.back-panel h4 {
  margin: 0 0 10px;
  font-size: 16px;
  color: var(--text-primary);
}

.back-panel ul {
  margin: 0;
  padding-left: 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.back-panel p {
  margin: 0;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.back-panel-mint {
  background: var(--mint-soft);
}

.back-panel-warm {
  background: var(--yellow-soft);
}

/* ---- Six Topics Grid ---- */
.section-topics {
  background: #ffffff;
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.topic-card {
  border-radius: var(--radius-lg);
  background: var(--bg-page);
  border: 2px solid transparent;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  cursor: pointer;
}

.topic-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.topic-card.is-selected {
  border-color: var(--purple-main);
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.topic-cover {
  padding: 16px 16px 0;
}

.topic-cover img {
  width: 100%;
  border-radius: 16px;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.topic-info {
  padding: 18px 20px 22px;
}

.topic-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.topic-head h3 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.topic-count {
  font-size: 12px;
  font-weight: 700;
  color: var(--purple-main);
  background: var(--bg-soft);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.topic-info p {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

.topic-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topic-tags span {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  background: #ffffff;
  border: 1px solid var(--border-light);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* ---- 4-Tab Features ---- */
.feature-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 36px;
}

.ftab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-light);
  background: #ffffff;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s ease;
}

.ftab:hover {
  border-color: var(--purple-soft);
  color: var(--purple-main);
}

.ftab.is-active {
  background: var(--purple-main);
  border-color: var(--purple-main);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(102, 86, 230, 0.24);
}

.ftab-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-purple { background: #a799ff; }
.dot-blue { background: #32b6ff; }
.dot-green { background: #22d686; }
.dot-pink { background: #fe98c9; }

.feature-showcase {
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 44px 48px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-light);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.feature-kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: var(--purple-main);
  margin-bottom: 10px;
}

.feature-heading {
  margin: 0 0 14px;
  font-family: var(--font-round);
  font-size: 28px;
  line-height: 1.3;
}

.feature-desc {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--text-secondary);
}

.feature-points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.feature-points li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}

.feature-points li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--mint-soft);
  color: var(--mint-dark);
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

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

.feature-visual-card {
  width: 100%;
  max-width: 390px;
  aspect-ratio: 1 / 1;
  border-radius: 26px;
  background: linear-gradient(145deg, #f3f0ff 0%, #e8f6ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  transition: background 0.3s ease;
}

.feature-visual-card img {
  max-height: 320px;
  object-fit: contain;
  filter: drop-shadow(0 18px 26px rgba(80, 70, 200, 0.16));
}

/* ---- Age Progression ---- */
.section-ages {
  background: #ffffff;
}

.age-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.age-card {
  border-radius: var(--radius-lg);
  padding: 28px;
  background: var(--bg-page);
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.age-badge {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
}

.age-card-1 .age-badge {
  background: var(--mint-soft);
  color: var(--mint-dark);
}

.age-card-2 .age-badge {
  background: #e6f6ff;
  color: #0369a1;
}

.age-card-3 .age-badge {
  background: var(--bg-soft);
  color: var(--purple-main);
}

.age-card h3 {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
}

.age-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  flex: 1;
}

.age-sample {
  margin-top: 8px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #ffffff;
  font-size: 13px;
  color: var(--text-primary);
  border: 1px solid rgba(102, 86, 230, 0.08);
}

.age-sample span {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: var(--purple-main);
  margin-right: 6px;
}

/* ---- Safety Banner ---- */
.safety-banner {
  background: linear-gradient(160deg, #f3f0ff 0%, #fff8ec 100%);
  border: 1px solid rgba(102, 86, 230, 0.12);
  border-radius: var(--radius-xl);
  padding: 48px;
}

.safety-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.safety-title-group .section-title,
.safety-title-group .section-subtitle {
  text-align: left;
}

.safety-mascot {
  width: 148px;
  flex-shrink: 0;
  filter: drop-shadow(0 12px 20px rgba(80, 70, 200, 0.14));
}

.safety-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.safety-item {
  background: #ffffff;
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: 0 6px 18px rgba(80, 70, 200, 0.06);
}

.safety-icon {
  font-size: 26px;
  margin-bottom: 10px;
}

.safety-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.safety-item p {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ---- FAQ ---- */
.section-faq {
  padding-top: 24px;
  padding-bottom: 64px;
}

.faq-list {
  max-width: 860px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 18px;
  padding: 20px 24px;
  box-shadow: 0 6px 20px rgba(80, 70, 200, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
  border-color: var(--purple-soft);
  box-shadow: var(--shadow-card);
}

.faq-item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-soft);
  color: var(--purple-main);
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.faq-item[open] summary::after {
  content: "−";
  background: var(--purple-main);
  color: #ffffff;
}

.faq-item p {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid rgba(102, 86, 230, 0.08);
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
}

/* ---- Bottom CTA ---- */
.section-cta {
  padding-top: 20px;
  padding-bottom: 92px;
}

.cta-box {
  background: linear-gradient(135deg, var(--purple-deep) 0%, var(--purple-main) 60%, #7d6aff 100%);
  color: #ffffff;
  border-radius: var(--radius-xl);
  padding: 52px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  box-shadow: 0 24px 48px rgba(72, 58, 178, 0.26);
}

.cta-copy h2 {
  margin: 0 0 14px;
  font-family: var(--font-round);
  font-size: clamp(26px, 2.8vw, 34px);
  line-height: 1.28;
}

.cta-copy p {
  margin: 0 0 28px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.86);
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.cta-platforms {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.platform-card {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 18px;
  padding: 20px 22px;
  backdrop-filter: blur(8px);
}

.platform-card-qr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.platform-qr-info {
  flex: 1;
}

.platform-qr-box {
  flex-shrink: 0;
  width: 112px;
  height: 112px;
  padding: 6px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(23, 22, 42, 0.22);
}

.platform-qr-box img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: contain;
}

.platform-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  margin-bottom: 8px;
}

.badge-live {
  background: var(--mint);
  color: #053b23;
}

.badge-soon {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.platform-card h4 {
  margin: 0 0 6px;
  font-size: 18px;
}

.platform-card p {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.84);
}

/* ---- Footer ---- */
.site-footer {
  background: #17162a;
  color: rgba(255, 255, 255, 0.82);
  padding: 64px 0 36px;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 1fr 1.1fr;
  gap: 36px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.footer-logo-row img {
  border-radius: 12px;
  background: #ffffff;
  padding: 3px;
}

.footer-brand-name {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.footer-brand-tag {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

.footer-desc {
  margin: 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.66);
  max-width: 340px;
}

.footer-col h5 {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
}

.footer-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-col a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.56);
}

.footer-bottom .sep {
  margin-inline: 8px;
}

.footer-icp a:hover {
  color: #ffffff;
  text-decoration: underline;
}

/* ---- Modal ---- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(23, 22, 42, 0.62);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  background: #ffffff;
  border-radius: var(--radius-xl);
  padding: 34px 32px 28px;
  box-shadow: 0 28px 64px rgba(18, 16, 48, 0.34);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--bg-page);
  color: var(--text-secondary);
  font-size: 16px;
}

.modal-close:hover {
  background: var(--bg-soft);
  color: var(--purple-main);
}

.modal-header {
  text-align: center;
  margin-bottom: 18px;
}

.modal-header h3 {
  margin: 0 0 8px;
  font-size: 21px;
}

.modal-header p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.modal-qr-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.modal-qr-frame {
  width: 214px;
  height: 214px;
  padding: 12px;
  border-radius: 22px;
  background: #ffffff;
  border: 1.5px solid var(--border-light);
  box-shadow: 0 14px 32px rgba(80, 70, 200, 0.12);
}

.modal-qr-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modal-qr-caption {
  font-size: 12px;
  font-weight: 600;
  color: var(--purple-main);
}

.modal-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--bg-page);
}

.step-num {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--purple-main);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.step-item strong {
  display: block;
  font-size: 14px;
  margin-bottom: 2px;
}

.step-item p {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
}

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

.modal-footer-actions .btn {
  flex: 1;
  height: 44px;
  font-size: 14px;
}

.copy-toast {
  margin-top: 12px;
  min-height: 20px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--mint-dark);
}

/* ---- Reveal & Keyframes ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes floatCardA {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes floatCardB {
  0%, 100% { transform: translateY(0) rotate(2deg); }
  50% { transform: translateY(8px) rotate(1deg); }
}

@keyframes twinkle {
  0%, 100% { opacity: 0.45; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1.1); }
}

@keyframes pulseRing {
  0%, 100% { transform: scale(0.9); opacity: 0.75; }
  50% { transform: scale(1.25); opacity: 1; }
}

/* ---- Responsive ---- */
@media (max-width: 1080px) {
  .demo-workbench {
    grid-template-columns: 1fr;
  }

  .card-selector {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .age-pills {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .topics-grid,
  .age-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .safety-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding: 110px 0 96px;
  }

  .hero-grid,
  .feature-showcase,
  .cta-box,
  .kcard-body {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-card-left {
    left: 4px;
    bottom: 12px;
  }

  .floating-card-right {
    right: 4px;
    top: 12px;
  }

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

  .safety-banner,
  .cta-box,
  .feature-showcase {
    padding: 28px 22px;
  }
}

@media (max-width: 600px) {
  .container {
    padding-inline: 18px;
  }

  .topics-grid,
  .age-grid,
  .safety-grid,
  .back-grid,
  .footer-top {
    grid-template-columns: 1fr;
  }

  .kcard {
    padding: 20px;
  }

  .modal-footer-actions {
    flex-direction: column;
  }

  .platform-card-qr {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .mascot-wrap,
  .floating-card-left,
  .floating-card-right,
  .star {
    animation: none;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
