* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    color: #f4f7fb;

    background:
        linear-gradient(
            rgba(3, 10, 17, .36),
            rgba(3, 10, 17, .48)
        ),
        url("/static/images/actuarywp.png")
        center center / cover
        fixed no-repeat;
}

a {
    color: inherit;
}

.topbar {
    min-height: 230px;

    padding:
        10px 5%;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 25px;

    background: transparent;

    border: 0;
}

.brand {
    display: flex;
    align-items: center;

    min-width: 650px;

    text-decoration: none;
}

.actuary-logo {
    width: auto;
    height: 245px;

    max-width: 700px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 0 7px
            rgba(255,205,100,.92)
        )
        drop-shadow(
            0 0 19px
            rgba(255,177,38,.70)
        )
        drop-shadow(
            0 0 38px
            rgba(255,145,0,.38)
        )
        drop-shadow(
            0 8px 22px
            rgba(0,0,0,.8)
        );
}

nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;

    gap: 9px;
}

nav a {
    padding:
        11px
        15px;

    border-radius: 11px;

    text-decoration: none;

    font-size: 13px;
    font-weight: 750;

    color: #fff8e5;

    background:
        linear-gradient(
            145deg,
            rgba(43,28,7,.70),
            rgba(8,17,25,.77)
        );

    border:
        1px solid
        rgba(255,198,79,.82);

    box-shadow:
        0 0 6px
        rgba(255,194,70,.42),
        0 0 14px
        rgba(255,157,0,.17),
        0 7px 22px
        rgba(0,0,0,.35);

    backdrop-filter:
        blur(12px);

    transition:
        .18s ease;
}

nav a:hover {
    transform:
        translateY(-2px);

    border-color:
        #ffe09c;

    box-shadow:
        0 0 10px
        rgba(255,220,150,.95),
        0 0 22px
        rgba(255,181,49,.76),
        0 0 38px
        rgba(255,140,0,.38),
        0 9px 25px
        rgba(0,0,0,.42);
}

main {
    min-height:
        calc(100vh - 300px);
}

.hero {
    max-width: 1150px;

    margin:
        15px auto
        70px;

    padding:
        55px
        40px;

    text-align: center;

    border-radius: 24px;

    background:
        rgba(5,16,27,.45);

    backdrop-filter:
        blur(10px);

    border:
        1px solid
        rgba(255,255,255,.12);
}

.hero-badge,
.eyebrow,
.section-heading > span,
.calc-heading > span {
    color: #e8be69;

    font-size: 12px;
    font-weight: 900;

    letter-spacing: 3px;
}

.hero h1 {
    margin:
        15px auto;

    font-size:
        clamp(
            48px,
            7vw,
            88px
        );

    line-height: .96;

    letter-spacing: -4px;
}

.hero h1 span {
    display: block;

    color: #e4bb66;
}

.hero p {
    max-width: 730px;

    margin:
        25px auto;

    font-size: 19px;

    line-height: 1.65;

    color: #c2ccd6;
}

.hero-actions {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;

    gap: 12px;

    margin-top: 30px;
}

.button,
button {
    display: inline-block;

    border: 0;

    border-radius: 10px;

    padding:
        14px
        20px;

    text-decoration: none;

    font-size: 14px;
    font-weight: 900;

    cursor: pointer;
}

.primary,
button {
    color: #1b1407;

    background:
        linear-gradient(
            135deg,
            #f2cf80,
            #c89536
        );

    box-shadow:
        0 0 15px
        rgba(220,169,67,.30);
}

.ghost {
    color: white;

    background:
        rgba(5,16,27,.70);

    border:
        1px solid
        rgba(255,210,116,.55);
}

.stats {
    max-width: 1100px;

    margin:
        0 auto
        80px;

    display: grid;

    grid-template-columns:
        repeat(4,1fr);

    border-radius: 18px;

    background:
        rgba(5,16,27,.68);

    border:
        1px solid
        rgba(255,255,255,.12);

    backdrop-filter:
        blur(14px);
}

.stats div {
    padding: 24px;

    text-align: center;
}

.stats strong {
    display: block;

    color: #e7bd69;

    font-size: 25px;
}

.stats span {
    color: #aebcca;

    font-size: 12px;
}

.section,
.content-page,
.calculator-page,
.analysis-page {
    max-width: 1180px;

    margin: 0 auto;

    padding:
        30px
        24px
        90px;
}

.section-heading,
.calc-heading {
    margin-bottom: 30px;

    padding: 24px;

    border-radius: 16px;

    background:
        rgba(5,16,27,.58);

    backdrop-filter:
        blur(12px);
}

.section-heading h1,
.section-heading h2,
.calc-heading h1 {
    margin:
        8px 0
        12px;

    font-size:
        clamp(
            38px,
            5vw,
            58px
        );

    letter-spacing: -2px;
}

.section-heading p,
.calc-heading p {
    max-width: 770px;

    color: #bdc8d2;

    line-height: 1.6;
}

.card-grid {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 18px;
}

.tool-card,
.calc-card,
.result-panel,
.ai-panel,
.chart-card,
.info-card,
.project-row {
    border-radius: 18px;

    background:
        linear-gradient(
            145deg,
            rgba(5,17,29,.82),
            rgba(9,31,42,.73)
        );

    border:
        1px solid
        rgba(255,255,255,.13);

    box-shadow:
        0 20px 55px
        rgba(0,0,0,.30);

    backdrop-filter:
        blur(17px);
}

