/* =========================================================
   GRIND2SHINE CLOUD — CINEMATIC DESIGN SYSTEM
   ========================================================= */

:root {
    --cinema-blue: #00d9ff;
    --cinema-cyan: #55efff;
    --cinema-dark: #080c13;
    --cinema-panel: rgba(13, 24, 39, 0.72);
    --cinema-border: rgba(0, 217, 255, 0.18);
    --cinema-muted: #a5b4c5;
    --cinema-container: 1180px;
}

/* GLOBAL */

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    background: var(--cinema-dark);
    color: #f3f8ff;
}

.container {
    width: min(var(--cinema-container), calc(100% - 48px));
    margin-inline: auto;
}

.eyebrow,
.section-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cinema-blue);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.19em;
    text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
    content: "";
    width: 24px;
    height: 1px;
    background: var(--cinema-blue);
    box-shadow: 0 0 12px var(--cinema-blue);
}

/* GLASS PANELS */

.glass-panel {
    border: 1px solid var(--cinema-border);
    background: var(--cinema-panel);
    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.035);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

/* HEADER */

.site-header {
    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.site-header.header-scrolled {
    background: rgba(5, 11, 20, 0.94);
    border-bottom: 1px solid var(--cinema-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(18px);
}

.brand-mark {
    border: 1px solid rgba(0, 217, 255, 0.55);
    box-shadow:
        0 0 18px rgba(0, 217, 255, 0.15),
        inset 0 0 15px rgba(0, 217, 255, 0.08);
}

/* CINEMATIC HERO */

.hero-section {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    min-height: max(760px, min(900px, 100svh));
    padding: 150px 24px 130px;
    overflow: hidden;
    background: #050b14;
}

.hero-background {
    position: absolute;
    z-index: -2;
    inset: 0;
    background-image: url("/static/images/backgrounds/hero-datacenter.png");
    background-size: cover;
    background-position: center 45%;
    transform: scale(1.015);
    animation: hero-drift 28s ease-in-out infinite alternate;
}

.hero-overlay {
    position: absolute;
    z-index: -1;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            rgba(3, 8, 16, 0.97) 0%,
            rgba(3, 8, 16, 0.83) 34%,
            rgba(3, 8, 16, 0.34) 68%,
            rgba(3, 8, 16, 0.16) 100%
        ),
        linear-gradient(
            0deg,
            #080c13 0%,
            transparent 30%,
            rgba(2, 8, 18, 0.15) 100%
        );
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(var(--cinema-container), 100%);
    margin-inline: auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 10px 16px;
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 100px;
    background: rgba(5, 19, 31, 0.72);
    color: #d8faff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    backdrop-filter: blur(12px);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--cinema-blue);
    box-shadow: 0 0 12px var(--cinema-blue);
    animation: status-pulse 2s ease-in-out infinite;
}

.hero-title {
    max-width: 850px;
    margin: 28px 0;
    color: #fff;
    font-size: clamp(3.1rem, 7.5vw, 6.5rem);
    font-weight: 850;
    line-height: 0.99;
    letter-spacing: -0.065em;
    text-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.text-gradient {
    display: inline-block;
    color: var(--cinema-blue);
    background: linear-gradient(
        100deg,
        #ffffff 0%,
        #55efff 38%,
        #00aaff 75%,
        #8c7dff 100%
    );
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    max-width: 650px;
    color: #c0cedd;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.85;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
}

.btn {
    display: inline-flex;
    min-height: 54px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 0 25px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    color: #00131a;
    background: linear-gradient(110deg, #00d9ff, #65efff);
    box-shadow: 0 0 28px rgba(0, 217, 255, 0.22);
}

.btn-primary:hover {
    color: #00131a;
    box-shadow: 0 0 38px rgba(0, 217, 255, 0.45);
}

.btn-secondary {
    color: #eafaff;
    border-color: rgba(0, 217, 255, 0.4);
    background: rgba(8, 19, 32, 0.62);
    backdrop-filter: blur(12px);
}

.btn-secondary:hover {
    border-color: var(--cinema-blue);
    background: rgba(0, 217, 255, 0.1);
}

.btn-block {
    width: 100%;
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
    margin-top: 42px;
    color: #a9b9ca;
    font-size: 0.8rem;
}

.trust-divider {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--cinema-blue);
    box-shadow: 0 0 8px var(--cinema-blue);
}

.hero-scroll-indicator {
    position: absolute;
    right: 38px;
    bottom: 50px;
    display: flex;
    align-items: center;
    gap: 13px;
    color: #9eafc1;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.scroll-line {
    width: 1px;
    height: 52px;
    background: linear-gradient(
        180deg,
        var(--cinema-blue),
        transparent
    );
}

/* INTRODUCTION */

.intro-section {
    position: relative;
    padding: 125px 24px;
    background:
        radial-gradient(
            ellipse at 15% 50%,
            rgba(0, 130, 190, 0.09),
            transparent 55%
        ),
        #080c13;
}

.intro-grid {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: center;
    gap: 90px;
}

.intro-heading {
    margin: 24px 0;
    color: #f4f8ff;
    font-size: clamp(2.2rem, 4.5vw, 4rem);
    line-height: 1.12;
    letter-spacing: -0.045em;
}

.intro-copy {
    color: var(--cinema-muted);
    font-size: 1.03rem;
    line-height: 1.9;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
    color: var(--cinema-blue);
    font-weight: 750;
    text-decoration: none;
}

.text-link:hover {
    color: #fff;
}

/* SERVICES */

.services-section {
    padding: 120px 24px;
    background:
        linear-gradient(
            180deg,
            #0a111d 0%,
            #080c13 100%
        );
}

.section-heading {
    max-width: 720px;
    margin: 0 auto 60px;
    text-align: center;
}

.section-heading h2 {
    margin: 20px 0;
    color: #f4f8ff;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.section-heading p {
    color: var(--cinema-muted);
    line-height: 1.8;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.service-card {
    position: relative;
    min-height: 290px;
    padding: 32px;
    overflow: hidden;
    border: 1px solid var(--cinema-border);
    border-radius: 14px;
    background:
        linear-gradient(
            145deg,
            rgba(18, 36, 55, 0.85),
            rgba(8, 16, 27, 0.9)
        );
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.service-card::before {
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cinema-blue);
    box-shadow: 0 0 20px var(--cinema-blue);
    content: "";
    transition: width 0.4s ease;
}

.service-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 217, 255, 0.55);
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28);
}

