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

html {
    font-size: 16px;
    line-height: 1.6;
    
    /* Prevent horizontal scrolling on mobile */
    overflow-x: hidden;
    
    /* Smooth font scaling */
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    
    /* Prevent horizontal scrolling */
    overflow-x: hidden;
    width: 100%;
    
    /* Improve text rendering on mobile */
    text-rendering: optimizeLegibility;
    
    /* Ensure full height coverage on mobile */
    min-height: 100vh;
    min-height: 100dvh;
    background: #000000;
}

/* Remove default button styles */
button {
    border: none;
    background: none;
    font: inherit;
    cursor: pointer;
}

/* Remove default list styles */
ul, ol {
    list-style: none;
}

/* Remove default link styles */
a {
    text-decoration: none;
    color: inherit;
}

/* Base Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

/* Landing Page Container */
.landing-page {
    min-height: 100vh;
    min-height: 100dvh; /* Dynamic viewport height for modern browsers */
    background: #000000;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    
    /* Ensure full coverage on mobile */
    width: 100%;
    overflow-x: hidden;
}

/* Orange Glow Background Effect */
.landing-page::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60%;
    height: 60%;
    background: radial-gradient(ellipse at bottom left, rgba(255, 165, 0, 0.5) 0%, rgba(255, 165, 0, 0.2) 40%, rgba(255, 165, 0, 0.1) 60%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* Content Container */
.content-container {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Header Section */
.header-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

/* Main Headline Styling */
.main-headline {
    color: #FFFFFF;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 0.5rem;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.headline-line1 {
    font-size: 2rem;
    display: block;
    margin-bottom: 0.25rem;
    white-space: nowrap;
}

.headline-line2 {
    font-size: 1.3rem;
    display: block;
    white-space: nowrap;
}

/* Sub-headline Styling */
.sub-headline {
    color: #CCCCCC;
    font-size: 1.5rem;
    font-weight: 400;
    line-height: 1.4;
    max-width: 90%;
}

/* Video Section */
.video-section {
    width: 100%;
    display: flex;
    justify-content: center;
}

.video-container {
    width: 100%;
    max-width: 800px;
    padding: 0 1rem;
}

/* Video Wrapper with Responsive Aspect Ratio */
.video-wrapper {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio (9/16 = 0.5625) */
    background: #1a1a1a;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* Ensure video wrapper maintains aspect ratio on all devices */
    max-width: 100%;
    
    /* Smooth transitions for responsive changes */
    transition: box-shadow 0.3s ease, border-radius 0.3s ease;
}

/* Video Embed Styling */
.video-embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 8px;
    background: #000;
}

/* HTML5 Video Specific Styling */
video.video-embed {
    object-fit: cover;
}

/* Video Controls Styling for HTML5 Video */
video.video-embed::-webkit-media-controls-panel {
    background-color: rgba(0, 0, 0, 0.8);
}

video.video-embed::-webkit-media-controls-play-button,
video.video-embed::-webkit-media-controls-pause-button {
    background-color: #FF6500;
    border-radius: 50%;
}

/* Focus States for Accessibility */
.video-embed:focus {
    outline: 2px solid #FF6500;
    outline-offset: 2px;
}

/* Improve focus visibility on mobile */
@media (max-width: 768px) {
    .video-embed:focus {
        outline-width: 3px;
        outline-offset: 3px;
    }
    
    .cta-button:focus {
        outline-width: 3px;
        outline-offset: 3px;
    }
}

/* CTA Section */
.cta-section {
    display: flex;
    justify-content: center;
    width: 100%;
}

/* CTA Button Component */
.cta-button {
    background: #FF6500;
    color: #FFFFFF;
    font-size: 1.125rem;
    font-weight: 600;
    padding: 16px 32px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    transform: scale(1);
    
    /* Initial hidden state */
    opacity: 0;
    visibility: hidden;
    
    /* Positioning and spacing */
    margin-top: 1rem;
    min-width: 200px;
    text-align: center;
    line-height: 1.2;
    
    /* Touch-friendly sizing for mobile */
    min-height: 44px; /* iOS recommended minimum touch target */
    
    /* Prevent text selection on mobile */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    
    /* Improve touch responsiveness */
    -webkit-tap-highlight-color: rgba(255, 101, 0, 0.3);
}

/* CTA Button Hover State with Scale Transformation */
.cta-button:hover {
    transform: scale(1.05);
}

/* CTA Button Active/Click State with Orange Outline */
.cta-button:active,
.cta-button:focus {
    outline: 2px solid #FF6500;
    outline-offset: 2px;
    transform: scale(1.05);
}

/* CTA Button Focus State for Accessibility (when not active) */
.cta-button:focus:not(:active) {
    transform: scale(1.02);
}

/* Touch-specific interactions for mobile devices */
@media (hover: none) and (pointer: coarse) {
    /* Remove hover effects on touch devices */
    .cta-button:hover {
        transform: scale(1);
    }
    
    /* Enhanced touch feedback */
    .cta-button:active {
        transform: scale(0.98);
        background: #e55a00; /* Slightly darker orange on touch */
    }
    
    /* Larger touch targets on mobile */
    .cta-button {
        min-height: 48px;
        padding: 16px 32px;
    }
}

/* CTA Button Fade-in Animation */
.cta-button.fade-in {
    animation: fadeInScale 0.5s ease-out forwards;
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        visibility: hidden;
        transform: scale(0.9);
    }
    1% {
        visibility: visible;
    }
    100% {
        opacity: 1;
        visibility: visible;
        transform: scale(1);
    }
}

