/* ═══════════════════════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════════════════════ */

:root {
    /* Base */
    --black:            #08080f;
    --white:            #f0f0f5;
    --text:             #e8e8f0;
    --text-secondary:   #9090aa;
    --grey-l:           #b0b0c0;

    /* Brand Blue */
    --freedom-blue:     #1a6fff;
    --freedom-blue-deep:#0d4fd4;
    --freedom-blue-dim: rgba(26, 111, 255, 0.15);
    --freedom-glow:     rgba(26, 111, 255, 0.28);
    --freedom-teal:     #00c2d4;

    /* Gradient */
    --gradient:         linear-gradient(135deg, #00c2d4 0%, #1a6fff 50%, #0d4fd4 100%);

    /* System */
    --font:             "Montserrat", sans-serif;
    --ease:             cubic-bezier(0.22, 0.7, 0.18, 1);

    /* Scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--freedom-blue) transparent;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--black);
    color: var(--white);
    min-height: 100vh;
    line-height: 1.62;
    letter-spacing: 0.003em;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 20% 20%, rgba(26, 111, 255, 0.14) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 80%, rgba(0, 194, 212, 0.10) 0%, transparent 65%),
        radial-gradient(ellipse 50% 40% at 50% 50%, rgba(13, 79, 212, 0.08) 0%, transparent 60%);
    animation: bgShift 12s ease-in-out infinite alternate;
}

@keyframes bgShift {
    0%   { opacity: 1;   transform: scale(1)    translateY(0); }
    50%  { opacity: 0.7; transform: scale(1.08) translateY(-2%); }
    100% { opacity: 1;   transform: scale(1)    translateY(0); }
}

a {
    font-weight: 700;
}

h1 { font-size: clamp(1.8rem, 4.5vw, 3.7rem); line-height: 0.92; }
h2 { font-size: clamp(1.9rem, 3.3vw, 2.9rem); }
h3 { font-size: clamp(1.4rem, 2.3vw, 1.9rem); }


/* ═══════════════════════════════════════════════════════════════
   NAV
═══════════════════════════════════════════════════════════════ */

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 48px;
    background: rgba(10, 10, 14, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--freedom-blue);
}

.site-nav-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
}

.site-nav-logo img {
    height: 34px;
    width: auto;
    display: block;
}

.site-nav-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.site-nav-title {
    font-size: 10px;
    font-weight: 300;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--grey-l);
}

.site-nav-sub {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
}

.site-nav-links {
    display: flex;
    align-items: baseline;
    gap: 28px;
    overflow: visible;
}

.site-nav-links a {
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--grey-l);
    border-bottom: 0;
}

.site-nav-links a:hover {
    color: var(--freedom-teal);
}

.site-nav-links a.site-nav-auth-btn,
.site-nav-links span.site-nav-auth-btn,
.site-nav-links button.site-nav-auth-btn {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--white);
    padding: 8px 16px;
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(2px);
    border: 1px solid var(--freedom-blue);
    border-radius: 999px;
    white-space: nowrap;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.site-nav-links a.site-nav-auth-btn:hover,
.site-nav-links button.site-nav-auth-btn:hover,
.site-nav-links button.site-nav-auth-btn:focus-visible {
    transform: translateY(-2px);
    color: var(--white);
    border: 0.5px solid var(--grey-l);
}

.site-nav-discord-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 999px;
    border: 1px solid var(--freedom-blue);
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(2px);
    transition: transform 0.18s ease;
    text-decoration: none;
}

.site-nav-discord-btn:hover {
    transform: translateY(-2px);
    color: var(--white);
}


.site-nav-discord-btn img {
    width: 22px;
    height: 22px;
    display: block;
}

.site-nav-discord-btn:hover {
    transform: translateY(-2px);
}


.site-nav-user {
    position: relative;
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    flex: 0 0 auto;
    overflow: visible;
}

.site-nav-user.is-open .site-nav-auth-btn {
    border-color: var(--freedom-blue);
    transform: translateY(-2px);
    color: var(--white);
    background: transparent;
}

.site-nav-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 160px;
    padding: 8px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.18s, visibility 0.18s, transform 0.18s;
    pointer-events: none;
}

.site-nav-user.is-open .site-nav-dropdown {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
}

.site-nav-dropdown a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    color: var(--white);
    white-space: nowrap;
    margin-top: 20px;
    padding: 8px 16px;
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(2px);
    border: 1px solid var(--freedom-blue);
    border-radius: 999px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.site-nav-dropdown a:hover,
.site-nav-dropdown button:hover,
.site-nav-dropdown button:focus-visible {
    border: 0.5px solid var(--grey-l);
    transform: translateY(-2px);
    color: var(--white);
    background: transparent;
}




