/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-orange: #FF6B35;
    --primary-blue: #0E7CFF;
    --black: #000000;
    --white: #FFFFFF;
    --gray-light: #F5F5F5;
    --gray-dark: #333333;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--black);
    background-color: var(--white);
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    padding: 1rem 0;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: inline-block;
    text-decoration: none;
    transition: transform 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-img {
    height: 40px;
    width: auto;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--black);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-menu a:hover {
    color: var(--primary-orange);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    background: var(--white);
    overflow: hidden;
    padding-bottom: 120px;
}

.dot-container {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

#dotCanvas {
    width: 100%;
    height: 100%;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.hero-title {
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 0.9;
    letter-spacing: -0.05em;
    text-transform: lowercase;
    cursor: pointer;
    transition: transform 0.3s ease;
    position: relative;
}

.hero-title:hover {
    transform: scale(1.02);
}



.word {
    display: inline-block;
    position: relative;
}

.orange-text {
    color: var(--primary-orange);
}

.blue-text {
    color: var(--primary-blue);
    font-weight: 700;
}

.hero-subtitle {
    font-size: 1.4rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    line-height: 1.6;
}

/* Trust Rating */
.trust-rating {
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
}

.stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 0.5rem;
}

.star {
    font-size: 1.5rem;
    color: var(--primary-blue);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transform: scale(0);
}

.trust-text {
    font-size: 0.95rem;
    color: var(--gray-dark);
    font-weight: 500;
    opacity: 0.8;
}

.cta-button {
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.cta-button:hover {
    background: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(14, 124, 255, 0.3);
}

/* Hero Logos Section */
.hero-logos {
    position: absolute;
    bottom: 40px;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
}

.logos-title {
    font-size: 0.9rem;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    opacity: 0.7;
}

.logos-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5rem;
    flex-wrap: wrap;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2rem;
}

.logo-item {
    position: relative;
    transition: all 0.3s ease;
}

.company-logo {
    height: 50px;
    width: auto;
    max-width: 150px;
    opacity: 0.9;
    transition: all 0.3s ease;
    object-fit: contain;
}

.logo-item:hover .company-logo {
    opacity: 1;
    transform: scale(1.1);
}

/* KaiTO Product Section */
.kaito-section {
    padding: 5rem 0;
    background: var(--gray-light);
    overflow: hidden;
    width: 100%;
    border: none;
    outline: none;
}

.kaito-header {
    text-align: center;
    margin-bottom: 3rem;
    opacity: 0;
}

.kaito-name {
    color: var(--primary-orange);
    font-weight: 900;
}

.kaito-subtitle {
    font-size: 1.2rem;
    color: var(--gray-dark);
    margin-top: 0.5rem;
    opacity: 0.8;
}

/* Video Showcase */
.video-showcase {
    margin-bottom: 1.5rem;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
    border: none;
    outline: none;
    background: transparent;
}

.video-showcase-wrapper {
    display: flex;
    gap: 4rem;
    align-items: center;
    justify-content: space-between;
    height: auto;
}

/* Desktop video container styles */
@media (min-width: 769px) {
    .video-showcase {
        overflow: visible;
        scroll-snap-type: none;
    }
    
    /* Reorder videos on desktop - demo in middle */
    .video-container.demo-video {
        order: 2;
    }
    
    .video-container.testimonial-video.left {
        order: 1;
    }
    
    .video-container.testimonial-video.right {
        order: 3;
    }
}

/* Hide mobile navigation on desktop */
.mobile-video-nav {
    display: none;
}

/* Mobile floating mute button - hidden by default */
.mobile-floating-mute {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid white;
    font-size: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    outline: none;
}

.mobile-floating-mute:active {
    transform: scale(0.95);
}

.video-container {
    position: relative;
    opacity: 0;
    border: none;
    outline: none;
    box-shadow: none;
    z-index: 1;
}



.video-container.testimonial-video {
    width: 100%;
    max-width: 450px;
}

.video-container.demo-video {
    width: 100%;
    max-width: 450px;
    flex-shrink: 0;
}

.testimonial-video,
.demo-video {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: none;
    outline: none;
}

.video-container:hover .testimonial-video,
.video-container:hover .demo-video {
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.testimonial-video video,
.demo-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: none;
    outline: none;
    position: relative;
    z-index: 1;
}

.testimonial-video {
    aspect-ratio: 9/16;
    max-height: 600px;
}

.demo-video {
    aspect-ratio: 9/16;
    max-height: 600px;
}

