/* home.css - Professional Dark UI for Landing Page
   Contents:
   1. Core & Layout
   2. Utilities & Helpers
   3. Hero Section
   4. Sections, Grids & Cards
   5. Interactive Elements (Dummy Tool)
   6. Stats & Counters
   7. FAQ Section
   8. Responsive Rules
*/

/* -------------------------------------------------------------------------- */
/*                            1. CORE & LAYOUT                                */
/* -------------------------------------------------------------------------- */

/* Home Wrapper */
.home-wrapper {
    background-color: var(--home-bg);
    color: var(--home-text-main);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

.home-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 10px;
}

/* -------------------------------------------------------------------------- */
/*                          2. UTILITIES & HELPERS                            */
/* -------------------------------------------------------------------------- */

.home-text-center {
    text-align: center;
}

.home-pointer {
    cursor: pointer;
}

.home-w-100 {
    width: 100%;
}

.home-d-none {
    display: none;
}

.home-d-block {
    display: block;
}

.home-d-flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.home-mb-0 {
    margin-bottom: 0 !important;
}

.home-mt-4 {
    margin-top: 16px;
}

.home-mr-3 {
    margin-right: 12px;
}

.home-text-success {
    color: #10b981;
}

.text-primary {
    color: var(--home-primary) !important;
}

.bg-home-main {
    background: var(--home-bg);
}

.home-max-w-800 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Animation Utils */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 1.2s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.2s;
}

.delay-200 {
    transition-delay: 0.4s;
}

.delay-300 {
    transition-delay: 0.6s;
}


/* -------------------------------------------------------------------------- */
/*                             3. HERO SECTION                                */
/* -------------------------------------------------------------------------- */

.home-hero {
    position: relative;
    padding: 180px 0 100px;
    text-align: center;
    background:
        radial-gradient(circle at 15% 50%, rgba(90, 53, 222, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(165, 39, 190, 0.15), transparent 25%);
}

.home-hero .home-container {
    position: relative;
    z-index: 2;
}

.home-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(90, 53, 222, 0.1);
    border: 1px solid rgba(90, 53, 222, 0.3);
    color: #a78bfa;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.home-hero-title {
    background: var(--home-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    font-size: 3rem;
}

.home-hero-subtitle {
    font-size: 1rem;
    color: var(--home-text-muted);
    max-width: 700px;
    margin: 0 auto 50px;
}

/* Hero CTA Card */
.home-hero-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--home-border);
    border-radius: var(--home-border-radius);
    padding: 12px;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    gap: 12px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.02);
}

.home-hero-input-fake {
    flex: 1;
    background: transparent;
    border: none;
    padding: 0 24px;
    font-size: 1.1rem;
    color: var(--home-text-muted);
    display: flex;
    align-items: center;
}

.home-btn-primary {
    background: var(--home-primary);
    color: #fff;
    border: none;
    padding: 16px 32px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-btn-primary:hover {
    background: var(--home-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(90, 53, 222, 0.4);
}

/* -------------------------------------------------------------------------- */
/*                       4. SECTIONS, GRIDS & CARDS                           */
/* -------------------------------------------------------------------------- */

.home-section {
    padding: 50px 0;
    position: relative;
    background: var(--home-card-bg);
}

.home-section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.home-section-title {
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 16px;
}

/* Grid Systems */
.home-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.home-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.home-why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.home-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.home-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

/* Feature Card */
.home-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: var(--home-border-radius);
    padding: 40px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    position: relative;
    overflow: hidden;
}

.home-card:hover {
    background: var(--home-card-hover);
    border-color: rgba(90, 53, 222, 0.3);
    transform: translateY(-5px);
}

.home-card-lg-padding {
    padding: 30px;
}

.home-card-icon,
.icon-lg {
    width: 64px;
    height: 64px;
    border: 1px solid var(--home-border);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--home-text-main);
    margin-bottom: 24px;
    transition: transform 0.3s ease;
}

.icon-lg {
    font-size: 2rem;
    margin-bottom: 20px;
}

/* Generic large icon variant */

.home-card:hover .home-card-icon {
    transform: scale(1.1) rotate(5deg);
    color: var(--home-text-main);
}

.home-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.home-card-title-sm {
    font-size: 1.1rem;
}

.home-card-desc {
    color: var(--home-text-muted);
    line-height: 1.6;
    margin-bottom: 24px;
}

.home-card-link {
    margin-top: auto;
    color: var(--home-primary);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

/* Step Card */
.home-step-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    position: relative;
}

.home-step-title {
    font-size: 1.2rem;
}