/* ═══════════════════════════════════════════════════════════════
   ABOUT
═══════════════════════════════════════════════════════════════ */

.hub-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    position: relative;
    z-index: 1;
}

.about-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 24px;
    max-width: 640px;
}


/* ═══════════════════════════════════════════════════════════════
   INDEX / HOME
═══════════════════════════════════════════════════════════════ */

.home {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
}

.home--split {
    height: auto;
    display: block;
    text-align: center;
    padding: 0;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

.home-fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.home-btn-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    max-width: 50%;
    height: 50px;
    margin: 50px auto;
    padding: 10px 20px;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(8, 8, 15, 0.7);
    backdrop-filter: blur(2px);
    border: 1px solid var(--freedom-blue-dim);
    border-radius: 999px;
    box-shadow: 0 0 20px var(--freedom-glow);
    transition: all 0.25s ease;
}

.home-btn-cta:hover {
    transform: translateY(-2px);
    border-color: var(--freedom-blue);
    box-shadow: 0 0 28px var(--freedom-glow);
}


/* ═══════════════════════════════════════════════════════════════
   HERO SPLIT
═══════════════════════════════════════════════════════════════ */

@keyframes logoBreatheHome {
    0%, 100% { transform: scale(1); }
    50%       { transform: scale(1.06); }
}

.hero-split {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    padding: 80px 40px;
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-split-media {
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-split-img {
    width: min(240px, 60%);
    height: auto;
    display: block;
    animation: logoBreatheHome 3.4s ease-in-out infinite;
}

.hero-split-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.hero-split-content .subtitle {
    text-align: center;
    margin: 0;
    line-height: 1.5em;
}

.hero-split-ctas {
    display: flex;
    flex-direction: column;
    gap: 14px;
    align-items: center;
    margin-top: 10px;
}

.hero-split-ctas .home-btn-cta {
    margin: 0;
    max-width: 100%;
    min-width: 260px;
    width: fit-content;
}

@keyframes arrowFloat {
    0%   { transform: translateY(0);   opacity: 0.45; }
    50%  { transform: translateY(10px); opacity: 1; }
    100% { transform: translateY(0);   opacity: 0.45; }
}

@keyframes arrowPulseGlow {
    0%, 100% { filter: drop-shadow(0 0 4px rgba(26, 111, 255, 0)); }
    50%       { filter: drop-shadow(0 0 10px rgba(26, 111, 255, 0.7)); }
}

.hero-arrow-down {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--freedom-blue);
    text-decoration: none;
    margin-top: 32px;
    animation: arrowFloat 2.2s ease-in-out infinite, arrowPulseGlow 2.2s ease-in-out infinite;
    transition: color 0.2s ease;
}

.hero-arrow-down:hover {
    color: var(--freedom-teal);
}

/* ═══════════════════════════════════════════════════════════════
   SCROLL REVEAL
═══════════════════════════════════════════════════════════════ */

.reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }



/* ═══════════════════════════════════════════════════════════════
   HOME SYSTÈME SECTION
═══════════════════════════════════════════════════════════════ */

.home-systeme {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: left;
    gap: 28px;
    padding: 100px 40px 120px;
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.home-systeme-title {
    font-size: clamp(1.6rem, 4vw, 2.8rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--white);
}

.home-systeme-text {
    color: var(--grey-l);
    font-size: clamp(0.9rem, 1.3vw, 1.05rem);
    font-weight: 300;
    line-height: 1.75;
    max-width: 56ch;
}

.home-systeme .home-btn-cta {
    margin: 0;
}


/* ═══════════════════════════════════════════════════════════════
   HERO (generic)
═══════════════════════════════════════════════════════════════ */

.hero-title {
    font-size: clamp(1.8rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    margin: 0;
    color: var(--white);
    z-index: 1;
}

@keyframes shine {
    from { background-position: -150% 0, 0 0; }
    to   { background-position:  150% 0, 0 0; }
}

.hero-title-strong {
    display: inline-block;
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 1), transparent) no-repeat,
        linear-gradient(var(--white), var(--white));
    background-size: 250% 100%, 100% 100%;
    background-position: -150% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 0.9s ease-out forwards;
}

.hero-title-strong--accent {
    background:
        linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent) no-repeat,
        linear-gradient(135deg, #00c2d4 0%, #1a6fff 50%, #0d4fd4 100%);
    background-size: 250% 100%, 100% 100%;
    background-position: -150% 0, 0 0;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 0.9s ease-out forwards;
}

