/* ========================================
   HOME PAGE
======================================== */


/* ========================================
   HERO
======================================== */

.hero {
    min-height: 100vh;

    display: flex;
    align-items: center;
    justify-content: center;

    padding:
        150px
        24px
        80px;

    text-align: center;

    background:
        radial-gradient(
            circle at 50% 30%,
            color-mix(
                in srgb,
                var(--accent) 7%,
                transparent
            ),
            transparent 42%
        );
}

.hero-content {
    width: 100%;
    max-width: 900px;

    display: flex;
    flex-direction: column;
    align-items: center;
}


/* ========================================
   BADGE
======================================== */

.hero-badge {
    margin-bottom: 26px;

    padding:
        8px
        14px;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius: 100px;

    color:
        var(--text-secondary);

    font-size: 13px;
    font-weight: 500;

    box-shadow:
        0 8px 30px
        rgba(0, 0, 0, 0.03);

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        color 0.35s ease;
}


/* ========================================
   TITLE
======================================== */

.hero h1 {
    max-width: 850px;

    color:
        var(--text-primary);

    font-size:
        clamp(54px, 7vw, 88px);

    line-height: 0.98;

    font-weight: 750;

    letter-spacing: -4px;

    transition:
        color 0.35s ease;
}

.hero h1 span {
    color:
        var(--accent);

    transition:
        color 0.35s ease;
}


/* ========================================
   DESCRIPTION
======================================== */

.hero-description {
    max-width: 650px;

    margin-top: 30px;

    color:
        var(--text-secondary);

    font-size: 19px;
    line-height: 1.6;

    transition:
        color 0.35s ease;
}


/* ========================================
   BUTTONS
======================================== */

.hero-buttons {
    display: flex;

    gap: 14px;

    margin-top: 38px;
}

.primary-button,
.secondary-button {
    min-height: 52px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding:
        0
        24px;

    border-radius: 12px;

    font-size: 15px;
    font-weight: 650;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        background 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}


/* PRIMARY */

.primary-button {
    color:
        var(--button-primary-text);

    background:
        var(--button-primary-background);

    border:
        1px solid
        var(--button-primary-background);

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.08);
}

.primary-button:hover {
    transform:
        translateY(-2px);

    background:
        var(--button-primary-hover);

    border-color:
        var(--button-primary-hover);

    box-shadow:
        0 14px 36px
        rgba(0, 0, 0, 0.12);
}


/* SECONDARY */

.secondary-button {
    color:
        var(--text-primary);

    background:
        var(--surface);

    border:
        1px solid
        var(--border);
}

.secondary-button:hover {
    transform:
        translateY(-2px);

    background:
        var(--surface-hover);

    border-color:
        var(--border-hover);

    box-shadow:
        var(--shadow);
}


/* ========================================
   HERO INFORMATION
======================================== */

.hero-info {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 28px;

    margin-top: 54px;
}

.hero-info-item {
    display: flex;
    flex-direction: column;

    gap: 5px;
}

.hero-info-item strong {
    color:
        var(--text-primary);

    font-size: 15px;
    font-weight: 650;

    transition:
        color 0.35s ease;
}

.hero-info-item span {
    color:
        var(--text-muted);

    font-size: 12px;

    transition:
        color 0.35s ease;
}

.hero-info-divider {
    width: 1px;
    height: 34px;

    background:
        var(--border);

    transition:
        background 0.35s ease;
}


/* ========================================
   PLATFORMS
======================================== */

.hero-platform-item {
    min-width: 250px;
}

.platforms-list {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    margin-bottom: 3px;
}

.platform-badge {
    min-height: 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding:
        0
        11px;

    color:
        var(--text-primary);

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius: 9px;

    white-space: nowrap;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}

.platform-badge:hover {
    transform:
        translateY(-1px);

    background:
        var(--surface-hover);

    border-color:
        color-mix(
            in srgb,
            var(--accent) 35%,
            var(--border)
        );
}

.platform-logo {
    width: 24px;
    height:  24px;

    display: block;

    flex:
        0
        0
        24px;

    object-fit: contain;
}

.platform-badge strong {
    color:
        var(--text-primary);

    font-size: 14px;
    font-weight: 650;
    line-height: 1;
}


/* ========================================
   PLATFORMS MOBILE
======================================== */

@media (max-width: 600px) {

    .hero-platform-item {
        width: 100%;
        min-width: 0;
    }

    .platforms-list {
        width: 100%;

        flex-direction: row;
        flex-wrap: nowrap;

        gap: 8px;
    }

    .platform-badge {
        min-width: 0;

        padding:
            0
            10px;
    }

}


/* ========================================
   FEATURES
======================================== */

.features {
    padding:
        120px
        24px
        140px;

    background:
        radial-gradient(
            circle at 50% 50%,
            color-mix(
                in srgb,
                var(--accent) 5%,
                transparent
            ),
            transparent 46%
        );
}

.features-container {
    width: 100%;
    max-width: 1180px;

    margin:
        0
        auto;
}


/* ========================================
   SECTION HEADING
======================================== */

