@import url('https://fonts.googleapis.com/css2?family=Anton&family=Manrope:wght@500;700;800&display=swap');

:root {
    --bg: #f1f2f4;
    --ink: #151722;
    --ink-soft: #4d5366;
    --line: #d9dce4;
    --hero-a: #0f2eca;
    --hero-b: #2154f3;
    --hero-c: #7f25f0;
    --hero-d: #d947a6;
    --pill: #0d0f17;
    --white: #ffffff;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    font-family: 'Manrope', 'Segoe UI', sans-serif;
    background: var(--bg);
}

.page {
    width: 100%;
    margin: 0;
    background: #efefef;
    border-radius: 0;
    overflow: hidden;
}

.hero {
    min-height: 100vh;
    display: grid;
    align-content: start;
    justify-items: center;
    gap: 1rem;
    padding: 8rem 1.2rem 4.2rem;
    text-align: center;
    color: var(--white);
    position: relative;
    isolation: isolate;
    background:
        url("../images/background.png") center/cover no-repeat,
        radial-gradient(circle at 0% 6%, rgba(163, 190, 255, 0.4), transparent 32%),
        radial-gradient(circle at 72% 0%, rgba(255, 255, 255, 0.26), transparent 34%),
        radial-gradient(circle at 100% 88%, rgba(255, 80, 180, 0.42), transparent 36%),
        linear-gradient(130deg, var(--hero-a), var(--hero-b) 45%, var(--hero-c) 72%, var(--hero-d));
}

.hero-content {
    transform: translateY(-10vh);
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -18%;
    left: -6%;
    width: 112%;
    height: 18%;
    filter: blur(18px);
    z-index: -1;
}

.hero p {
    margin: 0;
    font-size: clamp(0.78rem, 1.2vw, 1rem);
    text-transform: uppercase;
    letter-spacing: 0.07em;
    font-weight: 800;
}

h1,
h2,
h3 {
    margin: 0;
}

h1 {
    max-width: 11ch;
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(2.6rem, 10vw, 7.4rem);
    line-height: 0.93;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 100%;
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(2rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.content {
    padding: 0.2rem 0.9rem 1.4rem;
}

/* Navigation (frosted bar) */
nav {
    --nav-offset: 0px;
    --nav-opacity: 0.12;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0rem;
    margin: 0;
    padding: 0.7rem 1.2rem;
    background: rgba(255, 255, 255, 0.5);
    isolation: isolate;
}

nav::before {
    content: '';
    /* fixed to viewport so it always covers the very top (prevents hairline gaps) */
    position: fixed;
    top: calc(var(--nav-top, -4px) - env(safe-area-inset-top, 0px));
    left: 0;
    width: 100vw;
    height: calc(var(--nav-h, 64px) + 8px);
    transform: translateY(var(--nav-offset));
    transition: transform 0.16s linear, opacity 0.16s linear, backdrop-filter 0.16s linear;
    background: rgba(255, 255, 255, var(--nav-opacity));
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    z-index: 99;
    /* just under the nav (which is 100) */
    pointer-events: none;
}

.nav-inner {
    z-index: 101 !important;
}

.nav-links,
.nav-toggle {
    position: relative;
    z-index: 102 !important;
}

nav a {
    position: relative;
    z-index: 103 !important;
}

/* move the hero/title slightly down so it's not too close to the nav */
.hero h1 {
    margin-top: clamp(0.8rem, 4vw, 2rem);
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    position: relative;
    z-index: 3;
}

.nav-inner {
    width: min(1100px, 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.6rem;
    position: relative;
    z-index: 3;
    padding-inline: 0.4rem;
}

.nav-toggle {
    display: none;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 3;
}

.nav-toggle span {
    display: block;
    width: 2rem;
    height: 0.22rem;
    margin: 0.3rem 0;
    background: #131620;
    border-radius: 2px;
    transition: all 0.3s;
}

nav a {
    position: relative;
    z-index: 3;
    text-decoration: none;
    color: #131620;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.52rem 0.78rem;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
    background: transparent;
}

nav a:hover {
    transform: translateY(-1px);
    background: #161922;
    color: #ffffff;
}

/* frosted scrolled state (applies when the nav should appear solid) */
nav.scrolled {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px) saturate(140%);
    -webkit-backdrop-filter: blur(10px) saturate(140%);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 6px 24px rgba(16, 18, 26, 0.06);
}

nav.scrolled a {
    color: #131620;
}

nav.scrolled .nav-toggle span {
    background: #222;
}

.lead {
    margin: 0 auto 1rem;
    max-width: 760px;
    font-size: 1.02rem;
    text-align: center;
    color: var(--ink-soft);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

section {
    background: #f7f7f8;
    border: 1px solid var(--line);
    padding: 1rem;
    margin: 0 auto;
    width: min(1240px, 100%);
}

section h2 {
    margin-bottom: 0.45rem;
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(2rem, 5vw, 3.3rem);
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

section>p {
    margin-top: 0;
    font-size: 1rem;
    color: var(--ink-soft);
    font-weight: 700;
}

form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
    margin-top: 0.8rem;
}

input {
    width: min(420px, 100%);
    padding: 0.78rem 0.95rem;
    border: 1px solid #c7ccd8;
    background: #ffffff;
    font-size: 1rem;
    color: var(--ink);
}

input:focus {
    outline: 2px solid rgba(33, 84, 243, 0.25);
    outline-offset: 1px;
}

button {
    border: 1px solid #111317;
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    font-family: 'Manrope', sans-serif;
    color: #ffffff;
    font-weight: 800;
    background: #10131a;
    cursor: pointer;
    transition: transform 160ms ease, filter 160ms ease;
}

button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.95rem;
}

.card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    border: 1px solid #22252f;
    padding: 1rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(7, 10, 23, 0.08), rgba(7, 10, 23, 0.74)),
        linear-gradient(120deg, #203269, #1f4686 45%, #2d225f);
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 16%, rgba(255, 255, 255, 0.14), transparent 34%);
    pointer-events: none;
}