.tool-card {
    padding: 28px;

    text-decoration: none;

    transition: .18s;
}

.tool-card:hover {
    transform:
        translateY(-4px);

    border-color:
        rgba(231,187,102,.65);
}

.tool-card h3 {
    margin:
        18px 0
        9px;

    font-size: 23px;
}

.tool-card p {
    min-height: 74px;

    color: #aebdca;

    line-height: 1.6;
}

.icon {
    width: 50px;
    height: 50px;

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

    border-radius: 12px;

    color: #f0ca79;

    font-size: 23px;
    font-weight: 900;

    background:
        rgba(224,173,72,.12);

    border:
        1px solid
        rgba(224,173,72,.30);
}

.go {
    color: #e5bd6c;

    font-size: 13px;
    font-weight: 800;
}

.form-wide {
    padding: 30px;
}

.form-grid {
    display: grid;

    grid-template-columns:
        repeat(2,1fr);

    gap: 20px;
}

label {
    display: block;

    color: #d5dee6;

    font-size: 13px;
    font-weight: 750;
}

input,
select,
textarea {
    width: 100%;

    margin-top: 8px;

    padding: 14px;

    border-radius: 9px;

    border:
        1px solid
        rgba(255,255,255,.17);

    color: white;

    background:
        rgba(2,12,21,.82);

    font-size: 15px;
}

input[type="file"] {
    padding: 11px;
}

form button {
    width: 100%;

    margin-top: 25px;

    padding: 16px;
}

.info-card {
    padding: 24px;

    margin-bottom: 20px;

    color: #b8c5d0;

    line-height: 1.6;
}

.analysis-head {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    margin-bottom: 25px;

    padding: 26px;

    border-radius: 18px;

    background:
        rgba(5,16,27,.67);

    backdrop-filter:
        blur(14px);
}

.analysis-head h1 {
    margin:
        8px 0;

    font-size:
        clamp(
            35px,
            5vw,
            56px
        );
}

.analysis-head p {
    color: #99a9b8;
}

.analysis-grid {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    gap: 20px;

    margin-bottom: 20px;
}

.result-panel,
.ai-panel {
    padding: 28px;
}

.result-panel h2,
.ai-panel h2 {
    margin-top: 0;
}

.result-line {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding:
        14px 0;

    border-bottom:
        1px solid
        rgba(255,255,255,.08);

    color: #aebbc7;
}

.result-line strong {
    color: white;
}

.ai-panel {
    border-color:
        rgba(231,188,103,.50);

    box-shadow:
        0 0 25px
        rgba(205,153,52,.12),
        0 20px 55px
        rgba(0,0,0,.30);
}

.ai-label {
    color: #e9c473;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 2px;
}

.ai-text {
    white-space: pre-wrap;

    color: #d4dde4;

    line-height: 1.72;

    font-size: 15px;
}

.local-badge {
    margin-top: 25px;

    padding: 10px;

    border-radius: 8px;

    color: #dcb668;

    background:
        rgba(218,170,73,.09);

    border:
        1px solid
        rgba(218,170,73,.28);

    font-size: 10px;
    font-weight: 900;

    letter-spacing: 1px;
}

.chart-card {
    padding: 20px;

    margin-bottom: 20px;

    text-align: center;
}

.chart-card img {
    width: 100%;
    max-width: 900px;

    border-radius: 10px;
}

pre {
    max-height: 500px;

    overflow: auto;

    padding: 18px;

    border-radius: 10px;

    color: #d8e4ec;

    background:
        rgba(0,0,0,.35);

    font-size: 12px;

    white-space: pre-wrap;
}

details {
    margin-top: 20px;
}

summary {
    cursor: pointer;

    color: #e5bd6b;

    font-weight: 750;
}

.project-list {
    display: grid;

    gap: 10px;
}

.project-row {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 20px;

    padding: 18px 22px;

    text-decoration: none;
}

.project-row:hover {
    border-color:
        rgba(229,187,105,.55);
}

.project-row strong {
    display: block;
}

.project-row span,
.project-row time {
    color: #91a4b5;

    font-size: 12px;
}

.flash-wrap {
    max-width: 1100px;

    margin: 0 auto;

    padding:
        10px 24px;
}

.flash {
    padding: 14px;

    border-radius: 10px;

    background:
        rgba(130,60,20,.85);

    border:
        1px solid
        rgba(255,190,90,.50);
}

footer {
    display: flex;
    justify-content: space-between;

    gap: 20px;

    padding:
        25px
        5%;

    color: #8395a4;

    font-size: 11px;

    background:
        rgba(2,9,16,.72);

    border-top:
        1px solid
        rgba(255,255,255,.08);
}

footer strong {
    color: #d8b76c;
}

@media (max-width: 1150px) {

    .topbar {
        flex-direction: column;

        min-height: auto;

        padding-bottom: 25px;
    }

    .brand {
        min-width: 0;
    }

    .actuary-logo {
        height: 200px;
    }

    nav {
        justify-content: center;
    }

}

@media (max-width: 800px) {

    body {
        background-attachment:
            scroll;
    }

    .actuary-logo {
        height: 155px;

        max-width: 95vw;
    }

    .card-grid,
    .form-grid,
    .analysis-grid,
    .stats {
        grid-template-columns:
            1fr;
    }

    .analysis-head {
        flex-direction: column;

        align-items: flex-start;
    }

    .project-row,
    footer {
        flex-direction: column;

        align-items: flex-start;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

}

