@import url("theme.css");

/* ============ Public site ============ */
:root { --navy: var(--ink); --navy-light: var(--ink-2); --accent: var(--jade); --accent-hover: var(--jade-deep); }
.bg-navy { background: transparent !important; }
.text-accent { color: var(--jade-deep) !important; }

/* Floating glass nav */
.navbar.bg-navy {
    position: sticky; top: 12px; z-index: 1030;
    margin: 12px auto 0; width: min(1140px, calc(100% - 24px));
    padding: .45rem .5rem .45rem 1rem;
    border-radius: 26px;
    background: rgba(13, 27, 42, .78) !important;
    -webkit-backdrop-filter: blur(22px) saturate(1.6); backdrop-filter: blur(22px) saturate(1.6);
    border: 1px solid rgba(255,255,255,.12);
    box-shadow: 0 18px 40px -14px rgba(13,27,42,.5), inset 0 1px 0 rgba(255,255,255,.1);
    transition: box-shadow .4s var(--smooth), background .4s ease;
}
.navbar.bg-navy.scrolled { background: rgba(13, 27, 42, .9) !important; box-shadow: 0 22px 50px -12px rgba(13,27,42,.6), inset 0 1px 0 rgba(255,255,255,.1); }
.navbar.bg-navy > .container { max-width: none; padding: 0 .25rem; }
.navbar-brand { color: #fff !important; display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; font-size: 1.05rem; }
.navbar-brand::before {
    content: "F"; width: 32px; height: 32px; border-radius: 11px; display: grid; place-items: center;
    font: 800 .95rem var(--font-head); color: #fff;
    background: linear-gradient(135deg, var(--jade), var(--sky));
    box-shadow: 0 6px 16px -4px rgba(16,185,129,.7);
}
.navbar-dark .navbar-nav .nav-link {
    color: rgba(255,255,255,.72); font-weight: 600; font-size: .9rem; border-radius: 999px; padding: .5rem .95rem !important;
    transition: background .25s ease, color .25s ease;
}
.navbar-dark .navbar-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.1); }
.navbar-dark .navbar-nav .nav-link.active { color: #fff; background: rgba(255,255,255,.14); }
.navbar-toggler { border: 0; border-radius: 14px; background: rgba(255,255,255,.1); padding: .45rem .65rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 4px rgba(16,185,129,.3); }
@media (max-width: 991.98px) {
    .navbar-collapse { padding: .6rem 0 .4rem; }
    .navbar-nav .btn { width: 100%; margin-top: .4rem; }
}

/* Hero */
.hero-section {
    position: relative; overflow: hidden; margin: 12px 12px 0; border-radius: var(--r-xl); min-height: 500px;
    background:
        radial-gradient(38rem 26rem at 85% 10%, rgba(56,189,248,.35), transparent 60%),
        radial-gradient(34rem 26rem at 5% 100%, rgba(16,185,129,.4), transparent 60%),
        linear-gradient(140deg, var(--ink) 0%, var(--ink-2) 100%);
    box-shadow: var(--shadow-lg);
}
.hero-section::before, .hero-section::after {
    content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; pointer-events: none;
    animation: drift 14s ease-in-out infinite alternate;
}
.hero-section::before { width: 22rem; height: 22rem; background: rgba(16,185,129,.35); top: -8rem; right: 10%; }
.hero-section::after { width: 18rem; height: 18rem; background: rgba(56,189,248,.3); bottom: -8rem; left: 30%; animation-duration: 18s; animation-direction: alternate-reverse; }
@keyframes drift { to { transform: translate3d(40px, 30px, 0) scale(1.15); } }
.hero-section > .container { position: relative; z-index: 1; }
.hero-section h1 { letter-spacing: -.035em; line-height: 1.08; font-weight: 800; }
.hero-section .lead { color: rgba(255,255,255,.82); }
.hero-illustration { filter: drop-shadow(0 30px 40px rgba(0,0,0,.35)); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
.min-vh-60 { min-height: 60vh; }
.benefits-list li { font-size: 1.02rem; margin-bottom: .5rem; }

/* Sections that used flat colours */
.bg-white, section.bg-white { background: var(--glass) !important; }

/* Auth card */
.auth-card {
    max-width: 480px; margin: 0 auto; border-radius: var(--r-xl);
    background: var(--glass-strong); box-shadow: var(--shadow-lg);
    animation: cardIn .8s var(--spring) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(.97); } to { opacity: 1; transform: none; } }
.auth-card .card-body { padding: 2.2rem 1.7rem !important; }
@media (min-width: 768px) { .auth-card .card-body { padding: 2.8rem 2.6rem !important; } }
.auth-card h1 { font-weight: 800; letter-spacing: -.03em; }

/* Footer */
footer.bg-dark {
    margin: 4rem 12px 12px; border-radius: var(--r-xl);
    background: linear-gradient(150deg, var(--ink) 0%, var(--ink-2) 100%) !important;
    box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
footer.bg-dark::before {
    content: ""; position: absolute; width: 22rem; height: 22rem; border-radius: 50%; right: -6rem; top: -10rem;
    background: radial-gradient(closest-side, rgba(16,185,129,.35), transparent);
}
footer .container { position: relative; }
footer a { background-image: none !important; color: rgba(255,255,255,.65) !important; font-weight: 500; transition: color .2s ease, padding-left .3s var(--smooth); }
footer a:hover { color: #fff !important; padding-left: 4px; }
footer .border-secondary { border-color: rgba(255,255,255,.12) !important; }

@media (max-width: 575.98px) {
    .hero-section { min-height: auto; border-radius: 28px; }
    .hero-section .container { padding-top: 2rem !important; padding-bottom: 2rem !important; }
    .display-5 { font-size: 1.95rem; }
    footer.bg-dark { border-radius: 28px; }
}
