/* DingdongBot — clean white / sharp blue, minimal tech */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f9fc;
  --bg-card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --line-strong: #cbd5e1;
  --accent: #2563eb;
  --accent-deep: #1d4ed8;
  --accent-soft: #eff6ff;
  --shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 24px rgba(15, 23, 42, 0.04);
  --radius: 14px;
  --max: 1320px;
  --font: "Inter", "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
.wrap { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 700; letter-spacing: -0.03em; font-size: 1.05rem;
  display: flex; align-items: center; gap: .5rem;
}
.brand-mark {
  width: 20px; height: 20px; border-radius: 5px;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}
.brand-logo {
  width: 32px; height: 32px;
  object-fit: contain;
  display: block;
  border-radius: 8px;
  background: #fff;
}
.brand span { color: var(--muted); font-weight: 500; font-size: .9rem; }
.nav nav { display: flex; align-items: center; gap: 1.35rem; }
.nav nav a { color: var(--muted); font-size: .9rem; transition: color .15s; }
.nav nav a:hover { color: var(--accent-deep); }
.nav nav a.is-active {
  color: var(--accent-deep);
  font-weight: 650;
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent);
  color: #fff !important;
  border-radius: 9px; padding: .7rem 1.25rem;
  font-weight: 600; font-size: .9rem;
  border: 1px solid var(--accent-deep);
  box-shadow: 0 1px 2px rgba(29, 78, 216, 0.2);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--accent-deep); }
.btn-sm { padding: .4rem .9rem; font-size: .82rem; border-radius: 8px; }
.btn-ghost {
  background: #fff;
  color: var(--accent-deep) !important;
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn-ghost:hover { background: var(--accent-soft); border-color: #93c5fd; }

.btn-soft {
  background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
  color: var(--accent-deep) !important;
  border: 1px solid #93c5fd;
  box-shadow: 0 1px 0 rgba(255,255,255,0.8) inset, 0 4px 12px rgba(37, 99, 235, 0.08);
}
.btn-soft:hover {
  background: linear-gradient(180deg, #eff6ff 0%, #dbeafe 100%);
  border-color: #60a5fa;
}
.hero-actions .btn,
.hero-actions .btn-soft,
.hero-actions .btn-ghost {
  min-width: 9.5rem;
}
@media (max-width: 520px) {
  .hero-actions { gap: .55rem; }
  .hero-actions .btn,
  .hero-actions .btn-soft,
  .hero-actions .btn-ghost {
    min-width: 0;
    flex: 1 1 auto;
    padding-left: .9rem;
    padding-right: .9rem;
  }
}
.btn-block { width: 100%; margin-top: 1.25rem; }

.nav-auth {
  font-weight: 600 !important;
  color: var(--accent-deep) !important;
}
.nav-auth:hover { color: var(--accent) !important; }

/* Hero */
.hero {
  padding: 3.2rem 0 2.4rem;
  text-align: center;
  position: relative;
  background:
    linear-gradient(180deg, #f8fbff 0%, #ffffff 55%);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  pointer-events: none;
}
.hero > .wrap { position: relative; z-index: 2; }
.hero::before { z-index: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  color: var(--accent-deep);
  font-size: .76rem; font-weight: 650; letter-spacing: .1em; text-transform: uppercase;
  margin-bottom: 1.15rem;
  padding: .3rem .75rem;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #fff;
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  animation: node-pulse 2.4s ease-in-out infinite;
}
@keyframes node-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .55; transform: scale(0.85); }
}
.hero h1 {
  font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.12; letter-spacing: -0.04em; font-weight: 760;
  margin-bottom: .72rem;
  color: var(--text);
}
.lead {
  max-width: 28rem; margin: 0 auto 1.2rem;
  color: var(--muted); font-size: .98rem;
}
.hero-actions { display: flex; gap: .75rem; justify-content: center; flex-wrap: wrap; }


/* Hero showcase — product | stacked videos (same row, equal height) */
.hero-showcase {
  margin: 1.55rem auto 0;
  width: 100%;
  max-width: 1100px;
  display: grid;
  grid-template-columns: minmax(0, 1.42fr) minmax(250px, 360px);
  gap: .9rem 1.1rem;
  align-items: stretch;
  justify-content: center;
  text-align: left;
}
.hero-product {
  margin: 0;
  max-width: none;
  min-width: 0;
  min-height: 0;
  height: auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  /* image is abs-pos'd so it won't inflate row height; right column wins */
  overflow: hidden;
}
.hero-product-frame {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  padding: 1rem 1rem .85rem;
  border-radius: 16px;
  border: 1px solid #dbe5f2;
  background:
    linear-gradient(180deg, #eef5ff 0%, #f5f9ff 42%, #f7faff 100%);
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.03),
    0 16px 36px rgba(37, 99, 235, 0.08);
  box-sizing: border-box;
}
.hero-product-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}
.hero-product img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  border-radius: 10px;
  border: 0;
  box-shadow: none;
  background: transparent;
}
.hero-product-caption {
  margin: 0;
  flex: 0 0 auto;
  font-size: .76rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  text-align: center;
}

/* Promo videos — click to play */
.home-videos,
.page-videos {
  padding: 2.75rem 0 1.25rem;
}
.home-videos .section-head,
.page-videos .section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.hero-showcase .promo-video-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: .72rem;
  min-height: 0;
  align-content: start;
  align-self: stretch;
  width: 100%;
  height: max-content; /* intrinsic height drives the showcase row */
}
.hero-showcase .promo-video-card {
  padding: .55rem .6rem .6rem;
  display: flex;
  flex-direction: column;
  min-height: 0;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02), 0 8px 18px rgba(15, 23, 42, 0.03);
}
.hero-showcase .promo-video-card h3 {
  font-size: .86rem;
  margin-bottom: .45rem;
  letter-spacing: -0.01em;
}
.hero-showcase .promo-video-desc {
  display: none;
}
.hero-showcase .promo-video-frame {
  border-radius: 10px;
}
.hero-showcase .promo-play-btn {
  width: 48px;
  height: 48px;
}
@media (max-width: 900px) {
  .hero-showcase {
    grid-template-columns: 1fr;
    max-width: 640px;
    gap: .9rem;
    align-items: start;
  }
  .hero-product,
  .hero-product-frame {
    height: auto;
    overflow: visible;
  }
  .hero-product-frame {
    padding: .85rem .85rem .75rem;
  }
  .hero-product-media {
    position: relative;
    flex: 0 0 auto;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }
  .hero-product img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  .hero-showcase .promo-video-grid {
    grid-template-columns: 1fr;
    height: auto;
  }
  .hero-showcase .promo-video-desc {
    display: block;
    margin-bottom: .5rem;
    font-size: .8rem;
    line-height: 1.45;
  }
}
.promo-video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.promo-video-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.1rem 1.15rem;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}
.promo-video-card h3 {
  margin: 0 0 .35rem;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}