/* Responsive Design */

/* Extra Large Desktop Styles (1400px and up) */
@media (min-width: 1400px) {
    .content-container {
        max-width: 1000px;
        gap: 4.5rem;
    }
    
    .headline-line1 {
        font-size: 2.5rem;
    }
    
    .headline-line2 {
        font-size: 1.65rem;
    }
    
    .main-headline {
        max-width: 90%;
    }
    
    .sub-headline {
        font-size: 2rem;
        max-width: 85%;
    }
    
    .cta-button {
        font-size: 1.375rem;
        padding: 20px 40px;
        min-width: 240px;
    }
}

/* Large Desktop Styles (1200px to 1399px) */
@media (min-width: 1200px) and (max-width: 1399px) {
    .content-container {
        max-width: 900px;
        gap: 4rem;
    }
    
    .headline-line1 {
        font-size: 2.25rem;
    }
    
    .headline-line2 {
        font-size: 1.5rem;
    }
    
    .sub-headline {
        font-size: 1.75rem;
    }
    
    .cta-button {
        font-size: 1.25rem;
        padding: 18px 36px;
        min-width: 220px;
    }
}

/* Desktop Styles (992px to 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .content-container {
        max-width: 800px;
        gap: 3.5rem;
    }
    
    .headline-line1 {
        font-size: 2.25rem;
    }
    
    .headline-line2 {
        font-size: 1.5rem;
    }
    
    .sub-headline {
        font-size: 1.5rem;
    }
}

/* Tablet Landscape Styles (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .content-container {
        gap: 3rem;
        padding: 0 2rem;
        max-width: 700px;
    }
    
    .headline-line1 {
        font-size: 1.8rem;
    }
    
    .headline-line2 {
        font-size: 1.2rem;
    }
    
    .main-headline {
        line-height: 1.1;
    }
    
    .sub-headline {
        font-size: 1.375rem;
        max-width: 90%;
        line-height: 1.3;
    }
    
    .landing-page {
        padding: 2rem 1rem;
    }
    
    .video-container {
        max-width: 100%;
        padding: 0 1rem;
    }
    
    .cta-button {
        font-size: 1.125rem;
        padding: 16px 32px;
        min-width: 200px;
    }
}

/* Tablet Portrait Styles (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .content-container {
        gap: 2.5rem;
        padding: 0 1.5rem;
        max-width: 600px;
    }
    
    .headline-line1 {
        font-size: 1.6rem;
    }
    
    .headline-line2 {
        font-size: 1.05rem;
    }
    
    .main-headline {
        line-height: 1.15;
    }
    
    .sub-headline {
        font-size: 1.25rem;
        max-width: 95%;
        line-height: 1.35;
    }
    
    .landing-page {
        padding: 1.5rem 1rem;
    }
    
    .video-container {
        max-width: 100%;
        padding: 0 0.5rem;
    }
    
    .video-wrapper {
        border-radius: 8px;
        box-shadow: 0 3px 15px rgba(0, 0, 0, 0.4);
    }
    
    .cta-button {
        font-size: 1rem;
        padding: 14px 28px;
        min-width: 180px;
        margin-top: 1rem;
    }
    
    /* Adjust orange glow for tablet */
    .landing-page::before {
        width: 50%;
        height: 50%;
        background: radial-gradient(ellipse at bottom left, rgba(255, 165, 0, 0.4) 0%, rgba(255, 165, 0, 0.15) 40%, rgba(255, 165, 0, 0.08) 60%, transparent 80%);
    }
}

