/* ====================================
   HERO SECTION & TOP NAVBAR STYLES
   Navigation bar and hero section from base.html
   ==================================== */

/* --- CSS CUSTOM PROPERTIES --- */
:root {
    --navbar-offset-desktop: 80px;
    --navbar-offset-mobile: 80px;
}

/* --- TOP NAVIGATION BAR --- */
.top-navbar {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 12px 24px;
    background: rgba(10, 10, 20, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.navbar-logo img {
    height: 32px;
    width: auto;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
}

.nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 100px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-link:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    background: #ffffff;
    color: black;
    font-weight: 600;
}

.nav-cta:hover {
    background: #e0e0e0;
}

/* --- HERO SECTION --- */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    padding-top: var(--navbar-offset-desktop); /* Space for fixed navbar */
    position: relative;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--accent);
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border-radius: 100px;
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 32px;
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.hero-title {
    font-size: clamp(3rem, 8vw, 7rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    text-shadow: 0 0 80px rgba(0, 0, 0, 0.5);
}

.hero-sub {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    max-width: 680px;
    line-height: 1.6;
    margin-bottom: 48px;
}

.compliance-banner {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    margin-bottom: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.compliance-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(59, 130, 246, 0.1) 0%,
        rgba(139, 92, 246, 0.1) 50%,
        rgba(236, 72, 153, 0.1) 100%
    );
    opacity: 0.5;
    z-index: 0;
    animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        opacity: 0.5;
        filter: hue-rotate(0deg);
    }
    50% {
        opacity: 0.7;
        filter: hue-rotate(30deg);
    }
}

