:root {
    --primary: #0077B6;
    --primary-light: #90E0EF;
    --dark: #121212;
    --dark-surface: #1E1E1E;
    --light: #F8F9FA;
    --text-dark: #1F2937;
    --text-muted: #6B7280;
    --radius-lg: 1.5rem;
    --radius-md: 1rem;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

.fw-800 { font-weight: 800; }

/* Navbar */
.navbar-brand {
    letter-spacing: -0.5px;
    font-size: 1.25rem;
}

.nav-link {
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--primary-light) !important;
}

/* Promo banner */
.promo-banner {
    position: sticky;
    top: 72px;
    z-index: 1019;
    padding: 0.75rem 0;
    background: linear-gradient(135deg, #347FC4 0%, #2563EB 100%);
    box-shadow: 0 12px 34px rgba(52, 127, 196, 0.28);
}

.promo-banner[hidden] {
    display: none !important;
}

.promo-banner-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 52px;
    padding: 0.55rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    color: #ffffff;
    animation: promo-soft-float 4.5s ease-in-out infinite;
}

.promo-banner-text {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.98rem;
    text-align: center;
}

.promo-banner-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
}

.promo-code {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    background: #ffffff;
    color: #347FC4;
    font-weight: 900;
    white-space: nowrap;
}

.promo-cta {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: #0F172A;
    color: #ffffff;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
}

.promo-cta::after {
    content: "";
    position: absolute;
    inset: -40% auto -40% -55%;
    width: 42%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.34), transparent);
    animation: promo-cta-shine 3.8s ease-in-out infinite;
}

.promo-cta:hover {
    color: #ffffff;
    transform: translateY(-1px);
}

.promo-close {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.3rem;
    line-height: 1;
}

.promo-close:hover {
    background: rgba(15, 23, 42, 0.2);
    color: #ffffff;
}

@keyframes promo-soft-float {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

@keyframes promo-cta-shine {
    0%,
    55% {
        left: -55%;
    }
    82%,
    100% {
        left: 120%;
    }
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #1A1A1A 0%, #2D2D2D 100%);
    overflow: hidden;
}

.hero-badge {
    background: rgba(0, 119, 182, 0.2);
    color: var(--primary-light);
    border: 1px solid rgba(0, 119, 182, 0.3);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-weight: 600;
}

.search-container {
    background: white;
    padding: 0.5rem;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-icon {
    margin-left: 1.5rem;
    color: var(--text-muted);
}

.search-container input {
    box-shadow: none !important;
}

.hero-img {
    border: 10px solid rgba(255,255,255,0.05);
    transform: perspective(1000px) rotateY(-5deg);
    transition: var(--transition);
}

.hero-img:hover {
    transform: perspective(1000px) rotateY(0deg);
}

/* Cards */
.transition-hover {
    transition: var(--transition);
}

.transition-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,0.1) !important;
}

.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.card:hover .icon-circle {
    background: var(--primary) !important;
    color: white !important;
}

.card:hover .icon-circle i {
    color: white !important;
}

.brand-avatar {
    width: 64px;
    height: 64px;
    background: #EBF8FF;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.brand-link:hover .brand-avatar {
    background: var(--primary);
}

.brand-link:hover .brand-avatar i {
    color: white !important;
}

/* Breadcrumbs */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.breadcrumb a {
    text-decoration: none;
    color: var(--text-muted);
    transition: var(--transition);
}

.breadcrumb a:hover {
    color: var(--primary);
}

.breadcrumb .separator {
    color: #D1D5DB;
}

.breadcrumb .current {
    color: var(--text-dark);
    font-weight: 600;
}

/* Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease-out;
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Buttons */
.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: #005f91;
    border-color: #005f91;
}