.home-step-number {
    width: 40px;
    height: 40px;
    background: var(--home-gradient);
    border-radius: 50%;
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.1rem;
    box-shadow: 0 0 20px rgba(90, 53, 222, 0.4);
}

/* Showcase Gallery Item */
.home-showcase-item {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    transition: all 0.3s ease;
}

.home-showcase-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: var(--home-primary);
}

.home-showcase-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.home-showcase-item:hover img {
    transform: scale(1.05);
}

.home-showcase-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: var(--home-text-main);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-showcase-item:hover .home-showcase-overlay {
    opacity: 1;
}


/* -------------------------------------------------------------------------- */
/*                    5. INTERACTIVE ELEMENTS (DUMMY TOOL)                    */
/* -------------------------------------------------------------------------- */

.dummy-tool-container {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    position: relative;
    z-index: 5;
}

/* Wrapper for centering */
.dummy-tool-scroll-box {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* Animated Toggle Wrapper */
.dummy-tool-toggle-wrapper {
    display: flex;
    justify-content: center;
    border-radius: 50px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
    background: transparent;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all 0.5s ease;
    border: none;
    padding: 6px;
    width: fit-content;
    max-width: 90vw;
    margin-left: auto;
    margin-right: auto;
    overflow: hidden;
}

.dummy-tool-toggle-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 0 2px;
}

.dummy-tool-toggle-scroll::-webkit-scrollbar {
    display: none;
}

/* Animated Border Mask */
.dummy-tool-toggle-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50px;
    padding: 1px;
    pointer-events: none;
    background: linear-gradient(115deg, var(--home-primary), #005bff7a, #ffffff, #5106d4, var(--home-primary));
    background-size: 300% 300%;
    animation: running-stroke 8s linear infinite;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    z-index: 2;
}

.dummy-tool-toggle-wrapper:hover {
    border: translateX(0%) translateY(-3px);
    box-shadow: 0 5px 20px -5px rgba(90, 53, 222, 0.25), 0 0 20px rgba(6, 182, 212, 0.2);
}

.dummy-tool-toggle-wrapper:hover::before {
    animation-duration: 3s;
}

/* Toggle Pills */
.dummy-tool-toggle-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 50px;
    color: var(--home-text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid transparent;
    position: relative;
    z-index: 3;
    background: transparent;
}

.dummy-tool-toggle-pill i {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.dummy-tool-toggle-pill:hover {
    color: var(--home-text-main);
    background: var(--home-bg);
    border: 1px solid var(--home-card-hover);
}

.dummy-tool-toggle-pill:hover i {
    opacity: 1;
    transform: scale(1.15) rotate(5deg);
}

.dummy-tool-toggle-pill.active {
    background: linear-gradient(115deg, var(--home-primary), #424aff99, #5106d4, var(--home-primary));
    background-size: 300% 300%;
    animation: running-stroke 8s linear infinite;
    color: #fff;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(90, 53, 222, 0.4);
}

@keyframes running-stroke {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Tool Panel Card */
.dummy-tool-panel-card {
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.dummy-tool-panel-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.dummy-tool-upload-box {
    border: 2px dashed var(--home-border);
    border-radius: 16px;
    padding: 40px;
    text-align: center;
    transition: all 0.2s ease;
    display: block;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dummy-tool-upload-box:hover {
    border-color: var(--home-primary);
    background: rgba(90, 53, 222, 0.05);
}

.dummy-tool-upload-icon {
    font-size: 2.5rem;
    color: var(--home-text-muted);
    margin-bottom: 16px;
}

.dummy-tool-upload-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--home-text-main);
}

.dummy-tool-upload-subtitle {
    font-size: 0.95rem;
    color: var(--home-text-muted);
    margin-bottom: 24px;
}

.dummy-tool-footer {
    margin-top: 20px;
    text-align: center;
}

.dummy-tool-footer-text {
    font-size: 0.9rem;
    color: var(--home-text-muted);
}


/* -------------------------------------------------------------------------- */
/*                           6. STATS & COUNTERS                              */
/* -------------------------------------------------------------------------- */

.home-stats-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid var(--home-border);
}

.home-stat-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--home-text-muted);
    font-size: 0.9rem;
}

.home-stat-counter-section {
    background: rgba(255, 255, 255, 0.02);
    padding: 60px 0;
    border-top: 1px solid var(--home-border);
    border-bottom: 1px solid var(--home-border);
}

.home-counter-card {
    text-align: center;
    padding: 20px;
}

