/* ====================================================================
   HOME — HERO + NAV refresh
   Premium glass navbar with a clear primary CTA, and a tighter,
   higher-converting hero (credibility eyebrow, dual CTA, trust row).
   Loaded last so it wins the cascade; the space animation and the
   hero action-pill anchors are left untouched.
   ==================================================================== */

/* -------------------------------------------------------------------
   Navbar — glassy, floating over the space animation
   ------------------------------------------------------------------- */
.navbar {
    background: rgba(0, 40, 100, 0.72);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    backdrop-filter: blur(16px) saturate(160%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.22);
    padding: 0.4rem 2rem;
}

.navbar-logo img {
    transition: filter 0.3s ease;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.25));
    margin-top: 5px;
}

.navbar-links {
    align-items: center;
    gap: 0.6rem;
    margin-right: 0;
}

/* Text link (Sign In) */
.navbar-links a.nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.55rem 1rem;
    border-radius: 10px;
    transition: background 0.25s ease, color 0.25s ease;
}
.navbar-links a.nav-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Primary CTA button */
.navbar-links a.nav-cta {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    gap: 0.45rem;
    color: #004aad;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.6rem 1.35rem;
    border-radius: 999px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.22);
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}
.navbar-links a.nav-cta:hover {
    background: #FFD700;
    color: #00317a;
    transform: translateY(-2px);
    box-shadow: 0 10px 26px rgba(255, 215, 0, 0.35);
}

/* -------------------------------------------------------------------
   Hero — credibility eyebrow
   ------------------------------------------------------------------- */
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.45rem 1.15rem;
    margin-bottom: 1.75rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: rgba(255, 255, 255, 0.95);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.hero-eyebrow .stars {
    color: #FFD700;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* -------------------------------------------------------------------
   Hero — dual CTA row + trust signals
   ------------------------------------------------------------------- */
.cta-container {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin: 1.5rem 0 0;
}

/* Secondary ghost button (pairs with the white .cta-button) */
.cta-button--ghost {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.4);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: none;
}
.cta-button--ghost:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.7);
}

.hero-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem 1.5rem;
    margin-top: 1.6rem;
    color: rgba(255, 255, 255, 0.82);
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
}
.hero-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}
.hero-trust i { color: #4ade80; }

/* Accredited investor link under the hero trust strip */
.hero-accredited {
    display: flex;
    justify-content: center;
    margin-top: 0.9rem;
}
.hero-accredited__link {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.5rem 1.05rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, gap 0.2s ease;
}
.hero-accredited__link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    gap: 0.6rem;
}
.hero-accredited__link i {
    font-size: 0.7rem;
    transition: transform 0.2s ease;
}
.hero-accredited__link:hover i {
    transform: translateX(2px);
}

/* -------------------------------------------------------------------
   Accredited investor / Capital Management CTA (above footer)
   ------------------------------------------------------------------- */
.accredited-section {
    position: relative;
    z-index: 10;
    /* Transparent so the fixed dark space background floats behind the glass */
    background: transparent !important;
}
/* Card fills .bento-wrap so it aligns exactly with the tiles in the section above */
.accredited-card {
    position: relative;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 2.25rem 3rem;
    border-radius: 22px;
    background: linear-gradient(160deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 30px 70px rgba(0, 8, 30, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.14);
    overflow: hidden;
}
.accredited-card__text {
    flex: 1;
    min-width: 0;
}
/* Gold top accent line */
.accredited-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 160px;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, transparent, #FFD700, transparent);
}
.accredited-card__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 1.15rem;
    border-radius: 999px;
    background: rgba(74, 222, 128, 0.12);
    border: 1px solid rgba(74, 222, 128, 0.35);
    color: #6ee79b;
    font-family: 'Poppins', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 1.4rem;
}
.accredited-card__title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: clamp(1.6rem, 3.4vw, 2.4rem);
    color: #fff;
    line-height: 1.18;
    letter-spacing: -0.01em;
    margin-bottom: 1.1rem;
}
.accredited-card__accent {
    background: linear-gradient(90deg, #ffe259, #ffd700);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ffd700;
    white-space: nowrap;
    text-decoration: none;
    border-bottom: 2px solid rgba(255, 215, 0, 0.45);
    transition: border-color 0.2s ease;
}
a.accredited-card__accent:hover {
    border-bottom-color: #ffd700;
}
.accredited-card__sub {
    font-family: 'Poppins', sans-serif;
    font-size: 1.02rem;
    color: rgba(255, 255, 255, 0.82);
    max-width: 720px;
    margin: 0 auto 1.6rem;
    line-height: 1.65;
}
.accredited-card__actions {
    display: flex;
    justify-content: center;
    flex-shrink: 0;
}
.accredited-card__btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 1rem 2.1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #ffe259 0%, #ffc400 100%);
    color: #00214f;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease, gap 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    box-shadow: 0 14px 34px rgba(255, 196, 0, 0.32);
}
.accredited-card__btn:hover {
    transform: translateY(-2px);
    gap: 0.85rem;
    filter: brightness(1.05);
    box-shadow: 0 18px 44px rgba(255, 196, 0, 0.45);
}
.accredited-card__btn i {
    font-size: 0.85rem;
    transition: transform 0.2s ease;
}
.accredited-card__btn:hover i {
    transform: translateX(3px);
}
@media (max-width: 900px) {
    .accredited-card {
        flex-direction: column;
        text-align: center;
        gap: 1.6rem;
    }
    .accredited-card__sub { margin: 0 auto; }
    .accredited-card__actions { width: 100%; }
}
@media (max-width: 768px) {
    .accredited-card { padding: 2rem 1.4rem; }
    .accredited-card__sub { font-size: 0.95rem; }
    .accredited-card__btn { width: 100%; justify-content: center; }
}

