*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --blue: #2563eb;
    --indigo: #4f46e5;
    --violet: #7c3aed;
    --sky: #0ea5e9;
    --text: #1e293b;
    --text2: #475569;
    --text3: #94a3b8;
    --white: #ffffff;
    --card: rgba(255, 255, 255, 0.75);
    --r-sm: .5rem;
    --r-md: 1rem;
    --r-lg: 1.5rem;
    --r-xl: 2rem;
    --t-fast: 150ms cubic-bezier(.4, 0, .2, 1);
    --t-base: 300ms cubic-bezier(.4, 0, .2, 1);
    --t-slow: 500ms cubic-bezier(.4, 0, .2, 1);
}

html {
    font-size: 16px;
    scroll-behavior: smooth
}

body {
    font-family: var(--font);
    min-height: 100vh;
    overflow-x: hidden;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    -webkit-font-smoothing: antialiased;
    position: relative;
    background: #e0e7ff
}

/* ===== Mesh Background ===== */
.mesh-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden
}

.mesh-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 25%, #e0e7ff 50%, #bae6fd 75%, #ddd6fe 100%);
    animation: meshShift 12s ease-in-out infinite alternate
}

@keyframes meshShift {
    0% {
        background: linear-gradient(135deg, #dbeafe 0%, #c7d2fe 25%, #e0e7ff 50%, #bae6fd 75%, #ddd6fe 100%)
    }

    33% {
        background: linear-gradient(200deg, #bae6fd 0%, #ddd6fe 30%, #c7d2fe 60%, #dbeafe 100%)
    }

    66% {
        background: linear-gradient(320deg, #c7d2fe 0%, #bae6fd 25%, #ddd6fe 55%, #e0e7ff 100%)
    }

    100% {
        background: linear-gradient(45deg, #ddd6fe 0%, #dbeafe 30%, #bae6fd 60%, #c7d2fe 100%)
    }
}

.mesh-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(99, 102, 241, .07) 1.5px, transparent 1.5px), linear-gradient(90deg, rgba(99, 102, 241, .07) 1.5px, transparent 1.5px);
    background-size: 48px 48px;
    animation: gridMove 30s linear infinite
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0)
    }

    100% {
        transform: translate(48px, 48px)
    }
}

/* Orbs */
.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    mix-blend-mode: multiply;
    animation: orbFloat 10s ease-in-out infinite alternate
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: rgba(59, 130, 246, .25);
    top: -80px;
    left: -80px;
    animation-delay: 0s
}

.orb-2 {
    width: 350px;
    height: 350px;
    background: rgba(124, 58, 237, .2);
    bottom: -60px;
    right: -60px;
    animation-delay: 2s
}

.orb-3 {
    width: 280px;
    height: 280px;
    background: rgba(14, 165, 233, .2);
    top: 40%;
    right: 10%;
    animation-delay: 4s
}

.orb-4 {
    width: 320px;
    height: 320px;
    background: rgba(79, 70, 229, .15);
    bottom: 30%;
    left: 5%;
    animation-delay: 6s
}

@keyframes orbFloat {
    0% {
        transform: translate(0, 0) scale(1)
    }

    50% {
        transform: translate(30px, -20px) scale(1.1)
    }

    100% {
        transform: translate(-20px, 30px) scale(1.05)
    }
}

/* Particles */
.particles {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none
}

.particle {
    position: absolute;
    border-radius: 50%;
    opacity: 0;
    animation: pFloat 7s ease-in-out infinite
}

@keyframes pFloat {
    0% {
        opacity: 0;
        transform: translateY(100vh) scale(0)
    }

    10% {
        opacity: .5
    }

    90% {
        opacity: .5
    }

    100% {
        opacity: 0;
        transform: translateY(-20vh) scale(1)
    }
}

/* ===== Layout ===== */
.container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1000px;
    padding: 3rem 2rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    min-height: 100vh;
    justify-content: flex-start
}

/* ===== Header ===== */
.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: fadeDown .8s ease-out
}

@keyframes fadeDown {
    from {
        opacity: 0;
        transform: translateY(-24px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.logo-section {
    display: flex;
    align-items: center
}

.logo-name-img {
    height: 30px;
    width: auto;
    display: block;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(37, 99, 235, .15))
}

.header-badge {
    display: flex;
    align-items: center;
    gap: .4rem;
    background: rgba(255, 255, 255, .7);
    border: 1px solid rgba(16, 185, 129, .2);
    padding: .4rem .9rem;
    border-radius: 100px;
    font-size: .8rem;
    color: #059669;
    font-weight: 600;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, .04)
}

.pulse-dot {
    width: 7px;
    height: 7px;
    background: #10b981;
    border-radius: 50%;
    position: relative;
    animation: pulse 2s ease-in-out infinite
}

.pulse-dot::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid #10b981;
    animation: pulseRing 2s ease-in-out infinite
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1
    }

    50% {
        opacity: .4
    }
}

