:root {
    --gold: #d4af37;
    --gold-dark: #b8962e;
    --black-soft: rgba(0,0,0,0.7);
}

/* GLOBAL */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, sans-serif;
    color: white;

    background:
        linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.65)),
        url('f4bg.jpg') center top / cover no-repeat fixed;
}

/* TOPBAR */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 70px;
    padding: 15px 20px;

    background: #000;
    border-bottom: 1px solid var(--gold);

    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

/* PAGE WRAPPER */
.page {
    min-height: calc(100vh - 70px);
    padding: 40px 20px;
}

/* LANDINGPAGE */
.hero {
    text-align: center;
    padding: 80px 20px;
}

.features {
    display: flex;
    gap: 20px;
    padding: 30px;
}

/* DASHBOARD */
.layout {
    display: flex;
    min-height: calc(100vh - 70px);
    
}

.sidebar {
    width: 200px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    gap: 10px;
}

.content {
    flex: 1;
    padding: 20px;
}

/* CENTERED PAGES: LOGIN / REGISTER / ACCOUNT */
.center {
    min-height: 100vh;
    padding: 90px 20px 20px;

    display: flex;
    justify-content: center;
    align-items: center;
}

/* CARDS */
.card {
    flex: 1;
    background: var(--black-soft);
    border: 1px solid rgba(212,175,55,0.3);
    padding: 20px;
    border-radius: 10px;
}

/* LOGIN / FORM BOX */
.login-box {
    width: 90%;
    max-width: 400px;

    display: flex;
    flex-direction: column;
    gap: 15px;

    text-align: center;
}

.login-box input {
    width: 100%;
    padding: 12px;

    border-radius: 5px;
    border: 1px solid rgba(212,175,55,0.3);

    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 16px;
}

.login-box input::placeholder {
    color: rgba(255,255,255,0.6);
}

/* BUTTONS */
.btn {
    display: inline-block;

    background: var(--gold);
    color: black;

    padding: 10px 15px;
    border: none;
    border-radius: 5px;

    text-decoration: none;
    cursor: pointer;
    font-weight: bold;
}

.btn:hover {
    background: var(--gold-dark);
}

.account-link,
.account-link:visited {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

.account-link:hover {
    color: var(--gold);
}

/* CANCEL BUTTON */
.cancel-btn {
    background: rgba(255,255,255,0.1);
    color: white;

    padding: 10px 15px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 5px;

    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
}

.cancel-btn:hover {
    background: rgba(255,255,255,0.2);
}

/* MESSAGES */
.error-msg {
    color: #ff5c5c;
    text-align: center;
}


/* FOOTER */
.footer {
    display: flex;
    justify-content: center;
    gap: 25px;

    padding: 20px;
    margin-top: 40px;

    background: rgba(0,0,0,0.85);
    border-top: 1px solid rgba(212,175,55,0.3);

    flex-wrap: wrap;
}

.footer a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 14px;
}

.footer a:hover {
    color: var(--gold);
}

/* LEGAL PAGES */
.legal-page {
    display: flex;
    justify-content: center;
}

.legal-card {
    width: 100%;
    max-width: 900px;
    line-height: 1.6;
    font-size: 0.95rem;
    white-space: normal;
}

table th {
    text-align: left;
}

/* ADMIN QUESTIONNAIRE VIEW */
.admin-answer-block {
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(212,175,55,0.25);
}

.admin-answer-block p {
    margin: 6px 0;
}

/* QUESTIONNAIRE FORM */
.questionnaire-box {
    width: 100%;
    max-width: 900px;
}

.question-field {
    margin-bottom: 22px;
}

.question-field > label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.question-field input[type="text"],
.question-field textarea {
    display: block;
    width: 100%;
    padding: 12px;

    border-radius: 5px;
    border: 1px solid rgba(212,175,55,0.3);

    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 16px;
}

.question-field textarea {
    min-height: 110px;
    resize: vertical;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.confirm-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-weight: normal;
}

.confirm-label input {
    margin-top: 4px;
}

.form-hint {
    color: rgba(255,255,255,0.8);
    line-height: 1.5;
}

.success-msg {
    color: lightgreen;
    text-align: center;
    font-weight: bold;
}

/* LANDINGPAGE PREMIUM UPDATE */

.landing-page {
    overflow: hidden;
    padding-top: 70px;
}

.landing-topbar {
    z-index: 1000;
}

.logo {
    font-weight: bold;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.topnav {
    display: flex;
    align-items: center;
    gap: 18px;
}

.topnav a {
    color: rgba(255,255,255,0.78);
    text-decoration: none;
    font-size: 14px;
}

.topnav a.btn {
    color: black;
}

.topnav a:hover {
    color: var(--gold);
}

.topnav a.btn:hover {
    color: black;
}

.landing-hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;

    background:
        radial-gradient(circle at center, rgba(212,175,55,0.16), rgba(0,0,0,0.15) 35%, rgba(0,0,0,0.8) 80%);
}

.hero-content {
    max-width: 950px;
    text-align: center;
}

.eyebrow {
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 18px;
}

.landing-hero h1 {
    margin: 0;
    font-size: clamp(46px, 8vw, 92px);
    line-height: 0.95;
    letter-spacing: -0.04em;
}

