/* Vectide Homepage v2 — Tide Hero (Style 4 Two-Tier + 3-Slot Centered Model Roller + Live Playground)
 * Below-the-fold cards preserve live catalog hydration in refined site theme.
 * Header keeps exact original blue PNG logo. Zero decorative dots.
 */
html[data-vt-theme="dark"] body.vt-home {
  --vt2-bg: #0c0f15;
  --vt2-bg-2: #11151d;
  --vt2-surface: #151a23;
  --vt2-raised: #1c222e;
  --vt2-hover: #232a38;
  --vt2-line: rgba(255, 255, 255, 0.085);
  --vt2-line-2: rgba(255, 255, 255, 0.16);
  --vt2-text: #eef1f6;
  --vt2-text-2: #c8cfdc;
  --vt2-muted: #8b95a7;
  --vt2-ink: #eef3fc;
  --vt2-on-ink: #0c1018;
  --vt2-accent: #38bdf8;
  --vt2-glow: rgba(56, 189, 248, 0.12);
  --vt2-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  background: var(--vt2-bg) !important;
  color: var(--vt2-text) !important;
}

html[data-vt-theme="light"] body.vt-home {
  --vt2-bg: #fafafa;
  --vt2-bg-2: #f1f3f7;
  --vt2-surface: #ffffff;
  --vt2-raised: #f4f6fa;
  --vt2-hover: #eaeef5;
  --vt2-line: #e4e7ee;
  --vt2-line-2: #cdd3df;
  --vt2-text: #0b0e14;
  --vt2-text-2: #303642;
  --vt2-muted: #5d6676;
  --vt2-ink: #0b0e14;
  --vt2-on-ink: #ffffff;
  --vt2-accent: #1d4ed8;
  --vt2-glow: rgba(37, 99, 235, 0.08);
  --vt2-shadow: 0 2px 4px rgba(11, 14, 20, 0.03), 0 24px 60px rgba(11, 14, 20, 0.08);
  background: var(--vt2-bg) !important;
  color: var(--vt2-text) !important;
}

html[data-vt-theme] body.vt-home {
  font-family: "Geist", Inter, "PingFang SC", "Microsoft YaHei", -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

html[data-vt-theme] body.vt-home [hidden] {
  display: none !important;
}

/* Notice & Header are now unified sitewide in vectide-notice-v2-20261203.css?v=3 */

/* Hide legacy source elements cleanly */
html[data-vt-theme] body.vt-home :is(.vt-home-hero, .vt-ark-showcase, .vt-last-cta, .vt-start-grid, .growth-home-banner) {
  display: none !important;
}

/* ===== OPENING TIDE HERO (Style 4 Two-Tier + 3-Slot Roller + Playground) ===== */
.vt2-wrap {
  width: min(1220px, calc(100% - 48px));
  margin: 0 auto;
}

.vt2-hero {
  position: relative;
  min-height: 70vh;
  display: flex;
  align-items: center;
  padding: 84px 0 88px;
  overflow: hidden;
  background: var(--vt2-bg);
}

@media screen and (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .vt2-hero {
    min-height: 63.6vh;
  }
}

.vt2-hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 18%, #000 76%, transparent 100%);
  pointer-events: none;
}

.vt2-glow {
  position: absolute;
  inset: -14% 18% auto;
  height: 440px;
  background: radial-gradient(50% 50% at 50% 42%, var(--vt2-glow), transparent 72%);
  pointer-events: none;
}

.vt2-hero-in {
  position: relative;
  text-align: center;
  width: 100%;
}

/* Approved Hero Style 4: Two-tier Asymmetric Hierarchy — ONLY shift headline upward, keep ticker & CTA stationary */
.vt2-h1 {
  margin: 0 auto !important;
  font-family: "Geist", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-wrap: balance;
  transform: translateY(-92px);
}