@keyframes pulseRing {
    0% {
        transform: scale(.8);
        opacity: .7
    }

    100% {
        transform: scale(1.8);
        opacity: 0
    }
}

/* ===== Hero ===== */
.hero {
    text-align: center;
    animation: fadeUp .8s ease-out .15s backwards
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px)
    }

    to {
        opacity: 1;
        transform: translateY(0)
    }
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -.03em;
    margin-bottom: .6rem
}

.gradient-text {
    background: linear-gradient(135deg, var(--blue), var(--violet), var(--sky));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text
}

.hero-desc {
    font-size: 1rem;
    color: var(--text2);
    line-height: 1.6;
    max-width: 480px;
    margin: 0 auto
}

/* ===== Download Grid ===== */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    animation: fadeUp .8s ease-out .3s backwards
}

/* ===== Download Card ===== */
.download-card {
    position: relative;
    text-decoration: none;
    color: var(--text);
    background: var(--card);
    border-radius: var(--r-xl);
    overflow: hidden;
    cursor: pointer;
    transition: var(--t-base);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    width: 100%;
    max-width: 440px;
    box-shadow: 0 4px 24px rgba(37, 99, 235, .08), 0 1px 3px rgba(0, 0, 0, .04);
}

.download-card:hover {
    transform: translateY(-10px) scale(1.02);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 20px 60px rgba(37, 99, 235, .15), 0 4px 12px rgba(0, 0, 0, .06);
}

.download-card:active {
    transform: translateY(-4px) scale(1.01);
    transition: var(--t-fast)
}

/* Card Shine */
.card-shine {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 180deg, transparent, rgba(99, 102, 241, .06), transparent, rgba(14, 165, 233, .06), transparent);
    animation: shineSpin 8s linear infinite;
    z-index: 0
}

@keyframes shineSpin {
    from {
        transform: rotate(0deg)
    }

    to {
        transform: rotate(360deg)
    }
}

/* Card Border */
.card-border {
    position: absolute;
    inset: 0;
    border-radius: var(--r-xl);
    border: 1.5px solid rgba(99, 102, 241, .12);
    transition: var(--t-base);
    pointer-events: none;
    z-index: 3
}

.download-card:hover .card-border {
    border-color: rgba(99, 102, 241, .25);
    box-shadow: inset 0 0 40px rgba(99, 102, 241, .03)
}

/* Card Content */
.card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 2rem;
    gap: 1.5rem
}

/* Icon */
.card-icon-wrapper {
    position: relative;
    width: 80px;
    height: 80px
}

.card-icon-bg {
    position: absolute;
    inset: 0;
    border-radius: var(--r-lg);
    background: linear-gradient(135deg, rgba(37, 99, 235, .1), rgba(124, 58, 237, .08));
    animation: iconPulse 3s ease-in-out infinite alternate;
    z-index: 0
}

@keyframes iconPulse {
    0% {
        transform: scale(1);
        opacity: .8
    }

    100% {
        transform: scale(1.08);
        opacity: 1
    }
}

.card-icon {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    transition: var(--t-base)
}

.card-icon svg {
    width: 40px;
    height: 40px
}

.download-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--indigo)
}

/* IT Card Variants */
.card-icon-bg-it {
    background: linear-gradient(135deg, rgba(79, 70, 229, .1), rgba(124, 58, 237, .08))
}

.card-icon-it {
    color: var(--indigo)
}

.download-card.card-it:hover .card-icon {
    color: var(--violet)
}

.download-btn-it {
    background: linear-gradient(135deg, var(--indigo), var(--violet)) !important;
}

.download-btn-it::before {
    background: linear-gradient(135deg, var(--violet), #9333ea) !important;
}

/* Info */
.card-info {
    display: flex;
    flex-direction: column;
    gap: .35rem
}

.card-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -.02em
}

.card-desc {
    font-size: .9rem;
    color: var(--text2);
    line-height: 1.5
}

/* Action */
.card-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    width: 100%
}

.download-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .75rem 1.75rem;
    border-radius: var(--r-sm);
    font-weight: 600;
    font-size: .9rem;
    background: linear-gradient(135deg, var(--blue), var(--indigo));
    color: var(--white);
    border: none;
    transition: var(--t-base);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(37, 99, 235, .25);
}

.download-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    opacity: 0;
    transition: var(--t-base)
}

.download-card:hover .download-btn::before {
    opacity: 1
}

.download-card:hover .download-btn {
    box-shadow: 0 8px 28px rgba(79, 70, 229, .35);
    transform: translateY(-1px)
}

.download-btn svg,
.download-btn span {
    position: relative;
    z-index: 1
}

.download-btn svg {
    width: 18px;
    height: 18px;
    transition: var(--t-base)
}

.download-card:hover .download-btn svg {
    animation: bounceDown 1s ease-in-out infinite
}