.compliance-text {
    position: relative;
    z-index: 1;
    font-family: var(--font-mono);
    font-size: clamp(0.85rem, 1.5vw, 1.1rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(
        135deg,
        #60a5fa 0%,
        #a78bfa 50%,
        #ec4899 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow:
        0 0 20px rgba(96, 165, 250, 0.3),
        0 0 40px rgba(167, 139, 250, 0.2);
    animation: textGlow 3s ease-in-out infinite;
}

@keyframes textGlow {
    0%, 100% {
        filter: brightness(1);
    }
    50% {
        filter: brightness(1.2);
    }
}

/* --- MOBILE MENU --- */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    padding: 6px; /* smaller button on mobile */
    cursor: pointer;
    z-index: 1002;
    transition: transform 0.2s ease;
}

.hamburger-line {
    width: 18px; /* slimmer hamburger to match app scale */
    height: 2px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color, #00000a);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.mobile-menu-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 10, 0.85);
    z-index: 1;
    pointer-events: none;
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1003;
    opacity: 0;
    transform: rotate(-90deg) scale(0.8);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 4px 20px rgba(59, 130, 246, 0.2),
        0 0 40px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.mobile-menu-overlay.active .mobile-menu-close {
    opacity: 1;
    transform: rotate(0deg) scale(1);
    transition-delay: 0.2s;
}

.mobile-menu-close:hover {
    background: rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.5);
    transform: rotate(90deg) scale(1.05);
    box-shadow:
        0 8px 30px rgba(59, 130, 246, 0.3),
        0 0 60px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.mobile-menu-close:active {
    transform: rotate(90deg) scale(0.95);
}

.mobile-menu-close svg {
    width: 24px;
    height: 24px;
    color: #60a5fa;
    filter: drop-shadow(0 0 4px rgba(96, 165, 250, 0.5));
}

.mobile-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    gap: 36px;
    padding: 80px 32px;
    width: 100%;
    position: relative;
    z-index: 2;
}

.mobile-nav-link {
    color: var(--text-primary);
    text-decoration: none;
    font-size: clamp(1.15rem, 3.8vw, 1.4rem); /* smaller, consistent with app */
    font-weight: 600;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    text-align: center;
    width: 100%;
    max-width: 500px;
}

.mobile-menu-overlay.active .mobile-nav-link {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(1) {
    transition-delay: 0.1s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(2) {
    transition-delay: 0.15s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(3) {
    transition-delay: 0.2s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(4) {
    transition-delay: 0.25s;
}

.mobile-menu-overlay.active .mobile-nav-link:nth-child(5) {
    transition-delay: 0.3s;
}

.mobile-nav-link::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    border-radius: 2px;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-nav-link:hover::after {
    width: 100%;
}

.mobile-nav-cta {
    margin-top: 12px;
    padding: 10px 18px;
    background: #3b82f6;
    border-radius: 14px;
    border: 1px solid rgba(59, 130, 246, 0.5);
    box-shadow:
        0 8px 20px rgba(59, 130, 246, 0.25),
        0 0 32px rgba(59, 130, 246, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    font-size: clamp(1.15rem, 3.8vw, 1.4rem);
    font-weight: 600;
    max-width: 260px;
}

.mobile-nav-cta::after {
    display: none;
}

.mobile-nav-cta:hover {
    background: #4f8ff7;
    transform: translateY(-2px);
    box-shadow:
        0 12px 32px rgba(59, 130, 246, 0.4),
        0 0 60px rgba(59, 130, 246, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* --- SOLUTION TITLE SECTION --- */
.solution-title-section {
    padding: 80px 24px 60px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.solution-title {
    font-family: var(--font-display);
    font-size: clamp(2.8rem, 6vw, 4rem);
    font-weight: 600;
    letter-spacing: -0.02em;
    margin: 0 0 10px 0;
    animation: fadeInHeader 0.8s ease-out forwards;
}

.solution-subtitle {
    color: var(--text-secondary);
    font-size: 1rem;
    max-width: 720px;
    margin: 10px auto 0;
    line-height: 1.6;
}

@keyframes fadeInHeader {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */

/* Tablet */
@media (max-width: 900px) {
    .top-navbar {
        padding: 10px 20px;
        gap: 16px;
    }

    .navbar-logo {
        font-size: 16px;
    }

    .navbar-logo img {
        height: 28px;
    }

    .nav-link {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero-title {
        font-size: clamp(2.5rem, 7vw, 5rem);
    }

    .hero-sub {
        font-size: clamp(1rem, 2vw, 1.2rem);
    }

    .solution-title-section {
        padding: 60px 24px 40px;
    }

    .solution-title {
        font-size: clamp(2.5rem, 5.5vw, 3.5rem);
    }

    .solution-subtitle {
        font-size: 0.95rem;
        padding: 0 10px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    .top-navbar {
        top: 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%); /* centered floating pill */
        width: clamp(280px, 65vw, 580px); /* widened from 50vw to 65vw */
        max-width: none;
        padding: 8px 12px;
        gap: 10px;
        justify-content: space-between;
        border-radius: 16px;
    }

    .navbar-links {
        display: none; /* Hide links on small mobile, show only logo */
    }

    .mobile-menu-toggle {
        display: flex; /* Show hamburger menu on mobile */
        padding: 6px;
    }

    .navbar-logo {
        font-size: 14px;
    }

    .navbar-logo img {
        height: 20px;
    }

    .badge {
        font-size: 11px;
        padding: 6px 12px;
    }

    .hero {
        padding-top: var(--navbar-offset-mobile);
        height: auto;
        min-height: 90vh;
    }

    .hero-title {
        font-size: clamp(2.8rem, 8vw, 4.2rem); /* increased from 2rem-3.2rem to 2.8rem-4.2rem */
    }

    .hero-sub {
        font-size: clamp(1.1rem, 2.5vw, 1.4rem); /* increased from 0.95rem-1.1rem to 1.1rem-1.4rem */
        padding: 0 10px;
    }

    .compliance-banner {
        padding: 12px 24px; /* reduced from 16px 32px to 12px 24px */
        margin-bottom: 32px;
    }

    .compliance-text {
        font-size: clamp(0.65rem, 1.1vw, 0.85rem); /* reduced from 0.75rem-0.95rem to 0.65rem-0.85rem */
        letter-spacing: 0.06em;
    }

    .solution-title-section {
        padding: 50px 24px 30px;
    }

    .solution-title {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .solution-subtitle {
        font-size: 0.9rem;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .top-navbar {
        padding: 6px 12px;
        left: 50%;
        right: auto;
        transform: translateX(-50%);
        width: clamp(240px, 65vw, 460px); /* widened from 50vw to 65vw */
    }

    .navbar-logo {
        font-size: 14px;
        gap: 8px;
    }

    .navbar-logo img {
        height: 22px;
    }

    .mobile-menu {
        padding: 60px 20px;
        gap: 32px;
    }

    .mobile-nav-link {
        font-size: clamp(1.05rem, 3.6vw, 1.25rem);
        max-width: 90%;
    }

    .mobile-nav-cta {
        padding: 10px 16px;
        font-size: clamp(1.05rem, 3.6vw, 1.25rem);
        max-width: 240px;
        border-radius: 12px;
    }

    .mobile-menu-close {
        top: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .mobile-menu-close svg {
        width: 20px;
        height: 20px;
    }

    .compliance-banner {
        padding: 10px 20px; /* further reduced from 12px 24px to 10px 20px */
        margin-bottom: 28px;
    }

    .compliance-text {
        font-size: clamp(0.6rem, 1vw, 0.75rem); /* further reduced from 0.7rem-0.85rem to 0.6rem-0.75rem */
        letter-spacing: 0.05em;
    }

    .solution-title-section {
        padding: 40px 16px 24px;
    }

    .solution-title {
        font-size: clamp(1.8rem, 4.5vw, 2.5rem);
    }

    .solution-subtitle {
        font-size: 0.85rem;
    }
}
