/* ─── AI hero composition ─── */
.ai-hero-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 480px;
    margin-left: auto;
}
.ai-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(50px);
    opacity: 0.55;
    z-index: 0;
    pointer-events: none;
}
.ai-hero-orb--violet {
    width: 55%;
    height: 55%;
    top: -8%;
    left: -6%;
    background: radial-gradient(circle, #7c3aed 0%, transparent 70%);
}
.ai-hero-orb--sky {
    width: 60%;
    height: 60%;
    bottom: -10%;
    right: -8%;
    background: radial-gradient(circle, #05a5f4 0%, transparent 70%);
}
.ai-hero-network {
    position: absolute;
    inset: 4% 4% 4% 4%;
    width: 92%;
    height: 92%;
    z-index: 1;
    opacity: 0.95;
}
.ai-hero-chat,
.ai-hero-code {
    position: absolute;
    z-index: 2;
    background: #fff;
    border: 1px solid rgba(11,16,32,0.06);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(11,16,32,0.18), 0 4px 10px rgba(11,16,32,0.06);
    backdrop-filter: blur(6px);
}
.ai-hero-chat {
    top: 6%;
    left: 0;
    width: 60%;
    padding: 0.85rem 1rem 1rem;
    animation: aiFloatA 6s ease-in-out infinite;
}
.ai-hero-code {
    bottom: 6%;
    right: 0;
    width: 64%;
    padding: 0;
    overflow: hidden;
    background: #0a0f1f;
    border-color: rgba(255,255,255,0.08);
    animation: aiFloatB 7s ease-in-out infinite;
}
@keyframes aiFloatA {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
@keyframes aiFloatB {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(8px); }
}
@media (prefers-reduced-motion: reduce) {
    .ai-hero-chat,
    .ai-hero-code { animation: none; }
    .ai-hero-network circle { animation: none; }
}

/* Chat card */
.ai-hero-chat-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(11,16,32,0.06);
    margin-bottom: 0.7rem;
}
.ai-hero-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7c3aed, #05a5f4);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ai-hero-avatar svg { width: 18px; height: 18px; }
.ai-hero-chat-name {
    font-weight: 700;
    font-size: 0.88rem;
    color: #0b1020;
    line-height: 1.1;
}
.ai-hero-chat-status {
    font-size: 0.7rem;
    color: #6b7280;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-top: 0.15rem;
}
.ai-hero-dot-live {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #28c840;
    box-shadow: 0 0 0 3px rgba(40,200,64,0.18);
}
.ai-hero-chat-msg {
    font-size: 0.78rem;
    line-height: 1.4;
    padding: 0.5rem 0.7rem;
    border-radius: 10px;
    margin-bottom: 0.45rem;
    max-width: 86%;
}
.ai-hero-chat-msg--in {
    background: #f3f4f6;
    color: #1f2937;
    border-top-left-radius: 3px;
}
.ai-hero-chat-msg--out {
    background: linear-gradient(135deg, #7c3aed, #05a5f4);
    color: #fff;
    margin-left: auto;
    border-top-right-radius: 3px;
}
.ai-hero-typing {
    display: inline-flex;
    gap: 3px;
    vertical-align: middle;
}
.ai-hero-typing span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,0.85);
    animation: aiBlink 1.3s infinite ease-in-out;
}
.ai-hero-typing span:nth-child(2) { animation-delay: 0.18s; }
.ai-hero-typing span:nth-child(3) { animation-delay: 0.36s; }
@keyframes aiBlink {
    0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
    40%           { opacity: 1;   transform: translateY(-2px); }
}

