/* =========================================================
   VARIABLES
========================================================= */

:root {

    --bg: #050608;
    --bg-soft: #0b0d11;

    --text: #f1f3f5;
    --muted: #8d949d;

    --line: rgba(255,255,255,0.10);

    --glass: rgba(255,255,255,0.035);

    --accent: #7ee7ff;
    --accent-soft: rgba(126,231,255,0.15);
}


/* =========================================================
   RESET
========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {

    background: var(--bg);

    color: var(--text);

    font-family: Inter, sans-serif;

    line-height: 1.6;

    overflow-x: hidden;
}


img {

    max-width: 100%;

    height: auto;

    display: block;
}


a {

    color: inherit;

    text-decoration: none;
}


button,
input,
textarea {

    font: inherit;
}


/* =========================================================
   ACCESSIBILITY
========================================================= */

.visually-hidden {

    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);

    white-space: nowrap;

    border: 0;
}


/* =========================================================
   GLOBAL
========================================================= */

.container {

    width: min(1180px, calc(100% - 48px));

    margin: auto;
}


section {

    padding: 140px 0;
}


.label {

    font-family: "Space Grotesk", sans-serif;

    font-size: 12px;

    letter-spacing: 0.18em;

    text-transform: uppercase;

    color: var(--accent);

    margin-bottom: 24px;
}


h1,
h2,
h3 {

    font-family: "Space Grotesk", sans-serif;

    font-weight: 500;

    line-height: 1.05;
}


h2 {

    font-size: clamp(42px, 6vw, 76px);

    letter-spacing: -0.04em;
}


p {

    color: var(--muted);
}


/* =========================================================
   BACKGROUND GRID
========================================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    opacity: 0.16;

    background-image:

        linear-gradient(
            var(--line) 1px,
            transparent 1px
        ),

        linear-gradient(
            90deg,
            var(--line) 1px,
            transparent 1px
        );

    background-size: 80px 80px;

    mask-image:
        linear-gradient(
            to bottom,
            black,
            transparent 70%
        );

    z-index: -2;
}


/* =========================================================
   NAVIGATION
========================================================= */

header nav {

    position: fixed;

    top: 0;
    left: 0;
    right: 0;

    height: 76px;

    display: flex;

    align-items: center;

    backdrop-filter: blur(14px);

    background: rgba(5,6,8,0.72);

    border-bottom: 1px solid var(--line);

    z-index: 100;
}


.nav-inner {

    width: min(1180px, calc(100% - 48px));

    margin: auto;

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.logo {

    font-family: "Space Grotesk";

    font-size: 15px;

    letter-spacing: 0.08em;
}


.nav-links {

    display: flex;

    gap: 32px;

    font-size: 13px;

    color: var(--muted);
}


.nav-links a {

    transition: color 0.2s ease;
}


.nav-links a:hover {

    color: var(--text);
}


/* =========================================================
   HERO
========================================================= */

.hero {

    min-height: 100vh;

    display: flex;

    align-items: center;

    position: relative;

    overflow: hidden;
}


.hero-content {

    max-width: 760px;

    position: relative;

    z-index: 2;
}


.hero h1 {

    font-size: clamp(56px, 8vw, 120px);

    letter-spacing: -0.06em;
}


.hero-subtitle {

    margin-top: 32px;

    font-size: clamp(20px, 2.4vw, 30px);

    max-width: 700px;

    color: #c8cdd3;

    font-weight: 300;
}


.hero-actions {

    margin-top: 48px;

    display: flex;

    gap: 16px;

    flex-wrap: wrap;
}


/* =========================================================
   HERO IMAGE
========================================================= */

.hero-image {

    position: absolute;

    top: 50%;

    right: clamp(20px, 5vw, 90px);

    transform: translateY(-50%);

    width: clamp(320px, 34vw, 500px);

    max-height: 650px;

    display: flex;

    align-items: center;

    justify-content: center;

    z-index: 1;

    pointer-events: none;
}


.hero-image::before {

    content: "";

    position: absolute;

    width: 80%;

    aspect-ratio: 1;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(126,231,255,0.10),
            transparent 68%
        );

    filter: blur(20px);
}


.hero-image img {

    position: relative;

    width: 100%;

    max-height: 650px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 25px 70px rgba(0,0,0,0.5)
        );
}


/* =========================================================
   BUTTONS
========================================================= */

.button {

    padding: 15px 25px;

    border: 1px solid rgba(126,231,255,0.5);

    font-size: 13px;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transition: 0.25s ease;
}


.button.primary {

    background: var(--accent);

    color: #061016;

    border-color: var(--accent);
}

/* =========================================================
   PROBLEM
========================================================= */

