@import url('https://fonts.googleapis.com/css2?family=Commissioner:wght@300;400;500;600;700;800;900&family=Unbounded:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #050505;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-2: rgba(255, 255, 255, 0.07);
    --line: rgba(255, 255, 255, 0.095);
    --text: rgba(255, 255, 255, 0.92);
    --muted: rgba(255, 255, 255, 0.55);
    --muted-low: rgba(255, 255, 255, 0.34);
    --red: #a11f2d;
    --red-hover: #ba2637;
    --blue: #405a7e;
    --cream: #d7d0c2;
    --radius: 28px;
    --display: "Unbounded", sans-serif;
    --body: "Commissioner", sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 15% 5%, rgba(161, 31, 45, 0.2), transparent 28%),
        radial-gradient(circle at 80% 20%, rgba(64, 90, 126, 0.22), transparent 32%),
        linear-gradient(135deg, #050505 0%, #070707 42%, #0a0708 100%);
    color: var(--text);
    font-family: var(--body);
    overflow-x: hidden;
}

body.lock {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    border: 0;
    background: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
}

.container {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.grain {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -4;
    opacity: 0.07;
    background-image:
        linear-gradient(rgba(255,255,255,.35) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.35) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: linear-gradient(to bottom, black, transparent 88%);
}

.scanline {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -3;
    background: repeating-linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.018),
        rgba(255, 255, 255, 0.018) 1px,
        transparent 1px,
        transparent 7px
    );
    opacity: 0.35;
}

.cursor-light {
    position: fixed;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    pointer-events: none;
    z-index: -2;
    background: radial-gradient(circle, rgba(161, 31, 45, 0.15), transparent 66%);
    transform: translate(-50%, -50%);
}

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 50;
    background: rgba(5, 5, 5, 0.58);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
    transition: 0.25s ease;
}

.header.scrolled {
    background: rgba(5, 5, 5, 0.88);
}

.header-inner {
    height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.brand-mark {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.045);
    color: var(--cream);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 800;
}

.nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.nav a {
    position: relative;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    transition: 0.2s ease;
}

.nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 0;
    height: 1px;
    background: var(--red);
    transition: 0.2s ease;
}

.nav a:hover {
    color: var(--text);
}

.nav a:hover::after {
    width: 100%;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: 0.22s ease;
}

.nav-toggle.active span:first-child {
    transform: translateY(4.5px) rotate(45deg);
}

.nav-toggle.active span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
}

.hero {
    min-height: 100vh;
    padding: 150px 0 90px;
    display: flex;
    align-items: center;
    position: relative;
}

.hero::after {
    content: "SYNDICATE";
    position: absolute;
    right: 4vw;
    top: 50%;
    transform: translateY(-50%) rotate(90deg);
    font-family: var(--display);
    font-size: clamp(42px, 7vw, 96px);
    font-weight: 900;
    letter-spacing: 0.16em;
    color: rgba(255, 255, 255, 0.035);
    pointer-events: none;
}

.hero-inner {
    min-height: calc(100vh - 240px);
    display: flex;
    align-items: center;
}

.hero-copy {
    max-width: 850px;
    position: relative;
    z-index: 2;
}

.meta-line {
    width: fit-content;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    margin-bottom: 28px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.meta-line i {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--red);
}

.hero h1 {
    max-width: 760px;
    font-family: var(--display);
    font-size: clamp(48px, 8vw, 104px);
    line-height: 0.94;
    letter-spacing: -0.08em;
    text-transform: uppercase;
    margin-bottom: 30px;
    font-weight: 800;
}

.hero h1 span {
    display: block;
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.52);
}

.hero-copy p {
    max-width: 610px;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.75;
    font-weight: 500;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.btn {
    height: 54px;
    padding: 0 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    font-weight: 800;
    font-size: 13px;
    transition: 0.22s ease;
}

.btn-red {
    background: var(--red);
    color: white;
    box-shadow: 0 18px 48px rgba(161, 31, 45, 0.28);
}

.btn-red:hover {
    transform: translateY(-3px);
    background: var(--red-hover);
    box-shadow: 0 24px 70px rgba(161, 31, 45, 0.4);
}

.btn-dark {
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--line);
    color: var(--text);
}

.btn-dark:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.075);
}

.section {
    padding: 105px 0;
}

.section-head {
    max-width: 780px;
    margin-bottom: 42px;
}

