
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600&display=swap');

/* ==============================
   CREDORA FINANCE — THEME
================================ */

:root {
    --bg: #00190d;
    --text: #f5f7f5;
    --muted: #c6d0ca;
    --line: rgba(220, 255, 235, .32);
    --font: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: #00190d;
}

body {
    color: var(--text);
    font-family: var(--font);
    overflow-x: hidden;
}

button,
a {
    font: inherit;
}

/* ==============================
   MAIN BACKGROUND
================================ */

.landing {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: center;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;

    background:
        radial-gradient(
            ellipse at 50% 43%,
            rgba(0, 55, 27, .52) 0%,
            rgba(0, 33, 16, .38) 38%,
            transparent 72%
        ),
        radial-gradient(
            ellipse at 0% 0%,
            rgba(0, 255, 117, .20) 0%,
            rgba(0, 190, 82, .07) 24%,
            transparent 43%
        ),
        radial-gradient(
            ellipse at 100% 100%,
            rgba(0, 255, 117, .14) 0%,
            transparent 35%
        ),
        linear-gradient(
            135deg,
            #00180b 0%,
            #00351a 34%,
            #001d0e 66%,
            #000c06 100%
        );
}

/* Soft green illumination around the edges */

.landing::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;

    background:
        linear-gradient(
            155deg,
            transparent 0%,
            transparent 45%,
            rgba(0, 255, 120, .035) 65%,
            transparent 80%
        );

    box-shadow:
        inset 0 0 100px rgba(0, 255, 117, .045),
        inset 0 0 220px rgba(0, 0, 0, .48);
}

/* Additional subtle emerald glow */

.landing::after {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    pointer-events: none;

    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(0, 255, 120, .055),
            transparent 58%
        );

    opacity: .9;
}

/* ==============================
   CONTENT — KEEP ABOVE BACKGROUND
================================ */

.content {
    width: min(100% - 48px, 850px);
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 45px 0 27px;
}

.brand {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.brand-mark {
    width: 93px;
    height: 94px;
    margin-bottom: 10px;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.brand-name {
    font-size: clamp(30px, 4vw, 59px);
    font-weight: 500;
    letter-spacing: .24em;
    line-height: 1.12;
    padding-left: .24em;
}

.brand-subtitle {
    margin-top: 12px;
    font-size: clamp(14px, 1.8vw, 27px);
    letter-spacing: .58em;
    padding-left: .58em;
    font-weight: 300;
}

.short-rule {
    width: 175px;
    height: 1px;
    margin: 30px auto 28px;
    background: var(--line);
}

h1 {
    margin: 0;
    font-size: clamp(24px, 3.1vw, 45px);
    line-height: 1.28;
    letter-spacing: .12em;
    font-weight: 500;
}

.tagline {
    margin: 20px 0 0;
    color: #d0d9d3;
    font-size: clamp(14px, 1.75vw, 27px);
    letter-spacing: .035em;
    line-height: 1.55;
}

/* ==============================
   COUNTDOWN
================================ */

.countdown {
    width: min(100%, 800px);
    margin: 55px auto 0;
    border: 1px solid rgba(200, 255, 222, .26);
    border-radius: 20px;
    padding: 19px 28px 31px;

    background:
        linear-gradient(
            135deg,
            rgba(0, 52, 25, .40),
            rgba(0, 13, 6, .48)
        );

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .035),
        0 0 35px rgba(0, 255, 112, .025);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.countdown-heading {
    font-size: 16px;
    letter-spacing: .32em;
    font-weight: 400;
}

.time-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 34px;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    position: relative;
}

.time-unit + .time-unit:before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    height: 72px;
    width: 1px;
    background: rgba(205, 255, 224, .28);
}

.time-unit span {
    font-size: clamp(32px, 3.4vw, 49px);
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.time-unit small {
    font-size: 13px;
    letter-spacing: .31em;
    font-weight: 400;
    padding-left: .31em;
}

/* ==============================
   CA AND X ACTIONS
================================ */

.actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 27px;
    margin: 57px auto 0;
}

.side-line {
    width: 105px;
    height: 1px;
    background: rgba(215, 255, 232, .40);
}

