:root {
    --bg-primary: #050505;
    --bg-secondary: #101014;
    --bg-panel: rgba(255, 255, 255, 0.04);
    --text-primary: #f5f5f5;
    --text-muted: rgba(255, 255, 255, 0.6);
    --accent: #e50914;
    --accent-2: #f5c518;
    --card-gradient: linear-gradient(135deg, rgba(229, 9, 20, 0.9), rgba(32, 11, 41, 0.9));
    --radius-large: 32px;
    --radius-medium: 16px;
    --radius-small: 10px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Space Grotesk', 'Segoe UI', sans-serif;
    background: radial-gradient(circle at top, #12000f 0%, #030303 60%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.5;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    background-image: url('https://www.transparenttextures.com/patterns/dark-matter.png');
    opacity: 0.05;
    pointer-events: none;
    z-index: 1;
}

.hero {
    position: relative;
    padding: 32px clamp(24px, 6vw, 72px) 120px;
    min-height: 80vh;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(0, 0, 0, 0.9) 20%, rgba(5, 5, 5, 0.2) 80%);
    z-index: 0;
}

.hero__background {
    position: absolute;
    inset: 0;
    background: var(--hero-bg, url('https://images.unsplash.com/photo-1497032205916-ac775f0649ae?auto=format&fit=crop&w=1600&q=80')) center/cover;
    filter: blur(2px) brightness(0.6);
    transform: scale(1.05);
    z-index: 0;
}

nav,
.hero__content,
main,
footer {
    position: relative;
    z-index: 2;
}

.nav {
    display: flex;
    align-items: center;
    gap: 32px;
}

.logo {
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: 0.08em;
}

.nav__links {
    list-style: none;
    display: flex;
    gap: 24px;
    flex: 1;
}

.nav__links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav__links a:hover {
    color: var(--text-primary);
}

.nav__actions {
    display: flex;
    gap: 12px;
}

.btn {
    border: none;
    border-radius: var(--radius-small);
    padding: 10px 18px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.btn--ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn--solid {
    background: var(--accent);
    color: #fff;
}

.btn--play {
    background: #fff;
    color: #000;
}

.btn--large {
    padding: 14px 32px;
    font-size: 1rem;
    border-radius: var(--radius-medium);
}

.btn:hover {
    transform: translateY(-2px);
}

.hero__content {
    margin-top: 140px;
    max-width: 560px;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    font-size: 0.85rem;
    margin-bottom: 18px;
}

.hero__content h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    margin-bottom: 12px;
}

.meta {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.description {
    color: var(--text-muted);
    margin-bottom: 24px;
}

.hero__cta {
    display: flex;
    gap: 12px;
}

main {
    padding: clamp(32px, 5vw, 64px);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(5, 5, 5, 0.8) 40%);
}

.section__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}

.section__header h2 {
    font-size: 1.6rem;
}

.section__header .link {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.carousel {
    margin-bottom: 64px;
}

.carousel__rail {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.card {
    background: var(--bg-panel);
    border-radius: var(--radius-medium);
    padding: 18px;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.card:hover::before {
    opacity: 1;
}

.card__tag {
    align-self: flex-start;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.4);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    z-index: 1;
}

.card__body {
    z-index: 1;
}

.card__body h3 {
    margin-bottom: 6px;
}

.card__body p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.grid {
    margin-bottom: 64px;
}

.grid__layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}

.grid__item {
    background: var(--bg-panel);
    border-radius: var(--radius-large);
    padding: 32px 24px;
    text-align: center;
    font-weight: 600;
    position: relative;
    overflow: hidden;
}

.grid__item::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.grid__item:hover::after {
    opacity: 1;
}

.cta {
    background: linear-gradient(120deg, rgba(229, 9, 20, 0.8), rgba(6, 20, 51, 0.9));
    border-radius: var(--radius-large);
    padding: clamp(24px, 5vw, 48px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.cta__text .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer {
    padding: 48px clamp(24px, 6vw, 72px);
    background: #050505;
}

.footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.footer h4 {
    margin-bottom: 12px;
}

.footer ul {
    list-style: none;
}

.footer li + li {
    margin-top: 6px;
}

.footer a {
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.muted {
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 900px) {
    .nav__links {
        display: none;
    }

    .hero__content {
        margin-top: 100px;
    }

    .cta {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero {
        padding-top: 20px;
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
        text-align: center;
    }
}
