/* General Sans Font Import */
@import url('https://api.fontshare.com/v2/css?f[]=general-sans@200,300,400,500,600,700&display=swap');

/* Scope all styles under .hero-section */
.hero-section {
    position: relative;
    width: 100%;
    height: 100vh;
    background-color: #000000;
    overflow: hidden;
    font-family: 'General Sans', sans-serif;
    color: #ffffff;
}

/* Background Video */
.hero-video-wrapper {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5); /* 50% black overlay */
    z-index: 1;
}

/* Global Glassmorphism Themes */
.header-glass-dark {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 9999 !important; /* Force to topmost layer */
    margin-top: 0 !important;
    background: transparent !important;
    padding: 15px 0 !important;
    pointer-events: none !important;
}

.header-glass-dark .container.container-1740 {
    background: rgba(0, 0, 0, 0.4) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border: 0.5px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 9999px !important;
    padding: 10px 35px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: block !important;
    pointer-events: auto !important;
}

.header-glass-dark .tp-main-menu-content ul li a,
.header-glass-dark .tp-header-3-social a,
.header-glass-dark .tp-btn-black-2 {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Light Glass for Other Pages */
.header-glass-light {
    position: relative !important; /* Not absolute overlay for non-hero pages */
    width: 100%;
    z-index: 9999 !important;
    background: transparent !important;
    padding: 15px 0 !important;
    pointer-events: none !important;
}

.header-glass-light .container.container-1740 {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(20px) saturate(150%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(150%) !important;
    border: 0.5px solid rgba(0, 0, 0, 0.1) !important;
    border-radius: 9999px !important;
    padding: 10px 35px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
    max-width: 1200px !important;
    margin: 0 auto !important;
    display: block !important;
    pointer-events: auto !important;
}

.header-glass-light .tp-main-menu-content ul li a,
.header-glass-light .tp-header-3-social a,
.header-glass-light .tp-btn-black-2 {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Shared Elements Logic */
.header-glass-dark .tp-header-3-logo .logo-1 { display: none !important; }
.header-glass-dark .tp-header-3-logo .logo-2 { display: block !important; }
.header-glass-dark .tp-header-3-logo img { filter: brightness(0) invert(1) !important; }
.header-glass-dark .tp-main-menu-content ul li a { color: rgba(255, 255, 255, 0.9) !important; }

.header-glass-light .tp-header-3-logo .logo-1 { display: block !important; }
.header-glass-light .tp-header-3-logo .logo-2 { display: none !important; }
.header-glass-light .tp-header-3-logo img { filter: brightness(0) !important; } /* Force Black */
.header-glass-light .tp-main-menu-content ul li a { color: rgba(0, 0, 0, 0.8) !important; }

/* Social Icons */
#header-sticky.header-glass-dark .tp-header-3-social a {
    background: rgba(255, 255, 255, 0.08) !important;
    color: rgba(255, 255, 255, 0.6) !important;
}

#header-sticky.header-glass-light .tp-header-3-social a {
    background: rgba(0, 0, 0, 0.05) !important;
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Header Buttons */
#header-sticky.header-glass-dark .tp-btn-black-2 {
    background: #ffffff !important;
    color: #000000 !important;
}

#header-sticky.header-glass-light .tp-btn-black-2 {
    background: #000000 !important;
    color: #ffffff !important;
}

/* Layered Hero Button (Waitlist Style) */
.hero-btn-layered {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #000000;
    color: #ffffff !important;
    font-weight: 500;
    font-size: 15px;
    padding: 14px 32px;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1), 0 10px 30px -10px rgba(0, 0, 0, 1);
    text-decoration: none;
}

.hero-btn-layered::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 9999px;
    padding: 1.5px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0) 100%);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.hero-btn-layered:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px -10px rgba(0, 0, 0, 1), 0 0 20px rgba(255, 255, 255, 0.2);
    background: #111111;
}

