/* TOKENS */
:root {
    --bg: #0b0a28;
    --bg-2: #0f153a;
    --white: #ffffff;
    --muted: #cbd5e1;
    --soft: #9ca3af;
    --ink: #232323;
    --primary: #5865f2;
    --primary-2: #6c77ff;
    --line: #1f2a44;
    --max: 1120px;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    font: 300 16px/1.6 "Lato", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    color: var(--white);
    background: var(--bg);
    height: 100%;
}

html,
body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1 0 auto;
}

img {
    max-width: 100%;
    display: block
}

a {
    color: inherit;
    text-decoration: none
}

section {
    padding-block: clamp(48px, 7vw, 96px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    min-height: 44px;
    border-radius: 9999px;
    font-weight: 700;
    line-height: 1.1;
    border: 1px solid transparent;
    color: #fff;
    background: var(--primary);
    box-shadow: 0 6px 14px rgba(88, 101, 242, .25);
    transition: transform .08s ease, box-shadow .2s ease, background .2s ease;
}

.btn:hover {
    transform: none;
    box-shadow: 0 8px 20px rgba(88, 101, 242, .35);
}

.btn--ghost {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
    box-shadow: none;
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, .12);
}

.h1,
.h2 {
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    font-weight: 300;
    font-size: clamp(32px, 6.5vw, 54px);
    line-height: 1.08;
    margin: 10px 0 10px;
    text-transform: uppercase;
}

.h2 {
    padding-bottom: 20px;
}

.h1 .logo-inline,
.h2 .logo-inline,
.footer .logo-inline,
.brand .logo-inline {
    height: 0.8em;
    display: inline-block;
    margin-right: 26px;
    margin-left: -4px;
    width: auto;
    object-fit: contain;
    vertical-align: -0.05em;
}

/* NAV BAR */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(160%) blur(8px);
    background: rgba(11, 10, 40, .7);
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    z-index: 1000;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0
}

.nav__links a {
    opacity: .8;
    padding: 8px 10px;
    font-weight: 700;
    white-space: nowrap;
}

.nav__links a:hover {
    opacity: 1;
    background: rgba(255, 255, 255, .05);
    border-radius: 16px;
}

header .nav {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav__links {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.nav__btns {
    flex: 0 0 auto;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav__btns .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: auto;
    width: auto;
    padding: 10px 16px;
    border-radius: 9999px;
    line-height: 1.1;
    box-shadow: 0 6px 14px rgba(88, 101, 242, .25);
}

.nav__links a[aria-current="page"],
.drawer__links a[aria-current="page"] {
    opacity: 1;
    pointer-events: none;
    background: rgba(255, 255, 255, .05);
    border-radius: 16px;
}

body.nav-open .drawer {
    display: block;
    height: fit-content;
}

body.nav-open {
    overflow: hidden;
}

.brand {
    display: inline-flex;
    text-transform: uppercase;
    flex: 0 0 auto;
    align-items: baseline;
    white-space: nowrap;
}

.brand img {
    margin: 0 12px 0 4px;
}

/* HAMBURGER */
.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(255, 255, 255, .25);
    background: transparent;
    border-radius: 10px;
    padding: 0;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;
}

.hamburger span {
    width: 22px;
    height: 2px;
    background: #fff;
}

.drawer {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    background: rgba(11, 10, 40, .98);
    backdrop-filter: blur(8px);
    padding: 16px 20px;
}

.drawer__links,
.drawer__btns {
    display: grid;
    gap: 12px;
    margin-top: 16px;
    margin-bottom: 8px;
}

.drawer__links a {
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
    opacity: 0.8;
}

.drawer__links a:hover {
    background: rgba(255, 255, 255, .05);
    border-radius: 8px;
}

section[id="collab"] {
    align-self: start;
    padding-block: 0;
}

section[id="register"],
section[id="partners"] {
    padding: 0;
}

/* MAIN */
.main {
    position: relative;
    overflow: hidden;
    background-image: url('https://junctionxlisbon.my.canva.site/_assets/media/50e46d0937909c4ee898f0c4c920bfd3.jpg');
}

.main .grid {
    grid-template-columns: 1.1fr .9fr;
    align-items: center;
}

.main__bg {
    position: absolute;
    pointer-events: none;
    inset: 0;
    background:
        radial-gradient(800px 300px at 110% 10%, rgba(88, 101, 242, .24), transparent 60%),
        radial-gradient(500px 250px at -10% 100%, rgba(108, 119, 255, .25), transparent 60%);
}

.grid {
    display: grid;
    gap: 24px;
}

.grid>.cta {
    text-align: center;
}

.container {
    width: min(var(--max), 92%);
    margin-inline: auto;
}

.container>.block {
    width: auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    color: var(--soft);
    font-weight: 800;
    font-size: .8rem;
    margin: 0;
}

.nowrap {
    white-space: nowrap;
}

.footer .logo-inline {
    margin-right: 6px;
    margin-left: -2px;
    opacity: 0.7;
    vertical-align: -0.1em;
}

.brand .logo-inline {
    height: 0.78em;
    margin-right: 10px;
    margin-left: 2px;
}

.lead {
    color: var(--muted);
    font-size: clamp(16px, 2.8vw, 18px);
}

.actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

/* COLLAB */
.collab {
    display: flex;
    justify-content: space-between;
    gap: 18px;
}

.collab .left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.collab .logos {
    display: flex;
    gap: 12px;
    align-items: center
}

.collab .partner {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    border-radius: 12px;
    padding: 8px 12px;
    border: 1px solid rgba(2, 6, 23, .06)
}

.collab .partner img {
    object-fit: contain;
}

/* ABOUT */
.block {
    width: min(var(--max), 92%);
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 20px;
    margin: 60px auto;
    padding: 50px;
    background: linear-gradient(90deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02))
}

