/* ==========================================================
   Hero
========================================================== */

.hero {
    position: relative;
    width: 100%;
    min-height: calc(100vh - 70px);
    padding: 80px 0 96px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        radial-gradient(
            circle at 50% 42%,
            rgba(139, 92, 246, 0.28) 0%,
            rgba(167, 139, 250, 0.15) 28%,
            rgba(248, 250, 252, 0.94) 62%,
            var(--color-background-page-light) 100%
        );
}

/* ==========================================================
   Decorative Glow
========================================================== */

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}

.hero::before {
    width: 420px;
    height: 420px;
    top: 70px;
    left: -170px;

    background: rgba(109, 40, 217, 0.13);
}

.hero::after {
    width: 380px;
    height: 380px;
    top: 180px;
    right: -150px;

    background: rgba(139, 92, 246, 0.14);
}

/* ==========================================================
   Container
========================================================== */

.hero .container {
    position: relative;
    z-index: 1;

    width: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;

    text-align: center;
}

/* ==========================================================
   Content
========================================================== */

.hero-content {
    width: 100%;
    max-width: 980px;

    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ==========================================================
   Badge
========================================================== */

.hero-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 24px;
    padding: 9px 16px;

    font-size: var(--font-size-small);
    font-weight: var(--font-weight-semibold);
    line-height: 1;

    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.72);

    border: 1px solid rgba(109, 40, 217, 0.18);
    border-radius: var(--radius-full);

    box-shadow: 0 8px 30px rgba(109, 40, 217, 0.08);

    backdrop-filter: blur(10px);
}

/* ==========================================================
   Title
========================================================== */

.hero-title {
    max-width: 900px;
    margin-bottom: 24px;

    font-family: var(--font-family-heading);
    font-size: clamp(44px, 5vw, 76px);
    font-weight: var(--font-weight-bold);
    line-height: 1.04;
    letter-spacing: -0.045em;

    color: var(--color-text-primary-light);
}

/* ==========================================================
   Description
========================================================== */

.hero-description {
    max-width: 700px;
    margin-bottom: 34px;

    font-size: clamp(16px, 1.4vw, 19px);
    font-weight: var(--font-weight-regular);
    line-height: 1.7;

    color: var(--color-text-secondary-light);
}

/* ==========================================================
   Actions
========================================================== */

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;

    margin-bottom: 72px;
}

.hero-actions .btn {
    min-height: 48px;
    padding-inline: 24px;
}

.hero-actions .btn-primary {
    color: var(--color-text-primary-dark);
    background-color: var(--color-primary);

    box-shadow: 0 12px 32px rgba(109, 40, 217, 0.22);
}

.hero-actions .btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);

    box-shadow: 0 16px 38px rgba(109, 40, 217, 0.3);
}

.hero-actions .btn-secondary {
    color: var(--color-primary);
    background-color: rgba(255, 255, 255, 0.4);

    border: 1px solid var(--color-primary);

    backdrop-filter: blur(8px);
}

.hero-actions .btn-secondary:hover {
    color: var(--color-text-primary-dark);
    background-color: var(--color-primary);

    transform: translateY(-2px);
}

/* ==========================================================
   Preview
========================================================== */

.hero-preview {
    position: relative;

    width: 100%;
    max-width: 1100px;
    margin-inline: auto;

    border-radius: 20px;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.18),
        0 12px 32px rgba(109, 40, 217, 0.12);
}

.hero-preview::before {
    content: "";
    position: absolute;
    inset: -1px;
    z-index: -1;

    border-radius: 21px;

    background: linear-gradient(
        135deg,
        rgba(109, 40, 217, 0.45),
        rgba(255, 255, 255, 0.4),
        rgba(139, 92, 246, 0.35)
    );
}

.hero-preview video,
.hero-preview img {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;

    border-radius: 20px;
}

/* ==========================================================
   Initial Animation
========================================================== */

.hero-badge,
.hero-title,
.hero-description,
.hero-actions,
.hero-preview {
    animation: hero-fade-up 0.7s ease both;
}

.hero-title {
    animation-delay: 0.08s;
}

