:root {
    --bg: #000000;
    --fg: #ffffff;
    --muted: #b0b0b0;
    --line: #1f1f1f;

    --topbar-h: 64px;
}

* {
    box-sizing: border-box;
}


@font-face {
    font-family: "TacticSans";
    src: url("../fonts/tactic-sans/TacticSans-Reg.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "TacticSans";
    src: url("../fonts/tactic-sans/TacticSansExtExd-Ult.ttf") format("truetype");
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

header {
    font-family: "TacticSans", sans-serif;
    font-weight: bold;
}

body {
    margin: 0;
    font-family: "TacticSans", sans-serif;
    font-weight: normal;
    background: var(--bg);
    color: var(--fg);
    overflow-x: hidden;

}

html {
    scroll-behavior: smooth;
}

/* ====================================================================== */
/* ============================ LANDING PAGE ============================ */
/* ====================================================================== */

.landing {
    position: relative;
    height: 100vh;
    width: 100%;
    overflow: hidden;
    color: #fff;
}

/* VIDEO */
.landing video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.4);
    z-index: 0;
}

.landing::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;

    height: var(--topbar-h);
    padding: 0 32px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 100;

    transition: transform 0.35s ease,
    background 0.35s ease;
}


.landing-cta {
    position: absolute; /* overlay on top of video */
    bottom: 40px; /* distance from bottom */
    left: 40px; /* distance from left */
    z-index: 2; /* above the video and overlay */
    display: flex;
    align-items: center;
    gap: 16px;
}

.landing-cta .step-text {
    font-size: 32px;
    font-weight: 700;
    color: #fff;
}

.landing-cta .cta {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
    transition: all 0.2s ease;
}

.landing-cta .cta:hover {
    background: #fff;
    color: #000;
}


/* Hidden state */

.top-nav.hidden {
    transform: translateY(-100%);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.nav-left img {
    height: var(--topbar-h);
}

.nav-title {
    letter-spacing: 2px;
    font-size: 14px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    opacity: 0.85;
}

.nav-links a:hover {
    opacity: 1;
}

.navbar {
    position: relative;
    display: flex;
    gap: 28px;
    align-items: center;
}

.navbar button {
    background: none;
    border: none;
    color: #aaa;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    padding: 8px 0;
    transition: color 0.25s ease;

    font-family: "TacticSans", "Impact", sans-serif;
    font-weight: normal;
}

.navbar button.active {
    color: #fff;
}

.navbar button:hover {
    color: #fff;
}

/* animated underline */
.navbar .line {
    position: absolute;
    bottom: 0;
    height: 2px;
    background: #fff;
    width: 0;
    left: 0;
    transition: left 0.35s cubic-bezier(.4, 0, .2, 1),
    width 0.35s cubic-bezier(.4, 0, .2, 1);
}

/* HERO TEXT TOP LEFT */
.hero-top-left {
    position: absolute;
    top: 120px;
    left: 48px;
    z-index: 2;
}

.hero-line {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    font-size: 42px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero-line span {
    font-size: 60px;
}

.squad-logo {
    width: auto;
    height: 100px;
}

.changing-text {
    margin-top: 10px;
    font-size: 48px;
    font-weight: 800;
    background-color: #fff; /* inverted */
    color: #000;
    display: inline-block;
    position: relative;
    opacity: 1;
    transform: translateY(0);
    transition: transform 0.1s linear, opacity 0.1s linear; /* VERY fast */
}

/* CTA BOTTOM LEFT */
.cta-bottom-left {
    position: absolute;
    bottom: 40px;
    left: 40px;
    z-index: 2;
}

.cta-bottom-left a {
    display: inline-block;
    padding: 14px 32px;
    border: 2px solid #fff;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
    letter-spacing: 1px;
}

.cta-bottom-left a:hover {
    background: #fff;
    color: #000;
}

/* BOTTOM RIGHT LOGO */
.logo-bottom-right {
    position: absolute;
    bottom: 32px;
    right: 32px;
    z-index: 2;
}

.logo-bottom-right img {
    width: 120px;
    opacity: 0.9;
}

/* ====================================================================== */
/* ================================ NAV ================================= */
/* ====================================================================== */

section {
    padding: 120px 80px;
    border-top: 1px solid var(--line);
}

h2 {
    font-size: 42px;
    margin-bottom: 40px;
}

/* ====================================================================== */
/* ================================ JOIN ================================ */
/* ====================================================================== */

#join {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding: 80px 5%;
    background: #111;
    overflow: hidden;
}

.join-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: brightness(0.3);
    z-index: 0;
    transition: background-image 1s ease-in-out;
}

/* Title */
.join-title {
    position: relative;
    z-index: 1;
    color: #fff;
    font-size: 3rem;
    margin-bottom: 40px;
    text-align: left;
}

