/* TrueDignity Static Site CSS */

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

:root {
    /* Bitcoin-inspired Color Scheme */
    --primary-orange: #F7931A;
    --secondary-gold: #F2A900;
    --tertiary-orange: #FFB224;
    --primary-soft: rgba(247, 147, 26, 0.14);

    /* Additional Colors */
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --white: #ffffff;
    --success: #10b981;
    --danger: #dc2626;
    --warning: #f59e0b;
    --info: #3b82f6;

    /* Gradients */
    --gradient-hero-text: linear-gradient(120deg, #F7931A 30%, #F2A900 70%);
    --gradient-primary: linear-gradient(135deg, #F7931A 0%, #F2A900 100%);
    --gradient-blue: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%);
    --gradient-danger: linear-gradient(45deg, #dc2626, #ef4444);
    --gradient-purple: linear-gradient(45deg, #7c3aed, #8b5cf6);

    /* Typography Scale (8px base) */
    --text-xs: 0.75rem;    /* 12px */
    --text-sm: 0.875rem;   /* 14px */
    --text-base: 1rem;     /* 16px */
    --text-lg: 1.125rem;   /* 18px */
    --text-xl: 1.25rem;    /* 20px */
    --text-2xl: 1.5rem;    /* 24px */
    --text-3xl: 1.875rem;  /* 30px */
    --text-4xl: 2.25rem;   /* 36px */
    --text-5xl: 3rem;      /* 48px */
    --text-6xl: 3.75rem;   /* 60px */
    --text-7xl: 4.5rem;    /* 72px */

    /* Spacing Scale (8px base) */
    --space-1: 0.25rem;    /* 4px */
    --space-2: 0.5rem;     /* 8px */
    --space-3: 0.75rem;    /* 12px */
    --space-4: 1rem;       /* 16px */
    --space-5: 1.25rem;    /* 20px */
    --space-6: 1.5rem;     /* 24px */
    --space-8: 2rem;       /* 32px */
    --space-10: 2.5rem;    /* 40px */
    --space-12: 3rem;      /* 48px */
    --space-16: 4rem;      /* 64px */
    --space-20: 5rem;      /* 80px */
    --space-24: 6rem;      /* 96px */
    --space-32: 8rem;      /* 128px */

    /* Line Heights */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;

    /* Border Radius */
    --radius-sm: 0.125rem;
    --radius: 0.25rem;
    --radius-md: 0.375rem;
    --radius-lg: 0.5rem;
    --radius-xl: 0.75rem;
    --radius-2xl: 1rem;
    --radius-3xl: 1.5rem;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Animation Timing */
    --duration-fast: 150ms;
    --duration-normal: 300ms;
    --duration-slow: 500ms;
    --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
    --ease-in: cubic-bezier(0.4, 0, 1, 1);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--text-dark);
    background-color: var(--white);
}

.section-container::before {
    content: '';
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}

/* Navigation */
.navbar {
    background: var(--white);
    box-shadow: var(--shadow-sm);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    backdrop-filter: blur(8px);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--space-4) var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--primary-orange);
    text-decoration: none;
    transition: color var(--duration-normal) var(--ease-in-out);
}

.logo:hover {
    color: var(--secondary-gold);
}

.nav-links {
    display: flex;
    gap: var(--space-8);
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: var(--text-xs);
    transition: all var(--duration-normal) var(--ease-in-out);
    position: relative;
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
}

.nav-links a:hover {
    color: var(--primary-orange);
    background: var(--primary-soft);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width var(--duration-normal) var(--ease-in-out);
}

.nav-links a:hover::after {
    width: 100%;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    position: relative;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--primary-orange);
    border-radius: var(--radius-sm);
    transition: all var(--duration-normal) var(--ease-in-out);
    transform-origin: center;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

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

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #fef7ed 0%, #fed7aa 50%, #fdba74 100%);
    padding: var(--space-20) 0;
    margin-top: 0;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-12);
}

.hero-content {
    position: relative;
    z-index: 1;
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.1s both;
}

