@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(0, 74, 173, 0.3);
    }

    50% {
        box-shadow: 0 0 40px rgba(0, 74, 173, 0.6);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.8s ease-out forwards;
}

.animate-fadeInUp-delay {
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fadeInUp-delay2 {
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.animate-fadeIn {
    animation: fadeIn 0.6s ease-out forwards;
}

.animate-slideInRight {
    animation: slideInRight 0.8s ease-out forwards;
}

.animate-slideInLeft {
    animation: slideInLeft 0.8s ease-out forwards;
}

.animate-float {
    animation: float 3s ease-in-out infinite;
}

.animate-pulse-glow {
    animation: pulse-glow 2s ease-in-out infinite;
}

.prose h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a2e;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.prose p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.prose ul,
.prose ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.prose ul {
    list-style-type: disc;
}

.prose ol {
    list-style-type: decimal;
}

.prose li {
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.prose a {
    color: #004aad;
    text-decoration: underline;
    transition: color 0.3s;
}

.prose a:hover {
    color: #0066ff;
}

.prose img {
    border-radius: 1rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.prose blockquote {
    border-left: 4px solid #004aad;
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background: #f0f4ff;
    border-radius: 0 0.75rem 0.75rem 0;
    color: #333;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border-radius: 1rem;
    overflow: hidden;
}

.prose th,
.prose td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
}

.prose th {
    background: #004aad;
    color: white;
    font-weight: 600;
}

.prose tr:hover {
    background: #f8fafc;
}

.prose code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #e11d48;
}

.prose pre {
    background: #1e293b;
    color: #e2e8f0;
    padding: 1.5rem;
    border-radius: 0.75rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.prose pre code {
    background: none;
    color: inherit;
    padding: 0;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #004aad, #0066ff);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #003380, #004aad);
}

::selection {
    background: rgba(0, 74, 173, 0.2);
    color: #004aad;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.fancybox__container {
    z-index: 9999 !important;
}

.mockup-showcase {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 24px;
    padding: 20px 0;
}

.mockup-item {
    text-align: center;
    flex-shrink: 0;
}

.mockup-item-desktop {
    width: 36%;
    max-width: 420px;
}

.mockup-item-tablet {
    width: 18%;
    max-width: 210px;
}

.mockup-item-phone {
    width: 10%;
    max-width: 130px;
}

.mockup-item-laptop {
    width: 30%;
    max-width: 360px;
}

.device-frame {
    position: relative;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.6s ease;
    cursor: pointer;
}

.device-frame:hover {
    transform: translateY(-16px) scale(1.03);
}

.device-monitor {
    background: linear-gradient(165deg, #e4e4e8 0%, #c8c8cf 30%, #a8a8b2 70%, #909098 100%);
    border-radius: 18px;
    padding: 12px 12px 0 12px;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset,
        0 2px 0 rgba(255, 255, 255, 0.3) inset;
    position: relative;
}

.device-monitor::before {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: radial-gradient(circle, #666 20%, #444 60%, #333 100%);
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.15), inset 0 1px 1px rgba(255, 255, 255, 0.2);
}

.device-monitor .device-screen {
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    border: 2px solid #1a1a20;
    position: relative;
}

.device-monitor .device-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.device-monitor .device-screen img {
    width: 100%;
    display: block;
}

.device-monitor .device-chin {
    height: 28px;
    background: linear-gradient(165deg, #e4e4e8, #b8b8c0);
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    position: relative;
}

.device-monitor .device-chin::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
}

.device-monitor .device-chin::after {
    content: 'ACER';
    font-size: 7px;
    font-weight: 600;
    letter-spacing: 3px;
    color: rgba(0, 0, 0, 0.12);
    font-family: Arial, sans-serif;
}

.device-monitor .device-stand {
    width: 18%;
    height: 50px;
    background: linear-gradient(to right, #bbb 0%, #d4d4da 20%, #e0e0e5 50%, #d4d4da 80%, #bbb 100%);
    margin: 0 auto;
    clip-path: polygon(20% 0, 80% 0, 100% 100%, 0 100%);
    box-shadow: 2px 0 4px rgba(0, 0, 0, 0.06), -2px 0 4px rgba(0, 0, 0, 0.06);
}

.device-monitor .device-base {
    width: 45%;
    height: 6px;
    background: linear-gradient(to bottom, #c8c8d0, #a0a0a8);
    margin: 0 auto;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1), 0 1px 0 rgba(255, 255, 255, 0.2) inset;
}

.device-phone {
    background: linear-gradient(180deg, #4a4a52 0%, #3a3a42 20%, #2a2a32 80%, #1e1e26 100%);
    border-radius: 18%;
    padding: 8px 5px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.35),
        0 0 0 1px #6a6a72,
        0 0 0 2.5px #2a2a32,
        inset 0 0 0 0.5px rgba(255, 255, 255, 0.06);
    margin: 0 auto;
    position: relative;
    aspect-ratio: auto;
}

.iphone-dynamic-island {
    width: 28%;
    height: 10px;
    background: #000;
    border-radius: 20px;
    margin: 2px auto 4px;
    position: relative;
    z-index: 3;
    box-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.device-phone::after {
    content: '';
    display: block;
    width: 28%;
    height: 4px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    margin: 5px auto 2px;
}

.device-phone .device-screen {
    border-radius: 14%;
    overflow: hidden;
    background: #000;
    position: relative;
}

.device-phone .device-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 25%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.device-phone .device-screen img {
    width: 100%;
    display: block;
}

.device-phone .device-side-btn {
    position: absolute;
    right: -2px;
    top: 28%;
    width: 2.5px;
    height: 14%;
    background: linear-gradient(to right, #5a5a62, #6a6a72, #5a5a62);
    border-radius: 0 2px 2px 0;
    box-shadow: 1px 0 1px rgba(0, 0, 0, 0.3);
}

.device-phone .device-side-btn-2 {
    position: absolute;
    left: -2px;
    top: 22%;
    width: 2.5px;
    height: 8%;
    background: linear-gradient(to left, #5a5a62, #6a6a72, #5a5a62);
    border-radius: 2px 0 0 2px;
    box-shadow: -1px 0 1px rgba(0, 0, 0, 0.3);
}

.device-phone .device-side-btn-3 {
    position: absolute;
    left: -2px;
    top: 33%;
    width: 2.5px;
    height: 14%;
    background: linear-gradient(to left, #5a5a62, #6a6a72, #5a5a62);
    border-radius: 2px 0 0 2px;
    box-shadow: -1px 0 1px rgba(0, 0, 0, 0.3);
}

.device-mute-switch {
    position: absolute;
    left: -2px;
    top: 16%;
    width: 2.5px;
    height: 4%;
    background: linear-gradient(to left, #5a5a62, #6a6a72, #5a5a62);
    border-radius: 2px 0 0 2px;
    box-shadow: -1px 0 1px rgba(0, 0, 0, 0.3);
}

.device-tablet {
    background: linear-gradient(165deg, #e0e0e5 0%, #c5c5cf 30%, #a5a5b0 70%, #959598 100%);
    border-radius: 20px;
    padding: 16px 12px;
    box-shadow:
        0 30px 100px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 1px 0 rgba(255, 255, 255, 0.25) inset;
    margin: 0 auto;
    position: relative;
}

.device-tablet::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, #666 20%, #444 100%);
    border-radius: 50%;
    margin: 0 auto 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.device-tablet::after {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    border: 2px solid rgba(100, 100, 110, 0.4);
    border-radius: 50%;
    margin: 8px auto 0;
}

.device-tablet .device-screen {
    border-radius: 4px;
    overflow: hidden;
    background: #000;
    border: 1.5px solid #1a1a22;
    position: relative;
}

.device-tablet .device-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.device-tablet .device-screen img {
    width: 100%;
    display: block;
}

.device-laptop {
    position: relative;
    margin: 0 auto;
}

.device-laptop .device-lid {
    background: linear-gradient(165deg, #e0e0e5 0%, #c0c0ca 40%, #a0a0a8 100%);
    border-radius: 14px 14px 0 0;
    padding: 10px 14px 0 14px;
    box-shadow:
        0 -8px 30px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset,
        0 1px 0 rgba(255, 255, 255, 0.2) inset;
    position: relative;
}

.device-laptop .device-lid::before {
    content: '';
    display: block;
    width: 7px;
    height: 7px;
    background: radial-gradient(circle, #666 20%, #444 100%);
    border-radius: 50%;
    margin: 0 auto 6px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.1), inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

.device-laptop .device-screen {
    border-radius: 3px;
    overflow: hidden;
    background: #000;
    border: 1.5px solid #1a1a22;
    position: relative;
}

.device-laptop .device-screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 35%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}

.device-laptop .device-screen img {
    width: 100%;
    display: block;
}

.device-laptop .device-keyboard {
    background: linear-gradient(180deg, #d5d5dc 0%, #b8b8c2 30%, #a8a8b0 100%);
    height: 20px;
    border-radius: 0 0 6px 6px;
    position: relative;
    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.device-laptop .device-keyboard::before {
    content: '';
    width: 55%;
    height: 5px;
    background: repeating-linear-gradient(90deg,
            rgba(0, 0, 0, 0.06) 0px,
            rgba(0, 0, 0, 0.06) 6px,
            transparent 6px,
            transparent 8px);
    border-radius: 2px;
}

.device-laptop .device-keyboard::after {
    content: '';
    position: absolute;
    width: 20%;
    height: 5px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.08));
    border-radius: 0 0 4px 4px;
    left: 40%;
    bottom: 0;
}

.copy-btn {
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    transform: scale(1.1);
}

.copy-btn:active {
    transform: scale(0.95);
}

@keyframes mockupSlide {
    from {
        opacity: 0;
        transform: translateY(40px) scale(0.9);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mockup-animate {
    animation: mockupSlide 0.7s ease-out forwards;
    opacity: 0;
}

.mockup-animate:nth-child(1) {
    animation-delay: 0.1s;
}

.mockup-animate:nth-child(2) {
    animation-delay: 0.25s;
}

.mockup-animate:nth-child(3) {
    animation-delay: 0.4s;
}

.mockup-animate:nth-child(4) {
    animation-delay: 0.55s;
}

@media (max-width: 1024px) {
    .mockup-showcase {
        flex-wrap: wrap;
        gap: 32px;
    }

    .mockup-item-desktop {
        width: 55%;
    }

    .mockup-item-laptop {
        width: 48%;
    }

    .mockup-item-tablet {
        width: 28%;
    }

    .mockup-item-phone {
        width: 16%;
    }
}

@media (max-width: 768px) {
    .mockup-showcase {
        flex-wrap: wrap;
        gap: 24px;
    }

    .mockup-item-desktop {
        width: 80%;
    }

    .mockup-item-laptop {
        width: 75%;
    }

    .mockup-item-tablet {
        width: 45%;
    }

    .mockup-item-phone {
        width: 30%;
    }

    .device-monitor {
        border-radius: 12px;
        padding: 8px 8px 0 8px;
    }

    .device-laptop .device-lid {
        border-radius: 10px 10px 0 0;
        padding: 8px 10px 0 10px;
    }

    .device-laptop .device-keyboard {
        height: 14px;
    }
}