.prose {
    max-width: 820px;
    margin-left: 6px;
}

.desc-list {
    columns: 2;
    column-gap: 24px;
    margin: 12px 0 0;
}

.desc-list li {
    break-inside: avoid;
    padding-block: 6px;
}

/* VIDEO */
.video-hero .h1 {
    margin: 10px 0 10px;
}

.video-hero {
    position: relative;
    height: clamp(420px, 62vw, 720px);
    background: #000;
    overflow: hidden;
}

.video-hero .video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.video-hero .overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .35), rgba(0, 0, 0, .55)),
        radial-gradient(900px 380px at 85% -10%, rgba(88, 101, 242, .25), transparent 60%);
}

.video-hero .content {
    position: relative;
    z-index: 2;
    padding-block: clamp(80px, 14vw, 160px);
}

.video-sound {
    position: absolute;
    right: 16px;
    bottom: 16px;
    z-index: 3;
    width: 44px;
    height: 44px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, .35);
    background: rgba(0, 0, 0, .35);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    backdrop-filter: blur(4px);
}

.video-sound.on {
    background: rgba(88, 101, 242, .9);
}

.video-sound svg {
    width: 24px;
    height: 22px;
    display: block;
    fill: currentColor;
}

.video-sound .icon-on {
    display: none;
}

.video-sound.on .icon-on {
    display: block;
}

.video-sound.on .icon-off {
    display: none;
}

/* CTA */
.cta h2 {
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    font-weight: 300;
    margin: 0;
    font-size: clamp(28px, 6vw, 44px);
    padding-bottom: 16px;
}

/* FOOTER */
footer {
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 26px 0 48px;
    color: var(--soft)
}

footer>.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column-reverse;
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

footer .footer {
    width: 100%;
    text-align: center;
    padding-top: 6px;
    font-size: 14px;
}

.email {
    margin-left: 10px;
    margin-right: 12px;
    font-size: x-large;
}

.gradient {
    display: flex;
    align-items: center;
}

.gradient__logo {
    height: 40px;
    display: flex;
    margin-left: 12px;
    opacity: 0.8;
}

/* FAQ */
.faq {
    margin-top: 12px;
    margin-left: 26px;
}

.faqs {
    margin-top: 20px;
}

summary::-webkit-details-marker {
    display: none;
}

summary::marker {
    content: "";
}

summary {
    cursor: pointer;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 14px;
}

summary::before {
    content: "";
    width: 0;
    height: 0;
    border-left: 10px solid var(--white);
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
}

details {
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, .03);
    user-select: none
}

details+details {
    margin-top: 10px
}

details[open] summary::before {
    transform: rotate(90deg);
}

/* CHALLENGES */
#challenges .h2 {
    text-wrap: balance;
    margin-bottom: 18px;
}

.challenges-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(320px, 560px));
    justify-content: center;
    gap: 24px;
}

.challenge {
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .02));
    box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
    height: fit-content;
}

.challenge__header {
    margin: -6px -6px 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .08);
    display: grid;
    gap: 8px;
}

.challenge__tagline {
    font-family: "Montserrat", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    font-weight: 800;
    font-size: clamp(20px, 2.6vw, 26px);
    margin: 0;
    text-wrap: balance;
}

.challenge__desc {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: clamp(14px, 1.8vw, 16px);
    max-width: 60ch;
}

.challenge__intro {
    padding-top: 6px;
    max-width: 65ch;
    font-size: clamp(15px, 1.6vw, 17px);
    line-height: 1.75;
    color: #e5e7eb;
    text-wrap: pretty;
    hyphens: auto;
    justify-self: center;
}

