/* 127 Crew 2.0 — Landing Page Styles */

.hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 140px 9vw 110px;
}

.hero canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        var(--bg) 4%,
        color-mix(in srgb, var(--bg) 95%, transparent) 22%,
        transparent 75%
    );
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(630px, 58vw);
}

.hero h1 {
    font-size: clamp(65px, 8vw, 130px);
    line-height: 0.95;
    letter-spacing: -0.071em;
    margin: 30px 0 26px;
    font-weight: 700;
}

.hero h1 span {
    color: var(--muted);
    display: block;
}

.hero p {
    font-size: clamp(17px, 1.45vw, 21px);
    line-height: 1.6;
    max-width: 420px;
    margin: 0 0 32px;
    color: #d5dbdc;
}

.side-label {
    position: absolute;
    z-index: 2;
    right: 5.7vw;
    bottom: 39px;
    text-align: right;
    color: var(--muted);
    font: 11px var(--font-mono);
    letter-spacing: 0.1em;
}

.scroll {
    position: absolute;
    bottom: 35px;
    left: 9vw;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    z-index: 2;
    font-size: 12px;
}

.scroll i {
    height: 34px;
    width: 20px;
    border: 1px solid var(--muted);
    border-radius: 15px;
    display: grid;
    place-items: start center;
    padding-top: 6px;
}

.scroll i::after {
    content: "";
    width: 3px;
    height: 7px;
    background: var(--muted);
    border-radius: 8px;
    animation: down 1.8s infinite;
}

@keyframes down {
    0%,
    100% {
        transform: translateY(0);
        opacity: 0.5;
    }
    50% {
        transform: translateY(13px);
        opacity: 1;
    }
}

.chapter {
    min-height: 88vh;
    padding: 110px 9vw;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9vw;
    align-items: center;
    border-top: 1px solid var(--line);
}

.chapter h2,
.closing h2 {
    font-size: clamp(45px, 6vw, 91px);
    line-height: 1;
    letter-spacing: -0.06em;
    margin: 22px 0 30px;
    font-weight: 600;
}

.chapter h2 em {
    color: var(--muted);
    font-style: normal;
}

.chapter p,
.closing p {
    font-size: 19px;
    line-height: 1.65;
    color: #c2cdce;
    max-width: 480px;
    margin: 0;
}

.diagram {
    aspect-ratio: 1;
    position: relative;
    display: grid;
    place-items: center;
}

.diagram svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.ring {
    transform-origin: 50% 50%;
    animation: rotate 50s linear infinite;
}

.ring:nth-of-type(even) {
    animation-direction: reverse;
}

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

.services {
    padding: 100px 9vw 130px;
    background: var(--panel);
}

.services h2 {
    font-size: clamp(42px, 6vw, 84px);
    letter-spacing: -0.06em;
    margin: 24px 0 65px;
    font-weight: 600;
}

.item {
    display: grid;
    grid-template-columns: 75px 1fr 1fr 30px;
    gap: 24px;
    padding: 34px 0;
    border-top: 1px solid var(--line);
    align-items: center;
}

.item:last-child {
    border-bottom: 1px solid var(--line);
}

.item .n {
    font: 12px var(--font-mono);
    color: var(--muted);
}

.item h3 {
    font-size: clamp(23px, 3vw, 42px);
    letter-spacing: -0.05em;
    margin: 0;
    font-weight: 500;
}

.item p {
    line-height: 1.6;
    color: #b5c0c0;
    margin: 0;
    font-size: 15px;
}

.item .arrow {
    font-size: 23px;
    transition: 0.25s;
}

.item:hover .arrow {
    transform: translate(5px, -4px);
}

.closing {
    min-height: 65vh;
    text-align: center;
    padding: 120px 9vw;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.closing p {
    margin: 0 auto 35px;
}

.closing h2 {
    max-width: 900px;
}

.changing .hero-content {
    animation: enter 0.65s both;
}

@keyframes enter {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 720px) {
    .hero {
        padding: 130px 7vw 100px;
        align-items: center;
    }

    .hero-content {
        width: 100%;
    }

    .hero h1 {
        font-size: clamp(57px, 12vw, 86px);
    }

    .hero::after {
        background: linear-gradient(
            90deg,
            var(--bg) 0%,
            color-mix(in srgb, var(--bg) 70%, transparent) 50%,
            transparent
        );
    }

    .hero p {
        max-width: 340px;
    }

    .side-label {
        display: none;
    }

    .scroll {
        left: 7vw;
    }

    .chapter {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 85px 7vw;
        min-height: auto;
    }

    .diagram {
        max-width: 450px;
        width: 100%;
        margin: auto;
    }

    .services {
        padding: 75px 7vw;
    }

    .item {
        grid-template-columns: 28px 1fr 24px;
        gap: 10px;
    }

    .item p {
        grid-column: 2;
        grid-row: 2;
    }

    .item .arrow {
        grid-column: 3;
        grid-row: 1;
    }

    .closing {
        padding: 90px 7vw;
    }
}