.section-heading {
    max-width: 720px;

    margin-bottom: 56px;

    opacity: 0;

    transform:
        translateY(35px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.section-heading.visible {
    opacity: 1;

    transform:
        translateY(0);
}

.section-label {
    display: inline-block;

    margin-bottom: 14px;

    color:
        var(--accent);

    font-size: 13px;
    font-weight: 650;

    text-transform: uppercase;

    letter-spacing: 1.5px;

    transition:
        color 0.35s ease;
}

.section-heading h2 {
    margin-bottom: 18px;

    color:
        var(--text-primary);

    font-size:
        clamp(36px, 5vw, 58px);

    line-height: 1.05;

    letter-spacing: -2px;

    transition:
        color 0.35s ease;
}

.section-heading p {
    color:
        var(--text-secondary);

    font-size: 18px;
    line-height: 1.6;

    transition:
        color 0.35s ease;
}


/* ========================================
   FEATURES GRID
======================================== */

.features-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 18px;
}


/* ========================================
   FEATURE CARD
======================================== */

.feature-card {
    position: relative;

    min-height: 280px;

    padding: 30px;

    overflow: hidden;

    background:
        var(--surface);

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    opacity: 0;

    transform:
        translateY(45px)
        scale(0.98);

    box-shadow:
        0 14px 45px
        rgba(0, 0, 0, 0.025);

    transition:
        opacity 0.7s ease,
        transform 0.7s ease,
        background 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}


/* ========================================
   FEATURE CARD APPEAR
======================================== */

.feature-card.visible {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* ========================================
   FEATURE CARD STAGGER
======================================== */

.feature-card:nth-child(1) {
    transition-delay: 0.05s;
}

.feature-card:nth-child(2) {
    transition-delay: 0.12s;
}

.feature-card:nth-child(3) {
    transition-delay: 0.19s;
}

.feature-card:nth-child(4) {
    transition-delay: 0.26s;
}

.feature-card:nth-child(5) {
    transition-delay: 0.33s;
}

.feature-card:nth-child(6) {
    transition-delay: 0.40s;
}


/* ========================================
   FEATURE CARD HOVER
======================================== */

.feature-card.visible:hover {
    transform:
        translateY(-7px)
        scale(1);

    background:
        var(--surface-hover);

    border-color:
        color-mix(
            in srgb,
            var(--accent) 36%,
            var(--border)
        );

    box-shadow:
        var(--shadow);
}


/* ========================================
   FEATURE CARD GREEN GLOW
======================================== */

.feature-card::before {
    content: "";

    position: absolute;

    width: 190px;
    height: 190px;

    top: -95px;
    right: -95px;

    background:
        radial-gradient(
            circle,
            color-mix(
                in srgb,
                var(--accent) 13%,
                transparent
            ),
            transparent 70%
        );

    opacity: 0;

    transition:
        opacity 0.3s ease;

    pointer-events: none;
}

.feature-card:hover::before {
    opacity: 1;
}


/* ========================================
   FEATURE NUMBER
======================================== */

.feature-number {
    margin-bottom: 62px;

    color:
        var(--accent);

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 1px;

    transition:
        color 0.35s ease;
}


/* ========================================
   FEATURE TITLE
======================================== */

.feature-card h3 {
    position: relative;

    margin-bottom: 14px;

    color:
        var(--text-primary);

    font-size: 21px;
    font-weight: 650;

    letter-spacing: -0.4px;

    z-index: 2;

    transition:
        color 0.35s ease;
}


/* ========================================
   FEATURE DESCRIPTION
======================================== */

.feature-card p {
    position: relative;

    color:
        var(--text-tertiary);

    font-size: 14px;
    line-height: 1.65;

    z-index: 2;

    transition:
        color 0.35s ease;
}


/* ========================================
   LIGHT THEME DETAILS
======================================== */

html[data-theme="light"] .hero-badge {
    box-shadow:
        0 8px 30px
        rgba(30, 40, 55, 0.04);
}

html[data-theme="light"] .feature-card {
    box-shadow:
        0 12px 40px
        rgba(30, 40, 55, 0.045);
}

html[data-theme="light"] .feature-card.visible:hover {
    box-shadow:
        0 22px 55px
        rgba(30, 40, 55, 0.10);
}


/* ========================================
   DARK THEME DETAILS
======================================== */

html[data-theme="dark"] .feature-card.visible:hover {
    box-shadow:
        0 20px 50px
        rgba(0, 0, 0, 0.22);
}


/* ========================================
   TABLET
======================================== */

@media (max-width: 950px) {

    .features-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}


/* ========================================
   HERO TABLET
======================================== */

@media (max-width: 850px) {

    .hero h1 {
        letter-spacing: -2px;
    }
}


/* ========================================
   MOBILE
======================================== */

@media (max-width: 600px) {

    .hero {
        padding-top: 130px;
    }

    .hero-buttons {
        width: 100%;

        flex-direction: column;
    }

    .primary-button,
    .secondary-button {
        width: 100%;
    }

    .hero-info {
        width: 100%;

        gap: 16px;

        flex-direction: column;
    }

    .hero-info-divider {
        display: none;
    }


    .features {
        padding:
            90px
            18px
            110px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .feature-card {
        min-height: 240px;
    }

    .feature-number {
        margin-bottom: 42px;
    }
}


/* ========================================
   REDUCED MOTION
======================================== */

@media (prefers-reduced-motion: reduce) {

    .section-heading,
    .feature-card {
        opacity: 1;

        transform: none;

        transition: none;
    }
}

/* ========================================
   PLATFORM AVAILABILITY
======================================== */

.platform-badge {
    text-decoration: none;
}

.platform-badge.platform-active {
    border-color: rgba(25, 218, 89, 0.30);
    cursor: pointer;
}

.platform-badge.platform-active:hover {
    background: rgba(25, 218, 89, 0.08);
    border-color: rgba(25, 218, 89, 0.48);
}

.platform-badge.platform-inactive {
    opacity: 0.36;
    filter: grayscale(1);
    cursor: not-allowed;
    pointer-events: none;
}

.platform-badge.platform-inactive .platform-logo {
    opacity: 0.65;
}