.promo-video-desc {
  margin: 0 0 .9rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.promo-video-frame {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
}
.promo-video-frame .promo-poster,
.promo-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.promo-video-frame video {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: #000;
}
.promo-video-frame.is-playing .promo-poster,
.promo-video-frame.is-playing .promo-play-btn {
  opacity: 0;
  pointer-events: none;
}
.promo-video-frame.is-playing video {
  opacity: 1;
  pointer-events: auto;
}
.promo-play-btn {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  color: #fff;
  background: rgba(37, 99, 235, 0.92);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.28);
  display: grid;
  place-items: center;
  transition: transform .15s ease, background .15s ease;
}
.promo-play-btn:hover {
  background: var(--accent-deep);
  transform: translate(-50%, -50%) scale(1.04);
}
.promo-play-btn svg { margin-left: 2px; }
@media (max-width: 800px) {
  .promo-video-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .promo-play-btn { width: 56px; height: 56px; }
}



/* Device showcase — compact desktop + phone collage (LightVela spirit, smaller) */
.hero-stage.device-showcase {
  margin: 2.4rem auto 0;
  max-width: 820px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.98) 48%, #fff),
    #fff;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.03),
    0 16px 36px rgba(37, 99, 235, 0.07);
  overflow: hidden;
  text-align: left;
  position: relative;
}
.hero-stage.device-showcase::before,
.hero-stage.device-showcase::after { display: none; }

.device-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  padding: .75rem .85rem 0;
  position: relative;
  z-index: 2;
}
.device-tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: var(--muted);
  padding: .55rem .85rem;
  border-radius: 999px;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.device-tabs button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.8);
}
.device-tabs button.is-active {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 6px 16px rgba(37, 99, 235, 0.1);
}

.device-stage {
  position: relative;
  height: 460px;
  margin: .65rem .85rem .35rem;
  z-index: 1;
}
.device-stage .frame {
  margin: 0;
  position: absolute;
  overflow: hidden;
}
.frame-desktop {
  left: 0;
  top: 12px;
  width: min(78%, 560px);
  border-radius: 14px;
  background: #0b1220;
  border: 1px solid #1e293b;
  box-shadow:
    0 10px 28px rgba(15, 23, 42, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.04) inset;
}
.frame-desktop .frame-chrome {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .42rem .65rem;
  background: linear-gradient(180deg, #1e293b, #0f172a);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}
.frame-desktop .frame-chrome span {
  width: 7px; height: 7px; border-radius: 50%;
  background: #64748b;
}
.frame-desktop .frame-chrome span:nth-child(1) { background: #f87171; }
.frame-desktop .frame-chrome span:nth-child(2) { background: #fbbf24; }
.frame-desktop .frame-chrome span:nth-child(3) { background: #34d399; }
.frame-desktop .frame-chrome em {
  margin-left: .55rem;
  font-style: normal;
  font-size: .68rem;
  color: #94a3b8;
  letter-spacing: 0.02em;
}
.frame-desktop .frame-screen {
  aspect-ratio: 16 / 10;
  background: #020617;
}
.frame-desktop .frame-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
}

.frame-phone {
  right: 1.1rem;
  bottom: 0.35rem;
  width: 168px;
  border-radius: 26px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  box-shadow:
    0 14px 32px rgba(15, 23, 42, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  padding: 10px 8px 14px;
  z-index: 3;
}
.frame-phone .phone-bezel {
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
}
.frame-phone .phone-notch {
  display: block;
  width: 52px;
  height: 8px;
  margin: 4px auto 6px;
  border-radius: 999px;
  background: #0f172a;
  opacity: 0.88;
}
.frame-phone .frame-screen {
  border-radius: 16px;
  overflow: hidden;
  background: #0b1220;
  aspect-ratio: 9 / 17.5;
}
.frame-phone .frame-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.frame-phone .phone-home {
  display: block;
  width: 36%;
  height: 3px;
  margin: 8px auto 0;
  border-radius: 999px;
  background: #cbd5e1;
}

/* Tab focus modes */
.device-stage[data-view-active="desktop"] .frame-phone {
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px) scale(0.96);
}
.device-stage[data-view-active="desktop"] .frame-desktop {
  width: min(94%, 720px);
  left: 50%;
  transform: translateX(-50%);
  top: 18px;
}
.device-stage[data-view-active="mobile"] .frame-desktop {
  opacity: 0.22;
  filter: blur(1px);
  transform: scale(0.98);
}
.device-stage[data-view-active="mobile"] .frame-phone {
  right: 50%;
  transform: translateX(50%);
  width: 188px;
  bottom: 18px;
}
.device-stage .frame {
  transition: opacity .35s ease, transform .35s ease, width .35s ease, left .35s ease, right .35s ease, filter .35s ease;
}

.device-caption {
  margin: 0;
  padding: 0 .95rem 0.85rem;
  font-size: .72rem;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.01em;
}

@media (max-width: 860px) {
  .device-stage { height: 400px; margin: .55rem .65rem .25rem; }
  .frame-desktop { width: min(86%, 520px); }
  .frame-phone { width: 140px; right: .55rem; }
  .device-stage[data-view-active="mobile"] .frame-phone { width: 160px; }
}
@media (max-width: 560px) {
  .device-stage { height: 360px; }
  .frame-desktop { width: 78%; top: 8px; }
  .frame-phone { width: 118px; bottom: 0.15rem; }
  .device-tabs button { font-size: .72rem; padding: .45rem .7rem; }
}
@media (prefers-reduced-motion: reduce) {
  .device-stage .frame { transition: none; }
}

/* Hero capability showcase — New API-like, white/blue minimal */
.hero-stage {
  margin: 2.85rem auto 0;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(255, 255, 255, 0.96) 42%, #fff),
    #fff;
  box-shadow:
    0 1px 0 rgba(15, 23, 42, 0.03),
    0 18px 40px rgba(37, 99, 235, 0.06);
  overflow: hidden;
  text-align: left;
  position: relative;
}
.hero-stage::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 180px; height: 180px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), transparent 68%);
  pointer-events: none;
}
.hero-stage::after {
  content: "";
  position: absolute;
  right: -40px; top: -50px;
  width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.08), transparent 70%);
  pointer-events: none;
}
.carousel-rail {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .4rem;
  padding: .85rem .85rem 0;
  position: relative;
  z-index: 1;
}
.carousel-rail button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  padding: .7rem .75rem .55rem;
  border-radius: 12px;
  color: var(--muted);
  font: inherit;
  transition: background .2s ease, color .2s ease, box-shadow .2s ease;
}
.carousel-rail button:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
}
.carousel-rail button.is-active {
  color: var(--accent-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 8px 20px rgba(37, 99, 235, 0.08);
}
.carousel-rail .rail-label {
  display: block;
  font-size: .78rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.carousel-rail .rail-meter {
  display: block;
  margin-top: .55rem;
  height: 2px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}
.carousel-rail .rail-meter > i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
}
.carousel {
  position: relative;
  min-height: 156px;
  z-index: 1;
}
.carousel-slide {
  position: absolute; inset: 0;
  padding: 1.35rem 1.45rem 1.1rem;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .45s ease, transform .45s ease;
  pointer-events: none;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
}
.carousel-slide.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  position: relative;
}
.slide-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
  background: linear-gradient(160deg, #eff6ff, #dbeafe);
  border: 1px solid #bfdbfe;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.slide-icon svg { width: 22px; height: 22px; }
.slide-kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #3b82f6;
  margin-bottom: .4rem;
}
.slide-body h3 {
  font-size: 1.12rem;
  letter-spacing: -0.03em;
  margin-bottom: .4rem;
  font-weight: 700;
  color: var(--text);
}
.slide-body p {
  color: var(--muted);
  font-size: .94rem;
  line-height: 1.65;
  max-width: 46rem;
}
.carousel-footer {
  display: flex;
  align-items: center;
  gap: .85rem;
  padding: 0 1.2rem 1rem;
  position: relative;
  z-index: 1;
}
.carousel-progress {
  flex: 1;
  height: 2px;
  background: transparent; /* rail meters replace primary progress on desktop */
  border-radius: 999px;
  overflow: hidden;
  display: none;
}
.carousel-progress > span {
  display: block; height: 100%; width: 0%;
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  border-radius: inherit;
}
.carousel-dots {
  display: none;
  gap: .4rem;
}
.carousel-dots button {
  width: 6px; height: 6px; border-radius: 50%;
  border: 0; padding: 0; cursor: pointer;
  background: #cbd5e1;
  transition: background .2s, transform .2s, width .2s;
}
.carousel-dots button.is-active {
  background: var(--accent);
  width: 18px;
  border-radius: 999px;
}