.card:nth-child(3n) {
    background:
        linear-gradient(180deg, rgba(8, 11, 22, 0.06), rgba(8, 11, 22, 0.74)),
        linear-gradient(120deg, #305f2f, #244b26 48%, #17381c);
}

.card:nth-child(3n+1) {
    background:
        linear-gradient(180deg, rgba(8, 11, 22, 0.08), rgba(8, 11, 22, 0.72)),
        linear-gradient(120deg, #2a3f6b, #2f4f87 52%, #344f7d);
}

.card h3 {
    position: relative;
    margin-bottom: 0.4rem;
    font-family: 'Anton', Impact, sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 2rem);
    line-height: 0.96;
    text-transform: uppercase;
    letter-spacing: 0.015em;
}

.card p {
    position: relative;
    margin: 0.2rem 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    font-weight: 700;
}

.media-card {
    justify-content: flex-end;
    min-height: 260px;
}

.media-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: saturate(0.88) contrast(1.06);
}

.media-card h3,
.media-card p {
    z-index: 1;
}

footer {
    margin-top: 1.2rem;
    text-align: center;
    padding: 1.1rem;
    color: #f7f8ff;
    font-size: 0.95rem;
    background: #27397b;
    border-top: 2px solid rgba(37, 117, 252, 0.8);
    box-shadow: 0 -10px 30px rgba(37, 117, 252, 0.6);
}

::selection {
    color: #111422;
    background: #ffe08d;
}

hr {
    display: none;
}

@keyframes pageIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 860px) {
    .hero {
        min-height: 56vh;
        padding-top: 6.4rem;
    }

    nav {
        top: 0.2rem;
    }

    section h2 {
        font-size: clamp(1.7rem, 8vw, 2.4rem);
    }
}

@media (max-width: 560px) {
    .hero {
        min-height: 50vh;
        padding: 5.5rem 0.8rem 3.2rem;
    }

    .content {
        padding-inline: 0.5rem;
    }

    nav {
        flex-direction: column;
        align-items: flex-start;
        padding: 0.5rem 0.7rem;
        gap: 0;
    }

    .nav-inner {
        width: 100%;
        justify-content: space-between;
        padding-inline: 0.6rem;
    }

    .nav-toggle {
        display: flex;
        margin-left: auto;
        z-index: 6;
        padding: 0.35rem;
        border: 1px solid rgba(19, 22, 32, 0.2);
        border-radius: 10px;
        background: rgba(255, 255, 255, 0.92);
        box-shadow: 0 4px 14px rgba(14, 18, 30, 0.14);
    }

    .nav-toggle span {
        width: 1.55rem;
        height: 0.2rem;
        margin: 0.16rem 0;
        background: #0f1320;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        padding: 0.5rem 0;
        display: none;
    }

    .nav-links.open {
        display: flex;
    }

    nav a {
        width: 100%;
        text-align: left;
        font-size: 1.1rem;
        padding: 1rem 1.5rem;
        border-radius: 0;
        border-bottom: 1px solid #eee;
    }

    .cards {
        grid-template-columns: 1fr;
    }

    form {
        flex-direction: column;
    }

    form button,
    form input {
        width: 100%;
    }
}

@media (max-width: 560px) {
    .hero h1 {
        font-size: clamp(2rem, 10vw, 3rem);
        line-height: 1;
    }
}

/* .hero {
        min-height: 100vh;
        padding: 6rem 1rem 3rem;
        align-content: start;
    } */

.hero h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1;
}