/*
 * Wave Funded public-page theme
 * Keeps every page reached from the homepage in the same sky-blue, white,
 * and navy visual system. CRM and authenticated trader workspaces are scoped
 * separately and are intentionally not affected by this stylesheet.
 */

.marketing-page {
    --ink: #f7fbff;
    --ink-2: #eef7ff;
    --panel: #ffffff;
    --panel-2: #f7fbff;
    --line: #dce8f5;
    --line-strong: #9fc8f4;
    --text: #0c1e3b;
    --muted: #52637a;
    --green: #1268f3;
    --green-2: #168cff;
    --cyan: #35cffa;
    --purple: #1268f3;
    --shadow: 0 24px 70px rgba(24, 73, 126, .12);
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 82% 8%, rgba(53, 207, 250, .2), transparent 25%),
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, .96), transparent 28%),
        linear-gradient(180deg, #cdeaff 0, #eef8ff 29%, #f7fbff 68%, #eef7ff 100%);
}

.marketing-page::selection {
    color: #fff;
    background: #1268f3;
}

.marketing-page a:focus-visible,
.marketing-page button:focus-visible {
    outline-color: rgba(18, 104, 243, .55);
}

/* Public inner navigation */
.marketing-page .site-header,
.marketing-page .site-header.scrolled {
    height: 76px;
    border-bottom: 1px solid rgba(215, 229, 243, .9);
    background: rgba(255, 255, 255, .9);
    box-shadow: 0 13px 40px rgba(19, 63, 112, .09);
    backdrop-filter: blur(18px);
}

.marketing-page .brand,
.marketing-page .brand-mark,
.marketing-page .brand-copy {
    color: #071a38;
}

.marketing-page .brand-mark i:first-child {
    color: #071a38;
    text-shadow: none;
}

.marketing-page .brand-mark i:last-child,
.marketing-page .brand-copy em {
    color: #1268f3;
    text-shadow: none;
}

.marketing-page .main-nav a {
    color: #3c526d;
}

.marketing-page .main-nav a:hover {
    color: #1268f3;
}

.marketing-page .main-nav a::after {
    height: 2px;
    border-radius: 2px;
    background: #1268f3;
}

.marketing-page .btn-primary {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #168cff, #1268f3);
    box-shadow: 0 13px 30px rgba(18, 104, 243, .23), inset 0 1px rgba(255, 255, 255, .25);
}

.marketing-page .btn-primary:hover {
    box-shadow: 0 18px 38px rgba(18, 104, 243, .32);
}

.marketing-page .btn-ghost {
    color: #0c1e3b;
    border-color: #cbdbea;
    background: #fff;
    box-shadow: 0 8px 25px rgba(16, 57, 104, .06);
}

.marketing-page .btn-ghost:hover {
    color: #1268f3;
    border-color: #1268f3;
    background: #f7fbff;
}