.section-head p {
    margin-bottom: 16px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.section-head h2,
.build-card h2,
.final-card h2 {
    font-family: var(--display);
    font-size: clamp(30px, 5vw, 56px);
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.fraction-card,
.build-card,
.dev-card,
.final-card {
    border: 1px solid var(--line);
    background:
        radial-gradient(circle at 80% 0%, rgba(161, 31, 45, 0.07), transparent 38%),
        rgba(255, 255, 255, 0.045);
    border-radius: var(--radius);
    backdrop-filter: blur(18px);
}

.fractions-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
}

.fraction-card {
    min-height: 230px;
    padding: 24px 22px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: 0.22s ease;
}

.fraction-card:hover,
.dev-card:hover {
    transform: translateY(-6px);
    background: var(--panel-2);
    border-color: rgba(255, 255, 255, 0.16);
}

.fraction-card span {
    color: var(--muted-low);
    font-family: var(--display);
    font-size: 12px;
    font-weight: 800;
}

.fraction-card h3 {
    font-family: var(--display);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.fraction-card p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
    font-weight: 500;
}

.build-card {
    position: relative;
    padding: 48px;
    display: grid;
    grid-template-columns: 140px 1fr auto;
    gap: 36px;
    align-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 100% 0, rgba(161, 31, 45, 0.2), transparent 36%),
        rgba(255, 255, 255, 0.045);
}

.build-label {
    color: var(--muted-low);
    font-family: var(--display);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.16em;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.build-card p,
.final-card p {
    max-width: 690px;
    margin-top: 16px;
    color: var(--muted);
    line-height: 1.7;
    font-weight: 500;
}

.devs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
}

.dev-card {
    padding: 32px;
    transition: 0.22s ease;
}

.dev-card span {
    display: inline-block;
    margin-bottom: 42px;
    color: var(--muted-low);
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 11px;
    font-weight: 800;
}

.dev-card h3 {
    font-family: var(--display);
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.045em;
    margin-bottom: 12px;
}

.dev-card p {
    margin-bottom: 8px;
    color: var(--text);
    font-weight: 700;
}

.dev-card small {
    color: var(--muted);
    line-height: 1.5;
    font-weight: 500;
}

.final-section {
    padding-top: 60px;
}

.final-card {
    padding: 76px 36px;
    text-align: center;
    background:
        radial-gradient(circle at 50% 0, rgba(161, 31, 45, 0.24), transparent 34%),
        rgba(255, 255, 255, 0.045);
}

.final-card span {
    display: inline-block;
    margin-bottom: 18px;
    color: var(--red);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
}

.final-card p {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 30px;
}

.footer {
    padding: 28px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: var(--muted-low);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    font-size: 13px;
    font-weight: 500;
}

.footer a {
    transition: 0.2s ease;
}

.footer a:hover {
    color: var(--text);
}

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: 0.75s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1120px) {
    .fractions-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1020px) {
    .build-card {
        grid-template-columns: 1fr;
    }

    .build-label {
        writing-mode: horizontal-tb;
        transform: none;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 28px, 1160px);
    }

    .header-inner {
        height: 72px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav {
        position: fixed;
        top: 84px;
        left: 14px;
        right: 14px;
        display: grid;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 22px;
        background: rgba(8, 8, 8, 0.96);
        backdrop-filter: blur(18px);
        box-shadow: 0 28px 80px rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transform: translateY(-14px);
        transition: 0.22s ease;
    }

    .nav.active {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav a {
        padding: 14px;
        border-radius: 14px;
    }

    .nav a:hover {
        background: rgba(255, 255, 255, 0.055);
    }

    .nav a::after {
        display: none;
    }

    .hero {
        padding: 124px 0 72px;
    }

    .hero::after {
        display: none;
    }

    .hero-inner {
        min-height: auto;
    }

    .hero h1 {
        font-size: 44px;
    }

    .hero-copy p {
        font-size: 16px;
    }

    .section {
        padding: 78px 0;
    }

    .section-head h2,
    .build-card h2,
    .final-card h2 {
        font-size: 30px;
    }

    .fractions-grid,
    .devs-grid {
        grid-template-columns: 1fr;
    }

    .build-card,
    .dev-card,
    .final-card {
        padding: 26px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 430px) {
    .brand span:last-child {
        display: none;
    }

    .meta-line {
        flex-wrap: wrap;
    }

    .btn {
        width: 100%;
    }

    .hero-actions {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}