/***************************************
 * 1. FONTS AND BASE STYLES
 ***************************************/
/* VT323 font is loaded via Google Fonts link in index.html */

/* Relative Medium font - commented out due to corrupted/invalid font file
   The font-family declaration below will gracefully fall back to sans-serif
   
   To fix: Convert relative-medium-trial.otf to WOFF2 format or replace with valid font file
   
@font-face {
    font-family: 'Relative Medium';
    src: url('../assets/fonts/relative-medium-trial.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}
*/

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background-color: white;
    overflow: hidden; /* Will be set to auto by JS after intro */
}

body.intro-complete {
    overflow-y: auto !important; /* Allow scrolling after intro */
}

/* CRT screen effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
    background-size: 100% 2px;
    pointer-events: none;
    z-index: 4;
}

/***************************************
 * 2. BACKGROUND ELEMENTS
 ***************************************/
/* Background */
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #00C8FF;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.background.show {
    opacity: 1;
}

/***************************************
 * 3. ANIMATIONS
 ***************************************/
@keyframes blink {
    0% { opacity: 1; }
    50% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes revealText {
    from { mask-position: 100% 0; -webkit-mask-position: 100% 0; }
    to { mask-position: -100% 0; -webkit-mask-position: -100% 0; }
}

@keyframes bumpIn {
    0% { transform: translateY(-20px); }
    50% { transform: translateY(5px); }
    75% { transform: translateY(-3px); }
    100% { transform: translateY(0); }
}

@keyframes textFade {
    0% { opacity: 1; }
    50% { opacity: 0.3; }
    100% { opacity: 1; }
}

@keyframes slowBlink {
    0% { opacity: 0.8; }
    50% { opacity: 0.4; }
    100% { opacity: 0.8; }
}

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

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Text animation for section headings */
@keyframes textReveal {
    0% { 
        opacity: 0;
        transform: translateY(20px);
    }
    100% { 
        opacity: 1;
        transform: translateY(0);
    }
}

/***************************************
 * 4. INITIAL LOADING SCREEN
 ***************************************/
/* Main container for initial screen */
.container {
    text-align: center;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    pointer-events: none;
}

/* But enable pointer events for specific elements inside the container */
.container .title,
.container .blinking-dot,
.container .scroll-hint,
.container .loading-screen-menu,
.container .dropdown,
.container .dropdown-toggle,
.container .dropdown-menu,
.container .dropdown-item {
    pointer-events: auto;
}

/* Title element */
.title {
    font-family: 'VT323', monospace;
    font-weight: 500;
    font-size: 34px;
    margin: 0;
    image-rendering: pixelated;
}

.title.scrambled {
    text-transform: lowercase;
}

.title.hide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Blinking dot animation */
.blinking-dot {
    animation: blink 1s infinite;
    margin-bottom: 20px;
    width: 10px;
    height: auto;
    transition: all 0.7s cubic-bezier(0.86, 0, 0.07, 1);
    position: relative;
    z-index: 1;
}

.blinking-dot.expand {
    transform: scale(500);
    opacity: 1;
    animation: none;
    image-rendering: pixelated;
    transition: all 0.7s steps(20, end);
    z-index: -1;
}

/* Scroll hint text */
.scroll-hint {
    font-family: 'VT323', monospace;
    text-transform: uppercase;
    position: absolute;
    width: 100%;
    bottom: -30px;
    color: #343434;
    font-size: 14px;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    animation: revealText 3s infinite;
    mask-image: linear-gradient(to right, transparent 0%, black 50%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 50%, transparent 100%);
    mask-size: 200% 100%;
    -webkit-mask-size: 200% 100%;
}

/* Loading screen developers menu */
.loading-screen-menu {
    position: fixed;
    top: 20px;
    left: 20px;
    width: auto;
    display: flex;
    justify-content: center;
    z-index: 1000; /* Extremely high z-index */
    transition: opacity 0.3s ease;
    opacity: 0; /* Initially hidden to prevent showing before the site loads */
    visibility: hidden; /* Initially hidden */
}

@media screen and (max-width: 768px) {
    .loading-screen-menu {
        left: 20px;
    }
}

.loading-screen-menu.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Static developers dropdown */
.dev-dropdown-static {
    font-family: 'VT323', monospace;
    color: #343434;
    width: auto;
    min-width: 150px;
    background-color: transparent;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

.dev-dropdown-static .dropdown-header {
    padding: 8px 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 16px;
    color: black;
    background-color: transparent;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
    user-select: none;
    transition: background-color 0.2s ease;
    justify-content: space-between;
}

.dev-dropdown-static .dropdown-header:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.dev-dropdown-static .dropdown-header:active {
    background-color: rgba(255, 255, 255, 0.2);
}

.dev-dropdown-static .dropdown-arrow {
    font-size: 10px;
    margin-left: 5px;
    transition: transform 0.2s ease;
}

.dev-dropdown-static.open .dropdown-arrow {
    transform: rotate(180deg);
}

.dev-dropdown-static .dropdown-links {
    background-color: white;
    display: none;
    flex-direction: column;
}

.dev-dropdown-static.open .dropdown-links {
    display: flex;
}

.dev-dropdown-static .dropdown-links a {
    padding: 14px 15px;
    text-decoration: none;
    color: #343434;
    transition: background-color 0.2s ease;
    font-size: 16px;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    position: relative;
}

.dev-dropdown-static .dropdown-links a:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.login-link {
    font-family: 'VT323', monospace;
    color: #343434;
    text-decoration: none;
    font-size: 14px;
    text-transform: lowercase;
    padding: 5px 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    transition: all 0.3s ease;
}

.login-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: #000;
}

.scroll-hint.scrambled {
    font-family: 'Courier New', monospace;
    letter-spacing: 0;
    color: #000;
}

.scroll-hint.hide {
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Scroll detector */
.scroll-detector {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

/***************************************
 * 5. HEADER & NAVIGATION
 ***************************************/
/* Logo in top left */
.logo {
    font-family: 'VT323', monospace;
    font-weight: 500;
    position: fixed;
    top: 20px;
    left: 20px;
    font-size: 24px;
    opacity: 0;
    transform: translateY(-20px);
    transition: all 0.6s ease;
    z-index: 3;
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo.show {
    opacity: 1;
    transform: translateY(0);
    animation: bumpIn 0.4s ease-out;
}

.top-logo {
    height: 36px;
    width: auto;
    display: block;
}

.logo-subtitle {
    font-family: 'Rubik', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: white;
    text-align: left;
    margin-top: 0;
    opacity: 0;
    transition: opacity 0.3s ease 0.2s;
    white-space: nowrap;
}

.logo.show .logo-subtitle {
    opacity: 1;
}

.menu {
    position: fixed;
    top: 20px;
    right: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 9999;
    visibility: hidden; /* Initially hidden */
    pointer-events: none; /* Prevent interactions during loading */
    isolation: isolate; /* Ensure dropdown sits above decorative layers */
}

.menu.show {
    opacity: 1;
    visibility: visible; /* Show when needed */
    pointer-events: auto; /* Enable interactions after loading */
}

.menu nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.menu-links {
    display: flex;
    gap: 20px;
    align-items: center;
}

.menu a {
    font-family: 'VT323', monospace;
    color: white;
    text-decoration: none;
    font-size: 18px;
    transition: all 0.3s ease;
}

.menu a:hover {
    opacity: 0.7;
}

/* Menu state variations */
.menu.second-fold-state a:not(.menu-cta),
.menu.third-fold-state a:not(.menu-cta),
.menu.fourth-fold-state a:not(.menu-cta) {
    color: white;
}

.menu.second-fold-state a:not(.menu-cta) {
    color: black;
}

/* Menu CTA button */
.menu .menu-cta {
    border: 1px solid white;
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.menu .menu-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                0 0 20px rgba(255, 255, 255, 0.2);
}

.electric-icon {
    width: 20px;
    height: auto;
}

/* CTA button state variations */
.menu.second-fold-state .menu-cta {
    background: #FF5F1F;
    border-color: #FF5F1F;
    color: white;
}

.menu.second-fold-state .menu-cta:hover {
    background: #ff4800;
    border-color: #ff4800;
    box-shadow: 0 0 10px rgba(255, 95, 31, 0.5),
                0 0 20px rgba(255, 95, 31, 0.2);
}

.menu .menu-cta.third-fold-state,
.menu .menu-cta.fourth-fold-state {
    background: white;
    border-color: white;
    color: black;
}

.menu .menu-cta.third-fold-state:hover,
.menu .menu-cta.fourth-fold-state:hover {
    background: #f0f0f0;
    border-color: #f0f0f0;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.7),
                0 0 20px rgba(255, 255, 255, 0.4);
}

.menu .menu-cta.third-fold-state .menu-electric-icon,
.menu .menu-cta.fourth-fold-state .menu-electric-icon {
    filter: brightness(0);
}

/* Black binary digits for white buttons */
.menu .menu-cta.third-fold-state .binary-digit,
.menu .menu-cta.fourth-fold-state .binary-digit {
    color: rgba(0, 0, 0, 0.8);
    text-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

/* Force black text in dropdown menu on mobile */
@media screen and (max-width: 768px) {
    .dropdown-menu a {
        color: black !important;
    }
}

/***************************************
 * 6. MAIN CONTENT
 ***************************************/
/* Main content container */
.content-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 0.6s ease;
    color: white;
    height: fit-content;
    margin-top: -50px;
}

.content-container.show {
    opacity: 1;
}

/* Text elements */
.primary-title {
    font-family: 'Relative Medium', sans-serif;
    font-size: 56px;
    font-weight: normal;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    max-width: 600px;
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
}

.show .primary-title {
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.subtitle {
    font-family: 'Rubik', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: 40px;
    opacity: 0;
}

.show .subtitle {
    animation: textReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s forwards;
}

/* CTA button */
.cta {
    font-family: 'Rubik', sans-serif;
    font-size: 16px;
    font-weight: 500;
    background: none;
    border: 2px solid white;
    color: white;
    padding: 14px 28px;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button-text {
    position: relative;
    z-index: 2;
    transition: opacity 0.3s ease;
}

.cta:hover .button-text,
.menu-cta:hover .button-text {
    opacity: 0;
}

.button-binary-matrix {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    grid-template-rows: repeat(4, 1fr);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 1;
    pointer-events: none;
}

.cta:hover .button-binary-matrix,
.menu-cta:hover .button-binary-matrix {
    opacity: 1 !important;
}

/* General binary digit style for use outside buttons */
.binary-digit {
    font-family: 'VT323', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.18s ease-in-out;
}

.binary-digit.visible {
    opacity: 1;
}

/* More specific style for button binary digits */
.button-binary-matrix .binary-digit {
    font-family: 'VT323', monospace;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
    opacity: 0;
    transition: opacity 0.18s ease-in-out;
}

.button-binary-matrix .binary-digit.visible {
    opacity: 1 !important;
}

.cta:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                0 0 20px rgba(255, 255, 255, 0.2);
}

.menu .menu-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5),
                0 0 20px rgba(255, 255, 255, 0.2);
}

/* Text glow effect */
.glow-float {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5),
                 0 0 10px rgba(255, 255, 255, 0.3),
                 0 0 15px rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: bold;
}

.subtitle .glow-float:nth-child(1) { animation-delay: 0s; }
.subtitle .glow-float:nth-child(2) { animation-delay: 1s; }
.subtitle .glow-float:nth-child(3) { animation-delay: 2s; }


/***************************************
 * 7. BOTTOM BAR & FOOTER
 ***************************************/
/* Bottom bar */
.bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 64px;
    background-color: #282828;
    text-align: center;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.bottom-bar.show {
    opacity: 1;
}

.bottom-bar.expanded {
    height: 600px;
}

.bottom-bar-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding: 15px 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.bottom-bar.expanded .bottom-bar-content {
    opacity: 0;
}

.bottom-bar-text {
    color: #888;
    font-size: 14px;
    font-weight: 400;
    font-family: 'VT323', monospace;
}

.bottom-bar .scroll-text {
    color: #888;
    font-size: 12px;
    cursor: pointer;
    font-family: 'VT323', monospace;
    animation: textFade 2s ease-in-out infinite;
}

/* Expanded content for bottom bar */
.expanded-content {
    opacity: 0;
    transition: opacity 0.6s ease;
    padding: 0 20px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    color: #888;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    pointer-events: none;
    position: relative;
    z-index: -1;
}

.bottom-bar.expanded .expanded-content {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* Footer components */
.footer-links {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 30px;
}

.footer-links a {
    font-family: 'VT323', monospace;
    color: #888;
    text-decoration: none;
    font-size: 16px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.footer-links a:hover {
    color: white;
}

.footer-divider {
    width: 40px;
    height: 1px;
    background-color: #444;
    margin: 0 auto 60px;
}

/* Footer branding */
.footer-branding {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.footer-logo {
    width: 40px;
    height: auto;
    margin-bottom: 20px;
    opacity: 1;
    transition: opacity 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.footer-logo:hover {
    opacity: 0.8;
}

.footer-title {
    font-family: 'VT323', monospace;
    font-size: 1.75rem;
    margin-bottom: 15px;
    letter-spacing: 0.1em;
    color: #666;
    text-transform: uppercase;
    font-weight: 400;
}

.footer-title-image {
    height: 24px;
    width: auto;
    margin-bottom: 15px;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.footer-title-image:hover {
    opacity: 0.8;
}

/* Footer text elements */
.footer-copyright,
.footer-description,
.footer-legal,
.footer-contact {
    font-family: 'Rubik', sans-serif;
    color: #666;
}

.footer-copyright {
    font-size: 14px;
    font-weight: 400;
    margin-bottom: 40px;
}

.footer-description {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 25px;
    font-weight: 400;
}

.footer-legal {
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 40px;
    color: #555;
}

.footer-contact {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 125px;
}

.footer-contact a {
    color: #888;
    text-decoration: none;
    border-bottom: 1px solid #444;
    transition: all 0.3s ease;
    font-family: 'VT323', monospace;
}

.footer-contact a:hover {
    color: white;
    border-color: white;
}

/***************************************
 * 8. HAMBURGER MENU (MOBILE ONLY)
 ***************************************/
.hamburger-icon {
    display: none; /* Hidden on desktop */
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    width: 30px;
    height: 24px;
    position: relative;
    z-index: 10001;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0;
}

.hamburger-icon span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: white;
    margin: 0;
    transition: all 0.3s ease;
    border-radius: 2px;
    position: relative;
}

/* Hamburger color changes based on menu state */
.menu.second-fold-state .hamburger-icon span {
    background-color: black;
}

.menu.third-fold-state .hamburger-icon span,
.menu.fourth-fold-state .hamburger-icon span {
    background-color: white;
}

/* Hamburger animation when open - keep it white when open */
.hamburger-icon.open span {
    background-color: white !important;
}

.hamburger-icon.open span:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}

.hamburger-icon.open span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Mobile menu overlay */
.mobile-menu-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open {
    opacity: 1;
}

/***************************************
 * 9. RESPONSIVE STYLES
 ***************************************/
@media screen and (max-width: 768px) {
    /* Title and content */
    .primary-title {
        font-size: 38px;
        max-width: 90vw;
        padding: 0 15px;
    }

    .main-title, .subtitle {
        max-width: 90vw;
        padding: 0 15px;
        margin-left: auto;
        margin-right: auto;
    }

    .content-container {
        width: 100%;
        margin-top: -100px;
    }

    /* Header elements - mobile layout adjustments */
    header {
        display: block;
        visibility: visible;
    }

    /* Mobile logo positioning - layout only, visibility handled by .show class */
    .logo,
    #final-logo {
        top: 15px;
        left: 15px;
        gap: 8px;
        z-index: 99999;
        position: fixed;
        background: transparent;
        padding: 0;
        border-radius: 0;
        width: auto;
        height: auto;
        align-items: center;
        justify-content: flex-start;
    }

    /* When .show class is added (by JS on mobile), ensure proper display */
    .logo.show,
    #final-logo.show {
        display: flex;
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
        pointer-events: auto;
    }

    .logo a {
        display: inline-block;
        line-height: 0;
        pointer-events: auto;
    }

    .top-logo {
        height: 29px;
        width: auto;
        display: block;
        visibility: visible;
        filter: brightness(1.2);
    }

    .logo-subtitle {
        font-size: 13px;
        color: white;
        background: transparent;
        padding: 0;
    }

    .logo.show .logo-subtitle {
        opacity: 1;
        visibility: visible;
        display: block;
    }

    .menu {
        right: 20px;
        left: auto;
        margin-top: 0;
    }

    /* Menu visibility handled by .show class */
    .menu.show {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
    }

    .menu nav {
        justify-content: flex-end;
        gap: 0;
        position: relative;
    }

    /* Show hamburger icon on mobile */
    .hamburger-icon {
        display: flex;
        visibility: visible;
        pointer-events: auto;
    }

    /* Hide Get Access button on mobile */
    .menu-cta,
    #menu-access-btn,
    .menu .menu-cta,
    nav .menu-cta {
        display: none;
        visibility: hidden;
        opacity: 0;
        pointer-events: none;
    }

    /* Mobile slide-out menu */
    .menu-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background-color: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        flex-direction: column;
        gap: 0;
        padding: 80px 0 40px 0;
        transition: right 0.3s ease;
        z-index: 10000;
        overflow-y: auto;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.3);
        flex-wrap: nowrap;
        margin: 0;
        transform: translateX(0);
    }

    /* Open state - slide menu into view */
    .menu-links.open,
    .menu nav .menu-links.open,
    nav .menu-links.open {
        right: 0;
        transform: translateX(0);
    }

    /* Mobile menu text colors */
    .menu-links > a,
    .menu-links > .dropdown > a {
        color: white;
    }

    .menu-links > a,
    .menu-links > .dropdown {
        width: 100%;
        padding: 15px 30px 15px 40px;
        font-size: 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        text-align: left;
        box-sizing: border-box;
    }

    .menu-links > a:last-child {
        border-bottom: none;
    }

    /* Dropdown styles within mobile menu */
    .menu-links .dropdown {
        display: block;
    }

    .menu-links .dropdown-toggle {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        width: 100%;
        font-size: 20px;
        color: white;
    }

    .menu-links .dropdown-arrow {
        margin-left: 0;
        margin-right: 12px;
        font-size: 12px;
        transition: transform 0.3s ease;
        color: white;
    }

    .menu-links .dropdown.open .dropdown-arrow {
        transform: rotate(180deg);
    }

    /* Dropdown menu in mobile hamburger */
    .menu-links .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background-color: rgba(255, 255, 255, 0.05);
        margin-top: 10px;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease, padding 0.3s ease;
        border-radius: 8px;
        bottom: auto;
        left: auto;
        width: auto;
        box-shadow: none;
        text-align: left;
    }

    .menu-links .dropdown.open .dropdown-menu {
        max-height: 300px;
        padding: 10px 0;
    }

    .menu-links .dropdown-menu a {
        padding: 12px 20px;
        font-size: 16px;
        color: white;
        display: block;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }

    .menu-links .dropdown-menu a:last-child {
        border-bottom: none;
    }

    .menu-links .dropdown-menu a:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }

    .menu-links .dropdown-menu .bottom-sheet-handle {
        display: none;
    }
    
    /* Feature boxes mobile styles */
    .feature-boxes {
        pointer-events: none;
    }
    
    .feature-boxes:hover .feature-box {
        transform: none;
        filter: none;
    }
    
    .feature-box {
        width: 250px;
        height: 160px;
    }
    
    .feature-box p {
        font-size: 14px;
    }
    
    .feature-boxes:hover .feature-box.active,
    .feature-boxes:hover .feature-box.next,
    .feature-boxes:hover .feature-box.last {
        transform: translateX(-50%) translateY(0);
    }
}

