/* ========================================
   Agent Network — Landing Theme
   Vercel / Linear / Resend inspired
   ======================================== */

/* ---------- Brand variables ---------- */
:root {
  --vp-c-bg: #fafbfc;
  --vp-c-bg-soft: #f4f6f9;
  --vp-c-bg-mute: #eef1f5;
  --vp-c-bg-alt: #f8f9fb;
  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: linear-gradient(135deg, #009e7e 0%, #00b894 50%, #3b82f6 100%);
  --vp-c-brand-1: #009e7e;
  --vp-c-brand-2: #00b894;
  --vp-c-brand-3: #00d4aa;
  --vp-c-brand-soft: rgba(0, 158, 126, 0.08);
  --vp-c-text-1: #0f1419;
  --vp-c-text-2: #525a66;
  --vp-c-divider: #e8e8ec;

  --anet-glow-cyan: rgba(0, 212, 170, 0.55);
  --anet-glow-blue: rgba(59, 130, 246, 0.45);
  --anet-glow-purple: rgba(139, 92, 246, 0.35);
}

.dark {
  --vp-c-bg: #06070b;
  --vp-c-bg-soft: #0c0e14;
  --vp-c-bg-mute: #11141c;
  --vp-c-bg-alt: #0a0c12;
  --vp-home-hero-name-color: transparent;
  --vp-home-hero-name-background: linear-gradient(135deg, #00d4aa 0%, #22d3ee 50%, #818cf8 100%);
  --vp-c-brand-1: #00d4aa;
  --vp-c-brand-2: #22d3ee;
  --vp-c-brand-3: #818cf8;
  --vp-c-brand-soft: rgba(0, 212, 170, 0.12);
  --vp-c-text-1: #e8eaed;
  --vp-c-text-2: #8a94a3;
  --vp-c-divider: #1a1d26;

  --anet-glow-cyan: rgba(0, 212, 170, 0.55);
  --anet-glow-blue: rgba(99, 102, 241, 0.5);
  --anet-glow-purple: rgba(139, 92, 246, 0.45);
}

/* ---------- VPHome canvas ---------- */
.VPHome {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

/* ---------- Hero backdrop (grid + orbs + scan) ---------- */
.hero-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
  mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 70%, transparent 100%);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15, 30, 50, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15, 30, 50, 0.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000, transparent 80%);
}
.dark .hero-grid {
  background-image:
    linear-gradient(to right, rgba(140, 160, 200, 0.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(140, 160, 200, 0.07) 1px, transparent 1px);
}
/* Light mode: extra layer of subtle gradient wash */
.VPHome:not(.dark .VPHome)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 760px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f4f9f8 40%, #fafbfc 100%);
  z-index: -2;
  pointer-events: none;
}
.dark .VPHome::before {
  content: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.7;
  animation: orbDrift 16s ease-in-out infinite;
}
.hero-orb-a {
  width: 540px;
  height: 540px;
  top: -120px;
  left: 8%;
  background: radial-gradient(circle, var(--anet-glow-cyan), transparent 70%);
  animation-delay: 0s;
}
.hero-orb-b {
  width: 480px;
  height: 480px;
  top: 60px;
  right: 6%;
  background: radial-gradient(circle, var(--anet-glow-blue), transparent 70%);
  animation-delay: -5s;
}
.hero-orb-c {
  width: 420px;
  height: 420px;
  top: 280px;
  left: 38%;
  background: radial-gradient(circle, var(--anet-glow-purple), transparent 70%);
  animation-delay: -10s;
}
@keyframes orbDrift {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.65; }
  33% { transform: translate(40px, -30px) scale(1.08); opacity: 0.75; }
  66% { transform: translate(-30px, 20px) scale(0.95); opacity: 0.55; }
}
.hero-scan {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 760px;
  background: linear-gradient(180deg, transparent, rgba(0, 212, 170, 0.5), transparent);
  opacity: 0.4;
}