.hero-stats {
  display: flex; justify-content: center; gap: 2.25rem; flex-wrap: wrap;
  margin-top: 2.25rem; padding-top: 1.75rem;
  border-top: 1px solid var(--line);
  max-width: 820px; margin-inline: auto;
}
.hero-stats div { text-align: center; }
.hero-stats strong {
  display: block; font-size: 1.25rem; font-weight: 750; letter-spacing: -0.02em;
}
.hero-stats span { font-size: .78rem; color: var(--muted); }

/* Features */
.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .9rem;
  padding: 2.75rem 0 1.5rem;
}
.feat {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  transition: border-color .15s;
}
.feat:hover { border-color: #93c5fd; }
.feat-icon {
  width: 32px; height: 32px; border-radius: 8px; margin-bottom: .9rem;
  display: flex; align-items: center; justify-content: center;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  color: var(--accent-deep); font-size: .8rem; font-weight: 700;
}
.feat h3 { font-size: 1rem; margin-bottom: .35rem; letter-spacing: -0.02em; }
.feat p { color: var(--muted); font-size: .9rem; }


/* Skills — premium white/blue cards */
.skills {
  padding: 3.75rem 0 3.5rem;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.skills-eyebrow {
  text-align: center;
  color: var(--accent-deep);
  font-size: .72rem;
  font-weight: 650;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: .75rem;
}
.skills h2 {
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
  margin-bottom: .55rem;
  font-weight: 750;
}
.skills .section-desc {
  margin-bottom: 2.25rem;
}
.skill-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .75rem;
}
.skill-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: .95rem 1.05rem;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: .7rem;
  min-height: 0;
  height: auto;
  box-shadow: none;
  transition: border-color .18s, background .18s;
}
.skill-card:hover {
  border-color: #bfdbfe;
  background: #f8fbff;
  box-shadow: none;
  transform: none;
}
.skill-icon {
  width: 22px;
  height: 22px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: #3b82f6;
  flex-shrink: 0;
  margin-top: .12rem;
  opacity: .85;
}
.skill-icon svg {
  width: 20px;
  height: 20px;
  display: block;
  stroke-width: 1.5;
}
.skill-body {
  display: flex;
  flex-direction: column;
  gap: .2rem;
  flex: 1;
  min-width: 0;
}
.skill-body strong {
  font-size: .92rem;
  letter-spacing: -0.015em;
  font-weight: 650;
  color: var(--text);
  line-height: 1.35;
}
.skill-body span {
  color: var(--muted);
  font-size: .8rem;
  line-height: 1.45;
}


/* Models */
.models, .pricing, .cta, .start, .about { padding: 2.5rem 0 3.25rem; }
.models h2, .pricing h2, .cta h2, .start h2, .about h2, .capabilities h2, .channels h2,
.page-title, .home-teasers h2 {
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  letter-spacing: -0.03em; margin-bottom: .55rem; font-weight: 750;
}
.page-title {
  font-size: clamp(1.6rem, 3vw, 2rem);
}
.section-desc {
  text-align: center; color: var(--muted); max-width: 36rem;
  margin: 0 auto 2rem; font-size: .94rem;
}
.section-desc strong { color: var(--accent-deep); font-weight: 650; }
.legal-note {
  text-align: center; color: #94a3b8; font-size: .78rem;
  margin: 1.15rem auto 0; max-width: 40rem;
}