/* Primary CTA — solid (desktop + mobile) */
.hero-btn-primary {
    background: #ffffff !important;
    color: #0a0a0a !important;
    border-color: #ffffff !important;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(255, 255, 255, 0.2);
}
.hero-btn-primary::before {
    opacity: 0.35;
}
.hero-btn-primary:hover {
    background: #f4f4f5 !important;
    color: #000000 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

/* Secondary — ghost outline (same as current transparent style) */
.hero-btn-secondary {
    background: transparent !important;
    color: #ffffff !important;
    border: 1.5px solid rgba(255, 255, 255, 0.85) !important;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
}

/* Hero CTA row — explicit flex + gap (some builds / order can drop Bootstrap gap-3) */
.hero-cta.d-flex {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1rem !important;
    column-gap: 1rem !important;
    row-gap: 1rem !important;
}

/* Desktop: space between buttons + breathing room above next section */
@media (min-width: 768px) {
    .hero-content {
        padding-bottom: 140px;
    }
    .hero-cta.d-flex {
        gap: 1.25rem !important;
        column-gap: 1.25rem !important;
        margin-top: 4px;
        margin-bottom: 12px;
    }
}

/* Mobile: equal width, stacked, aligned height */
@media (max-width: 767px) {
    /* Parent uses align-items:center; stretch so full-width CTAs work */
    .hero-stack .hero-cta {
        align-self: stretch;
        max-width: 100%;
        padding-left: max(28px, env(safe-area-inset-left, 0px));
        padding-right: max(28px, env(safe-area-inset-right, 0px));
        box-sizing: border-box;
    }
    .hero-cta.d-flex {
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: center !important;
        gap: 12px !important;
        column-gap: 12px !important;
        row-gap: 12px !important;
    }
    .hero-cta .hero-btn-layered {
        width: 100%;
        max-width: 100%;
        min-height: 52px;
        padding: 14px 20px;
        font-size: 14px;
        line-height: 1.35;
        text-align: center;
        white-space: normal;
        box-sizing: border-box;
    }
}
.header-glass .tp-main-menu-content ul li a:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px;
}

/* Ensure original logo and links are visible and styled */
.tp-header-logo img {
    height: 35px;
    width: auto;
}

.tp-main-menu-content ul {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.tp-main-menu-content ul li {
    margin: 0 !important;
    padding: 0 !important;
}

.tp-main-menu-content ul li a {
    color: #ffffff !important;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s ease;
    white-space: nowrap !important;
}

.tp-main-menu-content ul li a:hover,
.tp-main-menu-content ul li a.active {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Compact Shrunk Sticky Header */
#header-sticky.header-sticky {
    background: transparent !important;
    box-shadow: none !important;
    position: fixed !important;
    top: 0 !important;
    width: 100% !important;
    transition: all 0.3s ease !important;
    pointer-events: none !important;
    z-index: 9999 !important;
}

#header-sticky.header-sticky .container.container-1740 {
    margin-top: 15px !important;
    max-width: fit-content !important; /* Shrunk width */
    padding: 8px 30px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    pointer-events: auto !important;
}

#header-sticky.header-sticky .tp-main-menu-content ul li a {
    pointer-events: auto !important;
    cursor: pointer !important;
}

/* Hide everything except navigation links when sticky */
#header-sticky.header-sticky .tp-header-logo,
#header-sticky.header-sticky .tp-header-3-social,
#header-sticky.header-sticky .tp-btn-black-2 {
    display: none !important;
}

/* Ensure menu is centered and visible when sticky */
#header-sticky.header-sticky .tp-header-3-menu-wrap {
    display: flex !important;
    margin: 0 !important;
}

#header-sticky.header-sticky .col-xl-6 {
    width: auto !important;
    flex: 0 0 auto !important;
}

/* Adjust link spacing for shrunk mode */
#header-sticky.header-sticky .tp-main-menu-content ul {
    gap: 20px !important;
}

/* Light theme sticky overrides */
.header-glass-light .tp-main-menu-content ul li a {
    color: #000000 !important;
}

.header-glass-light .tp-main-menu-content ul li a:hover,
.header-glass-light .tp-main-menu-content ul li a.active {
    color: rgba(0, 0, 0, 0.6) !important;
}

