


html { scroll-behavior: smooth; }

html, body { height: 100%; margin: 0; }

/* Re-declare Bootstrap font vars AFTER Bootstrap loads so they
   resolve to --vp-font-family (set via ThemeManager on html element) */
:root {
    --bs-font-sans-serif:  var(--vp-font-family);
    --bs-body-font-family: var(--vp-font-family);
    --bs-btn-font-family:  var(--vp-font-family);
}

body {
    background: var(--vp-bg-body);
    min-height: 100vh;
    padding-top: 90px;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    font-family: var(--vp-font-family);
    font-size: var(--vp-font-size-base);
}

/* ─── NAVBAR ─── */
.custom-navbar {
    background: var(--vp-navbar-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 0;
    border-bottom: 1px solid var(--vp-accent-glow);
    position: fixed;
    top: 0; left: 0; right: 0;
    width: 100%;
    z-index: 1030;
    transition: background 0.3s ease;
}

.custom-navbar > .container,
.custom-navbar > .container-fluid {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 24px;
}

.navbar-brand { display: flex; align-items: center; }

.logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

/* .logo-wrap img {
    filter: drop-shadow(0 0 6px var(--vp-accent-border-md));
} */

.logo-block {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.logo-text {
    font-family: var(--vp-font-family);
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.10px;
    color: var(--vp-text-primary);
    white-space: nowrap;

}

.logo-divider {
    width: 1px;
    height: 28px;
    background: var(--vp-accent-border-md);
    flex-shrink: 0;
}

.tagline {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vp-text-muted);
    margin-top: 2px;
    white-space: nowrap;
}

/* Nav links */
.navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.nav-link {
    color: var(--vp-text-secondary) !important;
    font-weight: 400;
    padding: 8px 14px !important;
    font-size: 14px;
    margin: 0;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.nav-link:hover  { color: var(--vp-text-primary) !important; }
.active-link     { color: var(--vp-text-primary) !important; }

/* Navbar buttons */
.btn-tag {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.btn-request {
    background: var(--vp-accent);
    color: var(--vp-text-btn) !important;
    font-family: var(--vp-font-family);
    font-weight: 600;
    padding: 9px 20px;
    border-radius: 8px;
    font-size: 14px;
    border: none;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.btn-request:hover {
    background: var(--vp-accent-hover);
    box-shadow: 0 4px 18px var(--vp-accent-border-md);
    transform: translateY(-1px);
    color: var(--vp-text-btn) !important;
}

.btn-login {
    border: none;
    background: transparent;
    color: var(--vp-text-secondary) !important;
    padding: 9px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.btn-login:hover {
    background: transparent;
    color: var(--vp-text-primary) !important;
}

/* Toggler */
.navbar-toggler {
    border: 1px solid var(--vp-accent-border-sm);
    flex-shrink: 0;
    margin-left: 10px;
    padding: 6px 10px;
    z-index: 1031;
    border-radius: 6px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2856%2c185%2c250%2c0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.btn-check:focus+.btn, .btn:focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem var(--vp-accent-border);
}

.navbar-toggler:focus { box-shadow: none; outline: none; }

/* ─── MEGA MENU ─── */
.mega-dropdown { position: relative; }

.mega-menu {
    position: absolute;
    top: 140%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 340px;
    padding: 16px;
    background: var(--vp-menu-bg);
    border: 1px solid var(--vp-accent-border-sm);
    border-radius: 14px;
    box-shadow: 0 24px 60px rgba(0,0,0,0.6), 0 0 0 1px var(--vp-accent-glow);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999;
    display: block;
}

.mega-dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(8px);
}

.mega-menu::before {
    content: "";
    position: absolute;
    top: -8px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 14px; height: 14px;
    background: var(--vp-menu-arrow-bg);
    border-left: 1px solid var(--vp-accent-border-sm);
    border-top: 1px solid var(--vp-accent-border-sm);
    border-radius: 2px;
}

.menu-item {
    display: flex;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.menu-item:hover {
    background: var(--vp-accent-glow);
    border: 0.01px solid var(--vp-accent-border-sm);
    box-shadow: 1px 1px 1px var(--vp-accent);
}

.icon-box {
    width: 38px; height: 38px;
    background: var(--vp-accent-bg);
    color: var(--vp-accent);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 16px;
    border: 1px solid var(--vp-accent-border);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.menu-item:hover .icon-box {
    background: var(--vp-accent-border-sm);
    border-color: var(--vp-accent-border-md);
}

.main-icon { background-color: var(--vp-accent-bg); }

.menu-item h6 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--vp-text-grey);
}

.menu-item:hover h6 { color: var(--vp-accent); }
.menu-item p { margin: 0; font-size: 12px; color: var(--vp-text-muted); }

.dropdown-toggle-custom { position: relative; cursor: default; }

.dropdown-toggle-custom::after {
    content: "";
    display: inline-block;
    margin-left: 5px;
    width: 6px; height: 6px;
    border-right: 1.5px solid var(--vp-text-muted);
    border-bottom: 1.5px solid var(--vp-text-muted);
    transform: rotate(45deg);
    transition: transform 0.3s ease, border-color 0.3s ease;
    vertical-align: middle;
}

.mega-dropdown:hover .dropdown-toggle-custom::after {
    transform: rotate(-135deg);
    border-color: var(--vp-accent);
}

/* ─── HERO (old style.css hero, kept for other pages) ─── */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 70% 40%, var(--vp-accent-glow), transparent 50%),
        radial-gradient(circle at 20% 30%, var(--vp-accent-glow), transparent 40%),
        var(--vp-bg-body);
}

.hero-container { max-width: 1200px; position: relative; bottom: 50px; }
.hero-left { color: var(--vp-text-primary); }
a { color: var(--vp-text-secondary); }

.ai-badge {
    display: inline-block;
    padding: 6px 16px;
    border: 1px solid var(--vp-accent);
    border-radius: 30px;
    font-size: 13px;
    color: var(--vp-accent);
    margin-bottom: 25px;
}

.hero-title {
    font-size: 50px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    font-family: var(--vp-font-family);
}

.hero-sub  { color: var(--vp-text-secondary); font-size: 18px; margin-bottom: 10px; }
.hero-desc { color: var(--vp-text-muted); font-size: 17px; margin-bottom: 35px; }

.hero-buttons { display: flex; gap: 20px; flex-wrap: wrap; }

.btn-primary-custom {
    background: var(--vp-accent);
    padding: 14px 28px;
    border-radius: 10px;
    font-weight: 600;
    color: var(--vp-text-btn);
    text-decoration: none;
    transition: 0.3s ease;
    border: 1px solid var(--vp-accent-border-md);
}

.btn-primary-custom:hover {
    background: var(--vp-accent-hover);
    color: var(--vp-text-primary);
    box-shadow: 0 8px 24px var(--vp-accent-border-md);
}

.btn-outline-custom {
    padding: 14px 28px;
    border-radius: 10px;
    border: 1.5px solid var(--vp-accent-border-md);
    color: var(--vp-text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--vp-accent-bg);
    color: var(--vp-text-primary);
    border-color: var(--vp-accent);
    box-shadow: 0 0 18px var(--vp-accent-border);
}

.arrow { margin-left: 6px; }
.hero-right { text-align: right; }

.dashboard-img {
    width: 100%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.6);
}

/* ─── SECTIONS ─── */
.risk-section { padding: 65px 0; color: var(--vp-text-primary); }
.section-title { font-size: 42px; font-weight: 700; color: var(--vp-text-primary); font-family: var(--vp-font-family); }
.section-sub { color: var(--vp-text-secondary); margin-top: 10px; }

.risk-card {
    background: linear-gradient(145deg, var(--vp-bg-field), var(--vp-bg-primary));
    border: 1px solid var(--vp-accent-border-sm);
    border-radius: 16px;
    padding: 35px;
    position: relative;
    transition: all 0.4s ease;
    overflow: hidden;
    min-height: 230px;
}

.risk-card h5 { font-size: 20px; margin-bottom: 10px; }
.risk-card p  { color: var(--vp-text-muted); font-size: 15px; }

.learn-more {
    position: absolute;
    bottom: 30px; left: 35px;
    font-size: 14px;
    color: var(--vp-accent);
    text-decoration: none;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.35s ease;
}

.risk-card:hover { transform: translateY(-6px); box-shadow: 0 0 24px var(--vp-accent-border); border-color: var(--vp-accent-border-md); }
.risk-card:hover .learn-more { opacity: 1; transform: translateY(0); }

/* ─── TEAMS SECTION ─── */
.teams-section {
    background-color: var(--vp-bg-body);
    color: var(--vp-text-primary);
    font-family: var(--vp-font-family);
}

.team-card {
    background: var(--card-dark);
    border: 1px solid var(--vp-accent-border-sm);
    padding: 2rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.footer-top {
    padding: 35px 0 25px;
}

.team-card .icon-box { font-size: 1.8rem; color: var(--vp-accent); margin-bottom: 20px; border: none; background: var(--vp-accent-bg); }
.team-card h5 { font-weight: 600; margin-bottom: 12px; color: var(--vp-text-primary); }
.team-card p  { color: var(--vp-text-secondary); font-size: 0.95rem; line-height: 1.5; margin-bottom: 20px; }

.arrow-footer i { opacity: 0; transform: translateY(5px); transition: all 0.3s ease; }
.team-card:hover .arrow-footer i { opacity: 1; transform: translateX(0); color: var(--vp-accent); }
.team-card:hover { box-shadow: 0 0 24px var(--vp-accent-border-sm); border-color: var(--vp-accent-border-md); }

.process-heading { font-size: 40px; font-family: var(--vp-font-family); }

.flow-wrapper {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 25px;
}

.flow-item { width: 150px; text-align: center; }
.flow-item small { font-size: 0.75rem; font-weight: 600; display: block; }

.icon-sq {
    background: var(--vp-accent-bg);
    color: var(--vp-accent);
    width: 90px; height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin: 0 auto 12px;
    font-size: 20px;
    border: 1px solid var(--vp-accent-border);
}

.flow-arrow { font-size: 22px; color: var(--vp-accent); }

/* ─── WHY RYXON ─── */
.why-ryxon-container {
    background-color: var(--vp-bg-primary);
    border-radius: 20px;
    width: 100%;
    overflow: hidden;
}

.why-title { font-size: 2.5rem; font-weight: 600; font-family: var(--vp-font-family); }

.black-card {
    background: var(--vp-bg-primary);
    color: var(--vp-text-primary);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--vp-accent-border-sm);
    display: flex;
    flex-direction: column;
    min-height: 280px;
    height: 100%;
    transition: transform 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.black-card h6 { font-size: 1.25rem; font-weight: 700; margin-bottom: 1rem; color: var(--vp-text-grey); }
.black-card p  { font-size: 0.95rem; color: var(--vp-text-muted); line-height: 1.6; margin-bottom: 0; }
.why-card:hover { background: var(--vp-bg-secondary); border-color: var(--vp-accent-border-md); }

.btn-dark-custom {
    background: var(--vp-accent); color: var(--vp-text-primary);
    padding: 12px 25px; border-radius: 50px;
    border: none; font-weight: 600;
}

.btn-req { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--vp-text-primary); }
.btn-ri  { transition: all 0.3s ease; }
.btn-req:hover .btn-ri { transform: rotate(-45deg); }
.btn-req:hover { background-color: var(--vp-accent-hover); color: var(--vp-text-primary); }

/* ─── FOOTER ─── */
.ryxon-footer {
    background: var(--vp-bg-body);
    color: var(--vp-text-primary);
    font-family: var(--vp-font-family);
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    border-top: 1px solid var(--vp-accent-glow);
}

.footer-heading {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 16px;
    color: var(--vp-text-primary);
}

.footer-bottom {
    border-top: 1px solid var(--vp-accent-glow);
    padding-top: 20px;
    padding-bottom: 10px;
    margin-top: 15px;
}

.footer-legal {
    display: flex;
    gap: 20px;
    font-size: 12px;
}

@media (min-width: 992px) {
    .products-col { margin-left: 110px; }
}

.footer-links { list-style: none !important; padding-left: 0 !important; margin: 0 !important; }
.footer-links li { margin-bottom: 12px; list-style: none !important; }
.footer-links a  { color: var(--vp-text-muted); text-decoration: none; font-size: 14px; transition: color 0.3s ease; }
.footer-links a:hover { color: var(--vp-accent); }

.border-top-fade  { border-top: 1px solid rgba(255,255,255,0.05); }
.copyright-text   { color: var(--vp-text-muted); font-size: 14px; margin: 0; }

/* ─── LAYOUT ─── */
.main-content-wrapper { flex: 1 0 auto; overflow-x: hidden; width: 100%; }
section, .hero-section { flex-shrink: 0; }
.reveal { transition: opacity 0.3s ease, transform 0.3s ease; will-change: transform, opacity; }

body { overflow-x: hidden; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */

@media screen and (min-width: 992px) and (max-width: 1280px) {
    .logo-text     { font-size: 18px; }
    .logo-divider  { height: 26px; }
    .tagline       { font-size: 9px; }
    .logo-wrap     { gap: 8px; }
    .nav-link      { padding: 8px 10px !important; font-size: 13px; }
    .btn-request,
    .btn-login     { padding: 7px 14px; font-size: 13px; }
    .btn-tag       { gap: 6px; }
    .custom-navbar > .container,
    .custom-navbar > .container-fluid { gap: 16px; }
}

@media screen and (min-width: 992px) and (max-width: 1100px) {
    .tagline       { display: none; }
    .logo-text     { font-size: 17px; }
    .nav-link      { padding: 8px 8px !important; font-size: 13px; }
    .btn-request,
    .btn-login     { padding: 6px 10px; font-size: 12px; }
    .custom-navbar > .container,
    .custom-navbar > .container-fluid { gap: 12px; }
}

@media (max-width: 991.98px) {

    body { padding-top: 70px; }

    .logo-wrap    { gap: 8px; }
    .logo-text    { font-size: 18px; }
    .tagline      { font-size: 9px; white-space: nowrap; }

    .navbar-collapse {
        position: fixed;
        top: 64px;
        left: 0;
        right: 0;
        width: 100%;
        max-height: calc(100vh - 64px);
        overflow-y: auto;
        background: var(--vp-navbar-bg);
        padding: 20px 20px 28px;
        margin-top: 0;
        border-radius: 0;
        border-top: 1px solid var(--vp-accent-border-sm);
        box-shadow: 0 16px 48px rgba(0,0,0,0.6);
        z-index: 1025;
        transition: transform 0.3s ease, opacity 0.3s ease;
    }

    .navbar-nav {
        flex-direction: column;
        gap: 2px;
        width: 100%;
        text-align: left;
    }

    .navbar-nav .nav-item {
        width: 100%;
        border-bottom: 1px solid rgba(255,255,255,0.04);
    }

    .navbar-nav .nav-item:last-child { border-bottom: none; }

    .navbar-nav .nav-link {
        padding: 14px 8px !important;
        font-size: 15px;
        margin: 0;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .navbar-nav .nav-link:hover {
        color: var(--vp-accent) !important;
        background: var(--vp-accent-glow);
        border-radius: 8px;
        padding-left: 12px !important;
    }

    .btn-tag {
        flex-direction: row;
        gap: 10px;
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid rgba(255,255,255,0.06);
        width: 100%;
        justify-content: center;
    }

    .btn-tag .btn {
        flex: 1;
        max-width: 160px;
        text-align: center;
    }

    /* Mega menu inside mobile */
    .mega-menu {
        position: static;
        transform: none !important;
        width: 100%;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        display: none;
        background: var(--vp-accent-glow);
        padding: 8px 12px;
        border-radius: 8px;
        border: none;
        margin-top: 4px;
    }

    .mega-dropdown:hover .mega-menu { display: block; }
    .mega-menu::before { display: none; }

    .menu-item h6 { color: var(--vp-text-grey); }
    .menu-item p  { color: var(--vp-text-muted); font-size: 11px; }
    .menu-item:hover { background: var(--vp-accent-glow); }

    /* Hero */
    .hero-container { bottom: 0; text-align: center; padding-top: 40px; }
    .hero-title     { font-size: 36px; }
    .hero-buttons   { flex-direction: column; align-items: center; gap: 15px; margin-top: 20px; }

    .btn-primary-custom,
    .btn-outline-custom {
        width: 100%; max-width: 300px;
        display: inline-block;
        text-align: center;
        padding: 12px 20px;
    }

    .hero-right { text-align: center; margin-top: 40px; }

    /* Flow */
    .flow-wrapper   { flex-direction: column; align-items: center; gap: 20px; }
    .flow-arrow     { display: none; }
    .flow-item      { width: 45%; margin-bottom: 20px; }
    .flow-item .icon-sq { width: 80px; height: 80px; }

    /* Footer */
    .ryxon-footer .text-lg-end { text-align: left !important; }
}

@media (max-width: 768px) {
    .process-heading     { font-size: 26px; }
    .why-title           { font-size: 1.8rem; }
    .why-ryxon-container { padding: 1.5rem !important; }
    .black-card          { min-height: auto; padding: 1.5rem; }
}

@media (max-width: 575.98px) {
    .logo-text       { font-size: 16px; }
    .hero-title      { font-size: 28px; }
    .hero-buttons    { padding: 0 20px; }
    .section-title   { font-size: 26px; }
    .process-heading { font-size: 22px; }
    .flow-item       { width: 100%; }
    .why-title       { font-size: 1.8rem; }
    .why-ryxon-container { padding: 20px !important; }
    .black-card      { min-height: auto; padding: 1.5rem; }
    .tagline         { font-size: 8px; white-space: nowrap; }
    .logo-wrap       { gap: 6px; }
}

@media (max-width: 360px) {
    .tagline   { display: none; }
    .logo-text { font-size: 15px; }
    .logo-wrap { gap: 4px; }
}
