/* =====================================================
   Premium Hero — Native App Landing Experience
   study.quizzman.com
   ===================================================== */

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: #faf8f5;
  color: var(--hero-text, #1c1917);
}

[data-theme="dark"] body {
  background: #1c1917;
  color: #fafaf9;
}

:root {
  --hero-accent: #0d9488;
  --hero-accent-deep: #0f766e;
  --hero-accent-light: #14b8a6;
  --hero-coral: #ea580c;
  --hero-surface: #faf8f5;
  --hero-surface-soft: #f3f1ec;
  --hero-stone: #e7e5e0;
  --hero-indigo: var(--hero-accent);
  --hero-indigo-deep: var(--hero-accent-deep);
  --hero-violet: var(--hero-accent-light);
  --hero-blue-ambient: #ecfdf5;
  --hero-blue-soft: #99f6e4;
  --hero-gradient: linear-gradient(135deg, #0d9488 0%, #0891b2 45%, #0369a1 100%);
  --hero-gradient-text: linear-gradient(135deg, #0f766e 0%, #0891b2 50%, #0284c7 100%);
  --hero-gradient-soft: linear-gradient(135deg, rgba(13, 148, 136, 0.1) 0%, rgba(8, 145, 178, 0.08) 45%, rgba(250, 248, 245, 0.92) 100%);
  --hero-glass: rgba(255, 255, 255, 0.88);
  --hero-glass-strong: rgba(255, 255, 255, 0.96);
  --hero-glass-border: rgba(13, 148, 136, 0.14);
  --hero-text: #1c1917;
  --hero-text-secondary: #57534e;
  --hero-text-muted: #78716c;
  --hero-shadow-sm: 0 4px 16px rgba(28, 25, 23, 0.06);
  --hero-shadow: 0 24px 48px -12px rgba(28, 25, 23, 0.1), 0 8px 20px -8px rgba(13, 148, 136, 0.12);
  --hero-shadow-lg: 0 32px 64px -16px rgba(28, 25, 23, 0.14), 0 16px 32px -8px rgba(13, 148, 136, 0.15);
  --hero-radius: 24px;
  --hero-radius-sm: 20px;
  --hero-radius-lg: 32px;
  --hero-font-cn: 'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] {
  --hero-glass: rgba(28, 25, 23, 0.82);
  --hero-glass-strong: rgba(41, 37, 36, 0.94);
  --hero-glass-border: rgba(45, 212, 191, 0.16);
  --hero-text: #fafaf9;
  --hero-text-secondary: #d6d3d1;
  --hero-text-muted: #a8a29e;
  --hero-blue-ambient: rgba(13, 148, 136, 0.08);
  --hero-surface: #292524;
  --hero-surface-soft: #1c1917;
  --hero-indigo: #2dd4bf;
  --hero-indigo-deep: #5eead4;
  --hero-gradient-text: linear-gradient(135deg, #5eead4 0%, #38bdf8 50%, #7dd3fc 100%);
  --hero-shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.28);
  --hero-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.45);
  --hero-shadow-lg: 0 32px 64px -16px rgba(0, 0, 0, 0.55), 0 12px 28px -8px rgba(13, 148, 136, 0.12);
}

/* ── Page Shell (header untouched) ── */
.hp-page {
  --header-h: var(--qmf-header-h, 60px);
  position: relative;
  padding-top: var(--header-h);
  background: linear-gradient(180deg, #faf8f5 0%, #ffffff 42%, #f0fdfa 100%);
  color: var(--hero-text);
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  overflow-x: clip;
}

[data-theme="dark"] .hp-page {
  background: linear-gradient(180deg, #1c1917 0%, #134e4a 100%);
}

.hp-page__ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 55% at 18% 0%, rgba(251, 191, 36, 0.1) 0%, transparent 55%),
    radial-gradient(ellipse 55% 45% at 88% 12%, rgba(13, 148, 136, 0.12) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 55% 92%, rgba(254, 243, 199, 0.14) 0%, transparent 45%);
}

[data-theme="dark"] .hp-page__ambient {
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(13, 148, 136, 0.1) 0%, transparent 55%);
}

.hp-skip:focus {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100000;
  background: var(--hero-indigo);
  color: #fff;
  padding: 12px 24px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
}

.hp-container {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

.hp-section {
  position: relative;
  z-index: 1;
  padding: 72px 0;
}

.hp-section--soft {
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.85) 0%, rgba(255, 255, 255, 0) 100%);
}

[data-theme="dark"] .hp-section--soft {
  background: linear-gradient(180deg, rgba(30, 41, 59, 0.5) 0%, transparent 100%);
}

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

.hp-section-head__pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hero-indigo);
  margin-bottom: 14px;
}

.hp-section-head__title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--hero-text);
  margin-bottom: 12px;
}

.hp-section-head__sub {
  font-size: 1.05rem;
  color: var(--hero-text-secondary);
  line-height: 1.65;
}

/* ── Tool Cards ── */
.hp-tools {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hp-tools__primary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.hp-tools__more {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.hp-tool {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  min-height: 0;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(250, 248, 245, 0.85) 100%);
  border: 1px solid rgba(120, 113, 108, 0.12);
  border-radius: var(--hero-radius);
  backdrop-filter: blur(20px) saturate(1.3);
  -webkit-backdrop-filter: blur(20px) saturate(1.3);
  box-shadow: var(--hero-shadow-sm);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s var(--hero-spring),
    box-shadow 0.4s var(--hero-ease),
    border-color 0.3s ease;
}

.hp-tool::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55) 0%, transparent 42%);
  pointer-events: none;
  z-index: 1;
}

.hp-tool:hover {
  transform: translateY(-6px);
  box-shadow: var(--hero-shadow);
  border-color: rgba(13, 148, 136, 0.22);
}