.hero-title {
    font-size: var(--text-4xl);
    font-weight: 800;
    margin-bottom: var(--space-4);
    line-height: var(--leading-tight);
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

.hero-tagline {
    font-size: var(--text-base);
    color: var(--text-gray);
    margin-bottom: var(--space-6);
    max-width: 550px;
    line-height: var(--leading-relaxed);
    font-weight: 500;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
}

.hero-social-proof {
    margin-top: var(--space-6);
}

.trust-badge {
    display: inline-flex;
    justify-content: flex-start;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(247, 147, 26, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-3) var(--space-5);
    font-size: var(--text-xs);
    color: var(--text-gray);
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-in-out);
    text-align: left;
}

.badge-icon {
    margin-right: var(--space-3);
    font-size: var(--text-sm);
    animation: badgeGlow 2s ease-in-out infinite alternate;
    color: var(--primary-orange);
    vertical-align: middle;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

@keyframes badgeGlow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.1);
    }
}

.hero-image-container {
    position: relative;
    animation: fadeInUp var(--duration-slow) var(--ease-out) 0.3s both;
}

.hero-image {
    width: 100%;
    height: auto;
    max-width: 600px;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
}


/* Button Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-8);
    border-radius: var(--radius-3xl);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--text-sm);
    line-height: var(--leading-tight);
    transition: all var(--duration-normal) var(--ease-in-out);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    min-height: 48px;
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: var(--shadow-lg);
    border: 2px solid transparent;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
    background: linear-gradient(135deg, #F2A900 0%, #F7931A 100%);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary-orange);
    border: 2px solid var(--primary-orange);
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.btn-secondary:hover {
    background: var(--primary-orange);
    color: var(--white);
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}



/* Button loading state */
.btn-loading {
    pointer-events: none;
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: buttonSpin 1s linear infinite;
}

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



/* Staggered animations for grids */
.feature-card, .demo-card, .cost-item {
    transition-delay: calc(var(--delay, 0) * 0.1s);
}

/* Consistent icon system */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: inherit;
    transition: all var(--duration-normal) var(--ease-in-out);
}

.icon-sm {
    font-size: var(--text-sm);
}

.icon-md {
    font-size: var(--text-base);
}

.icon-lg {
    font-size: var(--text-xl);
}

.icon-xl {
    font-size: var(--text-2xl);
}

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

.icon-secondary {
    color: var(--secondary-gold);
}

.icon-success {
    color: var(--success);
}

.icon-danger {
    color: var(--danger);
}

.icon-warning {
    color: var(--warning);
}

.icon-info {
    color: var(--info);
}

/* Enhanced feature icons */
.feature-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    display: block;
    transition: transform var(--duration-normal) var(--ease-in-out);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.feature-card:hover .feature-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.15));
}

/* Enhanced button interactions */
.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left var(--duration-slow) var(--ease-in-out);
}

.btn:hover::before {
    left: 100%;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: all var(--duration-normal) var(--ease-out);
}

.btn:active::after {
    width: 100%;
    height: 100%;
    opacity: 0;
}

.btn:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
    animation: buttonFocusPulse 0.5s var(--ease-out);
}

@keyframes buttonFocusPulse {
    0% {
        outline-offset: 2px;
        outline-color: var(--primary-orange);
    }
    50% {
        outline-offset: 4px;
        outline-color: var(--secondary-gold);
    }
    100% {
        outline-offset: 2px;
        outline-color: var(--primary-orange);
    }
}

/* Section Containers */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    position: relative;
}

.section-container:not(:first-of-type)::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 40px;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
}



.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-8);
    position: relative;
}

.section-title {
    font-size: var(--text-3xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-8);
    line-height: var(--leading-tight);
    color: var(--text-dark);
}

.section-subtitle {
    font-size: var(--text-base);
    text-align: center;
    margin-bottom: var(--space-12);
    color: var(--text-gray);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    line-height: var(--leading-relaxed);
}

/* Special Section Styles */
.problem-section {
    background: var(--white);
    padding: var(--space-16) 0;
}

.problem-section .section-title {
    color: var(--text-dark);
}

.problem-section .feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
}

.problem-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.problem-section .feature-icon {
    color: var(--primary-orange);
}



.solution-section {
    background: #f0fdf4;
    padding: var(--space-16) 0;
}

.solution-section .section-title {
    color: var(--success);
}

