/* Real global utility - see dashboard.css for why this needs to actually
   exist here too rather than being assumed. raw_base.html pages (this
   stylesheet) previously had no working .hidden at all unless a specific
   template happened to redefine it locally. */
.hidden { display: none !important; }

:root {
    --primary: #6912db;
    --primary-hover: #7816c7;
    --dark-bg: #170a28;
    --dark-bg-2: #301a4a;
    --dark-bg-3: #170d2a;
    --text-light: #ffffff;
    --text-muted: #b4a8d0;
    --text-subtle: #937aa8;
    --card-bg: #ffffff;
    --surface: #f4f0f8;
    --surface-2: #faf8fc;
    --border: #eae2f0;
    --text-body: #6f628d;
    --text-heading: #190f2a;
    --text-link: #403355;
    --success: #10b981;
    --red: #dc2626;
    --gray-400: #94a3b8;
    --gray-300: #452469;
    --gray-600: #9ca3af;
    --zenith-bg: #1a1a1a;
    --zenith-layer-1: #2a2a2a;
    --zenith-layer-2: #333333;
    --zenith-layer-3: #3a3a3a;
}

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

html {
    font-size: clamp(14px, 1.2vw, 16px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--surface);
    overflow-x: hidden;
    line-height: 1.6;
}

.hero {
    background: var(--surface-2);
    /* Top padding is deliberately generous: it's the white space the fixed,
       transparent header floats over at the top of the page. The banner
       image only reaches the header once the page is scrolled down by
       roughly this amount. */
    padding: 6.5rem 5% 3rem;
}

.hero-banner {
    position: relative;
    width: 100%;
    max-width: 80.75rem;
    margin: 0 auto;
    aspect-ratio: 2.3 / 1;
    max-height: 34rem;
    border-radius: 1.25rem;
    overflow: hidden;
    background: var(--dark-bg);
}

.hero-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-overlay-card {
    position: absolute;
    top: 50%;
    right: 4%;
    transform: translateY(-50%);
    width: min(88%, 32rem);
    background: white;
    border-radius: 0.75rem;
    padding: 1.75rem 2.5rem;
    box-shadow: 0 1.25rem 3.125rem rgba(0, 0, 0, 0.2);
}

.hero-overlay-card h1 {
    color: var(--text-heading);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.75rem;
    letter-spacing: -0.03125rem;
}

.hero-overlay-card p {
    color: var(--text-body);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: white;
    padding: 0.875rem 1.75rem;
    border-radius: 0.625rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0.625rem 1.875rem rgba(37, 99, 235, 0.3);
}

.cta-btn svg {
    width: 1.125rem;
    height: 1.125rem;
    transition: transform 0.3s ease;
}

.cta-btn:hover svg {
    transform: translateX(3px);
}

.logo-section {
    position: relative;
    z-index: 20;
    margin-top: 1rem;
    padding: 0 3.75rem;
}

.logo-container {
    background: white;
    border-radius: 1.5rem;
    padding: 2.5rem 3.125rem;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.08);
    max-width: 80.75rem;
    margin: 0 auto;
}

.logo-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.875rem;
}

.logo-header-left h2 {
    font-size: 2.1rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.3;
}

.logo-header-left p {
    font-size: 0.875rem;
    color: var(--text-body);
    margin-top: 0.5rem;
}

.logo-header-left p span {
    color: var(--primary);
    font-weight: 700;
}

.logo-header-right {
    font-size: 3.6rem;
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 2px var(--gray-300);
    line-height: 1;
}

.marquee-wrapper {
    overflow: hidden;
    position: relative;
}

.marquee-wrapper::before,
.marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 5rem;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.marquee-wrapper::before {
    left: 0;
    background: linear-gradient(to right, white, transparent);
}

.marquee-wrapper::after {
    right: 0;
    background: linear-gradient(to left, white, transparent);
}

.marquee-track {
    display: flex;
    gap: 1.5rem;
    animation: scroll 25s linear infinite;
    width: max-content;
}

.marquee-track:hover {
    animation-play-state: paused;
}