.vt2-h1-lead {
  font-size: clamp(20px, 2.1vw, 28px);
  font-weight: 400;
  letter-spacing: 0.16em;
  color: var(--vt2-muted);
  line-height: 1.3;
}

.vt2-h1-main {
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--vt2-text);
}

html:not([lang^="zh"]) body.vt-home .vt2-h1-lead {
  letter-spacing: 0.04em;
}

html:not([lang^="zh"]) body.vt-home .vt2-h1-main {
  font-size: clamp(34px, 4.2vw, 58px);
  letter-spacing: -0.03em;
}

/* Subline positioned dead-center between the two glowing blue tide waves + compact narrow model roller */
.vt2-hero-sub {
  margin: 26px auto 0;
  transform: translateY(-58px);
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: clamp(16px, 1.45vw, 18.5px);
  color: var(--vt2-text-2);
}

.vt2-ticker {
  --slot-w: 104px;
  position: relative;
  width: 218px;
  max-width: 74vw;
  height: 40px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--vt2-surface) 82%, transparent);
  border: 1px solid var(--vt2-line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  overflow: hidden;
  display: inline-flex;
  align-items: center;
}

.vt2-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.58) 18%, #000 33%, #000 67%, rgba(0, 0, 0, 0.58) 82%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.58) 18%, #000 33%, #000 67%, rgba(0, 0, 0, 0.58) 82%, transparent 100%);
}

html[data-vt-theme="light"] body.vt-home .vt2-viewport {
  -webkit-mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.78) 16%, #000 30%, #000 70%, rgba(0, 0, 0, 0.78) 84%, rgba(0, 0, 0, 0.06) 100%);
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 0%, rgba(0, 0, 0, 0.78) 16%, #000 30%, #000 70%, rgba(0, 0, 0, 0.78) 84%, rgba(0, 0, 0, 0.06) 100%);
}

.vt2-track {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  height: 100% !important;
  will-change: transform;
}

html[data-vt-theme] body.vt-home .vt2-chip {
  flex: 0 0 var(--slot-w) !important;
  width: var(--slot-w) !important;
  min-width: var(--slot-w) !important;
  max-width: var(--slot-w) !important;
  height: 32px !important;
  padding: 0 3px !important;
  border: 0 !important;
  background: transparent !important;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  font-size: 13px !important;
  line-height: 1 !important;
  font-weight: 500;
  color: var(--vt2-muted);
  white-space: nowrap !important;
  word-break: keep-all !important;
  overflow: visible !important;
  cursor: pointer;
  will-change: transform, opacity;
}

html[data-vt-theme] body.vt-home .vt2-chip span {
  white-space: nowrap !important;
  word-break: keep-all !important;
  line-height: 1 !important;
  flex-shrink: 0 !important;
}

html[data-vt-theme="light"] body.vt-home .vt2-chip {
  color: #465166;
}

.vt2-chip img {
  width: 15.5px;
  height: 15.5px;
  border-radius: 4px;
  object-fit: contain;
  flex-shrink: 0;
}

.vt2-chip.is-center {
  color: var(--vt2-text);
  font-weight: 650;
}

html[data-vt-theme="dark"] body.vt-home img[src*="brand-openai"] {
  filter: invert(1) brightness(1.1);
}

.vt2-cta {
  margin-top: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
}

html[data-vt-theme] body.vt-home a.vt2-btn-primary,
html[data-vt-theme] body.vt-home a.vt2-btn-primary:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  padding: 0 24px;
  border-radius: 999px;
  background: var(--vt2-ink) !important;
  color: var(--vt2-on-ink) !important;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none !important;
  transition: opacity 0.16s ease, transform 0.14s ease;
}

html[data-vt-theme] body.vt-home a.vt2-btn-primary:hover {
  opacity: 0.9;
  color: var(--vt2-on-ink) !important;
}

html[data-vt-theme] body.vt-home a.vt2-btn-primary:active {
  transform: scale(0.98);
}