/* ---------- Hero ---------- */
.VPHero {
  padding-top: 88px !important;
  padding-bottom: 24px !important;
}
.VPHero .container {
  max-width: 1200px !important;
}
.VPHero .main {
  max-width: 620px !important;
}
.VPHero .name,
.VPHero .text {
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.05 !important;
}
.VPHero .name {
  font-size: clamp(2.8rem, 6vw, 5rem) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  animation: anetFadeInUp 0.6s cubic-bezier(0.21, 1.02, 0.73, 1) backwards;
}
.VPHero .text {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem) !important;
  margin-top: 6px !important;
  color: var(--vp-c-text-1) !important;
  animation: anetFadeInUp 0.6s cubic-bezier(0.21, 1.02, 0.73, 1) 0.08s backwards;
}
.VPHero .tagline {
  animation: anetFadeInUp 0.6s cubic-bezier(0.21, 1.02, 0.73, 1) 0.16s backwards;
}
.VPHero .actions {
  animation: anetFadeInUp 0.6s cubic-bezier(0.21, 1.02, 0.73, 1) 0.24s backwards;
}
.hero-badges {
  animation: anetFadeInUp 0.6s cubic-bezier(0.21, 1.02, 0.73, 1) 0.32s backwards;
}
.VPHero .image {
  animation: anetFadeInUp 0.7s cubic-bezier(0.21, 1.02, 0.73, 1) 0.4s backwards;
}
.VPFeature {
  animation: anetFadeInUp 0.5s cubic-bezier(0.21, 1.02, 0.73, 1) backwards;
}
.VPFeature:nth-child(2) { animation-delay: 0.06s; }
.VPFeature:nth-child(3) { animation-delay: 0.12s; }
.VPFeature:nth-child(4) { animation-delay: 0.18s; }
.VPFeature:nth-child(5) { animation-delay: 0.24s; }
.VPFeature:nth-child(6) { animation-delay: 0.30s; }
@keyframes anetFadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}
.VPHero .tagline {
  font-size: 1.08rem !important;
  line-height: 1.6 !important;
  opacity: 0.78;
  max-width: 560px;
  margin-top: 20px !important;
}
.VPHero .actions {
  gap: 12px !important;
  margin-top: 32px !important;
}
.VPHero .VPButton {
  border-radius: 10px !important;
  font-weight: 600 !important;
  padding: 0 22px !important;
  height: 44px !important;
  line-height: 44px !important;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease !important;
}
.VPHero .VPButton.brand {
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-2)) !important;
  border: 0 !important;
  box-shadow: 0 8px 28px -8px rgba(0, 158, 126, 0.55), 0 0 0 1px rgba(0, 212, 170, 0.25) inset;
}
.VPHero .VPButton.brand:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(0, 158, 126, 0.7), 0 0 0 1px rgba(0, 212, 170, 0.35) inset;
}
.VPHero .VPButton.alt {
  background: rgba(120, 130, 145, 0.06) !important;
  border: 1px solid var(--vp-c-divider) !important;
  backdrop-filter: blur(10px);
}
.dark .VPHero .VPButton.alt {
  background: rgba(140, 160, 200, 0.05) !important;
}
.VPHero .VPButton.alt:hover {
  border-color: var(--vp-c-brand-1) !important;
  transform: translateY(-1px);
}

