/* Core Layout */
body { 
    margin: 0;
    background: black;
    overflow-x: hidden;
}

.page-container {  /* Previously .first-fold */
    position: relative;
    width: 100vw;
    height: 100vh;
    background: black;
    overflow: hidden;
}

canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    cursor: default;
    pointer-events: none;
}

/* Signature */
.page-signature {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.262);
    z-index: 3;
    letter-spacing: 0.3px;
    line-height: 1;
}

/* Hide on mobile */
@media screen and (max-width: 768px) {
    .page-signature {
        display: none;
    }
}

/* Align signature with toggle labels */
@media screen and (min-width: 769px) {
    .page-signature {
        top: 30px;
    }
}

/* Hero Section */
.hero-section {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 3;
}

.hero-title {
    color: white;
    font-family: Helvetica, Arial, sans-serif;
    font-weight: bold;
    font-size: 30px;
    white-space: normal;
    text-align: center;
    max-width: 400px;
    line-height: 1.2;
    pointer-events: none;
}

.hero-cta {
    position: absolute;
    top: calc(95% + 0px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: rgb(249, 199, 0);
    z-index: 3;
    letter-spacing: 1px;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    animation: shimmer 3s ease-in-out infinite;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.3s ease;
    text-decoration-line: underline;
    text-decoration-color: rgb(249, 199, 0);
    pointer-events: auto;
    min-width: 200px;
}

/* Companies Section */
.companies-wrapper {
    position: absolute;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 1;
    width: 100%;
    max-width: 1200px;
}

.companies-title {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: white;
    margin-bottom: 12px;
}

.company-logos-container {
    width: 350px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    padding: 4px 0;
}

.company-logos {
    display: flex;
    gap: 30px;
    animation: scroll 20s linear infinite;
    width: max-content;
    align-items: center;
}

.company-logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

/* Gravity Control */
.gravity-control {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 40px;
    cursor: pointer;
    user-select: none;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    transition: .4s;
    border-radius: 20px;
    border: 2px solid white;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-weight: bold;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 6px 15px;
    box-sizing: border-box;
}

/* Animations */
@keyframes shimmer {
    0%, 100% {
        opacity: 1;
        text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
    }
    50% {
        opacity: 0.8;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

@keyframes scroll {
    from { transform: translateX(0); }
    to { transform: translateX(calc(-50%)); }
}

/* Mobile Styles */
@media screen and (max-width: 768px) {
    body {
        position: fixed;
        overflow: hidden;
    }

    .hero-section {
        width: 100%;
        top: 40%;
        transform: translate(-50%, -50%);
    }

    .hero-title {
        width: 80%;
        margin: 0 auto;
        font-size: 27px;
        max-width: 400px;
    }
    
    .hero-cta {
        font-size: 15px;
        width: 400px;
        max-width: 90%;
        top: calc(100% + 20px);
        min-width: 250px;
    }

    .companies-wrapper {
        bottom: 90px;
        position: fixed;
        width: 100%;
        z-index: 1;
    }

    .companies-title {
        font-size: 16px;
    }

    .gravity-control {
        bottom: 20px;
        width: 100%;
        display: flex;
        justify-content: center;
        z-index: 5;
    }

    .gravity-control .switch {
        width: 350px;
        height: 45px;
    }

    .gravity-control .slider {
        font-size: 14px;
        height: 45px;
        padding: 6px 30px;
        background-color: rgba(0, 0, 0, 0.5);
        border: 2px solid white;
        color: white;
    }

    /* Logo specific styles - Mobile */
    .company-logo[alt="Meta"] {
        height: 25px;
        transform: translateY(-3px);
    }

    .company-logo[alt="Lemonade"] {
        height: 20px;
        transform: translateY(2px);
    }

    .company-logo[alt="Google"] {
        height: 20px;
    }

    .company-logo[alt="Apple"] {
        height: 20px;
    }

    .company-logos {
        animation: scroll 12s linear infinite;
        gap: 20px;
    }

    .page-signature {
        /* Mobile: Hidden but kept for reference */
        /* position: fixed;
        top: 20px;
        right: 20px;
        font-size: 11px; */
        display: none;
    }

    .isr-lead {
        position: fixed;
        top: 20px;
        left: 20px;
        transform: none;
        width: auto;
        max-width: none;
        font-size: 11px;
        display: none;
    }

    .company-logos-container {
        width: 300px;
        background: black;
    }

    /* Audience toggle mobile styles */
    .audience-toggle .switch {
        width: 70px;
        height: 36px;
        border-radius: 999px;
    }

    .audience-toggle .slider {
        background-color: #1C1C1E;
        border-radius: inherit;
        border: none;
        display: block;  /* Remove flex display */
        padding: 0;      /* Remove padding */
    }

    .audience-toggle .slider:before {
        content: '';
        position: absolute;
        height: 32px;
        width: 32px;
        left: 2px;
        top: 2px;
        background-color: #636366;
        border-radius: 50%;
        transition: .3s;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }

    .audience-toggle input:checked + .slider:before {
        transform: translateX(34px);
    }

    .audience-toggle {
        left: 50%;
        transform: translateX(-50%);
        right: auto;
        flex-direction: column-reverse;
        align-items: center;
        gap: 8px;
    }

    .toggle-label {
        margin-top: 4px;
        font-size: 11px;
    }

    .coming-soon-message {
        font-size: 24px;
        width: 90%;
        text-align: center;
    }
}

@media screen and (max-width: 375px) {
    /* Logo specific styles - Small Mobile */
    .company-logo[alt="Meta"] {
        height: 20px;
    }

    .company-logo[alt="Lemonade"] {
        height: 20px;
    }

    .company-logo[alt="Google"] {
        height: 20px;
    }

    .company-logo[alt="Apple"] {
        height: 20px;
    }

    .company-logos {
        animation: scroll 10s linear infinite;
        gap: 20px;
    }
}

/* Add after the company-logos styles */
.company-logos-container::before,
.company-logos-container::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.company-logos-container::before {
    left: 0;
    background: linear-gradient(to right, black, transparent);
}

.company-logos-container::after {
    right: 0;
    background: linear-gradient(to left, black, transparent);
}

/* Logo specific styles - Desktop */
.company-logo[alt="Meta"] {
    height: 35px;
    transform: translateY(1px);
}

.company-logo[alt="Lemonade"] {
    height: 35px;
    transform: translateY(-2px);
}

.company-logo[alt="Google"] {
    height: 35px;
    transform: translateY(4px);
}

.company-logo[alt="Apple"] {
    height: 35px;
    transform: translateY(-1px);
}

/* Move these styles higher, before the animations */
.isr-lead {
    position: absolute;
    top: calc(95% + 30px);
    left: 50%;
    transform: translateX(-50%);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    z-index: 3;
    letter-spacing: 0.5px;
    width: 400px;
    max-width: 90%;
}

.isr-lead-link {
    color: #D5D5D5;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.isr-lead-link:hover {
    opacity: 0.7;
}

/* Remove or comment out these styles */
.name-underline {
    /* border-bottom: 1px solid #D5D5D5; */
    transition: opacity 0.3s ease;
}

.name-underline:hover {
    opacity: 0.7;
}

/* Add these styles for the gravity button states */
.slider {
    /* ... existing styles ... */
    background-color: rgba(0, 0, 0, 0.5);
    border: 2px solid white;
    color: white;
    transition: .4s;
}

/* Active state - when gravity is on */
input:checked + .slider {
    background-color: white;
    color: black;
}

/* Audience Toggle */
.audience-toggle {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 10px;
}

.toggle-label {
    color: rgba(255, 255, 255, 0.4);
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    transition: color 0.3s ease;
    color: rgb(201, 201, 201);
}

/* Coming Soon Message */
.coming-soon-message {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-family: Helvetica, Arial, sans-serif;
    font-size: 30px;
    font-weight: bold;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 4;
}

.coming-soon-message.visible {
    opacity: 1;
    visibility: visible;
}

/* Main Content Transition */
.main-content {
    transition: opacity 0.3s ease;
}

.main-content.hidden {
    opacity: 0;
    pointer-events: none;
}

/* iOS-style toggle switch */
.audience-toggle .switch {
    width: 70px;
    height: 36px;
    border-radius: 999px;
}

.audience-toggle .slider {
    background-color: #1C1C1E;
    border-radius: inherit;
    border: none;
    transition: .3s;
}

.audience-toggle .slider:before {
    content: '';
    position: absolute;
    height: 32px;
    width: 32px;
    left: 2px;
    top: 2px;
    background-color: #636366;
    border-radius: 50%;
    transition: .3s;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Active state */
.audience-toggle input:checked + .slider {
    background-color: #3A3A3C;
}

.audience-toggle input:checked + .slider:before {
    transform: translateX(34px);
}

/* Logo */
.logo-container {
    position: fixed;
    top: 27px;
    left: 20px;
    z-index: 3;
}

.logo {
    height: 24px;  /* Adjust based on your logo */
    width: auto;
}

/* Mobile styles for logo */
@media screen and (max-width: 768px) {
    .logo {
        height: 20px;  /* Slightly smaller on mobile */
    }
}
  