@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Literata:ital,opsz,wght@0,7..72,200..900;1,7..72,200..900&display=swap');

:root {
    --scroll-thumb: transparent;
    --scroll-track: transparent;
}

/* Lenis Smooth Scroll Stabilization */
html {
    scroll-behavior: auto !important;
    overflow-x: hidden;
}

body {
    overflow-x: hidden;
    width: 100%;
    margin: 0;
    padding: 0;
}
.grecaptcha-badge {
  visibility: hidden !important;
}
/* scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

[data-theme="light"] {
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
  }
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Firefox scrollbar */
* {
    scrollbar-color: transparent transparent;
    scrollbar-width: thin;
}


.bg-black-gradient {
    background: linear-gradient(336.58deg, #212730 19.27%, #3D3D3D 87.25%);
}

.btn.btn-neutral:hover {
    background: linear-gradient(336.58deg, #050607 19.27%, #1f1f1f 87.25%);
}

/* Button Hover Scale Effect */
.btn {
    transition: all 0.2s ease;
}

/* Icon in Button - Move Up on Hover */
.btn-icon-animate {
    transition: transform 0.2s ease;
}

.btn:hover .btn-icon-animate {
    transform: translateY(-2px);
}


/* common */
.font-instrument {
    font-family: "Literata", serif;
    font-weight: 300;
    font-style: normal;
}

/* Section Heading Gradient */
.section-heading-gradient {
    background: linear-gradient(135deg, #000000 0%, #4a4a4a 50%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


/* Fixed Navbar on Scroll */
#navbar-section {
    width: 100%;
    transition: all 0.3s ease;
    z-index: 999;
    will-change: background, backdrop-filter, box-shadow;
    background: white;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

#navbar-section.navbar-fixed {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar .menu a.active,
.navbar .menu li a:active {
    background-color: #d0d0d1 !important;
    color: inherit !important;
}

#navbar-section .navbar-link:hover {
    color: #000000;
}

#navbar-section .navbar-auth-link,
#navbar-section .navbar-cta {
    flex: 0 0 auto;
    white-space: nowrap;
    line-height: 1;
}

#navbar-section .navbar-auth-link {
    min-width: 92px;
}

#navbar-section .navbar-cta {
    min-width: 100px;
}

.mega-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    margin: 0;
    list-style: none;
    font-size: 13px;
    font-weight: 600;
}

.mega-nav-item {
    position: relative;
}

.mega-nav-item::after {
    content: "";
    display: none;
    position: fixed;
    top: 58px;
    left: 0;
    right: 0;
    height: 52px;
    z-index: 99999;
}

.mega-nav-item:hover::after,
.mega-nav-item:focus-within::after {
    display: block;
}

.mega-nav-trigger,
.mega-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #111827;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.mega-nav-trigger:hover,
.mega-nav-trigger:focus-visible,
.mega-nav-link:hover,
.mega-nav-link:focus-visible,
.mega-nav-item:hover > .mega-nav-trigger,
.mega-nav-item.mega-open > .mega-nav-trigger {
    background: #f4f4f5;
    color: #000;
    outline: none;
}

.mega-panel {
    position: fixed;
    top: 74px;
    left: 50vw;
    width: min(780px, calc(100vw - 48px));
    transform: translateX(-50%) translateY(8px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(17, 24, 39, 0.08);
    border-radius: 22px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, 0.16);
    overflow: auto;
    max-height: calc(100vh - 110px);
    transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
    z-index: 1000;
}

.mega-panel-wide {
    width: min(1040px, calc(100vw - 64px));
}

.mega-panel.compact {
    width: min(680px, calc(100vw - 48px));
}