/* Legal, rules, and education pages */
.marketing-page .inner-page {
    min-height: 100vh;
    padding-top: 76px;
    color: #0c1e3b;
    background:
        radial-gradient(circle at 84% 7%, rgba(53, 207, 250, .2), transparent 24%),
        linear-gradient(180deg, #d9f0ff 0, #f7fbff 34%, #eef7ff 100%);
}

.marketing-page .inner-hero {
    padding: 108px 0 76px;
    border-bottom-color: #dce8f5;
    background:
        radial-gradient(circle at 80% 24%, rgba(53, 207, 250, .2), transparent 27%),
        linear-gradient(145deg, rgba(255, 255, 255, .72), rgba(224, 243, 255, .68));
}

.marketing-page .inner-hero h1,
.marketing-page .article-page h1 {
    color: #071a38;
    font-weight: 800;
}

.marketing-page .inner-hero h1 em {
    color: #1268f3;
}

.marketing-page .inner-hero p,
.marketing-page .article-lead,
.marketing-page .article-content {
    color: #52637a;
}

.marketing-page .eyebrow {
    color: #1268f3;
}

.marketing-page .eyebrow > span {
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #1268f3, #35cffa);
    box-shadow: none;
}

.marketing-page .article-page {
    min-height: calc(100vh - 76px);
    padding: clamp(58px, 7vw, 92px) 0 clamp(82px, 10vw, 130px);
}

.marketing-page .article-narrow {
    max-width: 900px;
    padding: clamp(34px, 5vw, 68px);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(205, 224, 241, .95);
    border-radius: 28px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 30px 90px rgba(24, 73, 126, .13), inset 0 1px rgba(255, 255, 255, .9);
    backdrop-filter: blur(16px);
}

.marketing-page .article-narrow::before {
    width: 360px;
    height: 180px;
    position: absolute;
    top: -125px;
    right: -95px;
    border-radius: 50%;
    background: rgba(53, 207, 250, .17);
    filter: blur(35px);
    content: "";
    pointer-events: none;
}

.marketing-page .article-page > .container > small,
.marketing-page .article-narrow > small {
    color: #1268f3;
}

.marketing-page .article-lead {
    margin-bottom: 0;
    font-size: 15px;
}

.marketing-page .article-content {
    margin-top: 38px;
    padding-top: 34px;
    border-top: 1px solid #e1ebf5;
    font-size: 16px;
    line-height: 1.9;
}

.marketing-page .article-content h2 {
    color: #071a38;
}

.marketing-page .text-link,
.marketing-page .article-content a {
    color: #1268f3;
    font-weight: 700;
}

.marketing-page .section {
    background: transparent;
}

.marketing-page .blog-grid {
    gap: 20px;
}

.marketing-page .blog-card {
    min-height: 270px;
    border-color: #dce8f5;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 20px 55px rgba(24, 73, 126, .09);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.marketing-page .blog-card:hover {
    border-color: #9fc8f4;
    box-shadow: 0 28px 70px rgba(18, 104, 243, .14);
    transform: translateY(-7px);
}

.marketing-page .blog-card small,
.marketing-page .blog-card h2 a,
.marketing-page .blog-card .text-link {
    color: #1268f3;
}

.marketing-page .blog-card h2 a {
    color: #071a38;
}

.marketing-page .blog-card p,
.marketing-page .module-empty {
    color: #52637a;
}

.marketing-page .admin-pagination {
    color: #52637a;
}

.marketing-page .admin-pagination a,
.marketing-page .admin-pagination span {
    color: #3c526d;
}

/* Certificate pages use the same homepage atmosphere around the document. */
.certificate-page,
.certificate-verification-page {
    color: #0c1e3b;
    background: #eef7ff;
}

.certificate-page .certificate-view-page,
.certificate-verification-page .certificate-registry {
    background:
        radial-gradient(circle at 82% 8%, rgba(53, 207, 250, .23), transparent 25%),
        radial-gradient(circle at 12% 16%, rgba(255, 255, 255, .95), transparent 28%),
        linear-gradient(180deg, #cdeaff 0, #f7fbff 45%, #eef7ff 100%);
}

.certificate-page .certificate-view-page__heading h1,
.certificate-verification-page .certificate-registry__header h1,
.certificate-verification-page .certificate-registry__meta {
    color: #071a38;
}

.certificate-page .certificate-view-page__heading span,
.certificate-verification-page .certificate-registry__eyebrow,
.certificate-verification-page .certificate-registry__invalid-card code {
    color: #1268f3;
}

.certificate-page .certificate-view-page__heading p,
.certificate-verification-page .certificate-registry__header p {
    color: #52637a;
}

.certificate-verification-page .certificate-registry__status {
    color: #1268f3;
    border-color: rgba(18, 104, 243, .36);
    background: rgba(18, 104, 243, .08);
    box-shadow: 0 0 34px rgba(18, 104, 243, .14);
}

.certificate-verification-page .certificate-registry__meta span::before {
    color: #1268f3;
}

.certificate-verification-page .certificate-registry__invalid-card {
    border-color: #d4e3f2;
    color: #0c1e3b;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 30px 80px rgba(24, 73, 126, .13);
}

@media (max-width: 760px) {
    .marketing-page .site-header,
    .marketing-page .site-header.scrolled {
        height: 68px;
    }

    .marketing-page .inner-page {
        padding-top: 68px;
    }

    .marketing-page .article-page {
        min-height: calc(100vh - 68px);
        padding: 28px 0 72px;
    }

    .marketing-page .article-narrow {
        padding: 28px 22px;
        border-radius: 20px;
    }

    .marketing-page .article-content {
        margin-top: 28px;
        padding-top: 26px;
        font-size: 15px;
    }

    .marketing-page .blog-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .marketing-page .blog-card {
        transition: none;
    }
}