/* -------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Clean left-logo / right-CTA layout (overrides the centered-logo mobile nav) */
    .navbar {
        padding: 0.5rem 1rem;
        justify-content: space-between;
    }
    .navbar-logo {
        position: static;
        left: auto;
        top: auto;
        transform: none;
    }
    .navbar-logo img { margin-left: 0; }
    .navbar-links {
        position: static;
        right: auto;
        visibility: visible; /* original design hides these on mobile; keep the CTA visible */
    }
    .hero-eyebrow { font-size: 0.8rem; padding: 0.4rem 0.9rem; margin-bottom: 1.25rem; }
    .hero-trust { gap: 0.5rem 1.1rem; font-size: 0.82rem; margin-top: 1.25rem; }
}

@media (max-width: 480px) {
    .navbar-links { gap: 0.4rem; }
    /* Drop the Sign In text on small phones; keep the primary CTA */
    .navbar-links a.nav-link { display: none; }
    .navbar-links a.nav-cta { padding: 0.5rem 0.9rem; font-size: 0.82rem; }
    /* Shorten CTA to "Get Started" on small phones so it never wraps */
    .navbar-links a.nav-cta .nav-cta-free { display: none; }
    /* Stack hero CTAs full-width for easy tapping */
    .cta-container { flex-direction: column; gap: 0.75rem; width: 100%; }
    .cta-container .cta-button { width: 100%; text-align: center; box-sizing: border-box; }
}

/* -------------------------------------------------------------------
   Scrollbar — matches dashboard (styles.css), loaded last on home
   ------------------------------------------------------------------- */
/* Forces the pills after it onto a new row (Masterclasses + Personal Hedge Fund) */
.action-pills__break {
    flex-basis: 100%;
    width: 100%;
    height: 0;
    margin: 0;
    padding: 0;
    pointer-events: none;
}

/* Home scrollbar — native thin bar (scrollbar-width:thin, unconditional rule
   below) so Chromium draws it thin WITH its arrow buttons, tinted a blue thumb
   on a gray track via scrollbar-color. The ::-webkit-scrollbar rules here are a
   color fallback for engines without scrollbar-width support (e.g. Safari). */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #d1d5db;
  border-radius: 6px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #0066cc 0%, #004aad 100%);
  border-radius: 6px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #0059b3 0%, #003A8C 100%);
  border: 2px solid transparent;
  background-clip: padding-box;
}

html:not(.mc-standalone)::-webkit-scrollbar-button:single-button {
  display: block;
  background-color: rgba(0, 74, 173, 0.08);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 7px 7px;
  height: 10px;
  width: 10px;
}
html:not(.mc-standalone)::-webkit-scrollbar-button:single-button:vertical:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23004aad' d='M6 3.5 10 8.5 2 8.5z'/></svg>");
}
html:not(.mc-standalone)::-webkit-scrollbar-button:single-button:vertical:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23004aad' d='M2 3.5 10 3.5 6 8.5z'/></svg>");
}
html:not(.mc-standalone)::-webkit-scrollbar-button:single-button:horizontal:decrement {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23004aad' d='M3.5 6 8.5 2 8.5 10z'/></svg>");
}
html:not(.mc-standalone)::-webkit-scrollbar-button:single-button:horizontal:increment {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'><path fill='%23004aad' d='M8.5 6 3.5 2 3.5 10z'/></svg>");
}

/* Native thin scrollbar with arrows — blue thumb on a gray track. Applies to
   Chromium and Firefox; makes the bar thin and shows the platform arrow buttons
   on Windows (same technique as the masterclass pages). */
html:not(.mc-standalone):not(.phf-standalone),
html:not(.mc-standalone):not(.phf-standalone) body {
  scrollbar-width: thin;
  scrollbar-color: #004aad #d1d5db;
}