.hero-subline {
    max-width: 780px;
    margin: 28px auto 0;
    color: rgba(255,255,255,0.82);
    font-size: clamp(18px, 2vw, 23px);
    line-height: 1.55;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn-large {
    padding: 14px 24px;
    font-size: 16px;
}

.btn-secondary {
    display: inline-block;
    padding: 14px 24px;
    border-radius: 5px;
    border: 1px solid rgba(212,175,55,0.45);
    color: white;
    text-decoration: none;
    font-weight: bold;
    background: rgba(255,255,255,0.06);
}

.btn-secondary:hover {
    background: rgba(212,175,55,0.14);
    color: var(--gold);
}

.section {
    padding: 90px 24px;
}

.section-heading {
    max-width: 850px;
    margin: 0 auto 48px;
    text-align: center;
}

.section-heading h2,
.about-section h2,
.closing-section h2 {
    margin: 0;
    font-size: clamp(32px, 5vw, 56px);
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.section-heading p {
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.6;
}

.pillar-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.pillar-card {
    min-height: 420px;
    padding: 28px;
    border-radius: 18px;
    background: rgba(0,0,0,0.68);
    border: 1px solid rgba(255,255,255,0.12);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.pillar-card:hover {
    transform: translateY(-8px);
    border-color: rgba(212,175,55,0.55);
    box-shadow: 0 18px 50px rgba(0,0,0,0.45);
}

.pillar-card::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0.16;
    pointer-events: none;
}

.pillar-finance::before {
    background: radial-gradient(circle at top right, #d4af37, transparent 45%);
}

.pillar-freedom::before {
    background: radial-gradient(circle at top right, #3da5ff, transparent 45%);
}

.pillar-flow::before {
    background: radial-gradient(circle at top right, #9b5cff, transparent 45%);
}

.pillar-foundation::before {
    background: radial-gradient(circle at top right, #4dff88, transparent 45%);
}

.pillar-number {
    color: var(--gold);
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 0.18em;
    margin-bottom: 32px;
}

.pillar-card h3 {
    margin: 0;
    font-size: 30px;
}

.pillar-card h4 {
    margin: 8px 0 18px;
    color: rgba(255,255,255,0.85);
    font-size: 18px;
}

.pillar-card p {
    color: rgba(255,255,255,0.72);
    line-height: 1.55;
}

.pillar-card ul {
    list-style: none;
    padding: 0;
    margin: 24px 0 0;
}

.pillar-card li {
    padding: 8px 0;
    color: rgba(255,255,255,0.88);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.motto-line {
    max-width: 1180px;
    margin: 38px auto 0;
    padding-top: 28px;
    border-top: 1px solid rgba(212,175,55,0.32);
    text-align: center;
    color: var(--gold);
    font-size: 22px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.about-section {
    display: flex;
    justify-content: center;
}

.premium-card {
    width: 100%;
    max-width: 980px;
    padding: 56px;
    border-radius: 22px;
    background:
        linear-gradient(135deg, rgba(212,175,55,0.12), rgba(255,255,255,0.04)),
        rgba(0,0,0,0.72);
    border: 1px solid rgba(212,175,55,0.32);
    text-align: center;
}

.premium-card p {
    max-width: 760px;
    margin: 22px auto;
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    line-height: 1.65;
}

.word-row {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin: 30px 0;
}

.word-row span {
    padding: 10px 16px;
    border-radius: 999px;
    background: rgba(212,175,55,0.12);
    border: 1px solid rgba(212,175,55,0.35);
    color: var(--gold);
    font-weight: bold;
}

.path-grid {
    max-width: 1050px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.path-card {
    padding: 28px;
    border-radius: 16px;
    background: rgba(0,0,0,0.62);
    border: 1px solid rgba(255,255,255,0.1);
}

.path-card span {
    color: var(--gold);
    font-weight: bold;
    letter-spacing: 0.15em;
}

.path-card h3 {
    margin: 18px 0 12px;
    font-size: 24px;
}

.path-card p {
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
}

.closing-section {
    padding: 100px 24px;
    text-align: center;
    background:
        linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.78));
}

.closing-section p {
    color: rgba(255,255,255,0.78);
    font-size: 18px;
    margin: 24px 0;
}

/* MOBILE */
@media (max-width: 768px) {

    body {
        background: #000;
        position: relative;
    }

    body::before {
        content: "";
        position: fixed;
        inset: 0;
        z-index: 0;
        pointer-events: none;

        background:
            linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.80)),
            url('f4bg.jpg') center center / cover no-repeat;
    }

    body > * {
        position: relative;
        z-index: 1;
    }

    .topbar {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        z-index: 1000;
    }

    .hero {
        padding: 60px 15px;
    }

    .hero h1 {
        font-size: 24px;
    }

    .features {
        flex-direction: column;
        padding: 20px;
    }

    .layout {
        flex-direction: column;
    }

    .sidebar {
        width: 200px;
        align-items: stretch;
    }

    .topnav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 12px;
    }

    .landing-hero {
        min-height: auto;
        padding: 90px 20px 70px;
    }

    .section {
        padding: 70px 18px;
    }

    .pillar-grid,
    .path-grid {
        grid-template-columns: 1fr;
    }

    .pillar-card {
        min-height: auto;
    }

    .premium-card {
        padding: 34px 22px;
    }

    .motto-line {
        font-size: 16px;
    }
}

/* TABLET */
@media (max-width: 1050px) {

    .pillar-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