/* Mobile Landscape Styles (376px to 480px) */
@media (min-width: 376px) and (max-width: 480px) {
    .content-container {
        gap: 2rem;
        padding: 0 1rem;
    }
    
    .headline-line1 {
        font-size: 1.4rem;
    }
    
    .headline-line2 {
        font-size: 0.9rem;
    }
    
    .main-headline {
        line-height: 1.2;
        margin-bottom: 0.75rem;
    }
    
    .sub-headline {
        font-size: 1.125rem;
        max-width: 100%;
        line-height: 1.4;
    }
    
    .landing-page {
        padding: 1.25rem 0.75rem;
    }
    
    .video-container {
        padding: 0 0.25rem;
    }
    
    .video-wrapper {
        border-radius: 6px;
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
    }
    
    .video-embed {
        border-radius: 6px;
    }
    
    .cta-button {
        font-size: 0.95rem;
        padding: 13px 26px;
        min-width: 170px;
        margin-top: 0.875rem;
        border-radius: 6px;
    }
    
    /* Adjust orange glow for mobile landscape */
    .landing-page::before {
        width: 45%;
        height: 45%;
        background: radial-gradient(ellipse at bottom left, rgba(255, 165, 0, 0.35) 0%, rgba(255, 165, 0, 0.12) 40%, rgba(255, 165, 0, 0.06) 60%, transparent 80%);
    }
}

/* iOS Safari Mobile Viewport Fix */
@supports (-webkit-touch-callout: none) {
    .landing-page {
        min-height: -webkit-fill-available;
    }
    
    body {
        min-height: -webkit-fill-available;
    }
}

/* Mobile Portrait Styles (320px to 375px) */
@media (max-width: 375px) {
    .content-container {
        gap: 1.75rem;
        padding: 0 0.75rem;
    }
    
    .headline-line1 {
        font-size: 1.2rem;
    }
    
    .headline-line2 {
        font-size: 0.8rem;
    }
    
    .main-headline {
        line-height: 1.25;
        margin-bottom: 0.5rem;
    }
    
    .sub-headline {
        font-size: 1rem;
        max-width: 100%;
        line-height: 1.45;
    }
    
    .landing-page {
        padding: 1rem 0.5rem;
    }
    
    .video-container {
        padding: 0;
    }
    
    .video-wrapper {
        border-radius: 4px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
    }
    
    .video-embed {
        border-radius: 4px;
    }
    
    .cta-button {
        font-size: 0.9rem;
        padding: 12px 24px;
        min-width: 160px;
        margin-top: 0.75rem;
        border-radius: 6px;
    }
    
    /* Adjust orange glow for small mobile */
    .landing-page::before {
        width: 40%;
        height: 40%;
        background: radial-gradient(ellipse at bottom left, rgba(255, 165, 0, 0.3) 0%, rgba(255, 165, 0, 0.1) 40%, rgba(255, 165, 0, 0.05) 60%, transparent 80%);
    }
}