.service-card:hover::before {
    width: 100%;
}

.service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.service-number {
    color: rgba(132, 177, 204, 0.55);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.service-symbol {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(0, 217, 255, 0.25);
    border-radius: 12px;
    background: rgba(0, 217, 255, 0.08);
    color: var(--cinema-blue);
    font-size: 1.4rem;
}

.service-card h3 {
    margin: 0 0 14px;
    color: #f4f8ff;
    font-size: 1.3rem;
}

.service-card p {
    color: var(--cinema-muted);
    font-size: 0.94rem;
    line-height: 1.8;
}

.service-card .text-link {
    margin-top: 12px;
}

/* WEBSITE OFFER */

.website-offer-section {
    padding: 120px 24px;
    background: #080c13;
}

.website-offer {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    align-items: center;
    gap: 70px;
    padding: clamp(30px, 6vw, 75px);
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.22);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(0, 180, 255, 0.13),
            transparent 45%
        ),
        linear-gradient(135deg, #111d2b, #0a111b);
}

.offer-content h2 {
    margin: 20px 0;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.offer-content p {
    color: var(--cinema-muted);
    line-height: 1.9;
}

.offer-visual {
    position: relative;
    display: grid;
    min-height: 330px;
    place-items: center;
}

.offer-orbit {
    position: absolute;
    width: 260px;
    height: 260px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 50%;
    box-shadow: 0 0 35px rgba(0, 217, 255, 0.08);
}

.orbit-one {
    animation: orbit-spin 22s linear infinite;
}

.orbit-two {
    width: 205px;
    height: 205px;
    border-style: dashed;
    animation: orbit-spin 30s linear infinite reverse;
}

.offer-core {
    position: relative;
    z-index: 1;
    display: flex;
    width: 125px;
    height: 125px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid rgba(0, 217, 255, 0.7);
    border-radius: 28px;
    background: linear-gradient(145deg, #12324b, #071522);
    color: var(--cinema-blue);
    font-size: 1.7rem;
    font-weight: 900;
    box-shadow:
        0 0 45px rgba(0, 217, 255, 0.2),
        inset 0 0 30px rgba(0, 217, 255, 0.1);
}

.offer-core small {
    color: #b9f5ff;
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.16em;
}

/* TECHNOLOGY */

.technology-section {
    padding: 115px 24px;
    background:
        radial-gradient(
            ellipse at 80% 50%,
            rgba(0, 140, 210, 0.08),
            transparent 50%
        ),
        #0a111b;
}

.technology-content {
    max-width: 850px;
    margin-inline: auto;
    text-align: center;
}

.technology-content h2 {
    margin: 22px 0;
    color: #fff;
    font-size: clamp(2.3rem, 4.5vw, 4rem);
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.technology-content p {
    color: var(--cinema-muted);
    font-size: 1.02rem;
    line-height: 1.9;
}

/* FINAL CALL TO ACTION */

.final-cta-section {
    padding: 110px 24px;
    background: #080c13;
}

.final-cta {
    position: relative;
    padding: clamp(40px, 7vw, 85px);
    overflow: hidden;
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 18px;
    background:
        radial-gradient(
            ellipse at 50% 120%,
            rgba(0, 180, 255, 0.2),
            transparent 65%
        ),
        linear-gradient(135deg, #101d2d, #09111d);
    text-align: center;
}

.final-cta h2 {
    max-width: 780px;
    margin: 22px auto;
    color: #fff;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.1;
    letter-spacing: -0.045em;
}

.final-cta p {
    max-width: 650px;
    margin: 0 auto;
    color: var(--cinema-muted);
    line-height: 1.85;
}

.final-cta .btn {
    margin-top: 30px;
}

/* SCROLL REVEALS */

.reveal-pending {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.7s ease,
        transform 0.7s ease;
}

.reveal-pending.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* SERVICE CARD STAGGER */

.service-card.reveal-pending:nth-child(2) {
    transition-delay: 0.08s;
}

.service-card.reveal-pending:nth-child(3) {
    transition-delay: 0.16s;
}

.service-card.reveal-pending:nth-child(4) {
    transition-delay: 0.08s;
}

.service-card.reveal-pending:nth-child(5) {
    transition-delay: 0.16s;
}

/* ANIMATIONS */

@keyframes hero-drift {
    from {
        transform: scale(1.015) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.08) translate3d(-1%, 0.5%, 0);
    }
}

@keyframes status-pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 12px var(--cinema-blue);
    }

    50% {
        opacity: 0.45;
        box-shadow: 0 0 3px var(--cinema-blue);
    }
}

@keyframes orbit-spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* RESPONSIVE LAYOUT */

@media (max-width: 1000px) {
    .intro-grid,
    .website-offer {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .offer-visual {
        min-height: 280px;
    }
}

@media (max-width: 680px) {
    .hero-section {
        min-height: 780px;
        padding: 125px 22px 110px;
    }

    .hero-background {
        background-position: 58% center;
    }

    .hero-overlay {
        background:
            linear-gradient(
                90deg,
                rgba(3, 8, 16, 0.91),
                rgba(3, 8, 16, 0.55)
            ),
            linear-gradient(
                0deg,
                #080c13 0%,
                transparent 65%
            );
    }

    .hero-title {
        font-size: clamp(3rem, 13vw, 4.5rem);
    }

    .hero-description {
        font-size: 0.98rem;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .hero-trust {
        gap: 10px;
        font-size: 0.7rem;
    }

    .hero-scroll-indicator {
        display: none;
    }

    .intro-section,
    .services-section,
    .website-offer-section,
    .technology-section,
    .final-cta-section {
        padding: 80px 20px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: 250px;
    }

    .website-offer {
        padding: 30px 22px;
    }

    .offer-visual {
        min-height: 230px;
    }

    .offer-orbit {
        width: 210px;
        height: 210px;
    }

    .orbit-two {
        width: 165px;
        height: 165px;
    }

    .offer-core {
        width: 105px;
        height: 105px;
    }

    .final-cta {
        padding: 45px 22px;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal-pending {
        opacity: 1;
        transform: none;
    }
}