/* Hero tool accent colors */
.hp-tool--accent-coral { border-color: rgba(234, 88, 12, 0.22); }
.hp-tool--accent-coral .hp-tool__visual {
  background: radial-gradient(ellipse 85% 75% at 50% 25%, rgba(251, 146, 60, 0.28) 0%, rgba(255, 247, 237, 0.4) 100%);
}
.hp-tool--accent-coral .hp-tool__eyebrow { color: #ea580c; }
.hp-tool--accent-coral::after {
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.45), rgba(234, 88, 12, 0.08));
}

.hp-tool--accent-teal { border-color: rgba(13, 148, 136, 0.22); }
.hp-tool--accent-teal .hp-tool__visual {
  background: radial-gradient(ellipse 85% 75% at 50% 25%, rgba(45, 212, 191, 0.28) 0%, rgba(240, 253, 250, 0.5) 100%);
}
.hp-tool--accent-teal .hp-tool__eyebrow { color: #0d9488; }
.hp-tool--accent-teal::after {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.4), rgba(13, 148, 136, 0.08));
}

.hp-tool--accent-amber { border-color: rgba(217, 119, 6, 0.22); }
.hp-tool--accent-amber .hp-tool__visual {
  background: radial-gradient(ellipse 85% 75% at 50% 25%, rgba(251, 191, 36, 0.32) 0%, rgba(255, 251, 235, 0.5) 100%);
}
.hp-tool--accent-amber .hp-tool__eyebrow { color: #d97706; }
.hp-tool--accent-amber::after {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.45), rgba(217, 119, 6, 0.08));
}

/* Compact tool icon tints */
.hp-tool--tint-emerald .hp-tool__visual { background: rgba(16, 185, 129, 0.1); border-color: rgba(16, 185, 129, 0.22); }
.hp-tool--tint-sky .hp-tool__visual { background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.22); }
.hp-tool--tint-rose .hp-tool__visual { background: rgba(244, 63, 94, 0.1); border-color: rgba(244, 63, 94, 0.22); }
.hp-tool--tint-blue .hp-tool__visual { background: rgba(14, 165, 233, 0.1); border-color: rgba(14, 165, 233, 0.22); }
.hp-tool--tint-purple .hp-tool__visual { background: rgba(168, 85, 247, 0.1); border-color: rgba(168, 85, 247, 0.22); }
.hp-tool--tint-slate .hp-tool__visual { background: rgba(100, 116, 139, 0.1); border-color: rgba(100, 116, 139, 0.22); }
.hp-tool--tint-orange .hp-tool__visual { background: rgba(249, 115, 22, 0.1); border-color: rgba(249, 115, 22, 0.22); }

/* Hero row — Thi / Ôn / Flashcard */
.hp-tool--hero {
  min-height: 280px;
}

.hp-tool--hero::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(251, 146, 60, 0.35), rgba(13, 148, 136, 0.06));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hp-tool--hero .hp-tool__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 24px 8px;
  background: radial-gradient(ellipse 80% 70% at 50% 30%, rgba(45, 212, 191, 0.2) 0%, transparent 70%);
  position: relative;
  z-index: 2;
}

.hp-tool--hero .hp-tool__visual img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  transition: transform 0.5s var(--hero-spring);
}

.hp-tool--hero:hover .hp-tool__visual img {
  transform: scale(1.06) translateY(-4px);
}

.hp-tool--hero .hp-tool__body {
  padding: 8px 24px 20px;
  flex: 1;
}

.hp-tool--hero .hp-tool__arrow {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
}

.hp-tool__eyebrow {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hero-indigo);
  margin-bottom: 6px;
}

/* Compact secondary cards */
.hp-tool--compact {
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  min-height: 88px;
}

.hp-tool--compact .hp-tool__visual {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 148, 136, 0.06);
  border-radius: 14px;
  border: 1px solid rgba(13, 148, 136, 0.1);
  position: relative;
  z-index: 2;
}

.hp-tool--compact .hp-tool__visual img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.hp-tool--compact .hp-tool__body {
  flex: 1;
  min-width: 0;
}