.mega-nav-item:hover > .mega-panel,
.mega-nav-item:focus-within > .mega-panel,
.mega-nav-item.mega-open > .mega-panel {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.mega-panel-grid {
    display: grid;
    grid-template-columns: minmax(260px, 0.95fr) minmax(220px, 1fr) minmax(220px, 1fr);
}

.mega-panel-grid.two-col {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
}

.mega-panel-column {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 28px 24px;
}

.mega-panel-column + .mega-panel-column {
    border-left: 1px solid rgba(17, 24, 39, 0.07);
}

.mega-panel-sidebar {
    background: #fbfbfb;
}

.mega-panel-eyebrow {
    margin: 0 0 8px;
    color: #78716c;
    font-size: 12px;
    font-weight: 700;
}

.mega-link {
    display: block;
    padding: 10px 12px;
    border-radius: 12px;
    color: #18181b;
    text-decoration: none;
    transition: background-color 0.16s ease, color 0.16s ease;
}

.mega-link strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.mega-link span {
    display: block;
    margin-top: 3px;
    color: #78716c;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

.mega-link:hover,
.mega-link:focus-visible,
.mega-link.featured {
    background: #f5f5f4;
    color: #000;
    outline: none;
}

.mega-panel-footer {
    display: grid;
    grid-template-columns: 42px auto;
    column-gap: 14px;
    align-items: center;
    padding: 18px 24px;
    border-top: 1px solid rgba(17, 24, 39, 0.07);
    color: #18181b;
    text-decoration: none;
}

.mega-panel-footer strong,
.mega-panel-footer span:last-child {
    display: block;
}

.mega-panel-footer span:last-child {
    grid-column: 2;
    margin-top: 2px;
    color: #78716c;
    font-size: 13px;
    font-weight: 500;
}

.mega-footer-mark {
    grid-row: span 2;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 30%, #fff 0 10%, transparent 11%),
        linear-gradient(135deg, #fb923c, #6366f1 58%, #14b8a6);
}

@media screen and (max-width: 1180px) {
    .mega-nav {
        gap: 2px;
        font-size: 12px;
    }

    .mega-nav-trigger,
    .mega-nav-link {
        padding: 0 9px;
    }
}

@media screen and (max-width: 640px) {
    #navbar-section .navbar {
        min-height: 58px;
        padding-left: 14px !important;
        padding-right: 14px !important;
        gap: 10px;
    }

    #navbar-section .navbar-start img {
        width: 30px !important;
        height: 30px !important;
    }

    #navbar-section .navbar-start span {
        font-size: 18px !important;
        line-height: 1.05;
        max-width: 172px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #navbar-section .navbar-end {
        gap: 8px;
    }

    #navbar-section .navbar-cta {
        width: auto;
        min-width: 86px;
        height: 44px;
        padding: 0 14px !important;
        border-radius: 14px;
        flex: 0 0 auto;
    }

    #navbar-section .navbar-cta-label {
        position: static;
        width: auto;
        height: auto;
        padding: 0;
        margin: 0;
        overflow: visible;
        clip: auto;
        white-space: nowrap;
        border: 0;
    }

    #navbar-section .navbar-cta-icon {
        display: none !important;
    }

    #mobile-menu-toggle-btn {
        width: 44px;
        height: 44px;
        padding: 0 !important;
        border-radius: 14px;
        flex: 0 0 44px;
    }
}

/* Mobile Sidebar Slide Animation */
.dropdown-content {
    transform-origin: top left;
    animation: slideDown 0.3s ease-out forwards !important;
}

.dropdown-content[hidden] {
    animation: slideUp 0.3s ease-out forwards !important;
    pointer-events: none;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0) scaleY(1);
    }

    to {
        opacity: 0;
        transform: translateY(-10px) scaleY(0.95);
    }
}


/* Sidebar Slide In Animation */
.mobile-overlay-container {
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-overlay-container.open {
    pointer-events: auto;
    opacity: 1;
}

.mobile-overlay-container.closing {
    pointer-events: none;
    opacity: 0;
}

.mobile-overlay-container.open .mobile-sidebar {
    animation: slideInLeft 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.mobile-overlay-container.closing .mobile-sidebar {
    animation: slideOutLeft 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-overlay-container.open .mobile-sidebar-backdrop {
    animation: fadeInBackdrop 0.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.mobile-overlay-container.closing .mobile-sidebar-backdrop {
    animation: fadeOutBackdrop 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}


#mobile-menu-container .menu li>:not(ul, .menu-title, details, .btn).active,
.menu li>:not(ul, .menu-title, details, .btn):active,
.menu li>details>summary:active {
    color: #000000;
    background-color: rgb(170, 170, 170);
}

@keyframes slideInLeft {
    from {
        transform: translateX(-100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutLeft {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(-100%);
        opacity: 0;
    }
}

@keyframes fadeInBackdrop {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }

    to {
        opacity: 1;
        backdrop-filter: blur(4px);
    }
}

@keyframes fadeOutBackdrop {
    from {
        opacity: 1;
        backdrop-filter: blur(4px);
    }

    to {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

/* faq section */

.faq-section .collapse-title:after {
    display: none;
    content: "";
}

.faq-section .minus-icon {
    display: none;
}

.faq-section .plus-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.faq-section .faq-input:checked+div .plus-icon {
    transform: rotate(45deg);
}

.faq-section .collapse-title .flex {
    padding: 8px 12px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.faq-section .collapse-title .flex:hover {
    background-color: #e5e7eb;
}


/* CTA Section Styles */
.cta-section-2 {
    background: linear-gradient(135deg, #4a4a4a 0%, #2a2a2a 50%, #000000 100%);
    padding: 80px 40px;
    position: relative;
    overflow: hidden;
}

.cta-section-2::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(128, 128, 128, 0.05) 50%, rgba(255, 255, 255, 0.02) 100%);
    pointer-events: none;
}

.cta-container {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
    text-align: center;
}

/* Main content area height fix */
#toc {
    height: calc(100vh - 4rem);
}

/* Ensure flex container with navbar offset */
.flex.min-h-screen {
    min-height: calc(100vh - 4rem);
}

/* Ensure main content takes proper height */
main {
    height: auto;
    min-height: calc(100vh - 4rem);
}

/* Content wrapper height */
.flex>main,
.flex>article {
    height: auto;
    width: 100%;
}


/* htw section */

.htw-section .htw-card-wrapper {
    position: relative;
}





@media screen and (max-width: 767.97px) {
    .cta-section-2 {
        padding: 60px 30px;
    }
}