.model-grid {
  list-style: none; display: grid;
  grid-template-columns: repeat(3, 1fr); gap: .85rem;
}
.model-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.15rem 1.15rem 1rem;
  display: flex; flex-direction: column; gap: .75rem;
  transition: border-color .15s, box-shadow .15s;
}
.model-card:hover {
  border-color: #93c5fd;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.06);
}
.model-top {
  display: flex; align-items: center; gap: .75rem;
}
.model-logo {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}
.model-logo img {
  width: 24px; height: 24px; display: block;
  object-fit: contain;
}
.model-logo.is-mono img { filter: none; color: #0f172a; }
.model-name {
  font-weight: 700; font-size: .98rem; letter-spacing: -0.02em;
  line-height: 1.25;
}
.model-sub {
  font-size: .78rem; color: var(--muted); margin-top: .1rem;
}
.model-foot {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: .65rem; border-top: 1px solid var(--line);
  margin-top: auto;
}
.model-tag {
  font-size: .72rem; color: var(--accent-deep); font-weight: 600;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: .15rem .55rem;
}
.model-link {
  font-size: .8rem; font-weight: 600; color: var(--muted);
  display: inline-flex; align-items: center; gap: .25rem;
}
.model-link:hover { color: var(--accent-deep); }
.model-link::after { content: "↗"; font-size: .75rem; }



/* Capabilities section head */
.capabilities {
  padding: 3.25rem 0 1.25rem;
}
.capabilities .section-head {
  text-align: center;
  margin-bottom: 1.75rem;
}
.capabilities .features {
  padding-top: 0;
}

/* Channels */
.channels {
  padding: 3.5rem 0;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.channels h2,
.start h2,
.about h2 {
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
  margin-bottom: .55rem;
  font-weight: 750;
}
.channel-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  margin-top: .25rem;
}
.channel-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  transition: border-color .15s;
  min-height: 0;
}
.channel-card:hover { border-color: #93c5fd; }
.channel-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.channel-card p {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}
.channel-status {
  display: inline-flex;
  align-self: flex-start;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .02em;
  padding: .18rem .55rem;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  color: var(--accent-deep);
}
.channel-status.is-soon {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #c2410c;
}

/* How to start */
.start {
  padding: 3.25rem 0 2.75rem;
}
.start-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem;
  counter-reset: step;
  margin-top: .25rem;
}
.start-steps li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.25rem;
  position: relative;
  counter-increment: step;
}
.start-steps li::before {
  content: counter(step, decimal-leading-zero);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  border-radius: 8px;
  margin-bottom: .85rem;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  color: var(--accent-deep);
  font-size: .8rem;
  font-weight: 700;
}
.start-steps strong {
  display: block;
  font-size: 1rem;
  letter-spacing: -0.02em;
  margin-bottom: .35rem;
}
.start-steps span {
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.55;
}

/* About */
.about {
  padding: 3rem 0 2.5rem;
}
.about-card {
  max-width: 46rem;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem 1.6rem;
  box-shadow: var(--shadow);
}
.about-card p {
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.75;
}
.about-card p + p { margin-top: .85rem; }
.about-card a { color: var(--accent-deep); font-weight: 600; }
.about-card a:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .channel-grid,
  .start-steps { grid-template-columns: 1fr; }
}

/* Enterprise pricing note */
.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  margin: 1.35rem auto 0;
  max-width: 42rem;
  line-height: 1.7;
  padding: .95rem 1.15rem;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
}
.pricing-note strong { color: var(--accent-deep); font-weight: 650; }

/* Pricing — spacious responsive grid */
.pricing.wrap {
  width: min(100% - 2.5rem, 1380px);
}
.price-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.15rem;
  align-items: stretch;
}
.price-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Personal / Enterprise segmented toggle */
.pricing-toggle {
  display: inline-flex;
  align-items: center;
  gap: .2rem;
  margin: 1.15rem auto 1.55rem;
  padding: .28rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
}
.pricing-toggle-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: .92rem;
  font-weight: 650;
  letter-spacing: .01em;
  padding: .62rem 1.35rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
  white-space: nowrap;
}
.pricing-toggle-btn:hover { color: var(--text); }
.pricing-toggle-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pricing-toggle-btn.is-active {
  background: #fff;
  color: var(--accent-deep);
  box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 16px rgba(37, 99, 235, .12);
}
.pricing-panel[hidden],
.pricing-lead[hidden] { display: none !important; }
.pricing-note-soft {
  background: #f8fafc;
  border-color: var(--line);
}
.pricing-note-soft strong { color: var(--accent-deep); }
.badge-map {
  background: #64748b;
}
.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.45rem 1.45rem;
  display: flex; flex-direction: column;
  gap: .15rem;
  min-width: 0;
  box-shadow: var(--shadow);
}
.card-featured {
  border-color: #93c5fd;
  background: linear-gradient(180deg, #f8fbff, #ffffff);
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08), 0 14px 36px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}
.badge {
  position: absolute; top: 1rem; right: 1rem;
  background: var(--accent);
  color: #fff;
  font-size: .7rem; font-weight: 700; letter-spacing: .04em;
  padding: .22rem .55rem; border-radius: 999px;
}
.card h3 { font-size: 1rem; margin-bottom: .5rem; color: var(--muted); font-weight: 650; }
.card-featured h3 { color: var(--accent-deep); }
.price {
  font-size: 2.25rem; font-weight: 760; letter-spacing: -0.04em;
  margin-bottom: .85rem; line-height: 1;
}
.price span:first-child { font-size: 1.05rem; margin-right: .08rem; font-weight: 650; }
.price span:last-child { font-size: .86rem; color: var(--muted); font-weight: 500; margin-left: .15rem; }
.card ul { list-style: none; flex: 1; margin-top: .35rem; }
.card li {
  color: var(--muted); font-size: .86rem; padding: .5rem 0;
  border-top: 1px solid var(--line);
  line-height: 1.45;
}
.card li:first-child { border-top: 0; }
.card li strong { color: var(--text); font-weight: 650; }
.credit {
  margin: 0 0 .15rem;
  padding: .72rem .8rem;
  border-radius: 10px;
  background: var(--accent-soft);
  border: 1px solid #bfdbfe;
  color: var(--accent-deep);
  font-size: .84rem; font-weight: 650;
  text-align: center;
  line-height: 1.35;
}

/* CTA */
.cta {
  text-align: center;
  margin: .5rem auto 1.5rem;
  padding: 2.75rem 2rem !important;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
}
.cta p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.25rem; }
.muted { margin-top: 1rem; font-size: .86rem; color: var(--muted); }

.footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2rem;
  color: var(--muted); font-size: .86rem;
}
.footer-inner {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.footer a { color: var(--muted); }
.footer a:hover { color: var(--accent-deep); }

@media (prefers-reduced-motion: reduce) {
  .carousel-slide { transition: none; }
  .carousel-rail .rail-meter > i { transition: none; }
  .hero-stage::after, .eyebrow::before { animation: none; }
  .hero-danmaku-track { animation: none !important; }
}
@media (max-width: 1100px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .skill-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .features, .model-grid { grid-template-columns: 1fr; }
  .skill-grid { grid-template-columns: repeat(2, 1fr); }
  .nav nav > a:not(.btn):not(.nav-auth) { display: none; }
  .nav-guest { gap: .75rem; }
  .nav-username { max-width: 6.5rem; }
  .hero { padding-top: 3.25rem; }
  .card-featured { transform: none; }
  .hero-stats { gap: 1.25rem; }
  .cta { margin-inline: 1.25rem; padding: 2rem 1.15rem !important; }
  .carousel-rail {
    grid-template-columns: repeat(2, 1fr);
    gap: .35rem;
    padding: .7rem .7rem 0;
  }
  .carousel-rail button { padding: .55rem .6rem .45rem; }
  .carousel-rail .rail-label { font-size: .72rem; }
  .carousel-slide { grid-template-columns: 1fr; gap: .85rem; padding: 1.1rem 1.1rem .9rem; }
  .slide-icon { width: 42px; height: 42px; border-radius: 12px; }
  .carousel-progress { display: block; }
  .carousel-dots { display: flex; }
}

/* Downloads hub */
.downloads {
  padding: 3.75rem 0 3.25rem;
  border-top: 1px solid var(--line);
}
.downloads h2 {
  text-align: center;
  font-size: clamp(1.45rem, 3vw, 1.8rem);
  letter-spacing: -0.03em;
  margin-bottom: .55rem;
  font-weight: 750;
}
.downloads .skills-eyebrow { text-align: center; margin-bottom: .75rem; }
.downloads .section-desc { text-align: center; color: var(--muted); max-width: 40rem; margin: 0 auto 2rem; }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.dl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: .55rem;
  min-height: 100%;
}
.dl-card.featured { border-color: #bfdbfe; background: linear-gradient(180deg, #f8fbff, #fff); }
.dl-os {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep);
}
.dl-card h3 { font-size: 1.05rem; letter-spacing: -0.02em; }
.dl-card p { color: var(--muted); font-size: .88rem; flex: 1; }
.dl-badge {
  display: inline-flex; align-self: flex-start;
  padding: .22rem .55rem; border-radius: 999px;
  font-size: .74rem; font-weight: 650;
  border: 1px solid var(--line);
  background: var(--bg-soft); color: var(--muted);
}
.dl-badge.ready {
  background: var(--accent-soft); border-color: #bfdbfe; color: var(--accent-deep);
}
.dl-badge.soon {
  background: #fff7ed; border-color: #fed7aa; color: #c2410c;
}
.dl-card .btn { margin-top: .35rem; }
.dl-alt {
  display: block; text-align: center;
  font-size: .8rem; color: var(--accent-deep); font-weight: 600;
}
.dl-alt:hover { text-decoration: underline; }
.dl-note {
  margin-top: 1.35rem; text-align: center;
  color: var(--muted); font-size: .84rem;
}
.dl-note a { color: var(--accent-deep); font-weight: 600; }
@media (max-width: 960px) {
  .dl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .dl-grid { grid-template-columns: 1fr; }
}

.btn-disabled,
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
}