/* ---------- Hero notice (status disclaimer) ---------- */
.hero-notice {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.08);
  border: 1px solid rgba(251, 191, 36, 0.28);
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--vp-c-text-1);
  text-decoration: none !important;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 100%;
  animation: anetFadeInUp 0.6s cubic-bezier(0.21, 1.02, 0.73, 1) backwards;
}
.dark .hero-notice {
  background: rgba(251, 191, 36, 0.06);
  border-color: rgba(251, 191, 36, 0.22);
}
.hero-notice:hover {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.45);
  transform: translateY(-1px);
}
.hero-notice-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #f59e0b, #fbbf24);
  color: #1f2937;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.hero-notice-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #1f2937;
  position: relative;
  flex-shrink: 0;
}
.hero-notice-pulse::after {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: rgba(31, 41, 55, 0.4);
  animation: noticePulse 2s ease-out infinite;
}
@keyframes noticePulse {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}
.hero-notice-text {
  font-size: 0.78rem;
  color: var(--vp-c-text-1);
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-notice-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.74rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #b45309;
}
.dark .hero-notice-code {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
}
.hero-notice-arrow {
  font-size: 0.85rem;
  color: var(--vp-c-text-2);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
.hero-notice:hover .hero-notice-arrow {
  transform: translate(2px, -2px);
  color: #f59e0b;
}
@media (max-width: 720px) {
  .hero-notice {
    flex-wrap: wrap;
    border-radius: 12px;
  }
  .hero-notice-text {
    white-space: normal;
  }
}

/* ---------- Install command terminal block ---------- */
.install-cmd {
  margin-top: 28px;
  max-width: 560px;
  border-radius: 12px;
  background: linear-gradient(180deg, #0e1018, #0a0c12);
  border: 1px solid rgba(140, 160, 200, 0.18);
  overflow: hidden;
  box-shadow:
    0 14px 32px -16px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(0, 212, 170, 0.08) inset;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  animation: anetFadeInUp 0.6s cubic-bezier(0.21, 1.02, 0.73, 1) 0.2s backwards;
}
.install-cmd-head {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid rgba(140, 160, 200, 0.1);
  background: rgba(140, 160, 200, 0.03);
}
.install-cmd-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
}
.install-cmd-dot-r { background: #ff5f56; }
.install-cmd-dot-y { background: #ffbd2e; }
.install-cmd-dot-g { background: #27c93f; }
.install-cmd-title {
  flex: 1;
  margin-left: 10px;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}
.install-cmd-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 18px 16px;
  font-size: 0.9rem;
  line-height: 1.5;
  color: #e3e7ee;
}
.install-cmd-line {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  overflow-x: auto;
}
.install-cmd-line.is-comment {
  opacity: 0.55;
}
.install-cmd-prompt {
  color: #00d4aa;
  font-weight: 700;
  user-select: none;
}
.install-cmd-prompt.is-comment-prompt {
  color: #6b7280;
}
.install-cmd-text {
  flex: 1;
  white-space: nowrap;
  font-size: 0.9rem;
  font-family: inherit;
  background: transparent;
}
.install-cmd-text .ic-cmd { color: #f5d76e; }
.install-cmd-text .ic-arg { color: #e3e7ee; }
.install-cmd-text .ic-flag { color: #c084fc; }
.install-cmd-text .ic-pkg { color: #67e8f9; }
.install-cmd-text .ic-url { color: #67e8f9; text-decoration: underline; text-decoration-color: rgba(103, 232, 249, 0.4); }
.install-cmd-text .ic-pipe { color: #f97316; }
.install-cmd-text .ic-cmt { color: #6b7280; font-style: italic; }
.install-cmd-text .ic-todo {
  color: #fbbf24;
  font-style: normal;
  font-size: 0.72rem;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  letter-spacing: 0.04em;
}
.install-cmd-copy {
  flex-shrink: 0;
  padding: 5px 12px;
  border: 1px solid rgba(0, 212, 170, 0.3);
  border-radius: 6px;
  background: rgba(0, 212, 170, 0.08);
  color: #00d4aa;
  font-size: 0.74rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
}
.install-cmd-copy:hover {
  background: rgba(0, 212, 170, 0.18);
  border-color: rgba(0, 212, 170, 0.55);
}
.install-cmd-copy.is-copied {
  background: rgba(0, 212, 170, 0.25);
  color: #fff;
  border-color: rgba(0, 212, 170, 0.7);
}

/* ---------- Hero badges (Runtime + LLM rows) ---------- */
.hero-badges {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 580px;
}
.hero-badges-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.hero-badges-label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--vp-c-text-2);
  font-weight: 700;
}
.hero-badges-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 6px;
  border-radius: 999px;
  background: rgba(120, 130, 145, 0.06);
  border: 1px solid var(--vp-c-divider);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--vp-c-text-1);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  backdrop-filter: blur(8px);
}
.dark .hero-badge {
  background: rgba(140, 160, 200, 0.04);
}
.hero-badge:hover {
  transform: translateY(-1px);
  border-color: var(--vp-c-brand-1);
  background: var(--vp-c-brand-soft);
}
.hero-badge-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(120, 130, 145, 0.06);
  border: 1px solid var(--vp-c-divider);
  flex-shrink: 0;
  overflow: hidden;
}
.dark .hero-badge-logo {
  background: rgba(255, 255, 255, 0.04);
}
.hero-badge-logo img {
  width: 14px;
  height: 14px;
  display: block;
  object-fit: contain;
}
/* mono SVGs use currentColor — color via inline style on .hero-badge-logo */
.hero-badge-logo.is-mono {
  background: transparent;
  border-color: transparent;
}
.hero-badge-logo.is-mono img {
  width: 16px;
  height: 16px;
  filter: none;
}
.runtime-badge {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.76rem;
}

/* ---------- Hero image (video card slot) ---------- */
.VPHero .image {
  align-self: center !important;
}
.VPHero .image-container {
  width: 100% !important;
  height: auto !important;
  max-width: 540px !important;
  background: transparent !important;
  position: relative !important;
}
.VPHero .image-bg {
  display: none !important;
}
.VPHero .image-src {
  display: none !important;
}

/* HeroVideo card */
.hero-video-card {
  position: relative;
  width: 100%;
  max-width: 540px;
  margin-left: auto;
}
.hero-video-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(closest-side, rgba(0, 212, 170, 0.28), transparent 70%);
  filter: blur(30px);
  z-index: 0;
  pointer-events: none;
}
.hero-video-frame {
  position: relative;
  z-index: 1;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #0a0c12, #11141c);
  border: 1px solid rgba(0, 212, 170, 0.18);
  box-shadow:
    0 32px 80px -32px rgba(0, 212, 170, 0.5),
    0 12px 32px -12px rgba(0, 0, 0, 0.4);
}
.hero-video-frame video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-video-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}
.hero-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: rgba(0, 212, 170, 0.85);
  border: 0;
  cursor: pointer;
  color: #06070b;
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: transform 0.2s ease, background 0.2s ease;
  z-index: 2;
}
.hero-video-play:hover {
  transform: translate(-50%, -50%) scale(1.08);
  background: rgba(0, 212, 170, 1);
}
.hero-video-play-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(0, 212, 170, 0.5);
  animation: ringPulse 2s ease-out infinite;
}
.hero-video-play-icon {
  position: relative;
  z-index: 1;
  margin-left: 4px;
  font-weight: 700;
}
@keyframes ringPulse {
  0% { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.6); opacity: 0; }
}
.hero-video-caption {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--vp-c-text-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 600;
}
.hero-video-caption .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--vp-c-brand-1);
  box-shadow: 0 0 10px var(--vp-c-brand-1);
  animation: liveDot 1.6s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* small screens — let video stack under text */