/* Extra Small Mobile Styles (below 320px) */
@media (max-width: 319px) {
    .content-container {
        gap: 1.5rem;
        padding: 0 0.5rem;
    }
    
    .headline-line1 {
        font-size: 1.1rem;
    }
    
    .headline-line2 {
        font-size: 0.75rem;
    }
    
    .main-headline {
        line-height: 1.3;
    }
    
    .sub-headline {
        font-size: 0.95rem;
        line-height: 1.5;
    }
    
    .landing-page {
        padding: 0.75rem 0.25rem;
    }
    
    .cta-button {
        font-size: 0.85rem;
        padding: 10px 20px;
        min-width: 140px;
        margin-top: 0.5rem;
    }
    
    /* Minimal orange glow for very small screens */
    .landing-page::before {
        width: 35%;
        height: 35%;
        background: radial-gradient(ellipse at bottom left, rgba(255, 165, 0, 0.25) 0%, rgba(255, 165, 0, 0.08) 40%, transparent 70%);
    }
}

/* Very Small Screens - Ensure no text wrapping */
@media (max-width: 280px) {
    .headline-line1 {
        font-size: 0.95rem;
    }
    
    .headline-line2 {
        font-size: 0.65rem;
    }
}

/* High DPI / Retina Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .video-wrapper {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
    }
    
    .cta-button {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
}

/* Landscape Orientation Adjustments for Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .landing-page {
        padding: 0.5rem 1rem;
    }
    
    .content-container {
        gap: 1.5rem;
    }
    
    .main-headline {
        font-size: 1.5rem;
        margin-bottom: 0.25rem;
    }
    
    .sub-headline {
        font-size: 1rem;
    }
    
    .cta-button {
        margin-top: 0.5rem;
        padding: 10px 20px;
    }
    
    /* Reduce orange glow in landscape */
    .landing-page::before {
        width: 30%;
        height: 60%;
        background: radial-gradient(ellipse at bottom left, rgba(255, 165, 0, 0.2) 0%, rgba(255, 165, 0, 0.06) 40%, transparent 70%);
    }
}

/* Error Message Styling */
.error-message {
    background: rgba(255, 101, 0, 0.1);
    border: 1px solid rgba(255, 101, 0, 0.3);
    border-radius: 6px;
    color: #FF6500;
    padding: 12px 16px;
    margin: 0 auto 1rem auto;
    max-width: 600px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;
    position: relative;
    
    /* Smooth appearance */
    opacity: 0;
    animation: errorFadeIn 0.3s ease-out forwards;
}

/* Error message variants */
.error-message.error-error {
    background: rgba(220, 53, 69, 0.1);
    border-color: rgba(220, 53, 69, 0.3);
    color: #dc3545;
}