/* Code card */
.ai-hero-code-head {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.55rem 0.8rem;
    background: rgba(255,255,255,0.04);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.ai-hero-code-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.ai-hero-code-dot--r { background: #ff5f57; }
.ai-hero-code-dot--y { background: #febc2e; }
.ai-hero-code-dot--g { background: #28c840; }
.ai-hero-code-file {
    margin-left: 0.45rem;
    color: rgba(255,255,255,0.55);
    font-size: 0.72rem;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}
.ai-hero-code-body {
    margin: 0;
    padding: 0.9rem 1rem 1rem;
    color: #e6e9f5;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
    font-size: 0.78rem;
    line-height: 1.6;
    white-space: pre;
    overflow: hidden;
}
.ai-c-key { color: #c084fc; }
.ai-c-fn  { color: #38bdf8; }
.ai-c-str { color: #fbbf24; }
.ai-c-mut { color: #f472b6; }
.ai-c-ok  { color: #28c840; font-style: italic; }

@media (max-width: 991.98px) {
    .ai-hero-stage { margin: 2rem auto 0; max-width: 420px; }
}
@media (max-width: 575.98px) {
    .ai-hero-chat-msg { font-size: 0.72rem; }
    .ai-hero-code-body { font-size: 0.7rem; }
}

.vibe-wrapper {
    background: radial-gradient(1200px 600px at 10% 0%, rgba(124,58,237,0.35), transparent 60%),
                radial-gradient(1000px 500px at 90% 100%, rgba(5,165,244,0.30), transparent 60%),
                linear-gradient(135deg, #0b1020 0%, #131a36 100%);
    color: #fff;
    overflow: hidden;
}
.vibe-wrapper .text-white-70 { color: rgba(255,255,255,0.78); }
.vibe-eyebrow {
    background: rgba(255,255,255,0.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.18);
}
.vibe-accent {
    background: linear-gradient(90deg, #7c3aed, #05a5f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.vibe-wrapper .bullet-white > li > span:first-child {
    background: rgba(255,255,255,0.14);
    color: #fff;
}
.vibe-terminal {
    background: #0a0f1f;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;
}
.vibe-terminal-bar {
    background: #131a2e;
    padding: 0.55rem 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.vibe-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.vibe-terminal-title {
    color: rgba(255,255,255,0.55);
    font-size: 0.78rem;
    margin-left: 0.5rem;
}
.vibe-terminal-body {
    padding: 1.1rem 1.25rem;
    font-size: 0.85rem;
    line-height: 1.65;
}
.vibe-line { margin: 0 0 0.45rem; color: #e6e9f5; }
.vibe-prompt { color: #7c3aed; font-weight: 700; margin-right: 0.4rem; }
.vibe-think { color: rgba(230,233,245,0.65); font-style: italic; }
.vibe-ok { color: #28c840; }
.vibe-cursor { margin-top: 0.5rem; }
.vibe-blink {
    display: inline-block;
    color: #05a5f4;
    animation: vibeBlink 1s steps(2) infinite;
}
@keyframes vibeBlink { 50% { opacity: 0; } }
.vibe-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.9rem 0.5rem;
}
.vibe-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    background: linear-gradient(90deg, #7c3aed, #05a5f4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.vibe-stat-label { font-size: 0.78rem; color: rgba(255,255,255,0.7); }
.vibe-btn-primary {
    background: #fff;
    color: #0b1020 !important;
    font-weight: 600;
    padding: 0.7rem 1.5rem;
    border: 0;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.vibe-btn-primary:hover,
.vibe-btn-primary:focus {
    background: #fff;
    color: #7c3aed !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(255,255,255,0.18);
}
.vibe-btn-outline {
    color: #fff !important;
    border-color: rgba(255,255,255,0.45) !important;
    padding: 0.7rem 1.5rem;
    font-weight: 600;
}
.vibe-btn-outline:hover,
.vibe-btn-outline:focus {
    background: rgba(255,255,255,0.1) !important;
    border-color: #fff !important;
    color: #fff !important;
}

.ai-service-card {
    border: 1px solid rgba(11,16,32,0.06) !important;
    box-shadow: 0 12px 30px rgba(11,16,32,0.06) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.ai-service-card:hover,
.ai-service-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(5,165,244,0.2) !important;
    box-shadow: 0 18px 38px rgba(11,16,32,0.1) !important;
}
.ai-service-count {
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.65rem;
    border-radius: 999px;
    background: rgba(5,165,244,0.1);
    color: #05a5f4;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
}

.ai-stack-card {
    min-height: 128px;
    border: 1px solid rgba(11,16,32,0.06) !important;
    box-shadow: 0 8px 24px rgba(11,16,32,0.05) !important;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.ai-stack-card:hover,
.ai-stack-card:focus-within {
    transform: translateY(-3px);
    border-color: rgba(79,124,255,0.22) !important;
    box-shadow: 0 14px 32px rgba(11,16,32,0.09) !important;
}
.ai-stack-logo {
    width: 34px;
    height: 34px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ai-stack-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: grayscale(1) brightness(0);
}
.ai-stack-logo-fallback {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0b1020;
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0;
}
.ai-stack-logo img.is-hidden {
    display: none;
}
.ai-stack-logo img.is-hidden + .ai-stack-logo-fallback {
    display: flex;
}
.ai-stack-card h6 {
    color: #151827;
    font-size: 0.98rem;
    line-height: 1.35;
}
