.home-page {
    --home-accent: #26e8ff;
    --home-accent-2: #50f0c8;
    --home-ink: #f4fbff;
    --home-muted: #a9c6d5;
    --home-panel: rgba(12, 27, 39, 0.9);
    --home-panel-strong: rgba(18, 39, 55, 0.96);
    --home-line: rgba(120, 220, 255, 0.18);
    --home-line-strong: rgba(80, 240, 200, 0.36);
    color: var(--home-ink);
    isolation: isolate;
}

.home-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        linear-gradient(120deg, rgba(38, 232, 255, 0.12), transparent 34%),
        linear-gradient(240deg, rgba(80, 240, 200, 0.1), transparent 30%),
        linear-gradient(180deg, rgba(5, 11, 18, 0), rgba(5, 11, 18, 0.72));
}

.home-page .app-container {
    width: min(calc(100% - 36px), 1180px);
}

.home-section {
    scroll-margin-top: 92px;
}

.home-page section + section {
    margin-top: 10px;
}

.home-page .theme-card {
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, var(--home-panel-strong), var(--home-panel)),
        radial-gradient(circle at top left, rgba(38, 232, 255, 0.13), transparent 34%);
    border-color: var(--home-line);
    border-radius: 18px;
    box-shadow: 0 22px 56px rgba(0, 0, 0, 0.34);
}

.home-page .theme-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 34%);
    opacity: 0.55;
}

.home-page .theme-card > * {
    position: relative;
    z-index: 1;
}

.home-page .theme-card:not(.home-hero-card):not(.home-media-card) {
    transition: border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}

.home-page .theme-card:not(.home-hero-card):not(.home-media-card):hover {
    border-color: var(--home-line-strong);
    transform: translateY(-3px);
    box-shadow: 0 26px 62px rgba(0, 0, 0, 0.38);
}

.home-hero-card {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-title {
    max-width: 760px;
    line-height: 1.12;
    letter-spacing: 0;
    text-wrap: balance;
}

.home-page .theme-title {
    max-width: 850px;
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
}

.home-page .theme-desc {
    max-width: 900px;
    color: var(--home-muted);
    line-height: 1.78;
}

.home-page .theme-kicker {
    color: var(--home-accent-2);
    letter-spacing: .08em;
}

.home-page .theme-pill {
    min-height: 30px;
    padding: 7px 13px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: .02em;
}

.home-page .theme-pill-info,
.home-page .theme-pill-success {
    background: rgba(38, 232, 255, 0.11);
    border-color: rgba(38, 232, 255, 0.28);
    color: #bff8ff;
}

.home-page .text-theme-accent,
.home-page .text-theme-teal {
    color: var(--home-accent-2) !important;
}

.home-page .text-theme-muted {
    color: var(--home-muted) !important;
}

.home-page .theme-card-soft {
    background: rgba(255, 255, 255, 0.045);
    border-color: rgba(120, 220, 255, 0.16);
    border-radius: 14px;
    box-shadow: none;
}

.home-actions .btn,
.home-page #contact .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.2;
    white-space: normal;
}

.home-page .btn-theme-primary {
    color: #041018;
    background: linear-gradient(135deg, var(--home-accent), var(--home-accent-2));
    border: 0;
    box-shadow: 0 14px 30px rgba(38, 232, 255, 0.24);
}

.home-page .btn-theme-primary:hover,
.home-page .btn-theme-primary:focus {
    color: #041018;
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(38, 232, 255, 0.3);
    filter: brightness(1.04);
}

.home-page .btn-theme-secondary {
    color: var(--home-ink);
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid rgba(120, 220, 255, 0.25);
}

.home-page .btn-theme-secondary:hover,
.home-page .btn-theme-secondary:focus {
    color: var(--home-ink);
    background: rgba(38, 232, 255, 0.11);
    border-color: rgba(80, 240, 200, 0.38);
    transform: translateY(-2px);
}

.home-media-card {
    background: rgba(5, 13, 20, 0.82);
}

.hero-video-wrap {
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.hero-video-bg {
    min-height: 580px;
    background: #050b12;
}

.hero-video {
    object-fit: cover;
    z-index: 1;
    transition: transform 6s ease;
}

.hero-video-wrap:hover .hero-video {
    transform: scale(1.04);
}

.hero-video-overlay {
    z-index: 2;
    background:
        linear-gradient(180deg, rgba(3, 8, 12, 0.08) 0%, rgba(3, 8, 12, 0.52) 58%, rgba(3, 8, 12, 0.88) 100%),
        radial-gradient(circle at top right, rgba(38, 232, 255, 0.18), transparent 42%);
}

.hero-logo-wrap {
    z-index: 3;
    width: min(82%, 430px);
}

.hero-logo {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(38, 232, 255, 0.42));
}

.home-page .theme-floating {
    background: rgba(6, 17, 27, 0.72);
    border: 1px solid rgba(120, 220, 255, 0.2);
    border-radius: 14px;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.hero-floating-top {
    max-width: 245px;
    z-index: 4;
}

.hero-floating-middle {
    bottom: 106px;
    z-index: 4;
}

.hero-floating-bottom {
    max-width: 260px;
    z-index: 4;
}

.intro-video-player {
    display: block;
    width: 100%;
    max-height: 680px;
    object-fit: cover;
    background: #000;
    border-radius: 14px;
}

.home-page ul {
    padding-left: 1.15rem;
}

.home-page li {
    margin-bottom: 0.42rem;
}

.home-page li:last-child {
    margin-bottom: 0;
}

.home-page .table {
    overflow: hidden;
    border: 1px solid rgba(120, 220, 255, 0.14);
    border-radius: 14px;
}

.home-page .table thead th {
    color: #dffaff;
    background: rgba(38, 232, 255, 0.1);
    font-weight: 800;
}

.home-page .table tbody td {
    color: var(--home-muted);
}

@media (max-width: 991.98px) {
    .home-page .app-container {
        width: min(calc(100% - 28px), 760px);
    }

    .hero-video-bg {
        min-height: 500px !important;
    }

    .hero-floating-middle {
        bottom: 94px;
    }
}

@media (max-width: 767.98px) {
    .home-page {
        font-size: 0.96rem;
    }

    .home-page .theme-card {
        border-radius: 16px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .home-actions .btn,
    .home-page #contact .btn {
        width: 100%;
    }
}

@media (max-width: 575.98px) {
    .home-page .app-container {
        width: min(calc(100% - 22px), 420px);
    }

    .hero-video-bg {
        min-height: 430px !important;
    }

    .hero-floating-top,
    .hero-floating-bottom {
        max-width: calc(100% - 24px);
    }

    .hero-floating-middle {
        bottom: 96px;
    }

    .hero-logo-wrap {
        width: 74%;
    }
}