.logo-box {
    flex-shrink: 0;
    width: 10rem;
    height: 6.25rem;
    transition: transform 0.3s ease;
}

.logo-box:hover {
    transform: translateY(-5px);
}

.logo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.625rem;
    filter: grayscale(0.3);
    transition: filter 0.3s ease;
}

.logo-box:hover img {
    filter: grayscale(0);
}

.tools-section {
    padding: 5rem 1.25rem 2.5rem 1.25rem;
    text-align: center;
    max-width: 56.25rem;
    margin: 0 auto;
}

.tools-section h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-heading);
    line-height: 1.2;
    margin-bottom: 3.125rem;
}

.floating-nav-container {
    position: relative;
    height: 5rem;
}

.floating-nav {
    display: flex;
    gap: 0.5rem;
    background: white;
    border-radius: 1rem;
    padding: 0.75rem 1.5rem;
    box-shadow: 0 0.25rem 1.875rem rgba(0, 0, 0, 0.08);
    max-width: 68.75rem;
    width: calc(100% - 2.5rem);
    /* ← matches the header width */
    margin: 0 auto;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.floating-nav.sticky {
    position: fixed;
    top: 1.25rem;
    /* same top offset as .main-floating-header */
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-1rem);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.floating-nav::-webkit-scrollbar {
    display: none;
}

/* Removed JS-based fixed sticky class in favor of native sticky on container */

.nav-btn {
    padding: 0.625rem 1.25rem;
    border-radius: 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-body);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.nav-btn:hover {
    color: var(--primary);
    background: #f1f5f9;
}

.nav-btn.active {
    background: #dbeafe;
    color: var(--primary);
    font-weight: 600;
}

.content-section {
    min-height: 37.5rem;
    padding: 6.25rem 3.75rem;
    max-width: 68.75rem;
    margin: 0 auto;
}

.content-section:nth-child(even) {
    background: var(--surface-2);
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 3rem;
    flex-wrap: wrap;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1 1 45%;
    min-width: 280px;
}

.feature-image {
    flex: 1 1 45%;
    min-width: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    width: 100%;
    max-width: 34rem;
    height: auto;
    display: block;
}

.content-section h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 1.5rem;
}

.content-section p {
    font-size: 1.2rem;
    color: var(--text-body);
    line-height: 1.75;
    max-width: 42rem;
}

@media (max-width: 900px) {

    .feature-row,
    .feature-row.reverse {
        flex-direction: column;
    }

    .feature-image,
    .feature-text {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .zenith-card {
        flex-direction: column;
        padding: 2.5rem 1.5rem;
        text-align: center;
        gap: 1.5rem;
        margin-left: 0;
        margin-right: 0;
    }

    .zenith-card-content,
    .zenith-card-image {
        max-width: 100%;
    }

    .zenith-layer-mid {
        margin-left: 0;
        margin-right: 0;
        padding: 1.5rem;
    }
}

/* Zenith Bank style dark section - 3 layered divs on PC, 2 on mobile */
.zenith-section {
    background: var(--zenith-bg);
    padding: 5rem 1.25rem 7.5rem 1.25rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.zenith-section h2 {
    font-size: 2.625rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 2.5rem;
    position: relative;
    z-index: 3;
}

.zenith-nav {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3.75rem;
    position: relative;
    z-index: 3;
}

.zenith-nav-btn {
    color: var(--gray-600);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    padding-bottom: 0.5rem;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
}

.zenith-nav-btn:hover,
.zenith-nav-btn.active {
    color: var(--text-light);
    border-bottom-color: var(--red);
}

.zenith-layer-bg {
    background: var(--zenith-layer-1);
    border-radius: 1.5rem;
    max-width: 56.25rem;
    margin: 0 auto;
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.zenith-layer-mid {
    background: var(--zenith-layer-2);
    border-radius: 1.5rem;
    padding: 2.5rem;
    position: relative;
    z-index: 2;
    margin-top: -3.75rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
}

.zenith-card {
    background: var(--zenith-layer-3);
    border-radius: 1.5rem;
    padding: 3.75rem 3.125rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    text-align: left;
    position: relative;
    z-index: 3;
    margin-top: -3.75rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
}

.zenith-card-content {
    flex: 1;
    max-width: 25rem;
}

.zenith-tag {
    display: inline-block;
    background: var(--red);
    color: white;
    padding: 0.5rem 1.25rem;
    border-radius: 1.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
}

.zenith-card-content h3 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-light);
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.zenith-card-content p {
    font-size: 1rem;
    color: var(--gray-600);
    line-height: 1.6;
}

.zenith-card-image {
    flex: 1;
    max-width: 25rem;
}

.zenith-card-image img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 1.25rem 3.75rem rgba(0, 0, 0, 0.4);
}

/* Footer */
.footer-subscribe {
    background: var(--surface-2);
    padding: 3.75rem 1.25rem 2.5rem 1.25rem;
    border-top: 1px solid var(--border);
}

.footer-subscribe-inner {
    max-width: 68.75rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2.5rem;
}

.footer-subscribe h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-heading);
}