/* Recommended paths */
.silo-links-section {
    margin: 3rem 0 0;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.silo-links-heading {
    max-width: 760px;
    margin-bottom: 1.25rem;
}

.silo-links-kicker {
    display: inline-flex;
    margin-bottom: 0.45rem;
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.silo-links-heading h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    font-weight: 800;
    color: #111827;
}

.silo-links-heading p {
    margin: 0;
    color: var(--text-muted);
}

.silo-links-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.silo-link-group {
    min-width: 0;
}

.silo-link-group h3 {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
    font-weight: 800;
    color: #1f2937;
}

.silo-link-list {
    display: grid;
    gap: 0.5rem;
}

.silo-link {
    display: flex;
    min-height: 58px;
    flex-direction: column;
    justify-content: center;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #f8fafc;
    color: #111827;
    text-decoration: none;
    transition: var(--transition);
}

.silo-link:hover {
    border-color: var(--primary);
    background: #ffffff;
    color: var(--primary);
    transform: translateY(-2px);
}

.silo-link span {
    font-weight: 750;
    line-height: 1.25;
}

.silo-link small {
    margin-top: 0.2rem;
    color: #6b7280;
    font-size: 0.75rem;
}

.footer-link-grid h6 {
    color: #ffffff;
}

.footer-link-grid a {
    transition: var(--transition);
}

.footer-link-grid a:hover {
    color: #ffffff !important;
    transform: translateX(3px);
}

footer {
    padding-bottom: 7rem !important;
}

@media (max-width: 1199px) {
    .silo-links-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575px) {
    .silo-links-grid {
        grid-template-columns: 1fr;
    }

    .promo-banner {
        padding: 0.5rem 0;
        top: 78px;
    }

    .promo-banner-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
        border-radius: 1.25rem;
        padding: 0.75rem;
    }

    .promo-banner-text {
        justify-content: center;
        font-size: 0.9rem;
        line-height: 1.35;
    }

    .promo-banner-actions {
        display: grid;
        grid-template-columns: 1fr auto;
        gap: 0.5rem;
    }

    .promo-code,
    .promo-cta {
        justify-content: center;
        min-height: 38px;
    }

    .promo-code {
        grid-column: 1 / -1;
    }
}

/* Guided tour */
.guided-tour-launch {
    position: fixed;
    right: 24px;
    bottom: calc(24px + var(--guided-tour-chat-offset, 0px));
    z-index: 1080;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 58px;
    padding: 0.75rem 1.05rem;
    border: 0;
    border-radius: 999px;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 0 24px rgba(0, 119, 182, 0.38), 0 18px 40px rgba(0, 0, 0, 0.18);
    font: inherit;
    text-align: left;
    animation: guided-tour-float 3s ease-in-out infinite;
}

.guided-tour-launch:hover {
    animation-play-state: paused;
    transform: translateY(-3px);
}

.guided-tour-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
}

.guided-tour-icon svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
    stroke: #ffffff;
    stroke-width: 2.6;
}

.guided-tour-launch strong,
.guided-tour-launch small {
    display: block;
    line-height: 1.05;
}

.guided-tour-launch strong {
    font-weight: 900;
}

.guided-tour-launch small {
    margin-top: 0.2rem;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
}

.guided-tour-overlay {
    position: fixed;
    inset: 0;
    z-index: 1090;
    display: grid;
    place-items: center end;
    padding: 1rem 2rem;
    pointer-events: none;
    background: transparent;
    backdrop-filter: none;
}

.guided-tour-panel {
    position: fixed;
    width: min(420px, calc(100vw - 48px));
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: #111111;
    color: #ffffff;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
    pointer-events: auto;
}

.guided-tour-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #9ca3af;
}

.guided-tour-close:hover {
    color: #ffffff;
}

.guided-tour-panel h2 {
    margin: 0 2rem 0.75rem 0;
    font-size: 1.2rem;
    font-weight: 850;
}

.guided-tour-panel p {
    margin: 0 0 1.55rem;
    color: #b8b8b8;
    font-size: 0.98rem;
}

.guided-tour-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.guided-tour-actions span {
    color: #b8b8b8;
    font-weight: 700;
}

.guided-tour-actions div {
    display: flex;
    gap: 0.5rem;
}

.guided-tour-primary,
.guided-tour-secondary {
    min-height: 44px;
    padding: 0 1rem;
    border-radius: 12px;
    font-weight: 850;
}

.guided-tour-primary {
    border: 0;
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 8px 18px rgba(0, 119, 182, 0.28);
}

.guided-tour-secondary {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: #ffffff;
}

.guided-tour-highlight {
    position: relative;
    z-index: 2;
    outline: 3px solid var(--primary);
    outline-offset: 5px;
    box-shadow: 0 0 0 10px rgba(0, 119, 182, 0.13);
}

@keyframes guided-tour-float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-5px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .guided-tour-launch {
        animation: none;
    }
}

@media (max-width: 640px) {
    .guided-tour-overlay {
        place-items: end center;
        padding: 1rem;
    }

    .guided-tour-panel {
        width: min(320px, calc(100vw - 24px));
        padding: 1rem;
        margin-bottom: max(0.25rem, env(safe-area-inset-bottom));
    }

    .guided-tour-launch {
        right: 14px;
        bottom: calc(14px + var(--guided-tour-chat-offset, 0px));
        left: auto;
        max-width: min(300px, calc(100vw - 28px));
        justify-content: flex-start;
    }

    .silo-links-section {
        padding: 1rem;
        border-radius: 14px;
    }
}