/* Video Controls */
.video-controls {
    position: absolute;
    bottom: 10px;
    left: 10px;
    right: auto;
    transform: none;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 0, 0, 0.7);
    padding: 8px 12px;
    border-radius: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 100;
    pointer-events: auto;
}

.video-container:hover .video-controls {
    opacity: 1;
}

.mute-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.volume-slider {
    flex: 1;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
}

.volume-slider::-moz-range-thumb {
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Gratitude Messages Scroll */
.gratitude-section {
    position: relative;
    padding: 0.5rem 0 2rem 0;
    background: transparent;
    margin-top: 0rem;
    opacity: 0;
    --gap: 3rem;
    --duration: 80s;
}

.gratitude-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
    mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.gratitude-content {
    display: flex;
    gap: var(--gap);
}

.gratitude-track {
    flex-shrink: 0;
    display: flex;
    gap: var(--gap);
    animation: scroll var(--duration) linear infinite;
}

.gratitude-message {
    color: var(--gray-dark);
    font-size: 1.1rem;
    opacity: 0.8;
    white-space: nowrap;
}

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

/* General Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

.section-title {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 3rem;
    font-weight: 800;
}

/* Founders Section */
.founders-section {
    position: relative;
    padding: 5rem 0;
    background: var(--white);
    overflow: hidden;
}

#foundersDotsCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
    pointer-events: none;
}

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
}

.founder-card {
    flex: 0 0 100%;
    padding: 2rem;
    text-align: center;
    opacity: 0;
}

.founder-image {
    width: 200px;
    height: 200px;
    margin: 0 auto 2rem;
    position: relative;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.founder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.anonymous-avatar {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-light);
}

.anonymous-avatar svg {
    width: 120px;
    height: 120px;
}

.founder-name {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.founder-role {
    font-size: 1.2rem;
    color: var(--primary-orange);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.founder-bio {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--gray-dark);
    max-width: 500px;
    margin: 0 auto 2rem;
}

.linkedin-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary-blue);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.linkedin-link:hover {
    background: var(--white);
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.linkedin-link svg {
    width: 20px;
    height: 20px;
}

/* Carousel Navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.05);
    border: 2px solid var(--black);
    color: var(--black);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 2;
}

.carousel-nav:hover {
    background: var(--primary-orange);
    color: var(--white);
    border-color: var(--primary-orange);
}

.carousel-nav.prev {
    left: 2rem;
}

.carousel-nav.next {
    right: 2rem;
}

.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--black);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: var(--primary-orange);
    border-color: var(--primary-orange);
}

/* Final CTA Section */
.final-cta {
    padding: 5rem 0;
    background: var(--gray-light);
    text-align: center;
}

.cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.cta-title {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--black);
    font-weight: 700;
    opacity: 0;
}

.final-cta-button {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    font-weight: 600;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 0;
}

.final-cta-button:hover {
    background: var(--primary-blue);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Contact Form */
.contact-form {
    max-width: 600px;
    margin: 0 auto;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.3s ease;
    background: var(--white);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(78, 205, 196, 0.1);
}

.contact-form textarea {
    resize: vertical;
    margin-bottom: 1.5rem;
}

.form-message {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    text-align: center;
    display: none;
    font-weight: 500;
}

.form-message.success {
    background: rgba(78, 205, 196, 0.1);
    color: var(--primary-blue);
    display: block;
}

.form-message.error {
    background: rgba(255, 107, 53, 0.1);
    color: var(--primary-orange);
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    cursor: pointer;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--white);
    border-radius: 20px;
    padding: 3rem;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray-dark);
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(90deg);
}

.modal-title {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--black);
}