.problem {

    background: var(--bg-soft);
}


.problem-grid {

    margin-top: 70px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    border-top: 1px solid var(--line);
}


.problem-card {

    padding: 50px 40px;

    border-bottom: 1px solid var(--line);
}


.problem-card:nth-child(odd) {

    border-right: 1px solid var(--line);
}


.problem-card h3 {

    font-size: 28px;

    margin-bottom: 18px;
}


.problem-card p {

    max-width: 480px;
}


/* =========================================================
   GLASS BOX
========================================================= */

.glass-intro {

    max-width: 800px;
}


.glass-intro p {

    margin-top: 32px;

    font-size: 21px;

    line-height: 1.7;
}


.principles {

    margin-top: 90px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 1px;

    background: var(--line);
}


.principle {

    background: var(--bg);

    padding: 45px 35px;
}


.principle-number {

    color: var(--accent);

    font-family: "Space Grotesk";

    font-size: 12px;

    letter-spacing: 0.15em;
}


.principle h3 {

    margin: 25px 0 15px;

    font-size: 28px;
}


/* =========================================================
   NEXIS
========================================================= */

.nexis {

    background: #080b0f;

    position: relative;
}


.nexis-layout {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 90px;

    align-items: center;
}


.nexis-text p {

    margin-top: 30px;

    font-size: 19px;

    max-width: 580px;
}


.nexis-text strong {

    color: var(--text);

    font-weight: 400;
}


/* =========================================================
   NEXIS LOGO
========================================================= */

.nexis-logo {

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    min-height: 360px;

    padding: 40px;
}


.nexis-logo img {

    position: relative;

    z-index: 2;

    width: min(100%, 420px);

    max-height: 420px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 20px 50px rgba(0,0,0,0.45)
        );
}


/* =========================================================
   ARCHITECTURE
========================================================= */

#architecture {

    scroll-margin-top: 110px;
}


.architecture {

    margin-top: 90px;

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}


.architecture-heading {

    grid-column: 1 / -1;

    padding-bottom: 20px;
}


.architecture-heading h3 {

    font-size: 34px;
}


.module {

    padding: 28px;

    background: var(--glass);

    border: 1px solid var(--line);

    transition: 0.25s;
}

.module h3 {

    font-size: 20px;
}


.module span {

    display: block;

    margin-top: 8px;

    font-size: 12px;

    color: var(--accent);

    letter-spacing: 0.12em;

    text-transform: uppercase;
}


