.hero-slider {
    position: relative;
    min-height: 100svh;
    background: #000;
}

.slider-track {
    position: relative;
    min-height: 100svh;
}

.slide {
    position: absolute;
    inset: 0;
    display: grid;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 700ms ease;
}

.slide.is-active {
    opacity: 1;
    pointer-events: auto;
}

.slide-visual {
    position: absolute;
    inset: 0;
    background-color: #000;
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}

.slide.is-active .slide-visual {
    animation: slowDrift 8s ease-out forwards;
}

.slide-content {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100% - 40px));
    margin: 0 auto 0 max(24px, calc((100vw - var(--max)) / 2));
    padding-top: var(--header-height);
}

.slide-content h1,
.slide-content h2 {
    max-width: 780px;
    margin-bottom: 20px;
    font-size: clamp(3rem, 8vw, 6.6rem);
    color: #fff;
    overflow-wrap: anywhere;
}

.slide-content p:not(.eyebrow) {
    max-width: 620px;
    font-size: clamp(1.02rem, 2vw, 1.25rem);
    overflow-wrap: anywhere;
    color: rgba(255, 255, 255, 0.74);
}

.hero-slider .eyebrow {
    color: rgba(255, 255, 255, 0.72);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
    max-width: min(100%, 680px);
}

.hero-actions .btn {
    max-width: 100%;
    text-align: center;
    white-space: normal;
}

.hero-actions .btn-primary {
    background: #fff;
    color: #111827;
    box-shadow: 0 16px 34px rgba(255, 255, 255, 0.16);
}

.hero-actions .btn-ghost {
    border-color: rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.slider-controls {
    position: absolute;
    right: max(20px, calc((100vw - var(--max)) / 2));
    bottom: 32px;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-arrow {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.82);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transition: transform 180ms ease, background 180ms ease;
}

.slider-arrow:hover {
    transform: translateY(-2px);
    background: #fff;
}

.slider-dots {
    display: flex;
    gap: 8px;
}

.slider-dot {
    width: 30px;
    height: 4px;
    border: 0;
    border-radius: 99px;
    background: rgba(17, 24, 39, 0.16);
    cursor: pointer;
}

.slider-dot.is-active {
    background: var(--accent);
}

.section-heading {
    max-width: 720px;
    margin-bottom: 30px;
}

.section-heading h2,
.split-section h2,
.page-hero h1 {
    font-size: clamp(2rem, 5vw, 4.4rem);
}

.feature-grid,
.values-grid,
.contact-grid,
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.feature-card,
.values-grid article,
.contact-grid article,
.blog-card,
.contact-panel,
.game-card {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.feature-card {
    padding: 28px;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.1);
}

.feature-card span {
    color: var(--gold);
    font-weight: 900;
}

.feature-card h3 {
    margin: 28px 0 12px;
    font-size: 1.3rem;
}

.split-section {
    display: grid;
    grid-template-columns: 1fr 0.85fr;
    gap: 44px;
    align-items: center;
    border-top: 1px solid var(--line);
}

.split-section p:last-child {
    font-size: 1.1rem;
}

.page-hero {
    width: min(940px, calc(100% - 40px));
    margin: 0 auto;
    padding: calc(var(--header-height) + 92px) 0 70px;
}

.page-hero p:not(.eyebrow) {
    max-width: 700px;
    font-size: 1.12rem;
}

.values-grid article,
.contact-grid article {
    padding: 28px;
}

.blog-card {
    overflow: hidden;
}

.blog-card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: var(--surface);
}

.blog-card-content {
    padding: 24px;
}

.values-grid h2,
.contact-grid h2,
.blog-card h2 {
    font-size: 1.35rem;
}

.featured-game {
    display: grid;
    grid-template-columns: 0.9fr 1fr;
    gap: 34px;
    align-items: center;
    padding: 24px;
}

.game-art {
    min-height: 320px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 90, 61, 0.45), rgba(49, 214, 196, 0.22)), url('../images/games/project-ascension-card.svg') center / cover;
}

.contact-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 34px;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 34px;
    align-items: start;
}

.contact-copy {
    position: sticky;
    top: 110px;
}

.contact-copy h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.contact-form {
    position: relative;
    display: grid;
    gap: 18px;
    border: 1px solid rgba(16, 18, 23, 0.12);
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.98)),
        #fff;
    box-shadow:
        0 28px 80px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    padding: 32px;
}

.contact-form::before {
    position: absolute;
    inset: 14px 14px auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(37, 99, 235, 0.28), transparent);
    content: "";
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.contact-form label {
    display: grid;
    gap: 8px;
}

.contact-form label span {
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 800;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fafb;
    color: var(--text);
    padding: 13px 14px;
    outline: 0;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.contact-form textarea {
    min-height: 180px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: rgba(37, 99, 235, 0.48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.file-field {
    cursor: pointer;
}

.file-field > input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.file-drop {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 76px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f9fafb;
    padding: 14px;
    transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.file-field:hover .file-drop,
.file-field:focus-within .file-drop {
    border-color: rgba(37, 99, 235, 0.48);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.file-icon {
    display: grid;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 8px;
    background: #111827;
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.file-copy {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.file-copy strong {
    overflow: hidden;
    color: var(--text);
    font-size: 0.96rem;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.file-copy small {
    color: var(--muted);
}

.form-alert {
    display: grid;
    gap: 4px;
    border-radius: 8px;
    padding: 14px 16px;
    font-weight: 700;
}

.form-alert span {
    font-weight: 600;
}

.form-alert-success {
    border: 1px solid rgba(22, 163, 74, 0.22);
    background: #ecfdf3;
    color: #166534;
}

.form-alert-error {
    border: 1px solid rgba(220, 38, 38, 0.22);
    background: #fef2f2;
    color: #991b1b;
}

@keyframes slowDrift {
    from {
        transform: scale(1.05) translateX(0);
    }

    to {
        transform: scale(1.01) translateX(-12px);
    }
}

@media (max-width: 880px) {
    .feature-grid,
    .values-grid,
    .contact-grid,
    .blog-grid,
    .split-section,
    .featured-game {
        grid-template-columns: 1fr;
    }

    .contact-panel {
        align-items: flex-start;
        flex-direction: column;
    }

    .contact-layout,
    .form-grid {
        grid-template-columns: 1fr;
    }

    .contact-copy {
        position: static;
    }
}

@media (max-width: 720px) {
    .slide-content,
    .page-hero {
        width: min(100% - 28px, var(--max));
    }

    .slide-content h1,
    .slide-content h2 {
        font-size: clamp(2.6rem, 14vw, 4.5rem);
    }

    .slide-visual {
        background-position: center;
        background-size: cover;
        transform: scale(1.01);
    }

    .slider-controls {
        right: 14px;
        left: 14px;
        justify-content: space-between;
    }

    .slider-dot {
        width: 22px;
    }

    .page-hero {
        padding-top: calc(var(--header-height) + 62px);
    }
}
