:root {
    /* Color palette based on Zima Blue with Tolans.com style */
    --background-color: #FFB347 ; /* Deeper Orange Background */
    --logo-color: #281B04; /* New Dark Brown for Logo and Text */
    --golden-amber: #281B04; /* Old amber is now the new dark color */
    --text-dark: #333333;
    --text-light: #281B04; /* Old light text is now the new dark color */
    --button-color: #333333;
    --button-text: #FFFFFF;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-dark: rgba(0, 0, 0, 0.2);
    
    /* Font standardization */
    --primary-font: 'Inter', sans-serif;
    --display-font: 'Bungee', cursive;
    --accent-font: 'Baloo 2', cursive;
    
    /* Font size standardization */
    --font-size-xs: 0.75rem;    /* 12px */
    --font-size-sm: 0.875rem;   /* 14px */
    --font-size-base: 1rem;     /* 16px */
    --font-size-md: 1.125rem;   /* 18px */
    --font-size-lg: 1.25rem;    /* 20px */
    --font-size-xl: 1.5rem;     /* 24px */
    --font-size-2xl: 1.75rem;   /* 28px */
    --font-size-3xl: 2rem;      /* 32px */
    --font-size-4xl: 2.5rem;    /* 40px */
    --font-size-5xl: 3rem;      /* 48px */
    --font-size-title: 18rem;   /* For the main Milo title */
}

/* Animations */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
    100% {
        transform: translateY(0px);
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: var(--primary-font);
    font-size: var(--font-size-base);
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #FFB347 0%, #FFB347 30%, #FFA030 70%, #FFB347 100%);
    background-attachment: fixed;
    color: #281B04;
    width: 100%;
    height: auto;
    min-height: 100vh;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
}

.menu-toggle {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 40px;
    height: 30px;
    cursor: pointer;
    z-index: 1001; /* Ensure it's above side-menu */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background-color: var(--text-light);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    border-radius: 2px;
    transform-origin: center;
    margin: 3px 0;
}

/* Perfect X animation */
.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -1.5px; /* Half of line height for perfect centering */
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scale(0);
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    position: absolute;
    top: 50%;
    left: 0;
    margin-top: -1.5px; /* Half of line height for perfect centering */
}

.side-menu {
    position: fixed;
    inset: 0 auto 0 0; /* stick to left edge, full height */
    width: 280px;
    max-width: 80vw;
    height: 100vh;
    padding: 120px 40px 60px; /* extra top padding clears toggle */
    background: rgba(255, 255, 255, 0.9); /* subtle glass background */
    backdrop-filter: blur(12px);
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.15);
    transform: translateX(-100%);
    transition: transform 0.4s ease;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}

.side-menu.active {
    transform: translateX(0) !important;
}

/* Desktop-specific sidebar fix */
@media (min-width: 481px) {
    .side-menu.active {
        transform: translateX(0) !important;
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}



.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0 0 40px 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-menu ul li {
    margin-bottom: 0;
}

.side-menu ul li a {
    color: #333; /* Dark text color for contrast with light background */
    font-family: var(--accent-font);
    font-size: var(--font-size-lg);
    font-weight: 700; /* Bold */
    text-decoration: none;
    transition: opacity 0.3s ease;
    display: block;
    padding: 5px 0;
}

.side-menu ul li a:hover {
    opacity: 0.7;
    color: var(--golden-amber);
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    position: relative; /* Set positioning context */
}

.social-links a {
    color: #333; /* Dark text color for contrast with light background */
    font-family: var(--accent-font);
    text-decoration: none;
    font-size: var(--font-size-md);
    font-weight: 700; /* Bold */
    opacity: 0.9;
    transition: opacity 0.3s ease;
    padding: 5px 0;
    display: block;
}

.social-links a:hover {
    opacity: 1;
    color: var(--golden-amber);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 100%;
    text-align: center;
    position: absolute;
    bottom: 30px;
    left: 0;
    right: 0;
    padding-left: 40px;
    padding-right: 40px;
}

.sidebar-footer .footer-link {
    font-family: 'Baloo 2', cursive;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease, color 0.3s ease;
}

.sidebar-footer .footer-link:hover {
    opacity: 1;
    color: var(--golden-amber);
}

/* Tagline styling - ensure Baloo font is applied */
.milo-tagline {
    font-family: 'Baloo 2', cursive !important;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    margin: 15px 0;
    text-align: center;
}

/* Subtitle styling for parent-focused description */
.milo-subtitle {
    font-family: 'Baloo 2', cursive !important;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    margin: 10px 0 25px 0;
    text-align: center;
    line-height: 1.5;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.main-container {
    width: 100%;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--primary-font);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-light);
}

h1, h2 {
    font-size: var(--font-size-4xl);
}

h3 {
    font-size: var(--font-size-3xl);
}

h4 {
    font-size: var(--font-size-2xl);
}

h5 {
    font-size: var(--font-size-xl);
}

h6 {
    font-size: var(--font-size-lg);
}

/* Logo Group - Groups logo and meditating video for proportional resizing */
.logo-group {
    position: relative;
    display: inline-block;
    text-align: center;
}

.milo-title {
    font-family: var(--display-font);
    font-weight: 700;
    font-size: var(--font-size-title); /* Using standardized title size */
    color: var(--golden-amber);
    margin: 0 auto; /* Center horizontally */
    letter-spacing: -0.02em;
    line-height: 1;
    position: relative;
    z-index: 10;
    text-align: center;
    /* Prevent flash of unstyled text */
    font-display: block;
    visibility: hidden;
}