.subscribe-form {
    display: flex;
    background: var(--border);
    border-radius: 3.125rem;
    padding: 0.375rem;
    min-width: 23.75rem;
}

.subscribe-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.75rem 1.25rem;
    font-size: 0.9375rem;
    color: var(--text-heading);
    outline: none;
}

.subscribe-form input::placeholder {
    color: var(--text-body);
}

.subscribe-form button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.75rem;
    border-radius: 3.125rem;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscribe-form button:hover {
    background: var(--primary-hover);
}

.footer-main {
    background: var(--surface-2);
    padding: 2.5rem 1.25rem 3.75rem 1.25rem;
    border-top: 1px solid var(--border);
}

.footer-main-inner {
    max-width: 68.75rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    gap: 3.75rem;
}

.footer-brand {
    max-width: 20rem;
}

.footer-brand .logo {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-heading);
}

.footer-brand .logo-icon {
    /* The logo image carries its own purple tile, so no backdrop here. */
    width: 2rem;
    height: 2rem;
    background: none;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand .logo-icon svg {
    width: 1.125rem;
    height: 1.125rem;
    color: white;
}

.footer-brand p {
    font-size: 0.9375rem;
    color: var(--text-body);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--text-heading);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
}

.footer-social a:hover {
    background: var(--primary);
}

.footer-social a svg {
    width: 1rem;
    height: 1rem;
    color: white;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 0.25rem;
}

.footer-links a {
    font-size: 0.9375rem;
    color: var(--text-link);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    background: var(--surface-2);
    padding: 1.25rem;
    border-top: 1px solid var(--border);
}

.footer-bottom-inner {
    max-width: 68.75rem;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--gray-400);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Tablet screens (768px - 1024px) */
@media (max-width: 64rem) {
    html {
        font-size: 14px;
    }

    .hero-banner {
        aspect-ratio: 1.6 / 1;
    }

    .hero-overlay-card h1 {
        font-size: 1.5rem;
    }

    .hero-overlay-card p {
        font-size: 0.9rem;
    }

    .logo-section {
        padding: 0 1.5rem;
        margin-top: 1rem;
    }

    .logo-container {
        padding: 2rem 1.5rem;
    }

    .tools-section h2 {
        font-size: 1.875rem;
    }

    .content-section {
        padding: 4rem 2.5rem;
    }

    .zenith-section h2 {
        font-size: 2.125rem;
    }

    .zenith-card {
        padding: 2.5rem 2rem;
    }

    .zenith-card-content h3 {
        font-size: 1.875rem;
    }

    .footer-subscribe h2 {
        font-size: 1.875rem;
    }
}