.copy-action,
.x-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;
    color: #f4f8f5;
    text-decoration: none;
    white-space: nowrap;
    font-size: 14px;
    letter-spacing: .11em;
}

.copy-action {
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
}

.copy-icon {
    width: 27px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.action-divider {
    width: 1px;
    height: 35px;
    background: rgba(215, 255, 232, .35);
    margin: 0 5px;
}

.x-action svg {
    width: 31px;
    height: 31px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.1;
    stroke-linecap: square;
}

.copy-action:hover,
.x-action:hover {
    color: #aaffcd;
}

.copy-action:focus-visible,
.x-action:focus-visible {
    outline: 1px solid #aaffcd;
    outline-offset: 7px;
}

/* Disabled X link, if configured that way in JavaScript */

.x-action[aria-disabled="true"] {
    opacity: .65;
    cursor: default;
}

/* ==============================
   FOOTER AND TOAST
================================ */

footer {
    margin-top: 47px;
    color: #aabbb0;
    font-size: 10px;
    letter-spacing: .31em;
}

.toast {
    position: fixed;
    z-index: 10;
    left: 50%;
    bottom: 25px;
    transform: translate(-50%, 12px);
    padding: 12px 18px;
    border: 1px solid rgba(160, 255, 195, .25);
    border-radius: 8px;
    background: #062014;
    color: #f7fff9;
    font-size: 13px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
    white-space: nowrap;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ==============================
   SILVER METALLIC ORNAMENTS
================================ */

/* Shared ornament styling */

.ribbon {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border: 1px solid rgba(218, 255, 235, .48);
    filter: drop-shadow(0 0 5px rgba(0, 255, 119, .13));
}

/* Left metallic structure */

.ribbon.left {
    width: 540px;
    height: 700px;
    left: -265px;
    bottom: -340px;

    border-radius: 48% 52% 42% 58% / 42% 38% 62% 58%;
    transform: rotate(-39deg);

    background:
        linear-gradient(
            138deg,
            rgba(255, 255, 255, .94) 0%,
            rgba(204, 255, 227, .83) 4%,
            rgba(107, 165, 130, .50) 7%,
            rgba(1, 71, 35, .86) 12%,
            rgba(0, 24, 11, .94) 19%,
            rgba(0, 12, 6, .08) 33%,
            transparent 49%
        );

    box-shadow:
        inset 10px 2px 10px rgba(255, 255, 255, .22),
        inset -12px 0 20px rgba(0, 255, 118, .13),
        0 0 18px rgba(0, 255, 118, .10),
        18px 0 0 -1px #002013,
        19px 0 0 rgba(223, 255, 237, .46),
        40px 0 0 -1px #002013,
        41px 0 0 rgba(0, 255, 121, .25);
}

/* Right metallic structure */

.ribbon.right {
    width: 430px;
    height: 870px;
    right: -260px;
    top: 12%;

    border-radius: 55% 45% 48% 52% / 44% 43% 57% 56%;
    transform: rotate(25deg);

    background:
        linear-gradient(
            125deg,
            rgba(255, 255, 255, .96) 0%,
            rgba(214, 255, 234, .82) 4%,
            rgba(114, 169, 137, .48) 8%,
            rgba(3, 74, 37, .90) 13%,
            rgba(0, 25, 12, .94) 20%,
            rgba(0, 13, 6, .10) 35%,
            transparent 48%
        );

    box-shadow:
        inset 10px 0 12px rgba(255, 255, 255, .22),
        inset -12px 0 20px rgba(0, 255, 119, .12),
        0 0 20px rgba(0, 255, 119, .12),
        -22px 0 0 -1px #002013,
        -23px 0 0 rgba(225, 255, 239, .45),
        -48px 0 0 -1px #002013,
        -49px 0 0 rgba(0, 255, 120, .22);
}

/* Lower curved neon-metallic line */

.ribbon.bottom {
    width: 1200px;
    height: 370px;
    left: 22%;
    bottom: -300px;

    border-radius: 50%;
    transform: rotate(-15deg);

    background: transparent;

    box-shadow:
        0 -12px 18px -17px rgba(255, 255, 255, .9),
        0 -18px 0 -1px #001b0e,
        0 -19px 0 rgba(0, 255, 122, .78),
        0 -23px 28px rgba(0, 255, 122, .13);
}

/* Upper-left emerald sphere / curved surface */

.orb {
    position: absolute;
    z-index: 0;
    width: 520px;
    height: 520px;
    left: -300px;
    top: -250px;

    pointer-events: none;
    border-radius: 50%;
    border: 1px solid rgba(119, 255, 176, .67);

    background:
        radial-gradient(
            ellipse at 75% 85%,
            rgba(0, 255, 119, .22),
            transparent 48%
        ),
        linear-gradient(
            145deg,
            rgba(0, 255, 115, .14),
            rgba(0, 42, 20, .14) 48%,
            rgba(0, 10, 5, .08) 72%
        );

    box-shadow:
        inset -7px -3px 14px rgba(225, 255, 235, .13),
        inset 15px 12px 35px rgba(0, 255, 120, .06),
        4px 4px 18px rgba(0, 255, 119, .10);
}

/* ==============================
   MOBILE RESPONSIVENESS
================================ */

@media (max-width: 700px) {
    .content {
        width: min(100% - 34px, 520px);
        padding: 35px 0 25px;
    }

    .brand-mark {
        width: 100px;
        height: 70px;
        margin-bottom: 8px;
    }

    .brand-name {
        font-size: clamp(26px, 7vw, 39px);
        letter-spacing: .18em;
        padding-left: .18em;
    }

    .brand-subtitle {
        margin-top: 9px;
        font-size: 13px;
        letter-spacing: .48em;
        padding-left: .48em;
    }

    .short-rule {
        margin: 25px auto 23px;
        width: 130px;
    }

    h1 {
        font-size: clamp(20px, 5.2vw, 31px);
        letter-spacing: .075em;
    }

    .tagline {
        max-width: 420px;
        margin: 15px auto 0;
        font-size: 14px;
    }

    .countdown {
        margin-top: 36px;
        border-radius: 15px;
        padding: 17px 9px 23px;
    }

    .countdown-heading {
        font-size: 12px;
        letter-spacing: .25em;
    }

    .time-grid {
        margin-top: 28px;
    }

    .time-unit span {
        font-size: clamp(26px, 7.5vw, 38px);
    }

    .time-unit small {
        font-size: 9px;
        letter-spacing: .18em;
        padding-left: .18em;
    }

    .time-unit + .time-unit:before {
        height: 54px;
    }

    .actions {
        gap: 12px;
        margin-top: 37px;
        flex-wrap: wrap;
    }

    .side-line {
        width: 32px;
    }

    .copy-action,
    .x-action {
        gap: 9px;
        font-size: 11px;
        letter-spacing: .04em;
    }

    .copy-icon {
        width: 22px;
        height: 25px;
    }

    .x-action svg {
        width: 25px;
        height: 25px;
    }

    .action-divider {
        height: 28px;
        margin: 0 1px;
    }

    footer {
        margin-top: 35px;
        font-size: 8px;
        letter-spacing: .22em;
    }

    .ribbon.left {
        width: 350px;
        height: 500px;
        left: -290px;
        bottom: -250px;
        opacity: .78;
    }

    .ribbon.right {
        width: 280px;
        height: 560px;
        right: -230px;
        top: 18%;
        opacity: .66;
    }

    .ribbon.bottom {
        width: 700px;
        height: 280px;
        left: -220px;
        bottom: -235px;
        opacity: .85;
    }

    .orb {
        width: 330px;
        height: 330px;
        left: -245px;
        top: -210px;
        opacity: .82;
    }
}

@media (max-width: 380px) {
    .content {
        width: calc(100% - 24px);
    }

    .actions {
        gap: 9px;
    }

    .side-line {
        display: none;
    }

    .copy-action,
    .x-action {
        font-size: 10px;
    }

    .time-unit small {
        font-size: 8px;
    }

    .countdown {
        padding-left: 6px;
        padding-right: 6px;
    }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
    }
}