@media (max-width: 960px) {
  .hero-video-card {
    margin: 32px auto 0;
    max-width: 100%;
  }
}

/* ---------- Feature cards (glassy) ---------- */
.VPFeatures {
  padding-top: 56px !important;
  padding-bottom: 16px !important;
  position: relative;
}
.VPFeatures .container {
  max-width: 1200px !important;
}
.VPFeature {
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease !important;
  border: 1px solid var(--vp-c-divider) !important;
  border-radius: 16px !important;
  padding: 28px !important;
  background: rgba(255, 255, 255, 0.55) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  overflow: hidden;
}
.dark .VPFeature {
  background: rgba(12, 14, 20, 0.55) !important;
  border-color: rgba(140, 160, 200, 0.1) !important;
}
.VPFeature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 212, 170, 0.4), transparent);
  opacity: 0;
  transition: opacity 0.2s ease;
}
.VPFeature:hover {
  transform: translateY(-4px);
  border-color: var(--vp-c-brand-1) !important;
  box-shadow:
    0 24px 48px -24px rgba(0, 184, 148, 0.4),
    0 0 0 1px rgba(0, 212, 170, 0.15) inset;
  background: rgba(255, 255, 255, 0.7) !important;
}
.dark .VPFeature:hover {
  background: rgba(17, 20, 28, 0.75) !important;
  box-shadow:
    0 24px 48px -24px rgba(0, 212, 170, 0.5),
    0 0 0 1px rgba(0, 212, 170, 0.2) inset;
}
.VPFeature:hover::before { opacity: 1; }
.VPFeature .icon {
  font-size: 1.7rem !important;
  background: linear-gradient(135deg, rgba(0, 212, 170, 0.16), rgba(59, 130, 246, 0.12)) !important;
  border: 1px solid rgba(0, 212, 170, 0.18) !important;
  border-radius: 12px !important;
  width: 52px !important;
  height: 52px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 18px !important;
}
.VPFeature .title {
  font-size: 1.08rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
  color: var(--vp-c-text-1) !important;
}
.VPFeature .details {
  font-size: 0.88rem !important;
  line-height: 1.6 !important;
  opacity: 0.75;
  margin-top: 8px !important;
}