/* Revert other custom nav styles that are no longer needed */
.hero-nav, .hero-nav-left, .hero-logo-placeholder, .hero-nav-links {
    display: none;
}

.hero-nav-links a {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: opacity 0.3s ease;
}

.hero-nav-links a:hover {
    opacity: 0.8;
}

.hero-nav-links a::after {
    content: url("data:image/svg+xml,%3Csvg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 5.25L7 8.75L10.5 5.25' stroke='white' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    width: 14px;
    height: 14px;
}

/* Pill Button Base */
.pill-button-wrapper {
    position: relative;
    padding: 0.6px;
    border-radius: 9999px;
    background: #ffffff;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.pill-button-wrapper:hover {
    transform: translateY(-1px);
}

.pill-button-inner {
    background: #000000;
    border-radius: 9999px;
    padding: 11px 29px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

/* Glow Streak Effect */
.pill-button-inner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 4px;
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.4) 0%, transparent 70%);
    filter: blur(2px);
}

/* White background variant for CTA */
.pill-button-wrapper.cta-white {
    background: #ffffff;
}

.pill-button-wrapper.cta-white .pill-button-inner {
    background: #ffffff;
    color: #000000;
}

.pill-button-wrapper.cta-white .pill-button-inner::before {
    background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.1) 0%, transparent 70%);
}

/* Hero Content Area */
.hero-content {
    position: relative;
    z-index: 10;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding-top: 280px;
    padding-bottom: 102px;
    text-align: center;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

/* Badge Pill */
.hero-badge {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 6px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
}

.badge-dot {
    width: 4px;
    height: 4px;
    background-color: #ffffff;
    border-radius: 50%;
}

.badge-text-muted {
    color: rgba(255, 255, 255, 0.6);
}

/* Heading with Gradient */
.hero-heading {
    font-size: 56px;
    font-weight: 500;
    line-height: 1.28;
    max-width: 613px;
    background: linear-gradient(144.5deg, #ffffff 28%, rgba(0,0,0,0) 115%);
    -webkit-background-clip: text;
    background-clip: text; /* Fix lint warning */
    -webkit-text-fill-color: transparent;
    margin: 0;
}

/* Subtitle */
.hero-subtitle {
    font-size: 15px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    max-width: 680px;
    margin: -16px 0 0 0; /* Adjust gap to be 24px from heading (40px stack gap - 16px) */
}

/* Responsive Rules */
@media (max-width: 991px) {
    .hero-nav {
        padding: 20px 40px;
    }
    .hero-nav-links {
        display: none; /* Hide nav links on mobile */
    }
    .hero-content {
        padding-top: 200px;
    }
    .hero-heading {
        font-size: 36px;
    }
}

/* Remove unwanted white space */
body {
    margin: 0;
    padding: 0;
}

#smooth-wrapper {
    margin-top: 0 !important;
}

/* Mobile / tablet: sticky header shows logo (left) + hamburger (right) */
@media (max-width: 1199px) {
    #header-sticky.header-sticky .tp-header-logo,
    #header-sticky.header-sticky .tp-header-3-logo {
        display: flex !important;
        align-items: center !important;
    }
    #header-sticky.header-sticky .tp-header-3-right {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-end !important;
    }
    #header-sticky.header-sticky .container.container-1740 {
        max-width: 94% !important;
        width: 94% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        padding: 10px 18px !important;
    }
    #header-sticky.header-sticky .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        justify-content: space-between !important;
        align-items: center !important;
        width: 100% !important;
    }
    /* Logo + hamburger columns only (middle nav col is .col-xl-6, hidden on mobile) */
    #header-sticky.header-sticky .row > .col-xl-3.col-6 {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: none !important;
    }
    #header-sticky.header-sticky .tp-header-3-logo a img {
        max-height: 32px !important;
        width: auto !important;
    }
    #header-sticky.header-sticky .tp-header-3-bar {
        color: #fff !important;
    }
}
