/* 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-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 > * { position: relative; z-index: 1; }
.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; }
}
@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: #a7f3d0;
  background: linear-gradient(180deg, #f0fdf4, #ffffff);
}
.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; }
}