/* ---------- Feature grid — minimal, monochrome, no AI-vibe ---------- */
.fg {
  max-width: 1120px;
  margin: 88px auto 0;
  padding: 0 24px;
}
.fg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--vp-c-divider);
  border: 1px solid var(--vp-c-divider);
  border-radius: 14px;
  overflow: hidden;
}
@media (max-width: 960px) {
  .fg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .fg-grid { grid-template-columns: 1fr; }
}

.fg-card {
  position: relative;
  padding: 32px 28px;
  background: var(--vp-c-bg);
  transition: background 0.18s ease;
  animation: anetFadeInUp 0.5s cubic-bezier(0.21, 1.02, 0.73, 1) backwards;
}
.fg-card:nth-child(1) { animation-delay: 0s; }
.fg-card:nth-child(2) { animation-delay: 0.04s; }
.fg-card:nth-child(3) { animation-delay: 0.08s; }
.fg-card:nth-child(4) { animation-delay: 0.12s; }
.fg-card:nth-child(5) { animation-delay: 0.16s; }
.fg-card:nth-child(6) { animation-delay: 0.20s; }

.fg-card:hover {
  background: var(--vp-c-bg-soft);
}

.fg-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--vp-c-brand-1);
  margin-bottom: 22px;
}
.fg-icon svg {
  width: 26px;
  height: 26px;
  display: block;
}

.fg-title {
  font-size: 1.05rem !important;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  color: var(--vp-c-text-1);
}
.fg-desc {
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--vp-c-text-2);
  margin: 0;
}