.module p {

    margin-top: 18px;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   MANIFESTO
========================================================= */

.manifesto {

    text-align: center;
}


.manifesto h2 {

    max-width: 1000px;

    margin: auto;
}


.manifesto p {

    max-width: 650px;

    margin: 35px auto 0;

    font-size: 20px;
}


/* =========================================================
   JOIN
========================================================= */

.join {

    background: var(--bg-soft);
}


.join-header {

    max-width: 760px;
}


.join-header p {

    margin-top: 30px;

    font-size: 20px;
}


.involvement {

    margin-top: 70px;

    display: grid;

    grid-template-columns: repeat(5, 1fr);

    gap: 10px;
}


.option {

    display: block;

    padding: 25px 15px;

    border: 1px solid var(--line);

    height: 100%;

    transition: 0.25s ease;
}

.option strong {

    display: block;

    font-family: "Space Grotesk";

    margin-bottom: 10px;
}


.option span {

    display: block;

    color: var(--muted);

    font-size: 12px;

    line-height: 1.5;
}


.join-cta {

    margin-top: 50px;

    max-width: 900px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    gap: 25px;
}


.join-cta p {

    font-size: 15px;

    max-width: 480px;

    margin: 0;
}

.join-cta a.submit {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin: 0;

    text-decoration: none;
}


.submit {

    display: inline-block;

    background: var(--accent);

    color: #061016;

    border: none;

    padding: 18px 35px;

    cursor: pointer;

    font-family: "Space Grotesk";

    font-size: 13px;

    letter-spacing: 0.08em;

    text-transform: uppercase;

    transition: 0.25s ease;
}

/* =========================================================
   FOOTER
========================================================= */

footer {

    padding: 45px 0;

    border-top: 1px solid var(--line);

    color: var(--muted);

    font-size: 12px;
}


.footer-inner {

    display: flex;

    justify-content: space-between;

    align-items: center;
}


.footer-links {

    display: flex;

    gap: 25px;
}


.footer-links a {

    transition: color 0.2s ease;
}


.footer-links a:hover {

    color: var(--text);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1000px) {

    .hero {

        min-height: 900px;
    }


    .hero-content {

        max-width: 650px;
    }


    .hero-image {

        width: 380px;

        right: 10px;

        opacity: 0.30;
    }


    .nexis-layout {

        gap: 50px;
    }


    .architecture {

        grid-template-columns: 1fr 1fr;
    }


    .involvement {

        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   SMALL TABLET
========================================================= */

@media (max-width: 800px) {

    section {

        padding: 110px 0;
    }


    .nav-links {

        display: none;
    }


    .hero {

        min-height: auto;

        padding: 150px 0 90px;

        display: block;
    }


    .hero-content {

        max-width: 100%;
    }


    .hero h1 {

        font-size:
            clamp(
                54px,
                11vw,
                90px
            );
    }


    .hero-subtitle {

        max-width: 620px;
    }


    .hero-image {

        position: relative;

        top: auto;

        right: auto;

        transform: none;

        width: min(500px, 85vw);

        max-height: none;

        margin:
            50px auto
            0;

        opacity: 1;
    }


    .problem-grid,
    .nexis-layout,
    .principles {

        grid-template-columns: 1fr;
    }


    .problem-card:nth-child(odd) {

        border-right: none;
    }


    .nexis-logo {

        min-height: 300px;
    }


    .architecture {

        grid-template-columns: 1fr 1fr;
    }

}


/* =========================================================
   MOBILE
========================================================= */
@media (hover: hover) and (pointer: fine) {

    .module:hover,
    .option:hover {

        border-color:
            rgba(126,231,255,0.4);

        transform: translateY(-3px);
    }


    .option:hover {

        background: var(--glass);
    }


    .button:hover,
    .submit:hover {

        transform: translateY(-2px);

        box-shadow:
            0 12px 40px
            rgba(126,231,255,0.12);
    }


    .nav-links a:hover,
    .footer-links a:hover {

        color: var(--text);
    }

}


@media (max-width: 600px) {

    .container {

        width:
            calc(100% - 32px);
    }


    section {

        padding: 90px 0;
    }


    header nav {

        height: 64px;
    }


    .nav-inner {

        width:
            calc(100% - 32px);
    }


    .logo {

        font-size: 13px;
    }


    .hero {

        padding-top: 125px;

        padding-bottom: 60px;
    }


    .hero h1 {

        font-size: 52px;

        line-height: 0.98;
    }


    .hero-subtitle {

        margin-top: 25px;

        font-size: 19px;

        line-height: 1.5;
    }


    .hero-actions {

        margin-top: 35px;

        flex-direction: column;

        align-items: stretch;
    }


    .button {

        text-align: center;

        width: 100%;
    }


    .hero-image {

        width: min(420px, 95vw);

        margin-top: 45px;
    }


    h2 {

        font-size:
            clamp(
                40px,
                11vw,
                60px
            );
    }


    .problem-grid {

        margin-top: 50px;
    }


    .problem-card {

        padding: 35px 25px;
    }


    .glass-intro p {

        font-size: 18px;
    }


    .principles {

        margin-top: 60px;
    }


    .principle {

        padding: 35px 25px;
    }


    .nexis-layout {

        gap: 30px;
    }


    .nexis-text p {

        font-size: 18px;
    }


    .nexis-logo {

        min-height: 250px;

        padding: 20px;
    }


    .nexis-logo img {

        width: min(100%, 340px);

        max-height: 300px;
    }


    .architecture {

        grid-template-columns: 1fr;

        margin-top: 60px;
    }


    .involvement {

        grid-template-columns: 1fr;

        margin-top: 50px;
    }


    .option {

        padding: 22px 20px;
    }


    .join-header p {

        font-size: 18px;
    }


    .join-cta {
    
        margin-top: 40px;
    
        flex-direction: column;
    
        align-items: stretch;
    }
    
    
    .join-cta p {
    
        font-size: 16px;
    
        max-width: none;
    }
    
    
    .join-cta a.submit {
    
        width: 100%;
    
        text-align: center;
    }

    .manifesto p {

        font-size: 18px;
    }


    .footer-inner {

        flex-direction: column;

        align-items: flex-start;

        gap: 20px;
    }


    .footer-links {

        flex-wrap: wrap;
    }

}


/* =========================================================
   VERY SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .container {

        width:
            calc(100% - 24px);
    }


    .hero h1 {

        font-size: 45px;
    }


    .hero-subtitle {

        font-size: 17px;
    }


    .hero-image {

        width: 100%;

        margin-top: 35px;
    }


    .problem-card {

        padding:
            30px 20px;
    }

}

/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    html {

        scroll-behavior: auto;
    }


    *,
    *::before,
    *::after {

        transition: none !important;

        animation: none !important;
    }

}