.solution-section .feature-card {
    background: var(--white);
    border: 1px solid #dcfce7;
    box-shadow: var(--shadow-md);
}

.solution-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--success);
}

.solution-section .feature-icon {
    color: var(--success);
}

.features-section {
    background: #f8fafc;
    padding: var(--space-16) 0;
}

.features-section .section-title {
    color: var(--text-dark);
}

.features-section .feature-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    box-shadow: var(--shadow-md);
}

.features-section .feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-orange);
}

.features-section .feature-icon {
    color: var(--primary-orange);
}

.features-section .feature-icon img {
    filter: none;
    color: var(--primary-orange);
}

.cta-section {
    background: var(--gradient-primary);
    color: var(--white);
    padding: var(--space-16) 0;
    text-align: center;
}

.cta-section .section-title,
.cta-section .section-subtitle {
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.cta-section .btn-primary {
    background: var(--white);
    color: var(--primary-orange);
    box-shadow: var(--shadow-lg);
}

.cta-section .btn-primary:hover {
    background: #fdf2e9;
    color: var(--primary-orange);
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}

.btn-lg {
    padding: var(--space-5) var(--space-10);
    font-size: var(--text-base);
}

/* Feature Cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-8);
}

.feature-card {
    background: var(--white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-in-out);
    margin-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform var(--duration-normal) var(--ease-in-out);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-4);
    display: block;
    transition: transform var(--duration-normal) var(--ease-in-out);
}

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

    .feature-card h3 {
        font-size: var(--text-base);
    }

    .feature-card p {
        font-size: var(--text-xs);
    }





/* Enhanced Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card, .cost-item, .demo-card {
    animation: fadeInUp var(--duration-slow) var(--ease-out);
}

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

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

/* Enhanced hover effects */
.btn {
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}



/* Improved text contrast for better readability */
.section-title {
    color: var(--text-dark);
}

.section-subtitle {
    color: var(--text-gray);
}

.feature-card h3 {
    color: var(--info);
}

.feature-card p {
    color: var(--text-gray);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: var(--white);
    text-align: center;
    padding: var(--space-8) 0;
    margin-top: var(--space-12);
    font-size: var(--text-xs);
}

/* Demo Page Specific Styles */
.demo-hero .hero-title {
    font-size: var(--text-3xl);
}

.demo-card .demo-description {
    line-height: var(--leading-relaxed);
}

.demo-card .demo-benefit {
    font-size: var(--text-sm);
    font-weight: 600;
}

/* Demo Feature Row */
.demo-feature-row {
    display: flex;
    align-items: center;
    gap: var(--space-12);
    margin-bottom: var(--space-16);
}

.demo-feature-row--reversed {
    flex-direction: row-reverse;
}

.demo-video-col {
    flex: 1;
    max-width: 600px;
    min-width: 0; /* Allow flex item to shrink below content size */
}

.demo-text-col {
    flex: 1;
    min-width: 0; /* Allow flex item to shrink below content size */
}

.demo-text-col h3 {
    font-size: var(--text-2xl);
    font-weight: 700;
    margin-bottom: var(--space-4);
}

.demo-text-col p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}



/* CTA Button Alignment */
.cta-section .hero-actions {
    justify-content: center;
}