/* ---------- Trust row ---------- */
.trust-row {
  display: flex;
  justify-content: center;
  gap: clamp(28px, 6vw, 96px);
  flex-wrap: wrap;
  padding: 64px 24px 24px;
  max-width: 1080px;
  margin: 0 auto;
  position: relative;
}
.trust-row::before {
  content: "";
  position: absolute;
  top: 32px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 720px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vp-c-divider), transparent);
}
.trust-item {
  text-align: center;
}
.trust-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--vp-home-hero-name-background);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.trust-label {
  display: block;
  font-size: 0.74rem;
  color: var(--vp-c-text-2);
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 600;
}

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  padding: 88px 24px 112px;
  margin-top: 32px;
  position: relative;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 720px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--vp-c-divider), transparent);
}
.final-cta-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
  background: var(--vp-home-hero-name-background);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.final-cta-sub {
  font-size: 1.02rem;
  color: var(--vp-c-text-2);
  margin-bottom: 32px;
}
.final-cta-actions {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cta-primary,
.cta-ghost {
  display: inline-flex;
  align-items: center;
  padding: 13px 30px;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.cta-primary {
  color: #fff !important;
  background: linear-gradient(135deg, var(--vp-c-brand-1), var(--vp-c-brand-2));
  box-shadow: 0 8px 28px -8px rgba(0, 158, 126, 0.55);
}
.cta-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 36px -10px rgba(0, 158, 126, 0.7);
}
.cta-ghost {
  color: var(--vp-c-text-1) !important;
  background: rgba(120, 130, 145, 0.05);
  border: 1px solid var(--vp-c-divider);
  backdrop-filter: blur(10px);
}
.cta-ghost:hover {
  background: rgba(120, 130, 145, 0.1);
  border-color: var(--vp-c-brand-1);
  transform: translateY(-1px);
}

/* ---------- Sidebar / doc tweaks (kept) ---------- */
.VPSidebarItem.is-active > .item > .link > .text {
  color: var(--vp-c-brand-1);
}
.vp-doc a {
  color: var(--vp-c-brand-1);
}
.vp-doc a:hover {
  color: var(--vp-c-brand-2);
}

/* ---------- Mobile (≤ 720px) — landing-only tuning ---------- */
@media (max-width: 720px) {
  /* Hero typography */
  .VPHero {
    padding-top: 56px !important;
    padding-bottom: 16px !important;
  }
  .VPHero .name {
    font-size: clamp(2.4rem, 11vw, 3.2rem) !important;
    letter-spacing: -0.03em !important;
  }
  .VPHero .text {
    font-size: clamp(1.5rem, 6.5vw, 2rem) !important;
  }
  .VPHero .tagline {
    font-size: 0.95rem !important;
    margin-top: 14px !important;
  }
  .VPHero .actions {
    gap: 10px !important;
    margin-top: 22px !important;
  }
  .VPHero .VPButton {
    height: 42px !important;
    line-height: 42px !important;
    padding: 0 16px !important;
    font-size: 0.92rem !important;
  }

  /* Hero notice — compact */
  .hero-notice {
    padding: 5px 10px 5px 5px;
    font-size: 0.72rem;
    margin-bottom: 18px;
  }
  .hero-notice-text {
    font-size: 0.72rem;
    line-height: 1.4;
  }
  .hero-notice-code {
    font-size: 0.68rem;
  }

  /* Hero image (video) — full width below */
  .VPHero .image-container {
    margin: 24px 0 0 !important;
    max-width: 100% !important;
  }
  .hero-video-card {
    margin: 0;
    max-width: 100%;
  }
  .hero-video-frame {
    aspect-ratio: 16 / 10;
  }
  .hero-video-play {
    width: 60px;
    height: 60px;
    font-size: 1.1rem;
  }

  /* Install command — fit small screens */
  .install-cmd {
    margin-top: 22px;
    max-width: 100%;
  }
  .install-cmd-head {
    padding: 8px 12px;
  }
  .install-cmd-body {
    padding: 12px 14px 14px;
    font-size: 0.82rem;
  }
  .install-cmd-line {
    font-size: 0.78rem;
  }
  .install-cmd-text {
    font-size: 0.78rem;
  }
  .install-cmd-copy {
    padding: 4px 10px;
    font-size: 0.7rem;
  }

  /* Hero badges — single column, no overflow */
  .hero-badges {
    margin-top: 24px;
    gap: 14px;
  }
  .hero-badges-list {
    gap: 6px;
  }
  .hero-badge {
    padding: 4px 10px 4px 5px;
    font-size: 0.7rem;
  }
  .hero-badge-logo {
    width: 18px;
    height: 18px;
  }
  .hero-badge-logo img {
    width: 12px;
    height: 12px;
  }
  .hero-badge-logo.is-mono img {
    width: 14px;
    height: 14px;
  }
  .runtime-badge {
    font-size: 0.7rem;
  }

  /* Trust row — 2×2 grid on small screens, looks more balanced */
  .trust-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 12px;
    padding: 40px 24px 8px;
  }
  .trust-num {
    font-size: 1.7rem;
  }
  .trust-label {
    font-size: 0.66rem;
    margin-top: 6px;
  }

  /* Feature grid — already 1 col, tighten padding */
  .fg {
    margin-top: 48px;
  }
  .fg-card {
    padding: 24px 22px;
  }
  .fg-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 14px;
  }
  .fg-icon svg {
    width: 22px;
    height: 22px;
  }
  .fg-title {
    font-size: 1rem !important;
  }
  .fg-desc {
    font-size: 0.85rem;
  }

  /* Final CTA — buttons stack on tiny screens, side-by-side mid */
  .final-cta {
    padding: 56px 24px 72px;
  }
  .final-cta-title {
    font-size: clamp(1.6rem, 7vw, 2rem);
  }
  .final-cta-sub {
    font-size: 0.92rem;
    margin-bottom: 24px;
  }
  .final-cta-actions {
    width: 100%;
    flex-direction: column;
    gap: 10px;
  }
  .cta-primary,
  .cta-ghost {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
  }

  /* Hero backdrop scaled down — orbs less aggressive */
  .hero-backdrop { height: 580px; }
  .hero-orb-a { width: 360px; height: 360px; }
  .hero-orb-b { width: 320px; height: 320px; }
  .hero-orb-c { width: 280px; height: 280px; }
}

/* Extra tight phones */
@media (max-width: 380px) {
  .VPHero .name {
    font-size: 2.1rem !important;
  }
  .VPHero .text {
    font-size: 1.3rem !important;
  }
  .trust-row {
    padding: 32px 20px 8px;
    gap: 20px 8px;
  }
  .install-cmd-body {
    font-size: 0.74rem;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .hero-orb,
  .hero-video-play-ring,
  .hero-video-caption .dot {
    animation: none !important;
  }
}