.challenge__intro p {
    margin: 10px 0;
}

.challenge__intro ul {
    margin: 10px 0 0;
    padding-left: 1.1em;
}

.challenge__intro li {
    margin: 6px 0;
}

.challenge__intro li::marker {
    color: var(--primary-2);
}

.challenges-doc {
    margin-top: 20px;
    display: flex;
    gap: 12px;
    justify-content: center;
    align-items: center;
}

.btn--sm {
    padding: 10px 14px;
    min-height: 40px;
    font-size: 14px;
}

/* RESPONSIVE */
@media (prefers-reduced-motion: reduce) {
    .video-hero .video {
        display: none;
    }

    .video-hero {
        background: #0b0a28 url('./assets/hero-poster.jpg') center/cover no-repeat;
    }
}

@media (max-width:1100px) {
    .challenges-grid {
        grid-template-columns: minmax(320px, auto);
    }

    .challenge__header {
        text-align: center;
        justify-items: center;
    }

    #challenges .eyebrow {
        text-align: center;
    }

    #challenges .h2 {
        text-align: center;
    }

    .challenge__tagline {
        margin: 0 40px;
    }
}

@media (max-width: 900px) {
    body.nav-open {
        overflow: auto;
    }

    .nav__links,
    .nav__btns {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .drawer .btn {
        width: 100%;
        padding: 14px 18px;
        min-height: 52px;
        font-size: 18px;
        box-shadow: none;
    }

    .drawer .btn+.btn {
        margin-top: 4px;
    }

    .drawer .btn:hover {
        transform: none;
        box-shadow: 0 8px 20px rgba(88, 101, 242, .35);
    }

    .drawer .btn--ghost {
        background: transparent;
        border-color: rgba(255, 255, 255, .25);
    }

    .drawer .btn--ghost:hover {
        background: rgba(255, 255, 255, .12);
    }

    .main .grid {
        grid-template-columns: 1fr;
        gap: 80px
    }

    .steps {
        grid-template-columns: 1fr
    }

    .partners {
        grid-template-columns: repeat(3, 1fr)
    }

    .cta {
        justify-content: center;
        text-align: center,
    }

    .actions {
        justify-content: center;
    }

    .h1 .logo-inline,
    .h2 .logo-inline,
    .footer .logo-inline,
    .brand .logo-inline {
        margin-right: 12px;
    }

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

    .collab .partner img {
        margin-top: -90px;
        margin-bottom: -90px;
    }

    #about .grid {
        grid-template-columns: 1fr;
        place-items: center;
        text-align: center;
    }

    #about .grid>* {
        max-width: 680px;
        width: 100%;
    }

    #about .desc-list {
        justify-self: center;
        margin-left: 0;
    }

    .block {
        padding: 42px;
    }

    .prose {
        max-width: 820px;
        margin-left: 6px;
    }

    .desc-list {
        column-gap: 24px;
        margin: 12px 0 0;
    }

    .video-hero {
        display: grid;
    }

    .video-hero>.container.content {
        align-self: center;
        justify-self: center;
        text-align: center;
        padding: 0 !important;
    }

    .video-hero .h1 {
        margin: 8px 0;
        font-size: clamp(28px, 8vw, 40px);
    }

    .video-hero .lead {
        margin: 8px auto 0;
        max-width: 34ch;
        margin-inline: auto;
    }

    .video-hero>.container.content>div {
        display: flex;
        justify-content: center;
        gap: 12px;
        margin-top: 16px;
        flex-wrap: wrap;
    }

    .video-hero .content {
        display: grid;
        place-items: center;
        text-align: center;
    }

    .video-hero .content>div {
        justify-content: center;
        flex-wrap: wrap;
    }

    .cta {
        justify-content: center;
        text-align: center;
        gap: 20px;
    }

    .cta .btn {
        margin: 0 auto;
    }

    .challenges-doc {
        flex-wrap: wrap;
    }
}

@media (max-width: 720px) {
    .desc-list {
        columns: 1;
    }

    .gradient__logo {
        height: 30px;
    }

    .collab .partner img {
        margin-top: -60px;
        margin-bottom: -60px;
    }

    .footer > div{
        font-size: 13px;
    }
    
    .block {
        padding: 26px;
    }

    .email {
        margin-left: 8px;
        margin-right: 10px;
        font-size: large;
    }
}

.text-link {
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 255, 255, .35);
    transition: color .2s ease, border-color .2s ease;
}

.text-link:hover {
    color: var(--primary-2);
}

.text-link:focus-visible {
    outline: 2px solid var(--primary-2);
    outline-offset: 2px;
    border-bottom-color: transparent;
}