/* ============================================
   Assistant Website — Shared Styles
   ============================================ */

/* --- Scroll reveal animations --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* --- Nav blur --- */
.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* --- Stat number styling --- */
.stat-number {
    font-variant-numeric: tabular-nums;
}

/* --- Feature cards with hover --- */
.feature-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.feature-card:hover {
    box-shadow: 0 12px 32px -8px rgba(0,0,0,0.12), 0 4px 8px -2px rgba(0,0,0,0.06);
    transform: translateY(-4px);
}

/* --- Mockup browser window --- */
.mockup-browser {
    background: #1a1a1e;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.06);
}
.mockup-chrome {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.mockup-dots { display: flex; gap: 6px; }
.mockup-dots span { width: 10px; height: 10px; border-radius: 50%; }
.mockup-dots span:nth-child(1) { background: #ff5f57; }
.mockup-dots span:nth-child(2) { background: #febc2e; }
.mockup-dots span:nth-child(3) { background: #28c840; }
.mockup-url {
    flex: 1;
    margin: 0 16px;
    padding: 4px 12px;
    background: rgba(255,255,255,0.05);
    border-radius: 6px;
    font-size: 11px;
    color: rgba(255,255,255,0.3);
    text-align: center;
    font-family: ui-monospace, monospace;
}
.mockup-content {
    position: relative;
    overflow: hidden;
    background: #f8fafc;
}

/* --- 3D perspective mockup (Linear-style) --- */
.perspective-container {
    perspective: 1800px;
    perspective-origin: 50% 30%;
}
.perspective-mockup {
    transform: rotateX(8deg) rotateY(-3deg) rotateZ(0.5deg);
    transform-origin: center center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.perspective-mockup:hover {
    transform: rotateX(4deg) rotateY(-1.5deg) rotateZ(0.25deg);
}

/* --- Chat mockup bubbles --- */
.chat-bubble-user {
    background: #3b82f6;
    color: white;
    border-radius: 16px 16px 4px 16px;
}
.chat-bubble-assistant {
    background: white;
    color: #1e293b;
    border-radius: 16px 16px 16px 4px;
    border: 1px solid #e2e8f0;
}
.chat-source {
    font-size: 11px;
    color: #64748b;
    background: #f1f5f9;
    border-radius: 6px;
    padding: 2px 8px;
    display: inline-block;
}

/* --- Chat input field (fake, for mockups) --- */
.chat-input-mock {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-top: 16px;
}
.chat-input-mock span {
    flex: 1;
    font-size: 13px;
    color: #94a3b8;
}
.chat-input-mock button {
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: none;
    cursor: default;
}

/* --- Dashboard scroll animation — cycles through 3 screens --- */
@keyframes dashboard-scroll {
    0%, 12%   { margin-top: 0; }
    22%, 42%  { margin-top: -540px; }
    52%, 72%  { margin-top: -1080px; }
    82%, 100% { margin-top: 0; }
}
.dashboard-scroll-anim {
    animation: dashboard-scroll 18s ease-in-out infinite;
}

/* --- Dashboard mockup --- */
.mock-sidebar-item { padding: 6px 12px; border-radius: 6px; font-size: 13px; }
.mock-sidebar-item.active { background: rgba(59,130,246,0.1); color: #3b82f6; font-weight: 500; }

/* --- Decorative background blurs --- */
.hero-glow {
    position: relative;
}
.hero-glow::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-glow::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.hero-glow > * {
    position: relative;
    z-index: 1;
}