.error-message.error-warning {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.error-message.error-success {
    background: rgba(40, 167, 69, 0.1);
    border-color: rgba(40, 167, 69, 0.3);
    color: #28a745;
}

@keyframes errorFadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Retry Button Styling */
.retry-button {
    background: rgba(255, 101, 0, 0.8);
    color: #FFFFFF;
    border: 1px solid #FF6500;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    margin: 0.5rem auto 0 auto;
    display: none;
    transition: all 0.2s ease;
    
    /* Center the button */
    text-align: center;
    min-width: 120px;
    
    /* Accessibility improvements */
    min-height: 36px;
    
    /* Prevent text selection */
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.retry-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: rgba(255, 101, 0, 0.4);
}

.retry-button:hover {
    background: #FF6500;
    transform: translateY(-1px);
}

.retry-button:active {
    transform: translateY(0);
    background: #e55a00;
}

.retry-button:focus {
    outline: 2px solid #FF6500;
    outline-offset: 2px;
}

/* Responsive Error Message Styles */
@media (max-width: 768px) {
    .error-message {
        margin: 0 1rem 1rem 1rem;
        padding: 10px 14px;
        font-size: 0.85rem;
        border-radius: 4px;
    }
    
    .retry-button {
        font-size: 0.8rem;
        padding: 6px 12px;
        min-width: 100px;
        min-height: 32px;
    }
    
    .fallback-indicator {
        margin: 0 1rem 0.5rem 1rem;
        padding: 6px 10px;
        font-size: 0.75rem;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .error-message {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 8px 12px;
        font-size: 0.8rem;
    }
    
    .retry-button {
        font-size: 0.75rem;
        padding: 5px 10px;
        min-width: 90px;
        min-height: 30px;
    }
    
    .fallback-indicator {
        margin: 0 0.5rem 0.5rem 0.5rem;
        padding: 5px 8px;
        font-size: 0.7rem;
    }
}

/* Fallback Indicator Styling */
.fallback-indicator {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 4px;
    color: #ffc107;
    padding: 8px 12px;
    margin: 0 auto 0.5rem auto;
    max-width: 400px;
    text-align: center;
    font-size: 0.8rem;
    line-height: 1.3;
    display: none;
    
    /* Subtle animation */
    animation: pulseGlow 2s ease-in-out infinite alternate;
}

@keyframes pulseGlow {
    from {
        box-shadow: 0 0 5px rgba(255, 193, 7, 0.2);
    }
    to {
        box-shadow: 0 0 10px rgba(255, 193, 7, 0.4);
    }
}

/* Error State Modifications for Video Wrapper */
.video-wrapper.error-state {
    border: 1px solid rgba(255, 101, 0, 0.3);
    background: rgba(255, 101, 0, 0.05);
}

.video-wrapper.error-state::after {
    content: "Video loading failed";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FF6500;
    font-size: 0.9rem;
    text-align: center;
    z-index: 2;
    background: rgba(0, 0, 0, 0.8);
    padding: 8px 12px;
    border-radius: 4px;
}

/* Screen reader announcer (hidden) */
#sr-announcer {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

/* Offline Indicator Styling */
.offline-indicator {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.3);
    border-radius: 6px;
    color: #dc3545;
    padding: 12px 16px;
    margin: 0 auto 1.5rem auto;
    max-width: 600px;
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
    display: none;
    
    /* Pulsing animation for attention */
    animation: offlinePulse 2s ease-in-out infinite alternate;
}

@keyframes offlinePulse {
    from {
        background: rgba(220, 53, 69, 0.1);
        border-color: rgba(220, 53, 69, 0.3);
    }
    to {
        background: rgba(220, 53, 69, 0.15);
        border-color: rgba(220, 53, 69, 0.4);
    }
}

/* Actionable Steps Styling */
.actionable-steps {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 6px;
    color: #17a2b8;
    padding: 12px 16px;
    margin: 0.5rem auto 1rem auto;
    max-width: 600px;
    font-size: 0.85rem;
    line-height: 1.4;
    display: none;
}

.steps-header {
    font-weight: 600;
    margin-bottom: 8px;
    color: #17a2b8;
}

.steps-list {
    margin: 0;
    padding-left: 20px;
    list-style-type: disc;
}

.steps-list li {
    margin: 4px 0;
    color: #17a2b8;
}

/* Enhanced Error Message Variants */
.error-message.error-network {
    background: rgba(255, 193, 7, 0.1);
    border-color: rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.error-message.error-timeout {
    background: rgba(255, 101, 0, 0.1);
    border-color: rgba(255, 101, 0, 0.3);
    color: #FF6500;
}

.error-message.error-embed {
    background: rgba(108, 117, 125, 0.1);
    border-color: rgba(108, 117, 125, 0.3);
    color: #6c757d;
}

.error-message.error-cors {
    background: rgba(102, 16, 242, 0.1);
    border-color: rgba(102, 16, 242, 0.3);
    color: #6610f2;
}

/* Enhanced Retry Button States */
.retry-button.retry-comprehensive {
    background: rgba(40, 167, 69, 0.8);
    border-color: #28a745;
}

.retry-button.retry-comprehensive:hover {
    background: #28a745;
}

.retry-button.retry-network {
    background: rgba(255, 193, 7, 0.8);
    border-color: #ffc107;
    color: #212529;
}

.retry-button.retry-network:hover {
    background: #ffc107;
    color: #212529;
}

/* Loading Spinner for Retry Operations */
.retry-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 6px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Progress Indicator for Recovery Attempts */
.recovery-progress {
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: 4px;
    padding: 8px 12px;
    margin: 0.5rem auto;
    max-width: 500px;
    text-align: center;
    font-size: 0.8rem;
    color: #17a2b8;
    display: none;
}

.recovery-progress-bar {
    width: 100%;
    height: 4px;
    background: rgba(23, 162, 184, 0.2);
    border-radius: 2px;
    margin: 6px 0;
    overflow: hidden;
}

.recovery-progress-fill {
    height: 100%;
    background: #17a2b8;
    border-radius: 2px;
    transition: width 0.3s ease;
    width: 0%;
}

/* Connection Status Indicator */
.connection-status {
    position: fixed;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    z-index: 1000;
    display: none;
    
    /* Smooth appearance */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.connection-status.visible {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.connection-status.online {
    background: rgba(40, 167, 69, 0.9);
}

.connection-status.offline {
    background: rgba(220, 53, 69, 0.9);
}

.connection-status.slow {
    background: rgba(255, 193, 7, 0.9);
    color: #212529;
}

/* Enhanced Mobile Responsiveness for Error Elements */
@media (max-width: 768px) {
    .offline-indicator,
    .actionable-steps,
    .recovery-progress {
        margin: 0 1rem 1rem 1rem;
        padding: 10px 14px;
        font-size: 0.8rem;
        border-radius: 4px;
    }
    
    .steps-list {
        padding-left: 16px;
    }
    
    .connection-status {
        top: 5px;
        right: 5px;
        padding: 4px 8px;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .offline-indicator,
    .actionable-steps,
    .recovery-progress {
        margin: 0 0.5rem 1rem 0.5rem;
        padding: 8px 12px;
        font-size: 0.75rem;
    }
    
    .steps-header {
        font-size: 0.8rem;
    }
    
    .steps-list {
        padding-left: 14px;
        font-size: 0.75rem;
    }
    
    .connection-status {
        position: relative;
        top: auto;
        right: auto;
        margin: 0 auto 0.5rem auto;
        display: block;
        text-align: center;
        border-radius: 4px;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .error-message,
    .offline-indicator,
    .actionable-steps,
    .recovery-progress {
        border-width: 2px;
        font-weight: 600;
    }
    
    .retry-button {
        border-width: 2px;
        font-weight: 600;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    .offline-indicator {
        animation: none;
    }
    
    .retry-spinner {
        animation: none;
    }
    
    .recovery-progress-fill {
        transition: none;
    }
    
    .connection-status {
        transition: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .actionable-steps {
        background: rgba(23, 162, 184, 0.2);
        border-color: rgba(23, 162, 184, 0.5);
    }
    
    .recovery-progress {
        background: rgba(23, 162, 184, 0.2);
        border-color: rgba(23, 162, 184, 0.5);
    }
    
    .connection-status {
        background: rgba(0, 0, 0, 0.9);
    }
}

/* Print Styles */
@media print {
    .landing-page::before {
        display: none;
    }
    
    .video-wrapper {
        border: 2px solid #ccc;
        background: #f5f5f5;
    }
    
    .video-embed {
        display: none;
    }
    
    .video-wrapper::after {
        content: "Video content available online";
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        color: #666;
        font-size: 1rem;
    }
    
    .cta-button {
        background: #fff;
        color: #000;
        border: 2px solid #000;
    }
    
    .error-message,
    .retry-button {
        display: none;
    }
}