:root {
    --background: #080808;
    --surface: #101010;
    --surface-hover: #151515;
    --border: #252525;

    --foreground: #f7f7f7;
    --muted: #999;

    --red: #d31423;
    --red-hover: #ff0000;
    --cyan: #00dddd;
    --cyan-hover: #00ffff;

    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--foreground);
    line-height: 1.5;
    margin: 0;
}

a {
    color: inherit;
}

.background-glow {
    background-image: radial-gradient(circle, #d31423 0%, transparent 50vh);
    height: 100%;
    inset: 0;
    position: absolute;
    opacity: .25;
}

.container {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-inline: auto;
    text-align: center;
    width: min(1280px, calc(100% - 48px));
}

section {
    border-bottom: 1px solid var(--border);
    padding: 80px 0;
}

main,
footer {
    position: relative;
    z-index: 10;
}

/* Hero */

.hero {
    display: grid;
    min-height: 100vh;
    place-items: center;
    position: relative;
    text-align: center;
}

.hero-inner {
    width: min(780px, 100%);
}

.logo {
    color: var(--red);
    font-size: 120px;
    height: auto;
    width: min(620px, 90%);
}

.tagline {
    color: var(--muted);
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    margin: 0 auto;
    max-width: 640px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 40px;
}

.button {
    align-items: center;
    background: var(--cyan);
    border-radius: 6px;
    border: 1px solid var(--border);
    color: var(--surface);
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 600;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    text-decoration: none;
    transition: all 150ms ease;
}

.button:hover {
    background: var(--cyan-hover);
    border-color: #3a3a3a;
    box-shadow: 0 0px 10px #000;
    transform: scale(120%);
}

.button.primary {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.button.primary:hover {
    background: var(--red-hover);
    border-color: var(--red-hover);
}

/* Features */

.section-header {
    margin-bottom: 48px;
}

.section-eyebrow {
    color: var(--red);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    margin: 0 0 8px;
    text-transform: uppercase;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin: 0;
    padding-bottom: 20px;
}

.section-header h2 a {
    text-decoration: none;
}

.section-header p {
    color: var(--muted);
    font-size: 1.05rem;
    margin: 0 auto;
    max-width: 720px;
}

.feature-grid {
    background: var(--border);
    border-radius: .5rem;
    border: 1px solid transparent;
    display: grid;
    gap: 1px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature {
    background: var(--background);
    min-height: 200px;
    padding: 20px;
    border-radius: .5rem;
    transition: box-shadow, transform 150ms ease;
}

.feature:hover {
    background: var(--surface);
}

.ph {
    color: var(--red);
    font-size: 32px;
    display: block;
}

/*
.feature:hover {
    box-shadow: 0 0px 10px #000;
    transform: scale(120%);
}
*/

.feature .ph {
    font-size: 48px;
    margin-bottom: 10px;
}

.feature h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
}

.feature p {
    margin: 0;
    color: var(--muted);
    font-size: 0.925rem;
}

/* Gallery */

.gallery {
    margin-top: 48px;
    width: min(800px, 100%);
}

.gallery-stage {
    position: relative;
    width: 100%;
}

.gallery-main {
    aspect-ratio: 1504 / 967;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--foreground);
    cursor: zoom-in;
    display: block;
    overflow: hidden;
    padding: 0;
    transition: border-color 150ms ease, box-shadow 150ms ease;
    width: 100%;
}

.gallery-main img {
    display: block;
    height: 100%;
    object-fit: contain;
    width: 100%;
}

.carousel-control {
    align-items: center;
    background: rgb(8 8 8 / 0.82);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    font-size: 1.4rem;
    height: 48px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease;
    width: 48px;
}

.gallery:hover .carousel-control {
    opacity: 1;
}

.carousel-control:hover,
.carousel-control:focus-visible {
    background: var(--red);
    border-color: var(--red);
    outline: none;
}

.carousel-control .ph {
    transition: color 150ms ease;
}

.carousel-control:hover .ph,
.carousel-control:focus-visible .ph {
    color: var(--background);
}

.carousel-previous {
    left: -32px;
}

.carousel-next {
    right: -32px;
}

.gallery-thumbnails {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 36px;
}

.gallery-thumbnail {
    background: var(--surface);
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    opacity: .55;
    overflow: hidden;
    padding: 0;
    transition: border-color 150ms ease, opacity 150ms ease, transform 150ms ease;
}

.gallery-thumbnail:hover,
.gallery-thumbnail:focus-visible,
.gallery-thumbnail[aria-current="true"] {
    border-color: var(--red);
    opacity: 1;
    outline: none;
}

.gallery-thumbnail:hover {
    transform: translateY(-2px);
}

.gallery-thumbnail img {
    aspect-ratio: 1504 / 967;
    display: block;
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.gallery-dialog {
    background: transparent;
    border: 0;
    color: var(--foreground);
    margin: auto;
    max-height: 100vh;
    max-width: 100vw;
    padding: 72px 80px 32px;
    width: 100%;
}

.gallery-dialog::backdrop {
    background: rgb(0 0 0 / 0.9);
    backdrop-filter: blur(8px);
}

.gallery-dialog figure {
    margin: 0 auto;
    max-width: 1504px;
}

.gallery-dialog img {
    border-radius: 8px;
    display: block;
    max-height: calc(100vh - 150px);
    object-fit: contain;
    width: 100%;
}

.gallery-dialog figcaption {
    font-size: 0.95rem;
    font-weight: 600;
    padding-top: 14px;
    text-align: center;
}

.gallery-control {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--foreground);
    cursor: pointer;
    display: flex;
    font-size: 1.5rem;
    height: 48px;
    justify-content: center;
    position: fixed;
    transition: background 150ms ease, border-color 150ms ease;
    width: 48px;
}

.gallery-control:hover,
.gallery-control:focus-visible {
    background: var(--red);
    border-color: var(--red);
    outline: none;
}

.gallery-control .ph {
    transition: color 150ms ease;
}

.gallery-control:hover .ph,
.gallery-control:focus-visible .ph {
    color: var(--background);
}

.gallery-close {
    right: 24px;
    top: 20px;
}

.gallery-previous,
.gallery-next {
    top: 50%;
    transform: translateY(-50%);
}

.gallery-previous {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

/* FAQ */

.faq-list {
    border-top: 1px solid var(--border);
    text-align: left;
    width: min(820px, 100%);
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    align-items: center;
    cursor: pointer;
    display: flex;
    font-size: 1.05rem;
    font-weight: 600;
    justify-content: space-between;
    list-style: none;
    padding: 24px 4px;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    color: var(--red);
    content: "+";
    font-size: 1.7rem;
    font-weight: 400;
    line-height: 1;
    margin-left: 24px;
    transition: transform 150ms ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item summary:focus-visible {
    color: var(--cyan);
    outline: none;
}

.faq-answer {
    color: var(--muted);
    max-width: 720px;
    padding: 0 4px 24px;
}

.faq-answer p {
    margin: 0;
}

/* Section navigation */

.section-navigation {
    bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    position: fixed;
    right: 24px;
    z-index: 30;
}

.section-navigation a {
    align-items: center;
    background: rgb(16 16 16 / .9);
    border: 1px solid var(--border);
    border-radius: 50%;
    box-shadow: 0 6px 20px rgb(0 0 0 / .35);
    color: var(--foreground);
    display: flex;
    height: 48px;
    justify-content: center;
    text-decoration: none;
    transition: background 150ms ease, border-color 150ms ease, opacity 150ms ease;
    width: 48px;
}

.section-navigation a:hover,
.section-navigation a:focus-visible {
    background: var(--red);
    border-color: var(--red);
    outline: none;
}

.section-navigation a.is-disabled {
    opacity: .3;
    pointer-events: none;
}

.section-navigation .ph {
    color: currentColor;
    font-size: 24px;
    margin: 0;
}

/* Footer */

footer {
    color: var(--muted);
    font-size: 0.85rem;
    padding: 32px 0;
}

.footer-inner {
    align-items: center;
    display: flex;
    gap: 12px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    background: var(--red);
    border-radius: 50px;
    color: var(--red);
    padding: 8px;
    text-decoration: none;
    transition: background 150ms ease;
}

.footer-links a:hover {
    background-color: var(--cyan-hover);
}

.footer-links a .ph {
    color: var(--background);
    margin-bottom: 0;
}

@media (max-width: 800px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-dialog {
        padding: 72px 16px 24px;
    }

    .gallery-previous,
    .gallery-next {
        bottom: 20px;
        top: auto;
        transform: none;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 32px, 1120px);
    }

    .logo {
        width: 100%;
    }

    .actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .button:hover,
    .feature:hover {
        box-shadow: none;
        transform: none;
    }

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

    .feature {
        min-height: unset;
    }

    .gallery {
        margin-top: 36px;
    }

    .carousel-control {
        height: 40px;
        width: 40px;
    }

    .carousel-previous {
        left: -8px;
    }

    .carousel-next {
        right: -8px;
    }

    .gallery-thumbnails {
        gap: 6px;
    }

    .section-navigation {
        bottom: 12px;
        right: 12px;
    }

    .section-navigation a {
        height: 42px;
        width: 42px;
    }
}