/* Mobile screens (below 768px) */
@media (max-width: 48rem) {
    html {
        font-size: 13px;
    }

    .hero {
        /* Same reasoning as the desktop rule - white space for the fixed
           header to float over before the page scrolls the banner under it. */
        padding: 5.5rem 1.5rem 2rem;
    }

    .hero-banner {
        aspect-ratio: 4 / 3;
        max-height: none;
        border-radius: 1rem;
    }

    .hero-overlay-card {
        /* Back inside the banner on mobile: an inset card with an equal
           gap to the image on all four sides, rather than a full-width
           block stacked below it. */
        position: absolute;
        inset: 1.25rem;
        transform: none;
        width: auto;
        margin: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 1.5rem;
    }

    .hero-overlay-card h1 {
        font-size: 1.4rem;
    }

    .cta-btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.875rem;
        justify-content: center;  /* centres text when button stretches full-width in mobile menu */
    }

    .logo-section {
        padding: 0 1rem;
        margin-top: 1rem;
    }

    .logo-container {
        padding: 1.5rem 1.25rem;
    }

    .logo-header {
        flex-direction: column;
        gap: 0.75rem;
    }

    .logo-header-left h2 {
        font-size: 1.375rem;
    }

    .logo-header-left p {
        font-size: 0.8125rem;
    }

    .logo-header-right {
        font-size: 2.5rem;
    }

    .logo-box {
        width: 8.5rem;
        height: 5.5rem;
    }

    .tools-section {
        padding: 3.75rem 1rem 2rem 1rem;
    }

    .tools-section h2 {
        font-size: 1.5rem;
        margin-bottom: 1.875rem;
    }

    .floating-nav-container {
        height: 3.5rem;
    }

    .floating-nav {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 0.5rem 1.25rem;
        border-radius: 0.875rem;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .floating-nav.sticky {
        top: 0.75rem;
        left: 1.25rem;
        transform: none;
        width: calc(100% - 2.5rem);
        max-width: 100%;
    }

    /* Removed JS-based fixed sticky class */
    .nav-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8125rem;
        flex-shrink: 0;
        scroll-snap-align: start;
    }

    .content-section {
        padding: 3.75rem 1.5rem;
        min-height: 25rem;
    }

    .content-section h3 {
        font-size: 1.5rem;
    }

    .content-section p {
        font-size: 0.875rem;
    }

    .zenith-section {
        padding: 3.75rem 1rem 5rem 1rem;
    }

    .zenith-section h2 {
        font-size: 1.625rem;
        margin-bottom: 1.5rem;
    }

    .zenith-nav {
        gap: 1rem;
        margin-bottom: 2.5rem;
    }

    .zenith-nav-btn {
        font-size: 0.8125rem;
        padding-bottom: 0.375rem;
    }

    .zenith-layer-bg {
        padding: 1rem;
        max-width: 100%;
    }

    .zenith-layer-mid {
        background: transparent;
        padding: 0;
        margin: 0;
    }

    .zenith-card {
        padding: 2rem 1.5rem;
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .zenith-card-content {
        max-width: 100%;
    }

    .zenith-card-content h3 {
        font-size: 1.625rem;
    }

    .zenith-card-content p {
        font-size: 0.875rem;
    }

    .zenith-card-image {
        max-width: 100%;
    }

    .zenith-tag {
        font-size: 0.6875rem;
        padding: 0.375rem 0.875rem;
    }

    .footer-subscribe {
        padding: 2.5rem 1rem 1.875rem 1rem;
    }

    .footer-subscribe-inner {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-subscribe h2 {
        font-size: 1.5rem;
    }

    .subscribe-form {
        min-width: 100%;
        max-width: 100%;
    }

    .subscribe-form input {
        font-size: 0.875rem;
        padding: 0.625rem 1rem;
    }

    .subscribe-form button {
        font-size: 0.875rem;
        padding: 0.625rem 1.25rem;
    }

    .footer-main {
        padding: 1.875rem 1rem 2.5rem 1rem;
    }

    .footer-main-inner {
        flex-direction: column;
        gap: 1.875rem;
    }

    .footer-brand .logo {
        font-size: 1.125rem;
    }

    .footer-brand p {
        font-size: 0.875rem;
    }

    .footer-links a {
        font-size: 0.875rem;
    }

    .footer-bottom-inner {
        flex-direction: column;
        gap: 0.375rem;
        text-align: center;
    }

    .footer-bottom p {
        font-size: 0.75rem;
    }
}