.hp-tool--compact .hp-tool__title {
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.hp-tool--compact .hp-tool__desc {
  font-size: 0.8rem;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hp-tool--compact .hp-tool__arrow {
  flex-shrink: 0;
  align-self: center;
  font-size: 1.1rem;
}

.hp-tool__body {
  flex: 1;
  position: relative;
  z-index: 2;
}

.hp-tool__title {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hero-text);
  margin-bottom: 6px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hp-tool--hero .hp-tool__title {
  font-size: 1.2rem;
}

.hp-tool__desc {
  font-size: 0.875rem;
  color: var(--hero-text-secondary);
  line-height: 1.55;
}

.hp-tool--hero .hp-tool__desc {
  font-size: 0.9rem;
}

.hp-tool__arrow {
  align-self: flex-end;
  margin-left: auto;
  font-size: 1.25rem;
  font-weight: 300;
  color: var(--hero-text-muted);
  transition: transform 0.35s var(--hero-ease), color 0.3s ease;
  position: relative;
  z-index: 2;
}

.hp-tool:hover .hp-tool__arrow {
  transform: translateX(4px);
  color: var(--hero-indigo);
}

.hp-badge {
  display: inline-flex;
  padding: 3px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 999px;
  background: rgba(13, 148, 136, 0.12);
  color: var(--hero-indigo-deep);
}

.hp-badge--beta {
  background: rgba(45, 212, 191, 0.15);
  color: #0f766e;
}

.hp-badge--dev {
  background: rgba(251, 191, 36, 0.14);
  color: #b45309;
}

/* ── HSK Levels ── */
.hp-levels {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.hp-level {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 16px 24px;
  background: var(--hero-glass-strong);
  border: 1px solid var(--hero-glass-border);
  border-radius: var(--hero-radius-sm);
  backdrop-filter: blur(16px);
  text-decoration: none;
  color: inherit;
  transition:
    transform 0.45s var(--hero-spring),
    box-shadow 0.4s var(--hero-ease),
    border-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hp-level::before {
  content: attr(data-hanzi);
  position: absolute;
  top: -8px;
  right: -4px;
  font-family: var(--hero-font-cn);
  font-size: 4rem;
  font-weight: 700;
  color: var(--hero-indigo);
  opacity: 0.04;
  line-height: 1;
  pointer-events: none;
}

.hp-level:hover {
  transform: translateY(-8px);
  box-shadow: var(--hero-shadow);
  border-color: rgba(13, 148, 136, 0.25);
}

.hp-level__num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-indigo);
  margin-bottom: 10px;
}

.hp-level__hanzi {
  font-family: var(--hero-font-cn);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
  background: var(--hero-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}

.hp-level__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hero-text);
  margin-bottom: 4px;
}

.hp-level__words {
  font-size: 0.75rem;
  color: var(--hero-text-muted);
}

/* ── Features ── */
.hp-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.hp-feature {
  padding: 36px 32px;
  background: var(--hero-glass-strong);
  border: 1px solid var(--hero-glass-border);
  border-radius: var(--hero-radius);
  backdrop-filter: blur(20px);
  position: relative;
  overflow: hidden;
  transition: transform 0.45s var(--hero-spring), box-shadow 0.4s var(--hero-ease);
}

.hp-feature::before {
  content: attr(data-glyph);
  position: absolute;
  bottom: -16px;
  right: 8px;
  font-family: var(--hero-font-cn);
  font-size: 7rem;
  font-weight: 700;
  color: var(--hero-indigo);
  opacity: 0.05;
  line-height: 1;
  pointer-events: none;
}

.hp-feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--hero-shadow);
}

.hp-feature__tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-indigo);
  margin-bottom: 14px;
}

.hp-feature__title {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--hero-text);
  margin-bottom: 10px;
  position: relative;
  z-index: 1;
}

.hp-feature__desc {
  font-size: 0.925rem;
  color: var(--hero-text-secondary);
  line-height: 1.65;
  max-width: 320px;
  position: relative;
  z-index: 1;
}

/* ── CTA ── */
.hp-cta-wrap {
  padding-bottom: 100px;
}

.hp-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 40px;
  padding: 52px 56px;
  border-radius: var(--hero-radius-lg);
  background: var(--hero-glass-strong);
  border: 1px solid var(--hero-glass-border);
  backdrop-filter: blur(24px);
  box-shadow: var(--hero-shadow-lg);
  position: relative;
  overflow: hidden;
}

.hp-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--hero-gradient-soft);
  opacity: 0.7;
  pointer-events: none;
}

.hp-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.4), rgba(204, 251, 241, 0.2), rgba(13, 148, 136, 0.3));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hp-cta__content {
  position: relative;
  z-index: 1;
}

.hp-cta__title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hero-text);
  margin-bottom: 10px;
}

.hp-cta__sub {
  font-size: 1rem;
  color: var(--hero-text-secondary);
  line-height: 1.6;
  max-width: 440px;
}

.hp-cta__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.hp-cta__hanzi {
  font-family: var(--hero-font-cn);
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 1;
  background: var(--hero-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: heroDotBreath 4s ease-in-out infinite;
}

.hp-cta__hanzi-sub {
  font-size: 12px;
  font-weight: 600;
  color: var(--hero-text-muted);
  letter-spacing: 0.06em;
}

/* ── Footer ── */
.hp-footer {
  position: relative;
  z-index: 1;
  padding: 64px 0 32px;
  border-top: 1px solid rgba(13, 148, 136, 0.08);
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.55) 0%, #f5f3ef 100%);
}

[data-theme="dark"] .hp-footer {
  background: #1c1917;
  border-top-color: rgba(45, 212, 191, 0.14);
}

.hp-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}

.hp-footer__brand-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hp-footer__brand-row img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}

.hp-footer__name {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hero-text);
}

.hp-footer__tagline {
  font-size: 0.9rem;
  color: var(--hero-text-secondary);
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 280px;
}

.hp-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hp-footer__social a {
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--hero-text-secondary);
  background: var(--hero-glass);
  border: 1px solid var(--hero-glass-border);
  border-radius: 999px;
  transition: all 0.3s var(--hero-ease);
}

.hp-footer__social a:hover {
  color: var(--hero-indigo-deep);
  border-color: rgba(13, 148, 136, 0.25);
  background: rgba(13, 148, 136, 0.06);
}

.hp-footer__col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hero-text-muted);
  margin-bottom: 16px;
}

.hp-footer__col a {
  display: block;
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--hero-text-secondary);
  text-decoration: none;
  transition: color 0.25s ease;
}

.hp-footer__col a:hover {
  color: var(--hero-indigo);
}

.hp-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
  border-top: 1px solid rgba(13, 148, 136, 0.08);
  font-size: 0.8rem;
  color: var(--hero-text-muted);
}

/* ── Scroll Reveal ── */
.hp-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 0.75s var(--hero-ease),
    transform 0.75s var(--hero-ease);
}

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

.hp-reveal--d1 { transition-delay: 0.08s; }
.hp-reveal--d2 { transition-delay: 0.16s; }
.hp-reveal--d3 { transition-delay: 0.24s; }
.hp-reveal--d4 { transition-delay: 0.32s; }

.hp-cta__buttons {
  margin-top: 28px;
  margin-bottom: 0;
}