@keyframes bounceDown {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(3px)
    }
}

.file-info {
    font-size: .78rem;
    color: var(--text3);
    font-weight: 400;
    letter-spacing: .03em
}

/* ===== Ripple ===== */
.ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    background: rgba(99, 102, 241, .12);
    animation: rippleEffect .6s ease-out;
    pointer-events: none;
    z-index: 10
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0
    }
}

/* ===== Download Feedback ===== */
.download-feedback {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: rgba(255, 255, 255, .92);
    border: 1px solid rgba(16, 185, 129, .25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: #059669;
    padding: .8rem 1.5rem;
    border-radius: var(--r-sm);
    font-size: .9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: .5rem;
    transition: transform .4s cubic-bezier(.34, 1.56, .64, 1);
    z-index: 100;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .08);
}

.download-feedback.show {
    transform: translateX(-50%) translateY(0)
}

.download-feedback svg {
    width: 18px;
    height: 18px
}

/* ===== Footer ===== */
.footer {
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: .4rem;
    animation: fadeUp .8s ease-out .5s backwards
}

.footer-line {
    width: 48px;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    margin: 0 auto .75rem;
    border-radius: 1px;
    opacity: .5
}

.footer p {
    font-size: .8rem;
    color: var(--text2);
    font-weight: 400
}

.footer-sub {
    color: var(--text3) !important;
    font-size: .72rem !important
}

/* ===== Password Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    visibility: hidden;
    transition: all .3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--white);
    border-radius: var(--r-xl);
    padding: 2.5rem;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .15);
    transform: translateY(20px) scale(0.95);
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1);
    text-align: center;
}

.modal-overlay.active .modal {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, .05);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--t-base);
    color: var(--text3);
}

.modal-close:hover {
    background: rgba(0, 0, 0, .1);
    color: var(--text);
}

.modal-close svg {
    width: 16px;
    height: 16px;
}

.modal-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    color: var(--indigo);
    background: linear-gradient(135deg, rgba(79, 70, 229, .08), rgba(124, 58, 237, .06));
    border-radius: var(--r-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-icon svg {
    width: 32px;
    height: 32px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: .35rem;
}

.modal-desc {
    font-size: .85rem;
    color: var(--text2);
    margin-bottom: 1.25rem;
    line-height: 1.5;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper input {
    width: 100%;
    padding: .75rem 1rem;
    padding-right: 2.75rem;
    border: 1.5px solid rgba(99, 102, 241, .15);
    border-radius: var(--r-sm);
    font-size: .9rem;
    font-family: var(--font);
    color: var(--text);
    background: rgba(241, 245, 249, .5);
    transition: var(--t-base);
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--indigo);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, .1);
    background: var(--white);
}

.toggle-password {
    position: absolute;
    right: .75rem;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text3);
    display: flex;
    padding: 0;
    transition: var(--t-base);
}

.toggle-password:hover {
    color: var(--text2);
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.modal-error {
    font-size: .8rem;
    color: #dc2626;
    min-height: 1.2rem;
    transition: var(--t-base);
}

.modal-submit {
    padding: .75rem;
    border: none;
    border-radius: var(--r-sm);
    background: linear-gradient(135deg, var(--indigo), var(--violet));
    color: var(--white);
    font-size: .9rem;
    font-weight: 600;
    font-family: var(--font);
    cursor: pointer;
    transition: var(--t-base);
    box-shadow: 0 4px 16px rgba(79, 70, 229, .25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
}

.modal-submit:hover {
    box-shadow: 0 8px 28px rgba(79, 70, 229, .35);
    transform: translateY(-1px);
}

.modal-submit:active {
    transform: translateY(0);
}

.spinner {
    width: 20px;
    height: 20px;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media(min-width:1600px) {
    .container {
        max-width: 1100px
    }

    .hero-title {
        font-size: 2.25rem
    }
}

@media(max-width:768px) {
    .container {
        padding: 2rem 1.5rem;
        gap: 2rem
    }

    .download-grid {
        grid-template-columns: 1fr;
    }

    .header {
        flex-direction: column;
        gap: 1rem;
        text-align: center
    }

    .hero-title {
        font-size: 1.5rem
    }

    .logo-name-img {
        height: 18px
    }

    .card-content {
        padding: 2rem 1.5rem
    }

    .modal {
        padding: 2rem 1.5rem;
        width: 92%;
    }
}

@media(max-width:480px) {
    .container {
        padding: 1.5rem 1rem
    }

    .hero-title {
        font-size: 1.25rem
    }

    .card-content {
        padding: 1.5rem 1rem
    }
}

::selection {
    background: rgba(99, 102, 241, .15);
    color: var(--text)
}

::-webkit-scrollbar {
    width: 6px
}

::-webkit-scrollbar-track {
    background: #e0e7ff
}

::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, .2);
    border-radius: 3px
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, .35)
}