.home-counter-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--home-text-main);
    margin-bottom: 8px;
    background: var(--home-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.home-counter-label {
    color: var(--home-text-muted);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* -------------------------------------------------------------------------- */
/*                                7. FAQ SECTION                              */
/* -------------------------------------------------------------------------- */

.home-faq-card {
    padding: 24px;
    margin-bottom: 16px;
    min-height: auto;
    cursor: pointer;
    background: var(--home-card-bg);
    border: 1px solid var(--home-border);
    border-radius: 16px;
    transition: background-color 160ms ease 40ms;
}

.home-faq-card:hover {
    background: var(--home-bg-secondary);
}

.home-faq-header {
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    width: 100%;
    align-items: center;
}

.home-faq-body {
    margin-top: 16px;
    color: var(--home-text-muted);
    display: none;
    line-height: 1.6;
}

/* -------------------------------------------------------------------------- */
/*                        8. PLATFORM FEATURE SECTION                         */
/* -------------------------------------------------------------------------- */

.feature-row {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-bottom: 100px;
}

.feature-row.reveal.active {
    opacity: 1;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-media {
    flex: 1;
    position: relative;
}

.feature-img-box {
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--home-border);
    background: var(--home-card-bg);
}

.feature-img-box img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.feature-img-box:hover img {
    transform: scale(1.03);
}

.feature-label {
    display: inline-block;
    padding: 6px 16px;
    border-radius: 50px;
    background: rgba(99, 102, 241, 0.1);
    color: #818cf8;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.feature-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #7d3aff, #2680ff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.feature-desc {
    font-size: 1.05rem;
    color: var(--home-text-muted);
    line-height: 1.7;
    margin-bottom: 30px;
}

.feature-list {
    margin-left: 1.5em;
    color: var(--home-text-muted);
}


/* -------------------------------------------------------------------------- */
/*                            8. RESPONSIVE RULES                             */
/* -------------------------------------------------------------------------- */


@media (max-width: 768px) {
    .home-hero-title {
        font-size: 2.5rem;
    }

    .home-hero-card {
        flex-direction: column;
        padding: 8px;
    }

    .home-btn-primary {
        width: 100%;
        justify-content: center;
    }

    .home-stats-bar {
        gap: 16px;
        align-items: center;
    }

    .home-steps-grid {
        grid-template-columns: 1fr;
    }

    .home-grid-4 {
        display: grid;
        grid-template-columns: repeat(1, 1fr);

    }

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .feature-text {
        order: 2;
    }

    .feature-media {
        order: 1;
        width: 100%;
    }

    .feature-title {
        font-size: 1.8rem;
    }

    /* Dummy Tool Mobile */

    .dummy-tool-upload-box {
        border: 2px dashed var(--home-border);
        border-radius: 16px;
        padding: 20px;
        text-align: center;
        transition: all 0.2s ease;
        display: block;
        text-decoration: none;
        color: inherit;
        cursor: pointer;

    }

    .dummy-tool-upload-icon {
        font-size: 2rem;
        color: var(--home-text-muted);
        margin-bottom: 16px;

    }

    .dummy-tool-upload-title {
        font-size: 1rem;
        font-weight: 700;
        margin-bottom: 8px;
        color: var(--home-text-main);

    }

    .dummy-tool-upload-subtitle {
        font-size: 0.7rem;
        color: var(--home-text-muted);
        margin-bottom: 24px;

    }

    .dummy-tool-container {
        padding: 0 10px;
    }

    .dummy-tool-scroll-box {
        width: 100%;
        padding: 5px 0 20px 0;
        margin-bottom: -10px;
        display: flex;
        justify-content: center;
    }

    .dummy-tool-toggle-wrapper {
        display: flex;
        margin: 10px auto;
        margin-bottom: 10px;
        position: relative;
        left: auto;
        transform: none;
        width: fit-content;
        max-width: 95vw;
        flex-shrink: 0;
        overflow-x: hidden;
        justify-content: center;
        border-radius: 50px;
        background: var(--home-bg);
        box-shadow: 0 5px 20px -5px rgba(90, 53, 222, 0.25), 0 0 20px rgba(6, 182, 212, 0.2);
        padding: 4px;
    }

    .dummy-tool-toggle-scroll {
        justify-content: flex-start;
        gap: 20px;
    }

    .dummy-tool-toggle-wrapper::before {
        display: block;
        border-radius: 50px;
    }

    .dummy-tool-toggle-pill {
        flex: 0 0 auto;
        font-size: 0.72rem;
        padding: 7px 10px;
        gap: 5px;
    }

    .dummy-tool-toggle-pill i {
        font-size: 0.8rem;
    }

    .dummy-tool-toggle-pill.active {
        background: linear-gradient(115deg, var(--home-primary), #424aff99, #5106d4, var(--home-primary));
        background-size: 300% 300%;
        box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
    }
}