/* Tablet screen adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
    .hero h1 {
        font-size: var(--text-5xl);
    }

    .hero-tagline {
        font-size: var(--text-xl);
    }

    .demo-feature-row {
        gap: var(--space-8);
    }

    .demo-video-col {
        max-width: 500px;
    }
}

/* Large tablet adjustments */
@media (max-width: 900px) and (min-width: 769px) {
    .demo-feature-row {
        gap: var(--space-6);
    }

    .demo-video-col {
        max-width: 450px;
    }
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .nav-container {
        padding: var(--space-4);
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: center;
        padding: var(--space-8) var(--space-4);
        box-shadow: var(--shadow-lg);
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: all var(--duration-normal) var(--ease-in-out);
        gap: var(--space-6);
    }

    .nav-links.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-links a {
        font-size: var(--text-base);
        padding: var(--space-3) var(--space-6);
        width: 100%;
        text-align: center;
        border-radius: var(--radius-lg);
    }

    .nav-links a:hover {
        background: var(--primary-soft);
    }

    .hero {
        padding: var(--space-10) 0;
        margin-top: var(--space-16);
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }

    .hero-content {
        order: 2;
    }

    .hero-image-container {
        order: 1;
        margin-bottom: var(--space-8);
    }

    .hero-title {
        font-size: var(--text-xl);
    }

    .demo-hero .hero-title {
        font-size: var(--text-xl);
    }

    .demo-feature-row {
        flex-direction: column;
        gap: var(--space-8);
    }

    .demo-video-col {
        width: 100%;
        max-width: 100%;
        flex: none;
    }

    .demo-text-col {
        width: 100%;
        flex: none;
    }

    .hero-tagline {
        font-size: var(--text-sm);
        padding: 0 var(--space-4);
    }

    .hero-actions {
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .section-title {
        font-size: var(--text-xl);
        line-height: var(--leading-snug);
    }

    .section-subtitle {
        font-size: var(--text-sm);
    }

    .feature-card, .cost-item, .demo-card {
        padding: var(--space-6);
        margin-bottom: 0;
    }

    .features-grid, .costs-grid, .demo-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .problem-section, .solution-section, .features-section {
        padding: var(--space-8) 0;
        margin: var(--space-8) 0;
    }

    .cta-section {
        padding: var(--space-8) 0;
    }

    .btn {
        display: block;
        text-align: center;
        margin: var(--space-3) auto;
        width: 100%;
        max-width: 300px;
    }

    /* Mobile iframe wrapper adjustments */
    .video-container {
        min-height: 200px;
        min-width: 100%;
        margin-bottom: var(--space-4);
    }

    .video-container.aspect-16-9 {
        aspect-ratio: 16 / 9;
        min-height: auto;
    }

    .video-container.aspect-4-3 {
        aspect-ratio: 4 / 3;
        min-height: auto;
    }

    .video-container::before {
        width: 32px;
        height: 32px;
        margin: -16px 0 0 -16px;
        border-width: 2px;
    }

    .video-container::after {
        font-size: var(--text-xs);
        top: calc(50% + 30px);
    }
}

/* Iframe Wrapper Styles */
.video-container {
    position: relative;
    width: 100%;
    min-height: 250px;
    min-width: 250px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-in-out);
}

.video-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    border-radius: var(--radius-2xl);
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-in-out);
}

.video-container iframe.loaded {
    opacity: 1;
}

/* Loading Indicator */
.video-container::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 2px solid transparent;
    border-top-color: var(--primary-orange);
    border-radius: 50%;
    animation: iframeSpin 1s linear infinite;
    z-index: 10;
    opacity: 1;
    transition: opacity var(--duration-normal) var(--ease-in-out);
}

.video-container::after {
    content: 'Video sedang dimuat...';
    position: absolute;
    top: calc(50% + 35px);
    left: 50%;
    transform: translateX(-50%);
    font-size: var(--text-xs);
    color: var(--text-gray);
    font-weight: 500;
    z-index: 10;
    opacity: 1;
    transition: opacity var(--duration-normal) var(--ease-in-out);
}

.video-container.loaded::before,
.video-container.loaded::after {
    opacity: 0;
    pointer-events: none;
}

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

/* Aspect Ratio Support */
.video-container.aspect-16-9 {
    aspect-ratio: 16 / 9;
}

.video-container.aspect-4-3 {
    aspect-ratio: 4 / 3;
}

/* Slow Loading State */
.video-container.loading-slow::after {
    content: 'Video sedang dimuat (koneksi lambat)...';
    color: var(--warning);
}

/* Error State */
.video-container.error::before {
    content: '⚠️';
    animation: none;
    border: none;
    width: auto;
    height: auto;
    font-size: var(--text-2xl);
    background: none;
}

.video-container.error::after {
    content: 'Video tidak dapat dimuat';
    color: var(--danger);
}

/* Print styles */
@media print {
    .navbar, .btn {
        display: none !important;
    }

    .problem-section, .features-section, .cta-section {
        background: none !important;
        box-shadow: none !important;
        page-break-inside: avoid;
    }

    .video-container {
        background: none !important;
        box-shadow: none !important;
        min-height: 150px;
    }

    .video-container::before,
    .video-container::after {
        display: none !important;
    }
}