/* ── Hero Shell ── */
.hero-premium {
  position: relative;
  min-height: min(600px, calc(100vh - var(--header-h, 60px)));
  min-height: min(600px, calc(100dvh - var(--header-h, 60px)));
  display: flex;
  align-items: center;
  padding: 20px 0 40px;
  overflow: hidden;
  isolation: isolate;
  margin-top: calc(-1 * var(--header-h, 60px));
  padding-top: calc(20px + var(--header-h, 60px));
}

.hero-premium__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 28px;
  align-items: center;
}

/* ── Layered Background ── */
.hero-premium__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.hero-premium__mesh {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 70% 55% at 20% 30%, rgba(251, 191, 36, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(13, 148, 136, 0.16) 0%, transparent 50%),
    radial-gradient(ellipse 55% 60% at 65% 75%, rgba(254, 243, 199, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 45% 40% at 10% 80%, rgba(45, 212, 191, 0.1) 0%, transparent 50%);
  animation: heroMeshShift 20s ease-in-out infinite alternate;
}

@keyframes heroMeshShift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-2%, 1.5%) scale(1.03); }
}

.hero-premium__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  animation: heroOrbFloat 18s ease-in-out infinite;
}

.hero-premium__orb--1 {
  width: 520px;
  height: 520px;
  top: -12%;
  right: -8%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, transparent 70%);
}

.hero-premium__orb--2 {
  width: 420px;
  height: 420px;
  bottom: -8%;
  left: -6%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.28) 0%, transparent 70%);
  animation-delay: -6s;
}

.hero-premium__orb--3 {
  width: 280px;
  height: 280px;
  top: 35%;
  left: 42%;
  background: radial-gradient(circle, rgba(254, 243, 199, 0.45) 0%, transparent 70%);
  animation-delay: -12s;
}

@keyframes heroOrbFloat {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(24px, -18px); }
  66% { transform: translate(-16px, 12px); }
}

.hero-premium__grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(13, 148, 136, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 148, 136, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
}

.hero-premium__chars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-premium__chars span {
  position: absolute;
  font-family: var(--hero-font-cn);
  font-weight: 700;
  color: var(--hero-indigo);
  opacity: 0.035;
  user-select: none;
  animation: heroCharDrift 25s ease-in-out infinite;
}

.hero-premium__chars span:nth-child(1) { font-size: 8rem; top: 8%; left: 4%; animation-delay: 0s; }
.hero-premium__chars span:nth-child(2) { font-size: 6rem; top: 55%; left: 12%; animation-delay: -4s; }
.hero-premium__chars span:nth-child(3) { font-size: 9rem; top: 15%; right: 8%; animation-delay: -8s; }
.hero-premium__chars span:nth-child(4) { font-size: 5rem; bottom: 18%; right: 22%; animation-delay: -12s; }
.hero-premium__chars span:nth-child(5) { font-size: 7rem; bottom: 8%; left: 38%; animation-delay: -16s; }
.hero-premium__chars span:nth-child(6) { font-size: 4.5rem; top: 38%; left: 55%; animation-delay: -20s; }

@keyframes heroCharDrift {
  0%, 100% { transform: translateY(0); opacity: 0.035; }
  50% { transform: translateY(-12px); opacity: 0.05; }
}

.hero-premium__panel {
  position: absolute;
  border-radius: var(--hero-radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.15) 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 32px rgba(13, 148, 136, 0.06);
}

.hero-premium__panel--1 {
  width: 180px;
  height: 120px;
  top: 12%;
  right: 18%;
  transform: rotate(8deg);
  animation: heroPanelFloat 14s ease-in-out infinite;
}

.hero-premium__panel--2 {
  width: 140px;
  height: 90px;
  bottom: 20%;
  left: 8%;
  transform: rotate(-6deg);
  animation: heroPanelFloat 16s ease-in-out infinite reverse;
}

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

.hero-premium__particles {
  position: absolute;
  inset: 0;
}

.hero-premium__dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--hero-indigo);
  opacity: 0.25;
  box-shadow: 0 0 8px rgba(13, 148, 136, 0.4);
  animation: heroDotPulse 4s ease-in-out infinite;
}

.hero-premium__dot:nth-child(1) { top: 22%; left: 28%; animation-delay: 0s; }
.hero-premium__dot:nth-child(2) { top: 68%; left: 18%; animation-delay: -1.2s; }
.hero-premium__dot:nth-child(3) { top: 42%; right: 32%; animation-delay: -2.4s; }
.hero-premium__dot:nth-child(4) { top: 78%; right: 12%; animation-delay: -0.8s; }
.hero-premium__dot:nth-child(5) { top: 12%; right: 42%; animation-delay: -3s; }

@keyframes heroDotPulse {
  0%, 100% { opacity: 0.15; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(1.4); }
}

.hero-premium__glow {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.1) 0%, transparent 70%);
  pointer-events: none;
  z-index: 1;
  transform: translate(-50%, -50%);
  transition: left 0.5s var(--hero-ease), top 0.5s var(--hero-ease);
  will-change: left, top;
}

/* ── Left Content ── */
.hero-premium__content {
  position: relative;
  z-index: 2;
}

.hero-premium__pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.92) 0%, rgba(250, 248, 245, 0.88) 100%);
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hero-indigo-deep);
  box-shadow: var(--hero-shadow-sm);
  animation: heroFadeUp 0.8s var(--hero-ease) 0.05s backwards;
}

.hero-premium__pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hero-gradient);
  animation: heroDotBreath 2.5s ease-in-out infinite;
}

@keyframes heroDotBreath {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4); }
  50% { opacity: 0.7; box-shadow: 0 0 0 6px rgba(13, 148, 136, 0); }
}

.hero-premium__headline {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--hero-text);
  animation: heroFadeUp 0.8s var(--hero-ease) 0.12s backwards;
}

.hero-premium__line {
  display: block;
}