/* Show logo only when Bungee font is loaded */
.fonts-loaded .milo-title {
    visibility: visible;
}

.logo-container {
    position: absolute;
    top: 20px;
    left: 20px;
}

.small-logo {
    height: 40px;
    width: auto;
}

p {
    font-family: var(--primary-font);
    font-size: var(--font-size-base);
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.tagline {
    font-size: var(--font-size-sm);
    margin-bottom: 1rem;
    color: var(--text-light);
    opacity: 0.9;
    text-align: center;
}

.subtitle {
    font-size: var(--font-size-md);
    margin-bottom: 2rem;
    font-weight: 500;
    animation: pulse 2s ease-in-out infinite;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

a {
    font-family: var(--primary-font);
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    font-weight: 500;
}

a:hover {
    opacity: 0.8;
}

video {
    background-color: transparent !important;
    background: transparent !important;
    /* Mobile-specific transparency fixes */
    -webkit-background-clip: padding-box;
    background-clip: padding-box;
    /* Hardware acceleration for mobile */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

/* Enhanced transparency rules for all fallback images */
img[class*="fallback"],
.milo-meditating-fallback,
.milo-character-fallback,
.milo-space-suit-fallback,
.milo-hoverboard-fallback {
    background-color: transparent !important;
    background: transparent !important;
    opacity: 1 !important;
    /* Mobile-specific properties */
    -webkit-background-clip: padding-box !important;
    background-clip: padding-box !important;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* Ensure no border or outline */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

section {
    padding: 6rem 0;
    position: relative;
}

.title-container {
    position: relative;
    width: 100%;
    max-width: 1000px;
    margin: 4rem auto 1rem; /* Reduced bottom margin from 3rem to 1rem */
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center; /* Ensure text is centered */
}

/* New title container with three columns layout */
.new-title-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 4rem auto 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: center;
}

/* Left avatar container */
.left-avatar-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Center logo container */
.center-logo-container {
    flex: 2;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Right avatar container */
.right-avatar-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Milo avatar styling */
.milo-avatar {
    width: 300px;
    height: auto;
    z-index: 20;
    pointer-events: none;
    background: transparent !important;
    background-color: transparent !important;
    animation: float 6s ease-in-out infinite;
}

/* Buzz avatar styling */
.buzz-avatar {
    width: 350px; /* Increased from 300px to match new size */
    height: auto;
    z-index: 20;
    pointer-events: none;
    background: transparent !important;
    background-color: transparent !important;
    animation: float 8s ease-in-out infinite 1s;
    margin-left: -50px; /* Move it more to the left */
}

.milo-meditating {
    position: absolute;
    width: 20%; /* Optimized size for better mobile display */
    top: -20%; /* Positioned above the L letter */
    left: 45%; /* Positioned above the L in MILO */
    transform: translateX(-40%); /* Center above the L */
    z-index: 5;
    pointer-events: none;
    min-width: 120px; /* Smaller minimum for mobile */
    max-width: 200px; /* Smaller maximum for mobile */
}

/* Remove old container styles */
.milo-character-container {
    display: none;
}

/* Style for new milo-saying-hi div */
.milo-saying-hi {
    position: fixed;
    left: 30px; /* Moved more to the left from 50px */
    top: 65%; /* Moved down a bit more */
    transform: translateY(-50%);
    width: 350px;
    height: auto;
    z-index: 20;
    pointer-events: none;
}

@media (max-width: 480px) {
  .milo-saying-hi {
    display: none !important;
  }
}

/* Mobile responsiveness - All mobile devices */
@media screen and (max-width: 480px) {
    /* Ensure body can scroll properly */
    body {
        overflow-x: hidden !important;
        overflow-y: scroll !important;
        height: auto !important;
        position: relative !important;
    }
    
    html {
        overflow-y: scroll !important;
        height: auto !important;
    }
    
    /* Hide side videos on mobile to focus on main content */
    .milo-saying-hi {
        display: none !important;
    }
    
    .space-suit-container {
        display: none !important;
    }
    
    /* Adjust main meditating video for mobile */
    .milo-meditating {
        position: absolute !important;
        width: 80px !important;
        max-width: 80px !important;
        top: 80px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 10 !important;
        animation: gentle-mobile-float 4s ease-in-out infinite !important;
        display: block !important;
    }
    
    /* Show hoverboard on mobile at bottom */
    .hoverboard-container {
        display: block !important;
        position: absolute !important;
        bottom: -100px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 120px !important;
        height: auto !important;
        z-index: 15 !important;
    }
    
    .milo-hoverboard {
        width: 100% !important;
        height: auto !important;
        max-width: 120px !important;
        animation: hover-float 5s ease-in-out infinite !important;
        display: block !important;
    }
    
    /* Ensure main container has proper spacing for mobile */
    .main-container {
        padding: 1rem !important;
        margin-top: 0 !important;
        height: auto !important;
        min-height: auto !important;
        position: relative !important;
        overflow: visible !important;
        padding-top: 3rem !important;
    }
    
    /* Adjust title container for mobile */
    .title-container {
        margin: 0 auto 1rem !important;
        max-width: 100% !important;
        position: relative !important;
        padding-top: 2rem !important;
    }
    
    /* Make sure Milo title scales properly on mobile */
    .milo-title {
        font-size: 8rem !important;
        line-height: 0.8 !important;
    }
    
    /* Ensure action buttons have proper spacing */
    .action-buttons-container {
        margin-bottom: 50px !important;
        margin-top: 2rem !important;
    }
    
    /* Reduce excessive bottom spacing on mobile */
    .hoverboard-container {
        bottom: -50px !important;
    }
}

/* Portrait specific adjustments */
@media screen and (orientation: portrait) and (max-width: 480px) {
    .milo-title {
        font-size: 6rem !important;
    }
    
    .milo-meditating {
        width: 70px !important;
        max-width: 70px !important;
        top: -50px !important;
    }
    
    .hoverboard-container {
        width: 100px !important;
        bottom: -80px !important;
    }
    
    .milo-hoverboard {
        max-width: 100px !important;
    }
}

/* Landscape specific adjustments */
@media screen and (orientation: landscape) and (max-height: 500px) {
    .milo-title {
        font-size: 5rem !important;
    }
    
    .milo-meditating {
        width: 60px !important;
        max-width: 60px !important;
        top: -40px !important;
    }
    
    .main-container {
        padding: 0.5rem !important;
        margin-top: 1rem !important;
    }
    
    .title-container {
        margin: 1rem auto 0.5rem !important;
    }
    
    .action-buttons-container {
        margin-bottom: 150px !important;
    }
    
    .hoverboard-container {
        width: 80px !important;
        bottom: -60px !important;
    }
    
    .milo-hoverboard {
        max-width: 80px !important;
    }
}

/* Additional mobile rules for very small screens */
@media screen and (orientation: portrait) and (max-width: 360px) {
    .milo-meditating {
        width: 60px !important;
        max-width: 60px !important;
        top: -45px !important;
    }
    
    .milo-title {
        font-size: 6rem !important;
    }
    
    .hoverboard-container {
        width: 100px !important;
    }
    
    .milo-hoverboard {
        max-width: 100px !important;
    }
}

.milo-character {
    width: 350px;
    height: auto;
    background: transparent !important;
    background-color: transparent !important;
}

/* Duplicate mobile rules removed - avatars are hidden on mobile */

/* Duplicate mobile rules removed - avatars are hidden on mobile */

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

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

@keyframes hover-float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    33% {
        transform: translateY(-8px) rotate(1deg);
    }
    66% {
        transform: translateY(-5px) rotate(-1deg);
    }
}

@keyframes gentle-mobile-float {
    0%, 100% {
        transform: translate(-50%, 0px) scale(1);
    }
    50% {
        transform: translate(-50%, -6px) scale(1.02);
    }
}

/* Video Popup Styles */
.video-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999 !important; /* Maximum z-index with !important to override everything */
    box-sizing: border-box;
}

.video-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw;
    height: 80vh;
    max-width: 1200px;
    max-height: 800px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.video-popup-content video {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Maintain aspect ratio while fitting container */
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.video-popup-content .close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.5rem;
    color: #fff;
    cursor: pointer;
    z-index: 1000000 !important; /* Above the video popup with maximum priority */
}

/* Only hide avatars when video popup is actually displayed (style="display: block") */
#video-popup[style*="display: block"] ~ * .milo-avatar,
#video-popup[style*="display: block"] ~ * .buzz-avatar,
#video-popup[style*="display: block"] ~ * .milo-meditating,
#video-popup[style*="display: block"] ~ * .milo-space-suit,
#video-popup[style*="display: block"] ~ * .milo-hoverboard,
#video-popup[style*="display: block"] ~ * #miloSayingHi,
#video-popup[style*="display: block"] ~ * .milo-character {
    visibility: hidden !important;
    z-index: 1 !important;
}

/* More specific targeting - hide avatars only when video popup is visible */
body:has(#video-popup[style*="display: block"]) .milo-avatar,
body:has(#video-popup[style*="display: block"]) .buzz-avatar,
body:has(#video-popup[style*="display: block"]) .milo-meditating,
body:has(#video-popup[style*="display: block"]) .milo-space-suit,
body:has(#video-popup[style*="display: block"]) .milo-hoverboard,
body:has(#video-popup[style*="display: block"]) #miloSayingHi,
body:has(#video-popup[style*="display: block"]) .milo-character {
    visibility: hidden !important;
    z-index: 1 !important;
}

/* TOP VIDEO - Meditation above MILO title */
.milo-meditating {
    position: absolute;
    width: 120px;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    animation: gentle-float 5s ease-in-out infinite;
}

/* RIGHT VIDEO - Space suit */
.space-suit-container {
    position: fixed;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    width: 180px;
    height: auto;
    z-index: 15;
    animation: gentle-float 6s ease-in-out infinite;
}

.milo-space-suit {
    width: 100%; /* Full width of container */
    height: auto;
    animation: gentle-float 6s ease-in-out infinite;
}

/* HIDE HOVERBOARD - only show 3 videos */
.hoverboard-container {
    display: none !important;
    bottom: 200px; /* Moved down from 250px to 200px */
    right: 90px; /* Moved left from 120px to 90px */
}

.milo-hoverboard {
    width: 100%; /* Full width of container */
    height: auto;
    transform: none; /* Remove transform since it's now relative positioned */
    max-width: 100%;
}

.character {
    position: absolute;
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.character-left {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite;
}

.character-right {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    animation: float 7s ease-in-out infinite 1s;
}

.character-bottom {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 5s ease-in-out infinite 0.5s;
}

.character-top {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    animation: float 8s ease-in-out infinite 1.5s;
}

/* Buttons */
.action-buttons-container {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 1rem; /* Reduced from 2rem */
    margin-bottom: 2rem;
}

.action-buttons {
    display: flex;
    gap: 1rem;
    max-width: 900px;
    width: 100%;
    justify-content: space-between;
    padding: 8px;
}

.action-button {
    flex: 1;
    text-align: center;
    padding: 15px 20px;
    border-radius: 40px;
    background-color: rgba(255, 255, 255, 0.7);
    color: #281B04;
    font-family: var(--accent-font);
    font-weight: 700;
    font-size: var(--font-size-lg);
    transition: all 0.3s ease;
    text-decoration: none;
}

.action-button:hover {
    background-color: rgba(255, 255, 255, 0.9);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    background-color: var(--text-light);
    color: var(--primary-blue);
    padding: 16px 38px;
    border-radius: 50px;
    font-family: var(--primary-font);
    font-weight: 700;
    font-size: var(--font-size-md);
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--text-light);
    letter-spacing: 0.03em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    background-color: #fff;
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    padding: 16px 38px;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid var(--text-light);
    letter-spacing: 0.03em;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Header */
header {
    background-color: transparent;
    padding: 1.5rem 0;
    position: absolute;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header footer {
    padding: 0;
    margin-top: 0;
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 1200px;
    margin: -10px auto 0; /* Negative margin to pull it up */
    padding: 0;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    border-radius: 8px;
    object-fit: cover;
}

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

nav ul li a {
    font-weight: 600;
    font-size: 1rem;
    position: relative;
    letter-spacing: 0.02em;
    padding: 8px 0;
}

nav ul li a:after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--text-light);
    transition: width 0.3s ease;
}

nav ul li a:hover:after {
    width: 100%;
}

/* Hero Section */
.hero-section {
    background-color: var(--primary-blue);
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 120px;
    position: relative;
    overflow: hidden;
    background-image: radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 20%);
}

.hero-content {
    text-align: center;
    margin-bottom: 2rem;
    z-index: 10;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    color: var(--text-light);
    margin-bottom: 0.5rem;
    font-weight: 700;
    font-size: 4.5rem;
    line-height: 1.1;
}

.hero-text .subtitle {
    opacity: 0.9;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
}

.hero-image img {
    max-width: 90%;
    border-radius: 24px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: float 6s ease-in-out infinite;
}

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

/* Demo Video Section */
.demo-section {
    background-color: var(--primary-blue);
    text-align: center;
    padding-top: 3rem;
    padding-bottom: 6rem;
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.video-container video {
    display: block;
    width: 100%;
    height: auto;
}

/* How It Works Section */
.how-it-works-section {
    background-color: var(--primary-blue-dark);
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feature-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 2rem;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.2);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.feature-icon img {
    width: 55px;
    height: 55px;
    border-radius: 0;
    transition: all 0.4s ease;
}

.feature-card:hover .feature-icon img {
    transform: scale(1.1);
}

/* About Section */
.about-section {
    background-color: var(--primary-blue-light);
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: 1.25rem;
    line-height: 1.8;
    margin-bottom: 2rem;
}

/* FAQ Section */
.faq-section {
    background-color: var(--primary-blue);
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.faq-item {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.faq-item:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.faq-question {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    letter-spacing: -0.01em;
    line-height: 1.4;
}

.faq-answer {
    opacity: 0.85;
    line-height: 1.8;
    font-size: 1.05rem;
}

.faq-item h3 {
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.faq-item p {
    opacity: 0.9;
    line-height: 1.7;
}

/* Waitlist Section */
.waitlist-section {
    background-color: var(--primary-blue-light);
    text-align: center;
    padding-top: 8rem;
    padding-bottom: 8rem;
}

.waitlist-section h2 {
    margin-bottom: 1.5rem;
}

.waitlist-section p {
    max-width: 600px;
    margin: 0 auto 3rem;
    font-size: 1.25rem;
    opacity: 0.9;
}

.waitlist-container {
    width: 100%;
    max-width: 500px;
    margin: 2rem auto;
    text-align: center;
}

.waitlist-form {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.waitlist-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 1rem;
    background-color: white;
    color: var(--text-dark);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.waitlist-form input::placeholder {
    color: rgba(0, 0, 0, 0.4);
}

.waitlist-form button {
    padding: 1rem 1.5rem;
    border-radius: 50px;
    border: none;
    background-color: var(--golden-amber);
    color: var(--background-color);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
}

.waitlist-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

/* Waitlist Popup Styles */
.waitlist-popup {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.waitlist-popup.active {
    display: flex;
}

.waitlist-popup-content {
    background-color: #F5F5F5;
    margin: auto;
    padding: 30px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.waitlist-popup-content h3 {
    font-family: var(--accent-font);
    font-weight: 700;
    font-size: var(--font-size-2xl);
    color: #333;
    margin-top: 0;
    margin-bottom: 10px;
}

.waitlist-popup-content p {
    font-family: var(--primary-font);
    font-size: var(--font-size-base);
    color: #555;
    margin-bottom: 20px;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #333;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-popup:hover {
    color: var(--golden-amber);
}

.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-bottom: 0; /* Remove all space */
}

.waitlist-benefits {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2rem;
    margin: 0 auto 2.5rem;
    max-width: 900px;
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 1.8rem;
    color: var(--primary-brown);
}

.benefit-item p {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--primary-brown);
    font-size: 1rem;
    text-align: left;
}

/* Testimonials Section */
.testimonials-section {
    background-color: var(--primary-brown);
    color: var(--text-light);
}

.testimonials-section h2 {
    color: var(--text-light);
}

.testimonials-slider {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    margin: 1rem;
}

.testimonial-content {
    font-style: italic;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin-right: 1rem;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    margin: 0 5px;
    cursor: pointer;
}

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

/* Why Now Section */
.why-now-section {
    background-color: var(--background-light);
}

.why-now-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.why-now-card {
    background: var(--primary-yellow-light);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 5px 15px var(--shadow-light);
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary-yellow-dark) 0%, var(--primary-yellow) 100%);
    text-align: center;
    padding: 6rem 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.cta-section::after {
    content: '';
    position: absolute;
    bottom: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    z-index: 0;
}

.cta-section .container {
    position: relative;
    z-index: 1;
}

.cta-section h2 {
    font-size: 2.5rem;
    color: var(--primary-brown);
    margin-bottom: 1rem;
}

.waitlist-headline {
    font-size: 1.3rem;
    font-weight: 600;
    max-width: 800px;
    margin: 0 auto 2rem;
    color: var(--primary-brown);
}

.benefit-item {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 280px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.benefit-item:hover {
    transform: translateY(-5px);
}

.benefit-item i {
    font-size: 1.8rem;
    color: var(--primary-brown);
}

.benefit-item p {
    font-weight: 600;
    margin-bottom: 0;
    color: var(--primary-brown);
    font-size: 1rem;
    text-align: left;
}

.waitlist-form {
    max-width: 600px;
    margin: 2rem auto 1.5rem;
}

/* Old menu styles removed - now using menu.css */
/*
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    transition: left 0.3s ease;
    z-index: 1000;
    padding: 120px 0 0;
    overflow-y: auto;
    border-radius: 0 20px 20px 0;
}
*/
/*
.side-menu.show {
    left: 0;
}
*/
/*
.side-menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
*/
/*
.side-menu ul li {
    padding: 1rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
}
*/
/*
.side-menu ul li:hover {
    background-color: rgba(0, 0, 0, 0.1);
}
*/
/*
.side-menu ul li a {
    text-decoration: none;
    color: var(--text-light);
}
*/
/*
.side-menu ul li a:hover {
    color: var(--primary-yellow);
}
*/
/*
.side-menu .close-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}
*/

.waitlist-form input {
    font-size: 1rem;
    font-family: 'Nunito', sans-serif;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.waitlist-form input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(62, 39, 35, 0.2);
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    margin-top: 0.5rem;
}

.waitlist-note {
    font-weight: 700;
    color: var(--primary-brown);
    margin-top: 1.5rem;
    font-size: 1.1rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.7; }
    50% { opacity: 1; }
    100% { opacity: 0.7; }
}

/* Action buttons and footer */
.action-buttons {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary .icon {
    font-size: 0.8rem;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.app-store-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    background-color: transparent;
    color: var(--text-light);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.app-store-link span:first-child {
    font-size: 0.7rem;
    opacity: 0.7;
}

.app-store-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

footer {
    margin-top: 4rem;
    text-align: center;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-text {
    font-size: 1rem;
    color: var(--text-light);
    opacity: 0.7;
    margin: 0;
}

.footer-brand {
    font-weight: 700;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-dot {
    color: var(--text-light);
    opacity: 0.7;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-light);
    opacity: 0.8;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.footer-links a:hover {
    opacity: 1;
}

.footer-social {
    display: flex;
    gap: 1.5rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-light);
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--text-light);
    color: var(--primary-blue);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    opacity: 0.7;
    flex-wrap: wrap;
    gap: 1rem;
}

.legal-links {
    display: flex;
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 {
        font-size: 3.5rem;
    }

    h2 {
        font-size: 2.2rem;
    }

    .hero-content {
        gap: 2rem;
    }

    .features-grid, .faq-grid {
        gap: 2rem;
    }
}

/* iPad specific styles */
@media (min-width: 577px) and (max-width: 1024px) {
    /* iPad layout - larger than mobile but still centered */
    body {
        overflow-x: hidden;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: 30px;
    }
    
    .main-container {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        text-align: center;
        height: 100vh;
        width: 100%;
        max-width: 100vw;
        overflow: hidden;
        position: relative;
    }
    
    /* Hamburger menu adjustments */
    .menu-toggle {
        top: 30px;
        left: 30px;
        width: 35px;
        height: 28px;
        z-index: 1002;
    }
    
    /* Title container - centered like Tolan */
    .title-container {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        z-index: 10;
    }
    
    /* Logo sizing - iPad appropriate */
    .milo-title {
        font-size: 12rem !important;
        margin: 0;
        padding: 0;
        line-height: 0.8;
        text-align: center;
        position: relative;
        z-index: 15;
    }
    
    .logo-group {
        transform: scale(0.8); /* Scale down the entire logo group on iPad */
    }
    
    /* Clean up video positioning for iPad */
    .space-suit-container {
        top: -10%;
        right: -8%;
        width: 12%;
    }
    
    .hoverboard-container {
        bottom: -15%;
        right: -2000%;
        width: 20%;
    }
    
    /* Action buttons - horizontal on iPad */
    .action-buttons-container {
        width: 100%;
        margin-top: 4rem;
        z-index: 20;
    }
    
    .action-buttons {
        flex-direction: row;
        gap: 2rem;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
        justify-content: center;
    }
    
    .action-button {
        padding: 18px 35px;
        font-size: 18px;
        border-radius: 30px;
        min-width: 150px;
    }
    
    /* APNG positioning for iPad */
    .milo-character-container {
        position: fixed !important;
        bottom: 40px !important;
        left: 40px !important;
        width: 150px !important;
        height: auto !important;
        z-index: 5 !important;
    }
    
    .milo-character {
        width: 150px !important;
        height: auto !important;
    }
    
    .space-suit-container {
        position: fixed !important;
        top: 80px !important;
        right: 40px !important;
        width: 120px !important;
        height: auto !important;
        z-index: 5 !important;
    }
    
    .milo-space-suit {
        width: 120px !important;
        height: auto !important;
    }
    
    .hoverboard-container {
        position: fixed !important;
        bottom: 40px !important;
        right: 40px !important;
        width: 130px !important;
        height: auto !important;
        z-index: 5 !important;
    }
    
    .milo-hoverboard {
        width: 130px !important;
        height: auto !important;
        transform: none !important;
    }
    
    .milo-meditating {
        position: absolute !important;
        top: -60px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 100px !important;
        height: auto !important;
        z-index: 25 !important;
    }
}

@media (max-width: 768px) {
    /* Mobile layout similar to Tolan homepage */
    body {
        overflow-x: hidden;
        height: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: relative;
    }
    
    .main-container {
        height: auto;
        width: 100%;
        max-width: 100vw;
        overflow: visible;
        position: relative;
    }
    
    /* Hamburger menu adjustments */
    .menu-toggle {
        top: 20px;
        left: 20px;
        width: 30px;
        height: 25px;
        z-index: 1002;
    }
    
    /* Title container - centered like Tolan */
    .title-container {
        position: relative;
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: 0;
        padding: 0;
        z-index: 10;
    }
    
    /* Logo sizing - smaller like Tolan */
    .milo-title {
        font-size: 10rem; /* More proportional on mobile */
        margin: 1rem 0;
        text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    }

    .container {
        padding: 0 1.5rem;
    }
    
    /* Enhanced main container for mobile */
    .main-container {
        padding: 1rem;
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    
    .logo-group {
        transform: scale(0.7); /* Scale down the entire logo group on mobile */
    }
    
    /* Clean mobile layout - hide overlapping videos or reposition */
    .space-suit-container {
        top: -8%;
        right: -5%;
        width: 10%;
        min-width: 40px;
        max-width: 80px;
    }
    
    .hoverboard-container {
        bottom: -12%;
        right: -8%;
        width: 18%;
        min-width: 60px;
        max-width: 120px;
    }
    
    .milo-meditating {
        width: 25% !important;
        top: -45% !important;
        left: 65% !important;
        min-width: 80px !important;
        max-width: 120px !important;
        margin-top: 3rem;
        z-index: 20;
    }
    
    /* SIMPLE MOBILE LAYOUT - LEFT: Milo character */
    .milo-character {
        position: fixed !important;
        width: 70px !important;
        left: 5px !important; /* Always visible from screen edge */
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 25 !important;
        display: block !important;
    }
    
    /* TOP: Meditation video */
    .milo-meditating {
        position: absolute !important;
        width: 60px !important;
        top: -50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        z-index: 20 !important;
        display: block !important;
    }
    
    /* RIGHT: Buzz/Hoverboard video */
    .hoverboard-container {
        position: absolute !important;
        width: 80px !important;
        right: -60px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        z-index: 25 !important;
        display: block !important;
    }
    
    /* Hide space suit on mobile */
    .space-suit-container {
        display: none !important;
    }
    
    .action-buttons {
        flex-direction: column;
        gap: 1.2rem;
        width: 100%;
        max-width: 320px;
        margin: 0 auto;
        padding: 0 1rem;
    }
    
    .action-button {
        width: 100%;
        padding: 18px 32px;
        font-size: 17px;
        font-weight: 700;
        border-radius: 30px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .action-button:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    }
    
    /* Hide some elements that might clutter mobile */
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .features-grid, .faq-grid {
        grid-template-columns: 1fr;
    }
}

/* Safari and mobile-specific transparency fixes */
@media (max-width: 768px) {
    /* Prevent horizontal scrolling and zoom issues */
    * {
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    body {
        position: relative;
        overflow-x: hidden;
        -webkit-text-size-adjust: 100%;
        -ms-text-size-adjust: 100%;
        /* Safari mobile specific */
        -webkit-overflow-scrolling: touch;
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
    }
    
    /* Safari-specific APNG container fixes */
    .milo-character-container,
    .space-suit-container,
    .hoverboard-container,
    .title-container {
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    video,
    img[class*="fallback"] {
        -webkit-background-size: cover;
        background-size: cover;
        -webkit-background-clip: padding-box;
        background-clip: padding-box;
        /* Force GPU acceleration on mobile */
        -webkit-transform: translate3d(0, 0, 0);
        transform: translate3d(0, 0, 0);
        /* Enhanced transparency support */
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        mask-image: radial-gradient(white, black);
        isolation: isolate;
        mix-blend-mode: normal;
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
    
    /* Ensure containers don't interfere with transparency */
    .title-container,
    .milo-character-container,
    .space-suit-container,
    .hoverboard-container,
    .title-container *,
    .milo-character-container *,
    .space-suit-container *,
    .hoverboard-container * {
        background: transparent !important;
        background-color: transparent !important;
        -webkit-background-clip: padding-box !important;
        background-clip: padding-box !important;
    }
    
    /* Specific fixes for fallback images */
    .milo-meditating-fallback,
    .milo-character-fallback,
    .milo-space-suit-fallback,
    .milo-hoverboard-fallback {
        position: relative;
        z-index: 10;
        -webkit-mask-image: -webkit-radial-gradient(white, black);
        mask-image: radial-gradient(white, black);
    }
}

@media (max-width: 576px) {
    /* Small mobile devices - Tolan-style layout */
    body, html {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        height: 100vh;
        position: relative;
    }
    
    body {
        /* Safari mobile specific fixes */
        -webkit-text-size-adjust: 100%;
        -webkit-touch-callout: none;
    /* Smaller logo for mobile */
    .milo-title {
        font-size: 6rem !important;
        line-height: 0.8;
        margin: 0;
        text-align: center;
        position: relative;
        z-index: 15;
    }
    
    .logo-group {
        transform: scale(0.6); /* Scale down the entire logo group on small mobile */
    }
    
    /* Extra small mobile - very clean layout */
    .space-suit-container {
        top: -5%;
        right: -3%;
        width: 8%;
        min-width: 30px;
        max-width: 60px;
    }
    
    .hoverboard-container {
        bottom: -8%;
        right: -5%;
        width: 15%;
        min-width: 45px;
        max-width: 90px;
    }
    
    .milo-meditating {
        width: 18%; /* Even smaller on tiny screens */
        top: -40%;
        min-width: 40px;
        max-width: 80px;
    }
    
    /* Saying hi character - make smaller on mobile */
    .milo-character {
        width: 300px !important; /* Smaller on small mobile */
        left: -250px !important; /* Closer to logo */
        bottom: -60px !important;
        max-width: 45% !important;
    }
    
    /* APNG positioning - Safari mobile specific fixes */
    .milo-character-container {
        position: fixed !important;
        bottom: 60px !important;
        left: 20px !important;
        width: 100px !important;
        height: auto !important;
        z-index: 5 !important;
        pointer-events: none;
    }
    
    .milo-character {
        width: 100px !important;
        height: auto !important;
        position: relative;
        left: 0;
        bottom: 0;
        transform: none !important;
        display: block !important;
    }
    
    .space-suit-container {
        position: fixed !important;
        top: 100px !important;
        right: 20px !important;
        width: 70px !important;
        height: auto !important;
        z-index: 5 !important;
        pointer-events: none;
    }
    
    .milo-space-suit {
        width: 70px !important;
        height: auto !important;
        display: block !important;
    }
    
    .hoverboard-container {
        position: fixed !important;
        bottom: 60px !important;
        right: 20px !important;
        width: 90px !important;
        height: auto !important;
        z-index: 5 !important;
        pointer-events: none;
    }
    
    .milo-hoverboard {
        width: 90px !important;
        height: auto !important;
        transform: none !important;
        display: block !important;
    }
    
    /* Meditating Milo - position above logo like Tolan characters */
    .milo-meditating {
        position: absolute !important;
        top: -50px !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: 70px !important;
        height: auto !important;
        z-index: 25 !important;
        display: block !important;
    }
    
    /* Action buttons */
    .action-buttons {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
        max-width: 280px;
    }
    
    .action-button {
        padding: 12px 25px;
        font-size: 14px;
        border-radius: 20px;
    }
    
    /* Typography adjustments */
    h2 {
        font-size: 1.5rem;
    }

    .subtitle {
        font-size: 1.1rem;
    }
    
    /* Form adjustments */
    .waitlist-form {
        flex-direction: column;
        gap: 1rem;
    }
    
    .waitlist-form input {
        width: 100%;
        margin-bottom: 1rem;
    }
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 1s ease-in;
}

.slide-up {
    animation: slideUp 1s ease-out;
}

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

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Tagline styling - always positioned below logo */
.milo-tagline {
  position: relative;
  font-family: 'Baloo 2', 'Bungee', cursive;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000; /* Same color as logo */
  text-align: center;
  margin-top: 15px; /* Increased margin for better spacing */
  margin-bottom: 0;
  z-index: 5;
  white-space: nowrap;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
  display: block;
  clear: both; /* Ensure it clears any floated elements */
}

/* Tagline container styling */
.tagline-container {
  width: 100%;
  text-align: center;
  margin-top: 10px;
  margin-bottom: 20px;
  display: block;
  clear: both;
  position: relative;
  z-index: 10;
}

/* Desktop specific tagline styling */
@media (min-width: 1025px) {
  .tagline-container {
    margin-top: 15px;
    margin-bottom: 25px;
  }
  
  .tagline-container .milo-tagline {
    font-family: 'Baloo 2', cursive !important;
    font-size: 60px !important; /* Extreme font size for testing */
    font-weight: 700 !important;
    color: #000000 !important;
    text-align: center !important;
    line-height: 1.1 !important;
    margin: 0 auto !important;
    display: block !important;
    width: 100% !important;
    word-wrap: break-word !important;
  }

  .milo-subtitle {
    font-size: 1.2rem !important;
    max-width: 700px !important;
  }
}

/* Responsive tagline sizing */
@media (max-width: 768px) {
  .milo-tagline {
    font-size: 1.2rem;
    margin-top: 8px;
    color: #000000; /* Ensure consistent color on tablets */
  }
  
  .milo-subtitle {
    font-size: 0.85rem;
    margin: 5px 0 15px 0;
    padding: 0 20px;
    line-height: 1.3;
  }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
  .milo-tagline {
    font-size: 1rem;
    margin-top: 5px;
  }
  
  .milo-subtitle {
    font-size: 0.8rem;
    margin: 3px 0 12px 0;
    padding: 0 15px;
    line-height: 1.2;
  }
}

@media (max-width: 576px) {
  .milo-tagline {
    font-size: 0.9rem;
    margin-top: 5px;
    color: #000000; /* Ensure consistent color on mobile */
  }
  
  .milo-subtitle {
    font-size: 0.75rem;
    margin: 2px 0 10px 0;
    padding: 0 10px;
  }
}

/* 1. Meditating + fallback */
.milo-meditating,
.milo-meditating-fallback {
  position: absolute;
  width: 24%; /* 2x bigger - increased from 12% to 24% */
  top: -52%; /* Moved all the way up to reach the surface of the letter */
  left: 50%; /* Moved slightly more to the left */
  transform: translateX(-20%);
  z-index: 5;
  pointer-events: none;
  min-width: 180px; /* 2x bigger minimum size */
  max-width: 360px; /* 2x bigger maximum size */
  background: transparent !important;
  background-color: transparent !important;
}

/* Hide meditation video on tablets and mobile */
@media (max-width: 1024px) {
  .milo-meditating,
  .milo-meditating-fallback {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

@media (max-width: 768px) {
  .milo-meditating,
  .milo-meditating-fallback {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
}

/* 2. Saying Hi + fallback */
.milo-character,
.milo-character-fallback {
  position: absolute;
  width: 300px; /* Match buzz avatar size */
  height: auto;
  bottom: -60px;
  left: -250px;
  z-index: 20;
  pointer-events: none;
  max-width: 70%;
  background: transparent !important;
  background-color: transparent !important;
}

@media (max-width: 768px) {
  .milo-character,
  .milo-character-fallback {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .milo-character,
  .milo-character-fallback {
    width: 300px !important; /* Match buzz avatar size */
    left: -250px !important;
    bottom: -60px !important;
    max-width: 45% !important;
  }
  
  .milo-character-container {
    position: fixed !important;
    bottom: 60px !important;
    left: 20px !important;
    width: 300px !important; /* Match buzz avatar size */
    height: auto !important;
    z-index: 5 !important;
    pointer-events: none;
  }
  
  .milo-character {
    width: 300px !important; /* Match buzz avatar size */
    height: auto !important;
    position: relative;
    left: 0;
    bottom: 0;
    transform: none !important;
    display: block !important;
  }
}

/* 3. Space Suit + fallback */
.milo-space-suit,
.milo-space-suit-fallback {
  width: 100%;
  height: auto;
  background: transparent !important;
  background-color: transparent !important;
}

@media (max-width: 768px) {
  .space-suit-container {
    display: none !important;
  }
  
  .milo-space-suit,
  .milo-space-suit-fallback {
    display: none !important;
  }
}

/* 4. Hoverboard + fallback */
.milo-hoverboard,
.milo-hoverboard-fallback {
  width: 400px; /* Made smaller - reduced from 500px to 400px */
  transform: translateX(50%);
  max-width: 90%;
  pointer-events: none;
  background: transparent !important;
  background-color: transparent !important;
}

@media (max-width: 768px) {
  .hoverboard-container {
    display: none !important;
  }
  
  .milo-hoverboard,
  .milo-hoverboard-fallback {
    display: none !important;
  }
}

@media (max-width: 768px) {
    .title-container {
        margin: 3rem auto 0.5rem; /* Even smaller gap on mobile */
    }
    
    .action-buttons-container {
        margin-top: 0.5rem; /* Smaller gap on mobile */
    }
}

@media (max-width: 576px) {
    .title-container {
        margin: 2rem auto 0.5rem; /* Even smaller margins on small mobile */
    }
    
    .action-buttons-container {
        margin-top: 0.5rem;
        margin-bottom: 1.5rem;
    }
}

/* Copyright Notice Styling */
.copyright-notice {
    text-align: center !important;
    margin: 2rem auto;
    padding: 1rem;
    width: 100%;
    display: block;
}

.copyright-notice p {
    font-family: var(--primary-font);
    font-size: var(--font-size-sm);
    color: var(--text-light);
    line-height: 1.5;
    margin: 0;
    text-align: center !important;
    width: 100%;
}

/* Final mobile overrides to ensure meditating Milo sits on the logo */
@media screen and (max-width: 480px) {
  /* Increase specificity and force visibility */
  .title-container .milo-meditating {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 90px !important;
    max-width: 90px !important;
    /* Place Milo so the cushion visually touches the top of the MILO logo */
    top: -5px !important;
    z-index: 50 !important;
    /* Anchor the video’s content to the bottom of its box (cushion closest to logo) */
    object-fit: contain !important;
    object-position: center bottom !important;
  }
}