.modal-subtitle {
    font-size: 1.1rem;
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

.modal-submit-button {
    width: 100%;
    margin-top: 1rem;
    padding: 1rem 3rem;
    background: var(--primary-orange);
    color: var(--white);
    border: none;
    border-radius: 50px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.modal-submit-button:hover {
    background: var(--primary-blue);
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.modal-submit-button:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed;
    transform: translateY(0) !important;
}

/* Modal Animation */
.modal.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.modal.active .modal-content {
    animation: slideIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Footer */
.footer {
    padding: 2rem 0;
    background: var(--gray-dark);
    color: var(--white);
    text-align: center;
}

.footer-links {
    margin-top: 0.5rem;
}

.footer a,
.footer .footer-link {
    color: var(--white);
    text-decoration: none;
    opacity: 0.9;
}

.footer a:hover,
.footer .footer-link:hover {
    text-decoration: underline;
    opacity: 1;
}

.footer-separator {
    margin: 0 0.5rem;
}

/* Privacy modal content */
.privacy-content {
    display: grid;
    gap: 1rem;
}

.privacy-content h3 {
    font-size: 1.2rem;
    margin-top: 0.5rem;
}

.privacy-content p,
.privacy-content ul {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* Dot Animation Styles */
.dot {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--black);
    border-radius: 50%;
    opacity: 0;
    will-change: transform, opacity;
}

.dot.orange {
    background: var(--primary-orange);
}

.dot.blue {
    background: var(--primary-blue);
}

/* Performance optimization for canvas */
#dotCanvas {
    will-change: transform;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-container {
        padding: 0 1.5rem;
    }
    
    .nav-menu {
        display: none;
    }
    
    .hero-title {
        font-size: 5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .star {
        font-size: 1.3rem;
    }
    
    .trust-text {
        font-size: 0.85rem;
    }
    
    .hero-logos {
        bottom: 150px !important;  /* Raised much higher to avoid Safari bottom bar */
        bottom: calc(150px + env(safe-area-inset-bottom)) !important;  /* Account for iOS safe areas */
        padding: 0 1rem;
    }
    
    .logos-container {
        gap: 3rem;
    }
    
    .company-logo {
        height: 30px;
        max-width: 80px;
    }
    
    /* Final CTA Responsive */
    .cta-title {
        font-size: 2rem;
    }
    
    .final-cta-button {
        padding: 0.9rem 2.5rem;
        font-size: 1.1rem;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    /* Modal Responsive */
    .modal-content {
        padding: 2rem;
    }
    
    .modal-title {
        font-size: 2rem;
    }
    
    .modal-subtitle {
        font-size: 1rem;
    }
    
    /* KaiTO Section Responsive - Mobile Carousel */
    .video-showcase {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding: 0;
        width: 100vw;
        margin: 0;
        margin-left: calc(-50vw + 50%);
        /* Hide scrollbar */
        scrollbar-width: none;
        -ms-overflow-style: none;
        border: none;
        outline: none;
        box-shadow: none;
        background: transparent;
    }
    
    /* Remove all borders and shadows from video elements BUT NOT controls */
    .video-showcase *:not(.video-controls):not(.mute-button) {
        border: none !important;
        outline: none !important;
    }
    
    /* Ensure proper video container clipping */
    .testimonial-video,
    .demo-video {
        overflow: hidden !important;
    }
    
    .video-showcase::-webkit-scrollbar {
        display: none;
    }
    
    .video-showcase-wrapper {
        display: flex;
        height: 450px; /* Fixed height for mobile videos */
        width: 300%; /* 3 videos at 100% each */
        border: none;
        outline: none;
    }
    
    .video-container {
        flex: 0 0 33.333%;
        width: 33.333%;
        scroll-snap-align: center;
        scroll-snap-stop: always;
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0;
        position: relative;
        box-sizing: border-box;
        border: none;
        outline: none;
        background: transparent;
    }
    
    /* Ensure all videos are the same size */
    .video-container.left,
    .video-container.right,
    .video-container.mobile-first {
        max-width: 100%;
    }
    
    .video-container video {
        width: auto;
        height: 100%;
        max-width: 320px; /* All videos same size as demo */
        max-height: 100%;
        object-fit: contain;
        border: none;
        outline: none;
    }
    
    /* Override desktop specific sizes on mobile - all same size */
    .video-container.testimonial-video video,
    .video-container.demo-video video {
        max-width: 320px !important; /* Force all videos to be same size */
        height: 100%;
    }
    
    /* Remove shadows on mobile */
    .testimonial-video,
    .demo-video {
        box-shadow: none !important;
    }
    
    /* Mobile Carousel Navigation */
    .mobile-video-nav {
        display: flex;
        justify-content: center;
        gap: 0.5rem;
        margin-top: 1rem;
        padding: 0 1rem;
    }
    
    .mobile-video-nav button {
        width: 10px;
        height: 10px;
        border-radius: 50%;
        border: 2px solid var(--black);
        background: transparent;
        cursor: pointer;
        transition: all 0.3s ease;
    }
    
    .mobile-video-nav button.active {
        background: var(--primary-orange);
        border-color: var(--primary-orange);
    }
    
    /* Video controls are now handled by the mobile-specific rules at the top of this media query */
    
    .volume-slider {
        display: none; /* Hide volume slider on mobile for simplicity */
    }
    

    
    .gratitude-message {
        font-size: 0.9rem;
        padding: 0 1.5rem;
    }
    
    /* Kaito Section Mobile */
    .kaito-section {
        padding: 3rem 0;
        border: none;
        outline: none;
        box-shadow: none;
    }
    
    .kaito-header {
        padding: 0 1rem;
    }
    
    .kaito-header h2 {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    .kaito-subtitle {
        font-size: 1rem;
    }
    
    .gratitude-section {
        margin-top: 2rem;
    }
    
    /* Touch device support for video controls */
    @media (hover: none) and (pointer: coarse) {
        .video-controls {
            opacity: 1;
        }
        
        /* Remove hover effects on touch devices */
        .video-container:hover .testimonial-video,
        .video-container:hover .demo-video {
            transform: translateY(0);
            box-shadow: none;
        }
    }
    

}

/* Very small screens */
@media (max-width: 480px) {
    .video-showcase-wrapper {
        height: 400px; /* Adjusted height for very small screens */
    }
    
    .video-container video,
    .video-container.testimonial-video video,
    .video-container.demo-video video {
        max-width: 280px !important; /* Same size for all videos on very small screens */
    }
    

    

    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-logos {
        bottom: 150px !important;  /* Much higher to ensure it's above Safari's UI */
        bottom: calc(150px + env(safe-area-inset-bottom)) !important;  /* Account for iOS safe areas */
    }
}

/* Medium screens (laptops, small desktops) */
@media (max-width: 1440px) {
    /* KaiTO Section adjustments */
    .kaito-header h2 {
        font-size: 2.2rem;
    }
    
    .video-showcase {
        gap: 2rem;
        padding: 0;
    }
    

    

    

}

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    /* Further adjustments for smaller laptops */
    .video-showcase {
        gap: 1.5rem;
    }
    

    

    

    
    .kaito-header {
        padding: 0 2rem;
    }
    
    .kaito-subtitle {
        font-size: 1.1rem;
    }
    
    /* Gratitude section adjustments */
    .gratitude-section {
        --duration: 70s;
        --gap: 2.5rem;
    }
    
    .gratitude-message {
        font-size: 1.05rem;
    }
}

@media (max-width: 1024px) {
    /* Even smaller screens like 13" MacBook */
    .kaito-section {
        padding: 4rem 0;
    }
    

    

    

    
    /* Video controls adjustments */
    .video-controls {
        padding: 6px 10px;
        gap: 8px;
        opacity: 1 !important; /* Always visible on tablets and smaller screens */
    }
    
    .mute-button {
        font-size: 0.9rem;
        padding: 4px 10px;
    }
    
    .volume-slider {
        width: 80px;
    }
    
    /* Founders Section Responsive */
    .founder-image {
        width: 160px;
        height: 160px;
    }
    
    .founder-name {
        font-size: 1.8rem;
    }
    
    .founder-bio {
        font-size: 1rem;
    }
    
    .carousel-nav {
        width: 40px;
        height: 40px;
    }
    
    .carousel-nav.prev {
        left: 1rem;
    }
    
    .carousel-nav.next {
        right: 1rem;
    }
}

@media (max-width: 768px) {
    /* Hide individual video controls on mobile since we use floating button */
    .video-controls {
        display: none !important;
    }
    
    /* Mobile floating mute button - visible only on mobile */
    .mobile-floating-mute {
        display: flex !important;
        align-items: center;
        justify-content: center;
        bottom: 100px !important;
        bottom: calc(100px + env(safe-area-inset-bottom)) !important;
    }
    
    /* General Mobile Adjustments */
    body {
        overflow-x: hidden;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    /* Final CTA Mobile */
    .final-cta {
        padding: 3rem 0;
    }
    
    .cta-title {
        font-size: 1.8rem;
        line-height: 1.3;
    }
    
    /* Founders mobile adjustments */
    .founders-section {
        padding: 3rem 0;
    }
    
    .founder-card {
        padding: 1rem;
    }
    
    .founder-image {
        width: 150px;
        height: 150px;
        margin-bottom: 1.5rem;
    }
    
    .founder-name {
        font-size: 1.5rem;
    }
    
    .founder-role {
        font-size: 1rem;
    }
    
    .founder-bio {
        font-size: 0.95rem;
    }
    
    .carousel-nav {
        display: none;
    }
}
