@font-face {
    font-family: 'Nyght Serif';
    src: url('fonts/NyghtSerif-RegularItalic.woff2') format('woff2'),
         url('fonts/NyghtSerif-RegularItalic.woff') format('woff');
    font-weight: normal;
    font-style: italic;
}

@keyframes scrollFloat {
    0% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(6px);
    }
    100% {
        transform: translateY(0);
    }
}

.glass-effect {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-radius: 24px;
    box-shadow:
        inset 0 0 1px rgba(255,255,255,0.55),
        0 2px 5px rgba(0,0,0,0.1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.glass-effect::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        135deg,
        rgba(255,255,255,1) 0%,
        rgba(255,255,255,1) 12%,
        rgba(255,255,255,0.08) 40%,
        rgba(255,255,255,0.08) 60%,
        rgba(255,255,255,1) 88%,
        rgba(255,255,255,1) 100%
    );
    -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;
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
    font-family: 'Montserrat', sans-serif;
}

.hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #0C211C;
    overflow: visible;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.hero-bg {
    z-index: 1;
    position: absolute;
    inset: 0;
    background-image: url('img/hero-section-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.3;
    pointer-events: none;
}

.hero-badge {
    z-index: 20;
    position: absolute;
    top: 32px;
    right: 32px;
    padding: 10px 18px;
    background: rgba(255,255,255,0.1);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255,255,255,1);
}

.hero-content {
    z-index: 10;
    transform: translateY(-50px);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 32px;
}

.hero-title {
    position: relative;
    font-family: 'Nyght Serif', serif;
    font-style: italic;
    font-size: clamp(24px, 6vw, 61px);
    color: #F6F6F6;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    line-height: 1.15;
}

.hero-title span {
    display: inline-block;
    color: #F6F6F6;
    transition: color 1.5s ease, transform 0.2s ease;
}

.word {
    display: inline-block;
    white-space: nowrap;
}

.hero-title span.active-rainbow {
    color: var(--hover-color);
    transform: translateY(-2px);
    transition: color 0.05s ease, transform 0.2s ease;
}

.scroll-badge {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 14px 24px;
    background: rgba(255,255,255,0.08);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.65);
    animation: scrollFloat 2s ease-in-out infinite;
}

.scroll-arrow {
    width: 22px;
    height: auto;
    display: block;
}

.cloud-divider {
    z-index: 5;
    position: absolute;
    bottom: -320px;
    left: 0;
    width: 100%;
    line-height: 0;
}

.cloud-divider img {
    display: block;
    width: 100%;
    height: auto;
}

.card-section {
    position: relative;
    margin-top: -10px;
    min-height: 100vh;
    background-image: url('img/card-section-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

.card-container {
    z-index: 3;
    position: relative;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
    padding: 240px 40px 220px;
}

.feature-card {
    width: min(100%, 380px);
    display: flex;
    flex-direction: column;
    background: rgba(255,255,255,0.06);
    border-radius: 24px;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.05);
}

.card-image {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    background: rgba(15, 33, 29, 0);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.5;
    color: rgba(255,255,255,0);
    transition:
        background 0.3s ease,
        color 0.3s ease;
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
}

.card-image-wrapper:hover .card-image-overlay {
    background: rgba(15, 33, 29, 0.75);
    color: rgba(255,255,255,1);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}

.card-content {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1.3;
    color: #FFFFFF;
}

.card-description {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.6;
    color: rgba(255,255,255,0.78);
}

.card-cta {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
    padding: 12px 18px;
    background: #FFFFFF;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #0C211C;
    text-decoration: none;
}

.card-cta-arrow {
    width: 6px;
    height: auto;
    display: block;
}

.cloud-bottom {
    z-index: 2;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    line-height: 0;
}

.cloud-bottom img {
    display: block;
    width: 100%;
    height: auto;
}

.site-footer {
    padding: 12px 24px;
    background: #103d30;
    text-align: center;
}

.site-footer p {
    margin: 0;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.08em;
    color: #F6F6F6;
}

@media (max-width: 768px) {
    .hero-bg {
        background-position: center top;
    }

    .hero-badge {
        top: 16px;
        right: 16px;
        padding: 6px 12px;
        max-width: 78%;
        border-radius: 999px;
        font-size: 10px;
        letter-spacing: 0.08em;
    }
    
    .hero-title {
        font-size: clamp(16px, 6.5vw, 30px);
        max-width: 85%;
        padding: 0 clamp(20px, 5vw, 32px);
        line-height: 1.15;
    }

    .scroll-badge {
        padding: 8px 16px;
        font-size: 10px;
    }

    .scroll-arrow {
        width: 10px;
    }

    .cloud-divider {
        bottom: -120px;
    }

    .cloud-divider img {
        width: 100%;
        height: 500px;
        object-fit: cover;
    }

    .card-section {
        background-position: center top;
    }

    .cloud-bottom img {
        min-height: 120px;
        object-fit: cover;
    }

    .site-footer {
        padding: 8px 16px;
    }

    .site-footer p {
        font-size: 9px;
        line-height: 1.3;
        letter-spacing: 0.05em;
    }
}