.subtitle {
    color: var(--grey-l);
    font-size: clamp(0.9rem, 1.35vw, 1.14rem);
    font-weight: 100;
    letter-spacing: 0.015em;
    line-height: 1;
    margin: 15px auto;
    max-width: 50ch;
    text-align: center;
}

.hero-courses {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-top: 75px;
    padding: 88px 40px 0;
}


/* ═══════════════════════════════════════════════════════════════
   AUTH
═══════════════════════════════════════════════════════════════ */

.auth-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    padding: 50px 30px;
    text-align: center;
    background: rgba(10, 10, 14, 0.7);
    border: 1px solid var(--freedom-blue);
    border-radius: 24px;
    backdrop-filter: blur(2px);
}

.auth-logo {
    width: 140px;
    margin-bottom: 20px;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 10px;
}

.auth-sub {
    font-size: 0.9rem;
    letter-spacing: 0.015em;
    margin-bottom: 25px;
    opacity: 0.7;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.auth-input {
    padding: 12px;
    background: var(--black);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.auth-btn {
    margin: 15px auto 0;
    padding: 15px 30px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--white);
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(2px);
    border: 1px solid var(--freedom-blue);
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.auth-btn:hover {
    transform: translateY(-2px);
    color: var(--white);
    border: 0.5px solid var(--grey-l);
}

.auth-switch {
    margin-top: 15px;
    font-size: 0.75rem;
    opacity: 0.7;
}

.auth-switch a {
    color: var(--freedom-teal);
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}


/* ═══════════════════════════════════════════════════════════════
   MODULE TABLE
═══════════════════════════════════════════════════════════════ */

.courses {
    max-width: 900px;
    margin: 80px auto;
    position: relative;
    z-index: 2;
}

.module {
    margin-bottom: 28px;
}

.module-link {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 16px 26px;
    margin: 0 25px;
    text-decoration: none;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
    transition: transform 0.2s ease;
}

.module-link:active {
    transform: scale(0.98);
}

.module-link:focus-visible {
    outline: 2px solid var(--freedom-blue-dim);
    outline-offset: 4px;
}

@media (hover: hover) {
    .module-link:hover {
        transform: translateY(-2px);
    }

    .module-link:hover .module-num {
        opacity: 1;
        transform: translateX(2px);
    }

    .module-link:hover .module-sub {
        color: rgba(255, 255, 255, 0.75);
    }
}

.module-num {
    width: 70px;
    flex-shrink: 0;
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--grey-l);
    opacity: 0.6;
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.module-text {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.module-title {
    position: relative;
    padding-bottom: 6px;
    font-size: clamp(1rem, 1.2vw, 1.15rem);
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.9);
}

.module-title::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--freedom-blue), transparent);
    opacity: 0.6;
}

.module-title em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.module-sub {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.25s ease;
}


/* ═══════════════════════════════════════════════════════════════
   CONTENT SECTIONS
═══════════════════════════════════════════════════════════════ */

.divider {
    height: 1px;
    max-width: 820px;
    margin: 50px auto 0;
    background: linear-gradient(to right, transparent, var(--freedom-blue), transparent);
    opacity: 0.45;
}

.section {
    max-width: 820px;
    margin: 0 auto;
    padding: 50px 30px;
}

.section h2 {
    font-size: clamp(1.1rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.75rem;
    color: var(--text);
    position: relative;
    z-index: 1;
}

.section em {
    font-style: normal;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section p {
    margin-bottom: 1.25rem;
    font-size: clamp(0.85rem, 1vw, 0.95rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.section strong {
    color: var(--white);
}

.list-card,
.belief-card {
    padding: 1.25rem;
    border: 0.5px solid var(--freedom-blue-dim);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(2px);
}

.list-card h4 {
    font-size: 0.9rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--white);
    margin-bottom: 0.9rem;
}

.callout {
    padding: 1.4rem 1.5rem;
    margin: 2rem 0;
    background: rgba(10, 10, 14, 0.7);
    backdrop-filter: blur(2px);
    border: 1px solid var(--freedom-blue);
    border-radius: 22px;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.24);
}

.callout p:last-child {
    margin-bottom: 0;
}

.list-grid,
.card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 2rem 0;
}

@media (max-width: 600px) {
    .list-grid {
        grid-template-columns: 1fr;
    }
}

.bullet-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    list-style: none;
    padding-left: 1.1rem;
    color: var(--grey-l);
    font-size: 0.8rem;
    line-height: 1.65;
}


/* ═══════════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════════ */

.footer-fixed {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000000;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 10px 14px;
    background: transparent;
    border-top: none;
}

.footer-fixed p {
    margin: 0;
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    color: var(--grey-l);
}