.hero-description {
    animation-delay: 0.16s;
}

.hero-actions {
    animation-delay: 0.24s;
}

.hero-preview {
    animation-delay: 0.34s;
}

@keyframes hero-fade-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

/* ==========================================================
   Preview
========================================================== */

.hero-preview {
    position: relative;

    width: 100%;
    max-width: 1100px;
    margin-inline: auto;

    border-radius: 22px;

    box-shadow:
        0 30px 80px rgba(15, 23, 42, 0.2),
        0 14px 40px rgba(109, 40, 217, 0.16);
}

/* ==========================================================
   Browser Window
========================================================== */

.browser-window {
    width: 100%;
    overflow: hidden;

    background-color: var(--color-background-surface-dark);

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 22px;
}

/* ==========================================================
   Browser Header
========================================================== */

.browser-header {
    position: relative;

    min-height: 52px;
    padding: 0 20px;

    display: flex;
    align-items: center;
    justify-content: center;

    background-color: rgba(15, 23, 42, 0.96);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==========================================================
   Browser Controls
========================================================== */

.browser-controls {
    position: absolute;
    left: 20px;

    display: flex;
    align-items: center;
    gap: 8px;
}

.browser-controls span {
    display: block;

    width: 12px;
    height: 12px;

    border-radius: var(--radius-full);
}

.browser-controls span:nth-child(1) {
    background-color: #ff5f57;
}

.browser-controls span:nth-child(2) {
    background-color: #febc2e;
}

.browser-controls span:nth-child(3) {
    background-color: #28c840;
}

/* ==========================================================
   Browser Title
========================================================== */

.browser-title {
    font-size: var(--font-size-small);
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.01em;

    color: var(--color-text-secondary-dark);
}

/* ==========================================================
   Browser Content
========================================================== */

.browser-content {
    width: 100%;

    background-color: #000;
}

.browser-content video {
    display: block;

    width: 100%;
    height: auto;

    object-fit: cover;
}

/* ==========================================================
   Browser Glow
========================================================== */

.hero-preview::before {
    content: "";

    position: absolute;
    inset: 12% 8% -28px;
    z-index: -1;

    background-color: rgba(109, 40, 217, 0.28);

    border-radius: 40px;
    filter: blur(45px);

    pointer-events: none;
}

/* ==========================================================
   Tablet
========================================================== */

@media (max-width: 992px) {
    .hero {
        min-height: auto;
        padding: 72px 0 84px;
    }

    .hero-title {
        max-width: 760px;
    }

    .hero-preview {
        max-width: 900px;
    }
}

/* ==========================================================
   Mobile
========================================================== */

@media (max-width: 768px) {
    .hero {
        padding: 64px 0 72px;
    }

    .hero-badge {
        margin-bottom: 20px;
        padding: 8px 14px;

        font-size: 13px;
    }

    .hero-title {
        margin-bottom: 22px;

        font-size: clamp(38px, 11vw, 52px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .hero-description {
        margin-bottom: 30px;

        font-size: 16px;
        line-height: 1.65;
    }

    .hero-actions {
        width: 100%;

        flex-direction: column;
        gap: 14px;

        margin-bottom: 58px;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
    }

    .hero-preview {
        border-radius: 16px;
    }

    .hero-preview video,
    .hero-preview img {
        border-radius: 16px;
    }
}

@media (max-width: 768px) {
    .hero-preview {
        border-radius: 16px;
    }

    .browser-window {
        border-radius: 16px;
    }

    .browser-header {
        min-height: 44px;
        padding: 0 14px;
    }

    .browser-controls {
        left: 14px;
        gap: 6px;
    }

    .browser-controls span {
        width: 9px;
        height: 9px;
    }

    .browser-title {
        font-size: 12px;
    }
}

/* ==========================================================
   Reduced Motion
========================================================== */

@media (prefers-reduced-motion: reduce) {
    .hero-badge,
    .hero-title,
    .hero-description,
    .hero-actions,
    .hero-preview {
        animation: none;
    }

    .hero-actions .btn {
        transition: none;
    }
}