/* Pricing responsive: 4 → 2 → 1 */
@media (max-width: 1280px) {
  .price-grid,
  .price-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }
  .card-featured { transform: none; }
}
@media (max-width: 900px) {
  .price-grid,
  .price-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
  .pricing-toggle-btn { padding: .58rem 1.05rem; font-size: .88rem; }
}
@media (max-width: 640px) {
  .price-grid,
  .price-grid-4 {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .card { padding: 1.45rem 1.25rem 1.3rem; }
  .pricing-toggle { width: min(100%, 22rem); }
  .pricing-toggle-btn { flex: 1; text-align: center; padding: .58rem .7rem; }
}

.card-lite {
  border-color: #6ee7b7;
  background: linear-gradient(180deg, #ecfdf5, #ffffff);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08), 0 12px 28px rgba(16, 185, 129, 0.08);
}
.card-lite h3 { color: #047857; }
.badge-lite {
  background: #059669;
}
.card-custom {
  border-color: #c4b5fd;
  background: linear-gradient(180deg, #faf5ff, #fff);
}

.card-custom .price { font-size: 1.85rem; }
.card-custom .price span:first-child { font-size: 1.85rem; margin-right: 0; }


/* Nav logged-in user chip */
.nav-guest {
  display: inline-flex;
  align-items: center;
  gap: 1.35rem;
}
.nav-user {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: .28rem .7rem .28rem .28rem;
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.nav-user-btn:hover,
.nav-user.is-open .nav-user-btn {
  border-color: #93c5fd;
  background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.nav-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.nav-username {
  max-width: 9.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .86rem;
  font-weight: 600;
}
.nav-caret { color: var(--muted); flex-shrink: 0; }
.nav-user-menu {
  position: absolute;
  right: 0; top: calc(100% + 8px);
  min-width: 168px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: .35rem;
  z-index: 50;
  display: grid;
  gap: .15rem;
}
.nav-guest[hidden],
.nav-user[hidden] {
  display: none !important;
}
.nav-user-menu[hidden] { display: none !important; }
.nav-user-menu a,
.nav-user-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: .88rem;
  font-weight: 560;
  color: var(--text);
  padding: .55rem .75rem;
  border-radius: 8px;
  cursor: pointer;
}
.nav-user-menu a:hover,
.nav-user-menu button:hover {
  background: var(--accent-soft);
  color: var(--accent-deep);
}
.nav-user-menu button { color: #b91c1c; }
.nav-user-menu button:hover { background: #fef2f2; color: #991b1b; }

/* Register account type */
.account-type {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
}
.account-type label {
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: .7rem .6rem;
  cursor: pointer;
  font-size: .9rem;
  font-weight: 600;
  background: #fff;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.account-type input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0; height: 0;
}
.account-type label:has(input:checked) {
  border-color: #93c5fd;
  background: var(--accent-soft);
  color: var(--accent-deep);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}
.company-field[hidden] { display: none !important; }




/* Home longer intro */
.home-intro { padding: 3.25rem 0 1.5rem; }
.home-intro .home-cap-grid {
  padding-top: .25rem;
  padding-bottom: .5rem;
  grid-template-columns: repeat(3, 1fr);
}
.home-more {
  text-align: center;
  margin: 1.5rem 0 0;
  font-size: .92rem;
  font-weight: 650;
}
.home-more a { color: var(--accent-deep); }
.home-more a:hover { text-decoration: underline; }
.home-channels { margin-top: 0; }
.home-channels .home-more { margin-top: 1.75rem; }
.home-pricing-cta {
  padding: 3rem 0 1.5rem;
  text-align: center;
}
.home-pricing-cta .section-head { margin-bottom: 1.5rem; }
@media (max-width: 900px) {
  .home-intro .home-cap-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .home-intro .home-cap-grid { grid-template-columns: 1fr; }
}

/* Home teasers (multi-page entry cards) */
.home-teasers { padding: 3rem 0 3.5rem; }
.teaser-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.teaser-card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.2rem 1.15rem;
  box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, box-shadow .15s;
  min-height: 100%;
}
.teaser-card:hover {
  border-color: #93c5fd;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.08);
}
.teaser-kicker {
  color: var(--accent-deep);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.teaser-card h3 {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.teaser-card p {
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.55;
  flex: 1;
}
.teaser-link {
  color: var(--accent-deep);
  font-size: .86rem;
  font-weight: 650;
  margin-top: .25rem;
}
@media (max-width: 980px) {
  .teaser-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .teaser-grid { grid-template-columns: 1fr; }
}


/* ========== Skills Hub (/skills.html) ========== */
.skillhub-page { padding: 2.25rem 0 4rem; background: linear-gradient(180deg, #f8fbff 0%, #fff 18rem); }
.skillhub-hero { text-align: center; max-width: 56rem; margin: 0 auto 1.75rem; }
.skillhub-hero .skills-eyebrow { margin-bottom: .65rem; }
.skillhub-hero h1 {
  font-size: clamp(1.7rem, 3.2vw, 2.15rem);
  letter-spacing: -0.035em;
  font-weight: 750;
  margin-bottom: .65rem;
}
.skillhub-hero .section-desc { margin: 0 auto; max-width: 36rem; }
.skillhub-meta {
  display: flex; flex-wrap: wrap; gap: .5rem; justify-content: center;
  margin: .85rem 0 0; color: var(--muted); font-size: .85rem;
}
.skillhub-meta strong { color: var(--ink); font-weight: 700; }
.skillhub-tabs {
  display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center;
  margin: 1.15rem auto 0; max-width: 64rem;
  padding: .2rem;
}
.skillhub-tab {
  appearance: none; -webkit-appearance: none;
  font: inherit; font-size: .8rem; font-weight: 650; letter-spacing: -0.01em;
  color: #334155;
  background: rgba(255,255,255,.88);
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: .42rem .88rem;
  cursor: pointer;
  line-height: 1.2;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s;
  box-shadow: 0 1px 0 rgba(15,23,42,.02);
}
.skillhub-tab:hover {
  background: #f8fbff;
  border-color: #93c5fd;
  color: #1e3a8a;
}
.skillhub-tab:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(37,99,235,.18);
  border-color: #60a5fa;
}
.skillhub-tab.is-active {
  color: #fff;
  background: linear-gradient(180deg, #3b82f6, #2563eb);
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(37,99,235,.22);
}
.skillhub-tab.is-active:hover {
  color: #fff;
  background: linear-gradient(180deg, #2563eb, #1d4ed8);
  border-color: transparent;
}
/* keep legacy class harmless if any leftover markup */
.skillhub-cat-nav {
  display: flex; flex-wrap: wrap; gap: .45rem; justify-content: center;
  margin: 1.1rem auto 0; max-width: 64rem;
}
.skillhub-search {
  margin: 1.35rem auto 0;
  max-width: 28rem;
  position: relative;
}
.skillhub-search input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 999px;
  padding: .75rem 1.15rem .75rem 2.55rem;
  font-size: .92rem;
  color: var(--text);
  outline: none;
  box-shadow: var(--shadow);
}
.skillhub-search input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.skillhub-search::before {
  content: '⌕';
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 1rem; pointer-events: none;
}
.skillhub-section { margin-top: 1.35rem; }
.skillhub-section-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem; margin-bottom: 1rem;
}
.skillhub-section-head h2 {
  font-size: 1.15rem; letter-spacing: -0.02em; font-weight: 700;
}
.skillhub-section-head span { color: var(--muted); font-size: .82rem; }

.skillhub-featured {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.skillhub-feature-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: border-color .18s, transform .18s;
}
.skillhub-feature-card:hover { border-color: #bfdbfe; transform: translateY(-2px); }

.skillhub-feature-cover {
  height: 168px;
  background:
    radial-gradient(120% 120% at 10% 10%, rgba(255,255,255,.55), transparent 55%),
    linear-gradient(135deg, #dbeafe, #eff6ff 55%, #e2e8f0);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.skillhub-feature-cover[data-tone="content"] { background: linear-gradient(135deg, #fce7f3, #ede9fe 50%, #e0e7ff); }
.skillhub-feature-cover[data-tone="office"] { background: linear-gradient(135deg, #d1fae5, #ccfbf1 50%, #e0f2fe); }
.skillhub-feature-cover[data-tone="growth"] { background: linear-gradient(135deg, #ffedd5, #fef3c7 45%, #fee2e2); }
.skillhub-feature-cover[data-tone="eng"] { background: linear-gradient(135deg, #dbeafe, #bfdbfe 55%, #e0e7ff); }
.skillhub-feature-cover[data-tone="ecommerce"] { background: linear-gradient(135deg, #fce7f3, #ffedd5 50%, #fef3c7); }
.skillhub-feature-cover[data-tone="sales"] { background: linear-gradient(135deg, #ffedd5, #fed7aa 45%, #fecaca); }
.skillhub-feature-cover[data-tone="realty"] { background: linear-gradient(135deg, #e0e7ff, #dbeafe 50%, #cffafe); }
.skillhub-feature-cover[data-tone="edu"] { background: linear-gradient(135deg, #ede9fe, #e0e7ff 50%, #dbeafe); }
.skillhub-feature-cover[data-tone="beauty"] { background: linear-gradient(135deg, #fce7f3, #fbcfe8 50%, #f5d0fe); }
.skillhub-feature-cover[data-tone="food"] { background: linear-gradient(135deg, #ffedd5, #fed7aa 50%, #fde68a); }
.skillhub-feature-cover[data-tone="local"] { background: linear-gradient(135deg, #d1fae5, #a7f3d0 50%, #99f6e4); }
.skillhub-feature-cover[data-tone="crossborder"] { background: linear-gradient(135deg, #cffafe, #a5f3fc 50%, #bfdbfe); }
.skillhub-feature-cover[data-tone="finance"] { background: linear-gradient(135deg, #d1fae5, #a7f3d0 50%, #fef3c7); }
.skillhub-feature-cover[data-tone="legal"] { background: linear-gradient(135deg, #e2e8f0, #cbd5e1 50%, #bfdbfe); }
.skillhub-feature-cover[data-tone="auto"] { background: linear-gradient(135deg, #e2e8f0, #dbeafe 50%, #c7d2fe); }
.skillhub-feature-cover img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.skillhub-cover-fallback {
  width: 72px; height: 72px; border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.85), rgba(255,255,255,.25)),
    radial-gradient(circle at 30% 30%, #93c5fd, transparent 55%),
    radial-gradient(circle at 70% 70%, #6366f1, transparent 50%);
  box-shadow: 0 10px 24px rgba(15,23,42,.12);
}
.skillhub-feature-body { padding: .85rem 1rem 1rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.skillhub-feature-title-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: .7rem;
  align-items: start;
}
.skillhub-feature-icon {
  width: 40px; height: 40px; border-radius: 11px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  background: #f8fafc; border: 1px solid #e2e8f0; flex-shrink: 0;
}
.skillhub-feature-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skillhub-feature-title-text { min-width: 0; }
.skillhub-feature-title-text strong { display: block; font-size: 1.02rem; letter-spacing: -0.02em; margin-bottom: .2rem; }
.skillhub-feature-title-text p {
  color: var(--muted); font-size: .82rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin: 0;
}
.skillhub-feature-foot {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
}
.skillhub-icon-fallback {
  width: 18px; height: 18px; border-radius: 5px;
  background: linear-gradient(135deg, #93c5fd, #2563eb);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.35);
  display: block;
}
.skillhub-list-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: #f8fafc; border: 1px solid #e2e8f0;
  overflow: hidden;
}
.skillhub-list-icon[data-tone="content"] { background: #fdf2f8; border-color: #fbcfe8; }
.skillhub-list-icon[data-tone="office"] { background: #ecfdf5; border-color: #a7f3d0; }
.skillhub-list-icon[data-tone="growth"] { background: #fff7ed; border-color: #fed7aa; }
.skillhub-list-icon[data-tone="eng"] { background: #eff6ff; border-color: #bfdbfe; }
.skillhub-list-icon[data-tone="ecommerce"] { background: #fff1f2; border-color: #fecdd3; }
.skillhub-list-icon[data-tone="sales"] { background: #fff7ed; border-color: #fdba74; }
.skillhub-list-icon[data-tone="realty"] { background: #eef2ff; border-color: #c7d2fe; }
.skillhub-list-icon[data-tone="edu"] { background: #f5f3ff; border-color: #ddd6fe; }
.skillhub-list-icon[data-tone="beauty"] { background: #fdf2f8; border-color: #f9a8d4; }
.skillhub-list-icon[data-tone="food"] { background: #fffbeb; border-color: #fcd34d; }
.skillhub-list-icon[data-tone="local"] { background: #ecfdf5; border-color: #6ee7b7; }
.skillhub-list-icon[data-tone="crossborder"] { background: #ecfeff; border-color: #67e8f9; }
.skillhub-list-icon[data-tone="finance"] { background: #ecfdf5; border-color: #86efac; }
.skillhub-list-icon[data-tone="legal"] { background: #f8fafc; border-color: #cbd5e1; }
.skillhub-list-icon[data-tone="auto"] { background: #f1f5f9; border-color: #94a3b8; }
.skillhub-list-icon img { width: 100%; height: 100%; object-fit: cover; display: block; }
.skillhub-list-icon .skillhub-icon-fallback { margin: auto; }

.skillhub-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.skillhub-tag {
  font-size: .72rem; color: #1d4ed8; background: var(--accent-soft);
  border: 1px solid #dbeafe; border-radius: 999px; padding: .15rem .5rem; font-weight: 600;
}
.skillhub-tag.is-hot { color: #c2410c; background: #fff7ed; border-color: #fed7aa; }
.skillhub-add {
  width: 30px; height: 30px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: #fff; color: var(--accent-deep);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; line-height: 1; flex-shrink: 0; cursor: default;
}
.skillhub-add:hover { background: var(--accent-soft); border-color: #93c5fd; }

.skillhub-cat-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem;
}
.skillhub-list-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: .9rem 1rem;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: .85rem;
  align-items: center;
  transition: border-color .18s, background .18s;
}
.skillhub-list-card:hover { border-color: #bfdbfe; background: #f8fbff; }
.skillhub-list-body { min-width: 0; }
.skillhub-list-body strong {
  display: block; font-size: .95rem; letter-spacing: -0.015em; margin-bottom: .2rem;
}
.skillhub-list-body p {
  color: var(--muted); font-size: .8rem; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: .35rem;
}
.skillhub-empty, .skillhub-loading {
  text-align: center; color: var(--muted); padding: 2.5rem 1rem; font-size: .95rem;
}
.skillhub-cta {
  text-align: center; margin-top: 2.5rem; color: var(--muted); font-size: .9rem;
}
.skillhub-cta a { color: var(--accent-deep); font-weight: 600; }

.skills-more {
  text-align: center; margin-top: 1.5rem;
}
.skills-more a {
  color: var(--accent-deep); font-weight: 650; font-size: .92rem;
}

@media (max-width: 960px) {
  .skillhub-featured { grid-template-columns: 1fr; }
  .skillhub-cat-grid { grid-template-columns: 1fr; }
}
@media (min-width: 961px) and (max-width: 1100px) {
  .skillhub-featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Contact modal (WeCom QR) — mirrors ddadmin product-show contact modal */
.contact-modal{
  position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;
  padding:24px;opacity:0;visibility:hidden;transition:opacity .25s,visibility .25s;
}
.contact-modal.open{opacity:1;visibility:visible}
.contact-modal-mask{position:absolute;inset:0;background:rgba(15,23,42,.55);backdrop-filter:blur(4px)}
.contact-modal-dialog{
  position:relative;z-index:1;width:100%;max-width:400px;background:#fff;border-radius:16px;
  padding:32px 28px 28px;text-align:center;box-shadow:0 24px 64px rgba(15,23,42,.18);
  transform:translateY(16px) scale(.98);transition:transform .25s;
}
.contact-modal.open .contact-modal-dialog{transform:translateY(0) scale(1)}
.contact-modal-close{
  position:absolute;top:14px;right:14px;width:32px;height:32px;border:none;background:var(--bg-soft,#f7f9fc);
  border-radius:50%;cursor:pointer;display:flex;align-items:center;justify-content:center;color:var(--muted,#64748b);
  transition:all .2s;padding:0;
}
.contact-modal-close:hover{background:var(--line,#e2e8f0);color:var(--text,#0f172a)}
.contact-modal-close svg{width:16px;height:16px}
.contact-modal-title{font-size:18px;font-weight:700;color:var(--text,#0f172a);margin-bottom:8px}
.contact-modal-desc{font-size:13px;color:var(--muted,#64748b);line-height:1.7;margin-bottom:20px;padding:0 8px}
.contact-modal-qrcode{
  border-radius:12px;overflow:hidden;border:1px solid var(--line,#e2e8f0);background:var(--bg-soft,#f7f9fc);margin-bottom:14px;
}
.contact-modal-qrcode img{display:block;width:100%;height:auto;vertical-align:top}
.contact-modal-tip{font-size:12px;color:var(--muted,#64748b)}


/* ===== Hero skills danmaku (transparent tech chips) ===== */
.hero-danmaku {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: clamp(0.35rem, 1.4vw, 0.85rem);
  padding: 1.1rem 0 1.35rem;
  opacity: 0;
  transition: opacity .9s ease;
  -webkit-mask-image: linear-gradient(180deg,
      transparent 0%,
      rgba(0,0,0,.28) 8%,
      rgba(0,0,0,.62) 20%,
      rgba(0,0,0,.9) 36%,
      #000 52%,
      #000 90%,
      transparent 100%);
  mask-image: linear-gradient(180deg,
      transparent 0%,
      rgba(0,0,0,.28) 8%,
      rgba(0,0,0,.62) 20%,
      rgba(0,0,0,.9) 36%,
      #000 52%,
      #000 90%,
      transparent 100%);
}
.hero-danmaku::before,
.hero-danmaku::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: min(7vw, 72px);
  z-index: 2;
  pointer-events: none;
}
.hero-danmaku::before {
  left: 0;
  background: linear-gradient(90deg, rgba(248,251,255,.92), transparent);
}
.hero-danmaku::after {
  right: 0;
  background: linear-gradient(270deg, rgba(248,251,255,.92), transparent);
}
.hero-danmaku.is-ready { opacity: 1; }

.hero-danmaku-lane {
  position: relative;
  flex: 0 0 auto;
  height: 2.05rem;
  overflow: hidden;
  opacity: .92;
}
.hero-danmaku-lane:nth-child(odd) { opacity: .78; }
.hero-danmaku-lane:nth-child(3n) { opacity: .88; }

.hero-danmaku-track {
  display: flex;
  width: max-content;
  gap: 0;
  will-change: transform;
  animation: hero-danmaku-scroll var(--danmaku-dur, 80s) linear infinite;
  animation-delay: var(--danmaku-delay, 0s);
}
.hero-danmaku-lane[data-dir="rtl"] .hero-danmaku-track {
  animation-name: hero-danmaku-scroll-rtl;
}

.hero-danmaku-set {
  display: flex;
  align-items: center;
  gap: .72rem;
  padding-right: .72rem;
  flex: 0 0 auto;
}

.hero-danmaku-chip {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  max-width: 16rem;
  padding: .28rem .78rem .28rem .32rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  -webkit-backdrop-filter: blur(12px) saturate(1.35);
  backdrop-filter: blur(12px) saturate(1.35);
  border: 1px solid rgba(125, 186, 255, 0.42);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28) inset,
    0 6px 18px rgba(37, 99, 235, 0.07),
    0 0 22px rgba(56, 189, 248, 0.08);
  color: rgba(30, 64, 140, 0.82);
  font-size: .76rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  white-space: nowrap;
  line-height: 1.2;
}
.hero-danmaku-chip.is-featured {
  background: rgba(239, 246, 255, 0.55);
  border-color: rgba(59, 130, 246, 0.55);
  color: rgba(29, 78, 216, 0.92);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.35) inset,
    0 8px 22px rgba(37, 99, 235, 0.12),
    0 0 28px rgba(34, 211, 238, 0.14);
}
.hero-danmaku-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  flex: 0 0 auto;
  background: rgba(219, 234, 254, 0.7);
  box-shadow: 0 0 0 1px rgba(147, 197, 253, 0.45);
}
.hero-danmaku-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-left: .28rem;
  background:
    radial-gradient(circle at 30% 30%, #e0f2fe 0%, #38bdf8 42%, #2563eb 100%);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.55);
}
.hero-danmaku-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero h1 {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 0 18px rgba(248,251,255,0.95),
    0 0 36px rgba(255,255,255,0.85);
}
.hero .lead {
  text-shadow:
    0 1px 0 rgba(255,255,255,0.65),
    0 0 14px rgba(248,251,255,0.9);
}

@keyframes hero-danmaku-scroll {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-50%, 0, 0); }
}
@keyframes hero-danmaku-scroll-rtl {
  from { transform: translate3d(-50%, 0, 0); }
  to { transform: translate3d(0, 0, 0); }
}

@media (max-width: 700px) {
  .hero-danmaku {
    padding: .85rem 0 1rem;
    gap: .45rem;
  }
  .hero-danmaku-lane { height: 1.85rem; opacity: .72; }
  .hero-danmaku-chip {
    font-size: .7rem;
    padding: .22rem .62rem .22rem .28rem;
  }
  .hero-danmaku-icon { width: 15px; height: 15px; border-radius: 4px; }
  .hero-danmaku-set { gap: .55rem; padding-right: .55rem; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-danmaku-track {
    animation: none !important;
    transform: translate3d(-12%, 0, 0);
  }
  .hero-danmaku.is-static .hero-danmaku-lane:nth-child(n + 3) { display: none; }
}

/* Hero brand eyebrow (smaller again ~11%) + lead contrast — 20261104hero4 */
.hero-brand {
  margin: 0 0 .55rem;
  font-size: clamp(1.53rem, 3.56vw, 2.36rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 760;
  color: var(--text);
  text-shadow:
    0 1px 0 rgba(255,255,255,0.7),
    0 0 18px rgba(248,251,255,0.95),
    0 0 36px rgba(255,255,255,0.85);
}
.hero .lead {
  max-width: 42rem;
  color: #334155; /* clearer than muted #64748b */
}

.skillhub-subsection-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 28px 0 14px;
}
.skillhub-subsection-head:first-of-type { margin-top: 4px; }
.skillhub-subsection-head h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 650;
}
.skillhub-subsection-head span {
  color: var(--muted-foreground, #6b7280);
  font-size: 13px;
}


.card-lite .credit-lite {
  background: #ecfdf5;
  border-color: #6ee7b7;
  color: #047857;
  font-size: .88rem;
  font-weight: 720;
  letter-spacing: .01em;
}
.card-lite .lite-perks {
  margin-top: .5rem;
}
.card-lite .lite-perk-main {
  color: #0f172a;
  font-size: .93rem;
  font-weight: 560;
  padding: .68rem 0;
  line-height: 1.5;
  border-top-color: #d1fae5;
}
.card-lite .lite-perk-main strong {
  color: #047857;
  font-weight: 780;
}
.card-lite .lite-perk-note {
  color: #94a3b8;
  font-size: .72rem;
  font-weight: 450;
  padding: .4rem 0 .15rem;
  line-height: 1.35;
  border-top-color: #e2e8f0;
}
.lite-invite-tip {
  margin: .4rem 0 0;
  font-size: .72rem;
  line-height: 1.35;
  color: #94a3b8;
  font-weight: 400;
}