/* Substack pill style */
.substack-pill {
    display: inline-flex;
    align-items: center;
    background-color: #FF6719;
    color: white;
    text-decoration: none;
    border-radius: 50px;
    padding: 3px 10px 2px 9px;
    margin: 0 2px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.2s ease;
}

.substack-pill:hover {
    background-color: #FF4E00;
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(255, 103, 25, 0.3);
}

.substack-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    fill: white;
}

@media screen and (max-width: 768px) {
    .substack-pill {
        padding: 1px 8px 1px 5px;
        font-size: 13px;
    }
    
    .substack-icon {
        width: 12px;
        height: 12px;
        margin-right: 4px;
    }
}

/* Make sure binary matrix doesn't block clicks */
.binary-matrix {
    pointer-events: none;
}

.dropdown-icon {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 2;
    flex-shrink: 0;
}

/* Integration-style item */
.dev-dropdown-static .dropdown-links .integration-item {
    gap: 14px;
    padding: 16px 15px 16px 12px;
}

.integration-icon-container {
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
}

.integration-icon-salesforce {
    background-color: #00A1E0;
}

.integration-icon-hubspot {
    background-color: #FF7A59;
}

.integration-icon-attio {
    background-color: #18181B;
}

.new-badge {
    background-color: #f5f5f7;
    color: #333;
    font-size: 11px;
    padding: 3px 8px;
    border-radius: 20px;
    margin-left: auto;
    font-weight: 500;
    letter-spacing: 0.02em;
} 

/* Agentic modal overlay */
.agentic-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 10000;
}

.agentic-modal.show { display: block; }

.agentic-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(10px);
}

.agentic-modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(720px, 92vw);
    background: #121212;
    color: white;
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 10px;
    padding: 20px 22px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

@media screen and (max-width: 480px) {
    .agentic-modal-dialog { padding: 16px; }
}

.agentic-modal-title {
    font-family: 'VT323', monospace;
    font-size: 22px;
    margin: 0 0 10px 0;
    color: #00C8FF;
}

.agentic-modal-content {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.6;
    color: #e6e6e6;
}

.agentic-modal-content p {
    font-weight: 400;
}

.agentic-modal-content ul {
    font-weight: 400;
}

.agentic-modal-content li {
    font-weight: 400;
}

.agentic-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: transparent;
    color: white;
    border: none;
    font-size: 22px;
    cursor: pointer;
}