.hero-premium__line--accent {
  display: block;
  color: var(--hero-indigo-deep);
  background: var(--hero-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-premium__sub {
  font-size: clamp(0.95rem, 1.6vw, 1.0625rem);
  line-height: 1.6;
  color: var(--hero-text-secondary);
  max-width: 380px;
  margin-bottom: 22px;
  animation: heroFadeUp 0.8s var(--hero-ease) 0.2s backwards;
}

.hero-premium__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
  animation: heroFadeUp 0.8s var(--hero-ease) 0.28s backwards;
}

.hero-premium__paths {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  font-family: var(--hero-font-sans, "IBM Plex Sans", system-ui, sans-serif);
  font-size: 13px;
  color: var(--hero-text-secondary);
  animation: heroFadeUp 0.8s var(--hero-ease) 0.34s backwards;
}

.hero-premium__paths a {
  color: var(--hero-accent-deep, #0f766e);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 1px solid color-mix(in srgb, var(--hero-accent, #0d9488) 35%, transparent);
  transition: color 0.2s ease, border-color 0.2s ease;
}

.hero-premium__paths a:hover {
  color: var(--hero-coral, #ea580c);
  border-bottom-color: color-mix(in srgb, var(--hero-coral, #ea580c) 50%, transparent);
}

.hero-premium__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: var(--hero-radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition:
    transform 0.35s var(--hero-spring),
    box-shadow 0.35s var(--hero-ease),
    background 0.3s ease;
}

.hero-premium__btn--primary {
  background: var(--hero-gradient);
  background-color: var(--hero-indigo);
  color: #fff !important;
  box-shadow: var(--hero-shadow), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.hero-premium__btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--hero-shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.hero-premium__btn--primary:active {
  transform: translateY(-1px) scale(0.98);
}

.hero-premium__btn--glass {
  background: rgba(255, 255, 255, 0.88);
  color: var(--hero-indigo-deep);
  border: 1px solid rgba(13, 148, 136, 0.28);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--hero-shadow-sm);
}

.hero-premium__btn--glass:hover {
  transform: translateY(-3px);
  background: var(--hero-glass-strong);
  border-color: rgba(13, 148, 136, 0.22);
  box-shadow: var(--hero-shadow);
}

.hero-premium__btn--glass:active {
  transform: translateY(-1px) scale(0.98);
}

.hero-premium__trust {
  font-size: 13px;
  color: var(--hero-text-muted);
  margin-bottom: 0;
  letter-spacing: 0.01em;
  animation: heroFadeUp 0.8s var(--hero-ease) 0.36s backwards;
}

.hero-premium__metrics {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  animation: heroFadeUp 0.8s var(--hero-ease) 0.44s backwards;
}

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

.hero-premium__metric-value {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--hero-text);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.hero-premium__metric-value small {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hero-indigo);
}

.hero-premium__metric-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--hero-text-muted);
  letter-spacing: 0.02em;
}

.hero-premium__metric-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(13, 148, 136, 0.15), transparent);
}

/* ── Right Scene — content spotlight (reading / grammar) ── */
.hero-premium__scene {
  position: relative;
  width: 100%;
  max-width: 440px;
  height: 380px;
  min-height: 340px;
  margin-left: auto;
  perspective: 1000px;
  animation: heroFadeIn 1s var(--hero-ease) 0.2s backwards;
}

.hero-premium__scene--spotlight {
  display: flex;
  align-items: stretch;
  perspective: none;
}

.hero-premium__scene--spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 28px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.55) 0%, rgba(250, 248, 245, 0.2) 100%),
    radial-gradient(ellipse 80% 70% at 30% 20%, rgba(153, 246, 228, 0.35) 0%, transparent 60%);
  border: 1px solid rgba(13, 148, 136, 0.14);
  pointer-events: none;
}

.hero-premium__scene--spotlight::after {
  content: none;
}

.hero-spotlight {
  position: absolute;
  inset: 18px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 4vw, 40px);
  color: inherit;
  text-decoration: none;
  border-radius: 22px;
  background: color-mix(in srgb, #fffdf8 88%, transparent);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.45s var(--hero-ease), transform 0.45s var(--hero-ease);
}

.hero-spotlight.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.hero-spotlight__mode {
  display: block;
  margin-bottom: 18px;
  font-family: var(--hero-font-sans, "IBM Plex Sans", system-ui, sans-serif);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hero-accent-deep, #0f766e);
}

.hero-spotlight__zh {
  margin: 0;
  font-family: var(--hero-font-cn, "Noto Sans SC", "Microsoft YaHei", sans-serif);
  font-size: clamp(22px, 2.6vw, 28px);
  font-weight: 600;
  line-height: 1.55;
  letter-spacing: 0.02em;
  color: var(--hero-text, #1c1917);
}

.hero-spotlight__zh--pattern {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: var(--hero-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-spotlight__meta {
  margin: 14px 0 0;
  max-width: 28em;
  font-size: 15px;
  line-height: 1.5;
  color: var(--hero-text-secondary);
}

.hero-spotlight__go {
  margin-top: 28px;
  font-family: var(--hero-font-sans, "IBM Plex Sans", system-ui, sans-serif);
  font-size: 14px;
  font-weight: 700;
  color: var(--hero-coral, #ea580c);
}

.hero-spotlight__dots {
  position: absolute;
  left: 50%;
  bottom: 28px;
  z-index: 3;
  display: flex;
  gap: 6px;
  transform: translateX(-50%);
  pointer-events: none;
}

.hero-spotlight__dots i {
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: rgba(13, 148, 136, 0.22);
}

.hero-spotlight__dots i.is-active {
  background: var(--hero-accent, #0d9488);
}

.hero-premium__scene:not(.hero-premium__scene--spotlight)::before {
  content: '';
  position: absolute;
  inset: 5% 0;
  border-radius: 36px;
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(153, 246, 228, 0.45) 0%, transparent 65%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.5) 0%, rgba(250, 248, 245, 0.25) 100%);
  border: 1px solid rgba(13, 148, 136, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  pointer-events: none;
}

.hero-premium__scene:not(.hero-premium__scene--spotlight)::after {
  content: '学习';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--hero-font-cn);
  font-size: 9rem;
  font-weight: 700;
  color: var(--hero-indigo);
  opacity: 0.04;
  pointer-events: none;
  letter-spacing: 0.2em;
}

.hero-scene__card {
  position: absolute;
  transition: transform 0.45s var(--hero-ease);
  will-change: transform;
}

.hero-scene__card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 248, 245, 0.82) 100%);
  border: 1px solid rgba(13, 148, 136, 0.2);
  border-radius: var(--hero-radius);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  box-shadow: var(--hero-shadow);
  transition: box-shadow 0.4s var(--hero-ease), transform 0.5s var(--hero-spring);
}