html[data-vt-theme] body.vt-home a.vt2-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14.5px;
  font-weight: 550;
  color: var(--vt2-text-2) !important;
  text-decoration: none !important;
  transition: color 0.16s ease;
}

html[data-vt-theme] body.vt-home a.vt2-link-arrow:hover {
  color: var(--vt2-text) !important;
}

.vt2-link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.vt2-link-arrow:hover svg {
  transform: translateX(3px);
}

/* Interactive Code Playground */
.vt2-play {
  position: relative;
  margin-top: -28px;
  padding-bottom: 84px;
}

.vt2-play-box {
  display: grid;
  grid-template-columns: 256px 1fr;
  border-radius: 26px;
  overflow: hidden;
  background: var(--vt2-surface);
  border: 1px solid var(--vt2-line);
  box-shadow: var(--vt2-shadow);
  min-height: 404px;
}

.vt2-play-models {
  padding: 16px;
  border-right: 1px solid var(--vt2-line);
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: var(--vt2-bg-2);
}

.vt2-pm {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 12px;
  border-radius: 12px;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 14px;
  color: var(--vt2-text-2);
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.vt2-pm img {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.vt2-pm:hover {
  background: var(--vt2-hover);
  color: var(--vt2-text);
}

.vt2-pm.is-active {
  background: var(--vt2-surface);
  color: var(--vt2-text);
  box-shadow: 0 0 0 1px var(--vt2-line-2);
  font-weight: 600;
}

.vt2-pm .vt2-tps {
  margin-left: auto;
  font-size: 12px;
  color: var(--vt2-muted);
  font-variant-numeric: tabular-nums;
}

.vt2-play-term {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.vt2-term-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 22px;
  border-bottom: 1px solid var(--vt2-line);
  font-size: 13.5px;
  color: var(--vt2-muted);
}

.vt2-term-top b {
  color: var(--vt2-text);
  font-weight: 600;
}

.vt2-term-body {
  flex: 1;
  padding: 22px 24px;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13.5px;
  line-height: 1.8;
  color: var(--vt2-text-2);
  white-space: pre-wrap;
  overflow: hidden;
}

.vt2-term-body .p { color: var(--vt2-accent); }
.vt2-term-body .c { color: var(--vt2-muted); }

.vt2-caret {
  display: inline-block;
  width: 7px;
  height: 16px;
  background: var(--vt2-accent);
  vertical-align: -3px;
  animation: vt2-blink 1s steps(1) infinite;
}

@keyframes vt2-blink { 50% { opacity: 0; } }

.vt2-term-input {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 18px 18px;
  height: 48px;
  padding: 0 7px 0 18px;
  border-radius: 14px;
  background: var(--vt2-raised);
  border: 1px solid var(--vt2-line);
  font-size: 14px;
}

.vt2-term-input span {
  flex: 1;
  color: var(--vt2-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vt2-send {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 0;
  background: var(--vt2-ink);
  color: var(--vt2-on-ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.14s ease;
}

.vt2-send:active { transform: scale(0.95); }
.vt2-send svg { width: 15px; height: 15px; }

/* ===== BELOW THE FOLD: REFINED SITE THEME (Live Catalog Preserved) ===== */
html[data-vt-theme] body.vt-home .vt-home-section {
  padding: 84px 0 !important;
  border-top: 1px solid var(--vt2-line) !important;
  background: transparent !important;
}

html[data-vt-theme] body.vt-home .vt-wrap {
  width: min(1220px, calc(100% - 48px)) !important;
  max-width: 1220px !important;
}

html[data-vt-theme] body.vt-home .vt-section-title {
  margin-bottom: 32px !important;
}

html[data-vt-theme] body.vt-home .vt-section-title h2 {
  font-size: clamp(26px, 3vw, 36px) !important;
  font-weight: 680 !important;
  letter-spacing: -0.03em !important;
  color: var(--vt2-text) !important;
}

html[data-vt-theme] body.vt-home .vt-model-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
}

html[data-vt-theme] body.vt-home .vt-model-card {
  border-radius: 20px !important;
  background: var(--vt2-surface) !important;
  border: 1px solid var(--vt2-line) !important;
  padding: 22px 24px !important;
  transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease !important;
}

html[data-vt-theme] body.vt-home .vt-model-card:hover {
  border-color: var(--vt2-line-2) !important;
  background: var(--vt2-raised) !important;
  transform: translateY(-2px);
}

html[data-vt-theme] body.vt-home .vt-model-card h3 {
  font-size: 17px !important;
  font-weight: 640 !important;
  color: var(--vt2-text) !important;
}

html[data-vt-theme] body.vt-home .vt-model-card p {
  font-size: 13.5px !important;
  color: var(--vt2-muted) !important;
}

html[data-vt-theme] body.vt-home .vt-model-bottom {
  border-top: 0 !important;
  padding-top: 10px !important;
}

html[data-vt-theme] body.vt-home .vt-model-bottom span {
  font-size: 20px !important;
  font-weight: 700 !important;
  color: var(--vt2-text) !important;
}

html[data-vt-theme] body.vt-home .vt-products {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}

html[data-vt-theme] body.vt-home .vt-product {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  border-radius: 22px !important;
  background: var(--vt2-surface) !important;
  border: 1px solid var(--vt2-line) !important;
  padding: 28px !important;
  transition: border-color 0.2s ease, transform 0.2s ease !important;
}

html[data-vt-theme] body.vt-home .vt-product:has(.vt-primary) {
  border-color: color-mix(in srgb, var(--vt2-accent) 34%, var(--vt2-line)) !important;
  background: linear-gradient(180deg, color-mix(in srgb, var(--vt2-accent) 6.5%, var(--vt2-surface)), var(--vt2-surface) 44%) !important;
}

html[data-vt-theme] body.vt-home .vt-product h3 {
  font-size: 23px !important;
  font-weight: 680 !important;
  color: var(--vt2-text) !important;
}

html[data-vt-theme] body.vt-home .vt-product ul {
  flex: 1 0 auto !important;
  margin-bottom: 24px !important;
}

html[data-vt-theme] body.vt-home .vt-product .vt-button,
html[data-vt-theme] body.vt-home .vt-product .vt-button:visited {
  margin-top: auto !important;
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  background: var(--vt2-raised) !important;
  border: 1px solid var(--vt2-line-2) !important;
  color: var(--vt2-text) !important;
  box-shadow: none !important;
  transition: background-color 0.16s ease, border-color 0.16s ease, transform 0.14s ease, box-shadow 0.16s ease !important;
}

html[data-vt-theme] body.vt-home .vt-product .vt-button:hover {
  background: var(--vt2-hover) !important;
  border-color: color-mix(in srgb, var(--vt2-text) 26%, transparent) !important;
  color: var(--vt2-text) !important;
}

html[data-vt-theme] body.vt-home .vt-product .vt-button span {
  margin-left: 0 !important;
  transition: transform 0.16s ease;
}

html[data-vt-theme] body.vt-home .vt-product .vt-button:hover span {
  transform: translate(2px, -1px);
}

html[data-vt-theme="dark"] body.vt-home .vt-product .vt-button.vt-primary,
html[data-vt-theme="dark"] body.vt-home .vt-product .vt-button.vt-primary:visited {
  background: linear-gradient(135deg, #2563eb, #0284c7) !important;
  color: #ffffff !important;
  border: 1px solid rgba(56, 189, 248, 0.42) !important;
  box-shadow: 0 8px 22px rgba(2, 132, 199, 0.24) !important;
}

html[data-vt-theme="dark"] body.vt-home .vt-product .vt-button.vt-primary:hover {
  background: linear-gradient(135deg, #3b82f6, #0ea5e9) !important;
  border-color: rgba(125, 211, 252, 0.56) !important;
  color: #ffffff !important;
}

html[data-vt-theme="light"] body.vt-home .vt-product .vt-button.vt-primary,
html[data-vt-theme="light"] body.vt-home .vt-product .vt-button.vt-primary:visited {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border: 1px solid #1d4ed8 !important;
  box-shadow: 0 6px 18px rgba(29, 78, 216, 0.2) !important;
}

html[data-vt-theme="light"] body.vt-home .vt-product .vt-button.vt-primary:hover {
  background: #1e40af !important;
  border-color: #1e40af !important;
  color: #ffffff !important;
}

/* Connect config block + interactive snippet switcher */
html[data-vt-theme] body.vt-home .vt-connect {
  gap: 48px !important;
  align-items: center !important;
}

html[data-vt-theme] body.vt-home .vt-connect h2 {
  font-size: clamp(28px, 3.2vw, 38px) !important;
  font-weight: 680 !important;
  letter-spacing: -0.03em !important;
}

.vt2-client-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 22px;
}

.vt2-client-tabs button {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--vt2-line);
  background: var(--vt2-surface);
  color: var(--vt2-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.vt2-client-tabs button.is-active {
  background: var(--vt2-ink);
  color: var(--vt2-on-ink);
  border-color: var(--vt2-ink);
  font-weight: 600;
}

html[data-vt-theme] body.vt-home .vt-code-panel {
  border-radius: 22px !important;
  background: var(--vt2-surface) !important;
  border: 1px solid var(--vt2-line) !important;
  box-shadow: var(--vt2-shadow);
}

html[data-vt-theme] body.vt-home .vt-code-head > span:first-child i {
  display: none !important;
}

html[data-vt-theme] body.vt-home .vt-site-footer {
  border-top: 1px solid var(--vt2-line) !important;
  background: transparent !important;
}

/* Responsive */
@media (max-width: 1020px) {
  .vt2-play-box { grid-template-columns: 1fr; }
  .vt2-play-models {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid var(--vt2-line);
    padding: 10px 12px;
  }
  .vt2-pm { flex-shrink: 0; }
  .vt2-pm .vt2-tps { display: none; }
  html[data-vt-theme] body.vt-home .vt-model-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  html[data-vt-theme] body.vt-home .vt-products {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 900px) {
  html[data-vt-theme] body.vt-home .vn-header .vn-nav {
    grid-template-columns: auto 1fr auto;
    padding: 0 18px !important;
    height: 60px !important;
    min-height: 60px !important;
  }
  html[data-vt-theme] body.vt-home .vn-header .vn-links {
    display: none !important;
  }
  html[data-vt-theme] body.vt-home .vn-header .vn-actions .vn-doc-link {
    display: none !important;
  }
  html[data-vt-theme] body.vt-home .vn-header .vn-menu {
    display: inline-flex !important;
  }
}

@media (max-width: 640px) {
  .vt2-wrap,
  html[data-vt-theme] body.vt-home .vt-wrap {
    width: calc(100% - 32px) !important;
  }
  .vt2-hero {
    min-height: 54vh;
    display: flex;
    align-items: center;
    padding: 58px 0 64px;
  }
  .vt2-h1 {
    transform: translateY(-30px);
  }
  .vt2-hero-sub {
    transform: translateY(-18px);
  }
  .vt2-ticker {
    --slot-w: 84px;
    width: 176px;
  }
  .vt2-chip {
    font-size: 12.5px;
    gap: 5px;
  }
  .vt2-chip img {
    width: 15px;
    height: 15px;
  }
  .vt2-play {
    margin-top: -18px;
    padding-bottom: 56px;
  }
  .vt2-play-box {
    border-radius: 20px;
    min-height: 340px;
  }
  .vt2-term-body {
    padding: 16px;
    font-size: 12.5px;
  }
  html[data-vt-theme] body.vt-home .vt-model-grid {
    grid-template-columns: 1fr !important;
  }
  html[data-vt-theme] body.vt-home .vt-home-section {
    padding: 56px 0 !important;
  }
}