/* Boxes side by side */
.join-container {
    display: flex;
    gap: 50px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
    position: relative;
    flex: 1;
    align-items: flex-start;
}

.join-box {
    flex: 1;
    color: #fff;
}

.join-box h3 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.join-box ul {
    list-style: disc inside;
    padding: 0;
    margin: 0;
}

.join-box ul li {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* ====================================================================== */
/* ================================ ROLES =============================== */
/* ====================================================================== */

#roles {
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding-top: var(--topbar-h);
    padding-bottom: 30px;
}

/* ================= TOP TEXT ================= */

.roles-hero {
    flex: 0 0 120px;
    display: flex;
    align-items: center;
    padding: 0 40px;
}

.roles-hero h1 {
    font-weight: 900;
    font-size: clamp(30px, 4.5vw, 60px); /* slightly smaller */
    color: #fff;
    margin: 0;
    letter-spacing: 0.02em;
}

.roles-hero h1 span {
    background: #fff;
    color: #000;
    padding: 0 14px;
    margin-left: 10px;
}

/* ================= ROLES STRIP ================= */

.roles {
    flex: 1;
    display: flex;
    width: 100%;
    overflow: hidden;
}

/* ================= CARD ================= */

.role {
    flex: 1;
    height: 100%;
    position: relative;
    border: 1px solid var(--line);
    overflow: hidden;
    cursor: pointer;
    transition: flex 0.5s ease;
}

/* ================= BACKGROUND ================= */

.role-bg {
    position: absolute;
    bottom: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: currentColor;
    transition: bottom 0.5s ease;
    z-index: 1;
}

/* ================= SILHOUETTE ================= */

.role-silu {
    position: absolute;
    bottom: -100%;
    height: 100%;
    width: auto;
    transition: bottom 0.5s ease;
    z-index: 2;

    /* default center */
    left: 50%;
    transform: translateX(-50%);
}

/* alignment variations using parent data-attribute */
.role[data-align="left"] .role-silu {
    left: 0;
    transform: translateX(0);
}

.role[data-align="right"] .role-silu {
    right: 0;
    left: auto;
    transform: translateX(0);
}

/* ================= LOGO / NAME ================= */

.role-logo,
.role-name {
    position: absolute;
    width: 100%;
    text-align: center;
    z-index: 3;
    transition: transform 0.5s ease, opacity 0.5s ease;
}

.role-logo {
    top: 30%;
    width: 120px;
    left: 50%;
    transform: translate(-50%, -50%);
}

.role-name {
    bottom: 20px;
    font-weight: bold;
    color: #fff;
}

/* ================= ROLE TEXT ================= */

.role-text {
    position: absolute;
    top: -100%;
    left: 20px;
    right: 20px;
    z-index: 3;

    display: flex;
    flex-direction: column;
    gap: 6px;

    font-weight: 900;
    text-transform: uppercase;

    color: inherit; /* ← YOUR COLORS BACK */
    pointer-events: none;
}

.eq-text-line {
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    font-weight: bold;
    letter-spacing: 0;
    margin: 2px 0; /* vertical spacing between lines */
    line-height: 1; /* keep lines tight but with margin for spacing */
}

/* fade + slide up */
@keyframes lineAppear {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.role-text .eq-text-line {
    opacity: 0; /* start hidden */
    transform: translateY(20px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* animate on hover of the card */
.role:hover .role-text .eq-text-line {
    animation: lineAppear 0.35s forwards;
}

/* stagger the lines for nice effect */
.role:hover .role-text .eq-text-line:nth-child(1) {
    animation-delay: 0.05s;
}

.role:hover .role-text .eq-text-line:nth-child(2) {
    animation-delay: 0.15s;
}

.role:hover .role-text .eq-text-line:nth-child(3) {
    animation-delay: 0.25s;
}

/* ================= HOVER ================= */

.role:hover .role-bg {
    bottom: 0;
}

.role:hover .role-silu {
    bottom: 0;
}

.role:hover .role-logo {
    transform: translate(-50%, -200%);
    opacity: 0;
}

.role:hover .role-name {
    transform: translateY(-100%);
    opacity: 0;
}

.role:hover .role-text {
    top: 20px;
}

/* ====================================================================== */
/* =============================== FOOTER =============================== */
/* ====================================================================== */

footer {
    padding: 40px;
    text-align: center;
    color: var(--muted);
    border-top: 1px solid var(--line);
}

/* ====================================================================== */
/* ============================== SCROLLBAR ============================= */
/* ====================================================================== */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 6px;
    border: 2px solid #0a0a0a;
}

::-webkit-scrollbar-thumb:hover {
    background: #ffffff;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a #0a0a0a;
}