.hero-scene__card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.5) 0%, transparent 45%);
  pointer-events: none;
}

.hero-scene__card:hover .hero-scene__card-inner {
  box-shadow: var(--hero-shadow-lg);
  transform: translateY(-6px);
}

/* Main character card */
.hero-scene__card--char {
  width: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
}

.hero-scene__card--char .hero-scene__card-inner {
  padding: 32px 28px;
  text-align: center;
  transform: rotate(-2deg);
  animation: heroCardFloat1 7s ease-in-out infinite;
}

.hero-scene__card--char .hero-scene__hanzi {
  display: block;
  font-family: var(--hero-font-cn);
  font-size: 4rem;
  font-weight: 700;
  line-height: 1;
  color: var(--hero-indigo-deep);
  background: var(--hero-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
  transition: opacity 0.35s var(--hero-ease), transform 0.35s var(--hero-ease);
}

[data-hero-pinyin],
[data-hero-meaning],
[data-hero-sentence],
[data-hero-sentence-vi],
[data-hero-hsk] {
  transition: opacity 0.35s var(--hero-ease), transform 0.35s var(--hero-ease);
}

.hero-scene__card--char .hero-scene__label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hero-text-muted);
}

/* Pinyin card */
.hero-scene__card--pinyin {
  width: 130px;
  top: 14%;
  left: 6%;
  z-index: 4;
}

.hero-scene__card--pinyin .hero-scene__card-inner {
  padding: 16px 18px;
  transform: rotate(-8deg);
  animation: heroCardFloat2 8s ease-in-out infinite;
}

.hero-scene__card--pinyin .hero-scene__pinyin {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hero-indigo-deep);
  letter-spacing: 0.02em;
}

.hero-scene__card--pinyin .hero-scene__tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-text-muted);
  margin-bottom: 4px;
}

/* Meaning card */
.hero-scene__card--meaning {
  width: 145px;
  top: 12%;
  right: 4%;
  z-index: 4;
}

.hero-scene__card--meaning .hero-scene__card-inner {
  padding: 18px 20px;
  transform: rotate(6deg);
  animation: heroCardFloat3 9s ease-in-out infinite;
}

.hero-scene__card--meaning .hero-scene__meaning {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--hero-text);
}

.hero-scene__card--meaning .hero-scene__tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-text-muted);
  margin-bottom: 6px;
}

/* Sentence card */
.hero-scene__card--sentence {
  width: 210px;
  bottom: 16%;
  left: 2%;
  z-index: 3;
}

.hero-scene__card--sentence .hero-scene__card-inner {
  padding: 18px 20px;
  transform: rotate(4deg);
  animation: heroCardFloat4 10s ease-in-out infinite;
}

.hero-scene__card--sentence .hero-scene__sentence-cn {
  display: block;
  font-family: var(--hero-font-cn);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--hero-text);
  margin-bottom: 6px;
  line-height: 1.4;
}

.hero-scene__card--sentence .hero-scene__sentence-vi {
  font-size: 12px;
  color: var(--hero-text-secondary);
  line-height: 1.5;
}

/* HSK badge */
.hero-scene__card--hsk {
  width: 76px;
  height: 76px;
  top: 4%;
  right: 30%;
  z-index: 6;
}

.hero-scene__card--hsk .hero-scene__card-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 12px;
  background: var(--hero-gradient);
  border: none;
  color: #fff;
  transform: rotate(12deg);
  animation: heroCardFloat5 6s ease-in-out infinite;
}

.hero-scene__card--hsk .hero-scene__hsk-level {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
}

.hero-scene__card--hsk .hero-scene__hsk-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  opacity: 0.85;
  margin-top: 2px;
}

/* Progress card */
.hero-scene__card--progress {
  width: 175px;
  bottom: 8%;
  right: 2%;
  z-index: 4;
}

.hero-scene__card--progress .hero-scene__card-inner {
  padding: 18px 20px;
  transform: rotate(-5deg);
  animation: heroCardFloat6 8.5s ease-in-out infinite;
}

.hero-scene__progress-bar {
  height: 6px;
  background: rgba(13, 148, 136, 0.12);
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 8px;
}

.hero-scene__progress-fill {
  height: 100%;
  width: 68%;
  background: var(--hero-gradient);
  border-radius: 999px;
  animation: heroProgressBreath 3s ease-in-out infinite;
}

@keyframes heroProgressBreath {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

.hero-scene__progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--hero-text-secondary);
}

.hero-scene__progress-text strong {
  color: var(--hero-indigo-deep);
}

/* Review reminder */
.hero-scene__card--review {
  width: 120px;
  top: 44%;
  right: -2%;
  z-index: 3;
}

