/* Flex Api 首页视觉增强（预编译 tailwind.min.css 未包含的样式） */

/* ---- 入场动画 ---- */
@keyframes fa-fade-up {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: none; }
}
.fa-fade-up { animation: fa-fade-up 0.7s ease-out both; }
.fa-delay-1 { animation-delay: 0.1s; }
.fa-delay-2 { animation-delay: 0.2s; }
.fa-delay-3 { animation-delay: 0.3s; }
@media (prefers-reduced-motion: reduce) {
    .fa-fade-up { animation: none; }
}

/* ---- Hero 背景：淡网格 + 光晕 ---- */
.fa-grid-bg {
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(37, 99, 235, 0.055) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 45%, transparent 100%);
    mask-image: radial-gradient(ellipse 85% 70% at 50% 0%, #000 45%, transparent 100%);
}
.fa-glow {
    position: absolute;
    border-radius: 9999px;
    filter: blur(72px);
    pointer-events: none;
}

/* ---- 渐变标题文字 ---- */
.fa-text-gradient {
    background: linear-gradient(92deg, #2563eb 10%, #7c3aed 60%, #2563eb 95%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---- 卡片浮起 ---- */
.fa-card-hover {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.fa-card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(37, 99, 235, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);
    border-color: #bfdbfe;
}

/* ---- 终端窗口 ---- */
.fa-terminal {
    background: #0b1120;
    border: 1px solid #1e293b;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(2, 6, 23, 0.35);
}
.fa-terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 14px;
    background: #111a2e;
    border-bottom: 1px solid #1e293b;
}
.fa-terminal-title {
    margin-left: 6px;
    font-size: 11px;
    color: #64748b;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.fa-dot { width: 11px; height: 11px; border-radius: 50%; }
.fa-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 12.5px;
    line-height: 1.75;
    color: #cbd5e1;
    white-space: pre;
}
.fa-tok-flag { color: #f9a8d4; }
.fa-tok-key { color: #93c5fd; }
.fa-tok-str { color: #86efac; }
.fa-tok-punct { color: #64748b; }
.fa-tok-cmd { color: #e2e8f0; font-weight: 600; }

/* ---- 三步流程连接线 ---- */
.fa-step {
    position: relative;
}
.fa-step-line {
    position: absolute;
    top: 26px;
    left: calc(50% + 44px);
    width: calc(100% - 88px);
    height: 2px;
    background: repeating-linear-gradient(90deg, #bfdbfe 0 8px, transparent 8px 16px);
}
@media (max-width: 640px) {
    .fa-step-line { display: none; }
}

/* ---- 图标底座 ---- */
.fa-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #eff6ff, #e0e7ff);
    color: #2563eb;
    margin-bottom: 16px;
}

/* ---- 深色 CTA 光晕 ---- */
.fa-cta-bg {
    background:
        radial-gradient(ellipse 60% 90% at 20% 10%, rgba(37, 99, 235, 0.35), transparent 60%),
        radial-gradient(ellipse 50% 80% at 85% 90%, rgba(124, 58, 237, 0.3), transparent 60%),
        #0b1120;
}