.hero-scene__card--review .hero-scene__card-inner {
  padding: 14px 16px;
  transform: rotate(-4deg);
  animation: heroCardFloat7 7.5s ease-in-out infinite;
  border-color: rgba(45, 212, 191, 0.2);
}

.hero-scene__card--review .hero-scene__review-time {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--hero-indigo-deep);
  line-height: 1;
}

.hero-scene__card--review .hero-scene__tag {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--hero-text-muted);
  margin-bottom: 4px;
}

/* Streak */
.hero-scene__card--streak {
  width: 108px;
  bottom: 32%;
  left: 14%;
  z-index: 2;
}

.hero-scene__card--streak .hero-scene__card-inner {
  padding: 14px 16px;
  text-align: center;
  transform: rotate(-10deg);
  animation: heroCardFloat8 9.5s ease-in-out infinite;
}

.hero-scene__streak-num {
  font-size: 2rem;
  font-weight: 800;
  background: var(--hero-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.hero-scene__streak-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--hero-text-muted);
  margin-top: 2px;
}

/* Queue */
.hero-scene__card--queue {
  width: 130px;
  bottom: 2%;
  left: 26%;
  z-index: 2;
}

.hero-scene__card--queue .hero-scene__card-inner {
  padding: 14px 16px;
  transform: rotate(3deg);
  animation: heroCardFloat9 11s ease-in-out infinite;
}

.hero-scene__queue-count {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hero-text);
}

.hero-scene__queue-label {
  font-size: 11px;
  color: var(--hero-text-muted);
  font-weight: 500;
}

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

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

@keyframes heroCardFloat3 {
  0%, 100% { transform: rotate(6deg) translateY(0); }
  50% { transform: rotate(6deg) translateY(-12px); }
}

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

@keyframes heroCardFloat5 {
  0%, 100% { transform: rotate(12deg) translateY(0); }
  50% { transform: rotate(12deg) translateY(-10px); }
}

@keyframes heroCardFloat6 {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-11px); }
}

@keyframes heroCardFloat7 {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-9px); }
}

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

@keyframes heroCardFloat9 {
  0%, 100% { transform: rotate(3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-10px); }
}

@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes heroFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── Dark theme — cards, tags, hero, footer ── */
[data-theme="dark"] .hp-section-head__pill {
  background: rgba(45, 212, 191, 0.1);
  border: 1px solid rgba(45, 212, 191, 0.2);
  color: #5eead4;
}

[data-theme="dark"] .hp-tool {
  background: linear-gradient(160deg, rgba(41, 37, 36, 0.96) 0%, rgba(28, 25, 23, 0.9) 100%);
  border-color: rgba(168, 162, 158, 0.14);
}

[data-theme="dark"] .hp-tool::before {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.06) 0%, transparent 42%);
}

[data-theme="dark"] .hp-tool--compact .hp-tool__visual {
  background: rgba(13, 148, 136, 0.12);
  border-color: rgba(45, 212, 191, 0.18);
}

[data-theme="dark"] .hp-tool--accent-coral .hp-tool__visual {
  background: radial-gradient(ellipse 85% 75% at 50% 25%, rgba(251, 146, 60, 0.22) 0%, rgba(41, 37, 36, 0.5) 100%);
}

[data-theme="dark"] .hp-tool--accent-teal .hp-tool__visual {
  background: radial-gradient(ellipse 85% 75% at 50% 25%, rgba(45, 212, 191, 0.2) 0%, rgba(41, 37, 36, 0.5) 100%);
}

[data-theme="dark"] .hp-tool--accent-amber .hp-tool__visual {
  background: radial-gradient(ellipse 85% 75% at 50% 25%, rgba(251, 191, 36, 0.2) 0%, rgba(41, 37, 36, 0.5) 100%);
}

[data-theme="dark"] .hp-tool--tint-emerald .hp-tool__visual { background: rgba(16, 185, 129, 0.14); border-color: rgba(52, 211, 153, 0.28); }
[data-theme="dark"] .hp-tool--tint-sky .hp-tool__visual { background: rgba(59, 130, 246, 0.14); border-color: rgba(96, 165, 250, 0.28); }
[data-theme="dark"] .hp-tool--tint-rose .hp-tool__visual { background: rgba(244, 63, 94, 0.14); border-color: rgba(251, 113, 133, 0.28); }
[data-theme="dark"] .hp-tool--tint-blue .hp-tool__visual { background: rgba(14, 165, 233, 0.14); border-color: rgba(56, 189, 248, 0.28); }
[data-theme="dark"] .hp-tool--tint-purple .hp-tool__visual { background: rgba(168, 85, 247, 0.14); border-color: rgba(192, 132, 252, 0.28); }
[data-theme="dark"] .hp-tool--tint-slate .hp-tool__visual { background: rgba(148, 163, 184, 0.12); border-color: rgba(148, 163, 184, 0.24); }
[data-theme="dark"] .hp-tool--tint-orange .hp-tool__visual { background: rgba(249, 115, 22, 0.14); border-color: rgba(251, 146, 60, 0.28); }

[data-theme="dark"] .hp-badge {
  background: rgba(45, 212, 191, 0.16);
  color: #5eead4;
}

[data-theme="dark"] .hp-badge--beta {
  background: rgba(45, 212, 191, 0.18);
  color: #99f6e4;
}

[data-theme="dark"] .hp-badge--dev {
  background: rgba(251, 191, 36, 0.16);
  color: #fcd34d;
}

[data-theme="dark"] .hp-level {
  background: rgba(41, 37, 36, 0.92);
  border-color: rgba(45, 212, 191, 0.14);
}

[data-theme="dark"] .hp-level::before {
  opacity: 0.08;
}

[data-theme="dark"] .hp-feature {
  background: rgba(41, 37, 36, 0.92);
  border-color: rgba(45, 212, 191, 0.14);
}

[data-theme="dark"] .hp-feature::before {
  opacity: 0.1;
}

[data-theme="dark"] .hp-cta {
  background: rgba(41, 37, 36, 0.94);
  border-color: rgba(45, 212, 191, 0.16);
}

[data-theme="dark"] .hp-footer__social a {
  background: rgba(41, 37, 36, 0.9);
  border-color: rgba(45, 212, 191, 0.14);
  color: var(--hero-text-secondary);
}

[data-theme="dark"] .hp-footer__social a:hover {
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.28);
  background: rgba(13, 148, 136, 0.12);
}

[data-theme="dark"] .hp-footer__col a:hover {
  color: #5eead4;
}

[data-theme="dark"] .hp-footer__bottom {
  border-top-color: rgba(45, 212, 191, 0.1);
  color: var(--hero-text-muted);
}

[data-theme="dark"] .hero-premium__pill {
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.95) 0%, rgba(28, 25, 23, 0.9) 100%);
  border-color: rgba(45, 212, 191, 0.22);
  color: #5eead4;
}

[data-theme="dark"] .hero-premium__btn--glass {
  background: rgba(41, 37, 36, 0.88);
  color: #5eead4;
  border-color: rgba(45, 212, 191, 0.24);
}

[data-theme="dark"] .hero-premium__btn--glass:hover {
  background: rgba(41, 37, 36, 0.98);
  border-color: rgba(45, 212, 191, 0.32);
}

[data-theme="dark"] .hero-premium__mesh {
  background:
    radial-gradient(ellipse 70% 55% at 20% 30%, rgba(13, 148, 136, 0.12) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse 55% 60% at 65% 75%, rgba(45, 212, 191, 0.08) 0%, transparent 55%);
}

[data-theme="dark"] .hero-premium__orb { opacity: 0.28; }

[data-theme="dark"] .hero-premium__panel {
  background: linear-gradient(135deg, rgba(41, 37, 36, 0.55) 0%, rgba(28, 25, 23, 0.2) 100%);
  border-color: rgba(45, 212, 191, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

[data-theme="dark"] .hero-premium__scene::before {
  background:
    radial-gradient(ellipse 80% 70% at 50% 50%, rgba(13, 148, 136, 0.18) 0%, transparent 65%),
    linear-gradient(145deg, rgba(41, 37, 36, 0.65) 0%, rgba(28, 25, 23, 0.35) 100%);
  border-color: rgba(45, 212, 191, 0.14);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

[data-theme="dark"] .hero-spotlight {
  background: color-mix(in srgb, #1c1916 90%, transparent);
}

[data-theme="dark"] .hero-spotlight__zh {
  color: #faf7f2;
}

[data-theme="dark"] .hero-scene__card-inner {
  background: linear-gradient(160deg, rgba(41, 37, 36, 0.96) 0%, rgba(28, 25, 23, 0.88) 100%);
  border-color: rgba(45, 212, 191, 0.18);
}

[data-theme="dark"] .hero-scene__card-inner::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, transparent 45%);
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .hp-tools__primary {
    grid-template-columns: 1fr;
  }

  .hp-tool--hero {
    min-height: 0;
    flex-direction: row;
    align-items: center;
  }

  .hp-tool--hero .hp-tool__visual {
    padding: 20px 8px 20px 20px;
    flex-shrink: 0;
  }

  .hp-tool--hero .hp-tool__visual img {
    width: 96px;
    height: 96px;
  }

  .hp-tool--hero .hp-tool__body {
    padding: 20px 48px 20px 8px;
  }

  .hp-tools__more {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-levels {
    grid-template-columns: repeat(3, 1fr);
  }

  .hp-cta {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 32px;
  }

  .hp-cta__sub {
    margin: 0 auto;
  }

  .hp-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .hp-section {
    padding: 64px 0;
  }

  .hp-container {
    padding: 0 20px;
  }

  .hp-tools__more {
    grid-template-columns: 1fr;
  }

  .hp-tool--compact {
    min-height: 76px;
    padding: 14px 16px;
  }

  .hp-features {
    grid-template-columns: 1fr;
  }

  .hp-levels {
    grid-template-columns: repeat(2, 1fr);
  }

  .hp-footer__grid {
    grid-template-columns: 1fr;
  }

  .hp-footer__bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 1100px) {
  .hero-premium__inner {
    grid-template-columns: 1fr;
    gap: 56px;
    text-align: center;
  }

  .hero-premium__sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-premium__actions {
    justify-content: center;
  }

  .hero-premium__paths {
    justify-content: center;
  }

  .hero-premium__metrics {
    justify-content: center;
  }

  .hero-premium__scene {
    max-width: 520px;
    margin: 0 auto;
    height: 420px;
    min-height: 360px;
  }
}

@media (max-width: 640px) {
  .hero-premium {
    padding: 32px 0 48px;
    min-height: auto;
  }

  .hero-premium__inner {
    padding: 0 20px;
    gap: 40px;
  }

  .hero-premium__headline {
    font-size: clamp(2.25rem, 9vw, 3rem);
  }

  .hero-premium__actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-premium__btn {
    width: 100%;
  }

  .hero-premium__scene {
    height: 380px;
    min-height: 340px;
    transform: scale(0.88);
    transform-origin: top center;
  }

  .hero-premium__glow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-premium__mesh,
  .hero-premium__orb,
  .hero-premium__chars span,
  .hero-premium__panel,
  .hero-premium__dot,
  .hero-scene__card,
  .hero-scene__progress-fill,
  .hero-premium__pill-dot {
    animation: none !important;
  }

  .hero-premium__content > *,
  .hero-premium__scene {
    animation: none !important;
  }
}
